diff --git a/.gitignore b/.gitignore index b2b7ff4bce1..16d98cdded6 100644 --- a/.gitignore +++ b/.gitignore @@ -2,19 +2,12 @@ # python bytecode *.pyc -# Generated documentation files. -# - User Guide. -doc/src/cylc-user-guide/pdf -doc/src/cylc-user-guide/html -doc/src/cylc-user-guide/commands.tex -doc/src/cylc-user-guide/cylc-version.txt -# - Suite Design Guide. -doc/src/suite-design-guide/*.aux -doc/src/suite-design-guide/*.out -doc/src/suite-design-guide/*.pdf -doc/src/suite-design-guide/*.log -doc/src/suite-design-guide/*.toc -# Installed docs. +# Generated documentation files (from 'cylc make-docs') +# - Command reference from called script 'custom/make-commands.sh'. +doc/src/appendices/command-ref.rst +# - Main directory of generated sphinx docs (guides) files. +doc/built-sphinx/ +# - Installed docs doc/install/ # VERSION FILE diff --git a/bin/cylc-make-docs b/bin/cylc-make-docs index 9f558992937..140b48dd361 100755 --- a/bin/cylc-make-docs +++ b/bin/cylc-make-docs @@ -35,13 +35,18 @@ if [[ $# != 0 ]]; then fi echo >&2 -echo "Building the HTML Cylc Documentation with Sphinx..." +echo "Building the HTML Cylc Documentation with Sphinx:" echo >&2 cd "$CYLC_DIR"/doc/ -echo "Generating the command reference..." +echo "... Generating the command reference ..." ./src/custom/make-commands.sh echo >&2 -echo "Auto-generating the HTML with Sphinx..." -sphinx-build -n -b html ./src install/ + +echo "... Generating the Cylc homepage index..." +./src/custom/make-index.sh +echo >&2 + +echo "... Auto-generating the HTML with Sphinx ..." +sphinx-build -n -b html ./src built-sphinx/ echo >&2 echo "Done." diff --git a/doc/src/appendices/suiterc-config-ref.rst b/doc/src/appendices/suiterc-config-ref.rst index 26e3094e494..3bce4a57fd2 100644 --- a/doc/src/appendices/suiterc-config-ref.rst +++ b/doc/src/appendices/suiterc-config-ref.rst @@ -357,6 +357,7 @@ substituted with actual values: - \%(event)s: event name (see below) - \%(suite)s: suite name - \%(suite\_url)s: suite URL +- \%(suite\_uuid)s: suite UUID string - \%(message)s: event message, if any - any suite [meta] item, e.g.: - \%(title)s: suite title @@ -1764,6 +1765,7 @@ will be substituted with actual values: - \%(event)s: event name - \%(suite)s: suite name +- \%(suite\_uuid)s: suite UUID string - \%(point)s: cycle point - \%(name)s: task name - \%(submit\_num)s: submit number diff --git a/doc/src/homepage/index.css b/doc/src/custom/index.css similarity index 96% rename from doc/src/homepage/index.css rename to doc/src/custom/index.css index e96adb81165..4c925beda33 100644 --- a/doc/src/homepage/index.css +++ b/doc/src/custom/index.css @@ -23,7 +23,7 @@ div.uberpage { div.page { color:#00b3fd; background:white; - background-image:url(graphics/cylc-logo.png); + background-image:url(graphics/png/orig/cylc-logo.png); background-repeat:no-repeat; background-position: top right; margin:0 auto; diff --git a/doc/src/homepage/make-index.sh b/doc/src/custom/make-index.sh similarity index 60% rename from doc/src/homepage/make-index.sh rename to doc/src/custom/make-index.sh index 98fcdd6e13f..af68ad41fc6 100755 --- a/doc/src/homepage/make-index.sh +++ b/doc/src/custom/make-index.sh @@ -20,20 +20,16 @@ set -e +# All paths relative to the '$CYLC_HOME/doc/' directory. OUT=install rm -rf $OUT mkdir -p $OUT -cp src/index.css $OUT -cp -r src/cylc-user-guide/graphics $OUT -cp src/cylc-logo.png $OUT/graphics - -CYLC_VERSION=$($(dirname $0)/../../bin/cylc --version) +cp src/custom/index.css $OUT +cp -r src/graphics $OUT +CYLC_VERSION=$($(dirname $0)/../../../bin/cylc --version) INDEX=$OUT/index.html -CUG_PDF=src/cylc-user-guide/pdf/cug-pdf.pdf -CUG_HTML_SINGLE=src/cylc-user-guide/html/single/ -CUG_HTML_MULTI=src/cylc-user-guide/html/multi/ -SDG_PDF=src/suite-design-guide/document.pdf +HTML_DOCS=built-sphinx/ cat > $INDEX <<__END__ @@ -64,61 +60,19 @@ cylc COMMAND --help
-

User Guide

- -
- -
-

Suite Design Guide

+

HTML Guides: User Guide & Suite Design Guide