forked from mongodb-labs/drivers-evergreen-tools
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmake-docs.sh
More file actions
26 lines (21 loc) · 809 Bytes
/
Copy pathmake-docs.sh
File metadata and controls
26 lines (21 loc) · 809 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/sh
set -o xtrace # Write all commands first to stderr
set -o errexit # Exit the script with error if any of the commands fail
mkdir -p doc/html || true
cat <<EOT > doc/html/index.html > doc/html/intro.html
<html>
<body>
<ul>
<li><a href="index.html">Index</a></li>
<li><a href="intro.html">Intro</a></li>
</ul>
EOT
cat <<EOT >> doc/html/index.html
This is an example of a doc page automatically uploaded to evergreen so you can see your docs rendered.
The evergreen URL differs for patch builds and normal builds
EOT
cat <<EOT >> doc/html/intro.html
This page is never actually uploaded by evergreen, only the index page was uploaded.
Thats why there is a link to the index page ("Rendered docs") while this is not an actual artifact.
This page was uploaded seperately with the s3cmd tools
EOT