Skip to content

Commit

Permalink
Refactored doc source; added suite design guide.
Browse files Browse the repository at this point in the history
  • Loading branch information
hjoliver committed Mar 22, 2017
1 parent 5b00f90 commit de01cf6
Show file tree
Hide file tree
Showing 190 changed files with 2,415 additions and 332 deletions.
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ doc/html/
doc/pdf/
doc/index.html
doc/cylc-version.txt
*.aux
*.out
*.pdf
*.log
*.toc

# VERSION FILE
VERSION
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.

all: version docs
all: version documentation

version:
admin/create-version-file

docs:
documentation:
cd doc && $(MAKE)

clean:
Expand Down
71 changes: 23 additions & 48 deletions doc/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,63 +16,38 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.

CYLC=$(dir $(abspath $(lastword $(MAKEFILE_LIST))))../bin/cylc
.PHONY: all cug sdg cug-pdf cug-html clean install installclean

.PHONY: all index clean html html-multi html-single pdf
all: sdg cug install

DEPS := $(shell ./scripts/get-deps.sh)
sdg: src/suite-design-guide/document.pdf

all: index
cug: cug-pdf cug-html

cug-pdf: src/cylc-user-guide/pdf/cug-pdf.pdf

index: $(DEPS)
./scripts/make-index.sh
cug-html: src/cylc-user-guide/html/single/cug-html.html \
src/cylc-user-guide/html/multi/cug-html.html

html: html-multi html-single
src/suite-design-guide/document.pdf:
cd src/suite-design-guide && $(MAKE)

html-multi: html/multi/cug-html.html
src/cylc-user-guide/pdf/cug-pdf.pdf:
cd src/cylc-user-guide && $(MAKE) pdf

html-single: html/single/cug-html.html
src/cylc-user-guide/html/single/cug-html.html:
cd src/cylc-user-guide && $(MAKE) html-single

pdf: pdf/cug-pdf.pdf
src/cylc-user-guide/html/multi/cug-html.html:
cd src/cylc-user-guide && $(MAKE) html-multi

install:
./src/make-index.sh

cylc.txt: ../bin/cylc
$< --help > $@

cats = $(shell ../bin/cylc categories)
catx = $(cats:%=categories/%.txt)

cmds = $(shell ../bin/cylc commands)
cmdx = $(cmds:%=commands/%.txt)

$(cmdx): commands/%.txt: ../bin/cylc-%
if test ! -d commands; then mkdir -p commands/; fi
$(patsubst ../bin/cylc-%,../bin/cylc %,$<) --help > $@

$(catx): categories/%.txt: ../bin/cylc
if test ! -d categories; then mkdir -p categories/; fi
cylc $(subst .txt,,$(subst categories/,,$@)) --help > $@

commands.tex: $(cmdx) $(catx) cylc.txt
./scripts/make-commands.sh

html/multi/cug-html.html: commands.tex cug-html.tex cug.tex suiterc.tex siterc.tex gcylcrc.tex cug-html.cfg
./scripts/make-html.sh multi

html/single/cug-html.html: commands.tex cug-html.tex cug.tex suiterc.tex siterc.tex gcylcrc.tex cug-html.cfg
./scripts/make-html.sh single

pdf/cug-pdf.pdf: commands.tex cug-pdf.tex cug.tex suiterc.tex siterc.tex gcylcrc.tex
./scripts/make-pdf.sh

# delete all generated files:
clean:
rm -r pdf \
html \
cylc.txt \
commands \
categories \
commands.tex \
index.html \
cylc-version.txt
cd src/suite-design-guide && $(MAKE) clean
cd src/cylc-user-guide && $(MAKE) clean

installclean:
rm -r install

22 changes: 12 additions & 10 deletions doc/README
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
Cylc document generation from LaTeX source
------------------------------------------

To generate pdf and html (single and multi-page) Cylc User Guides:
cug = Cylc User Guide
sdg = Suite Design Guide

| cd $CYLC_DIR/doc
| make
make all - create cug and sdg, and install to 'install/' sub-directory.

The following make targets are also avaialable:
| make pdf
| make html
| make html-single
| make html-multi
make sdg - just create sdg (PDF)

This will generate the documents under pdf/ and html/ sub-directories,
and an index.html file at the top level that links to them.
make cug - just create cug (PDF and HTML)
make cug-pdf - just create cug-pdf
make cug-html - just create cug-html (single and multi-page versions)

make install - install created docs to 'install/' sub-dir, and create index.html
make clean - remove all generated files (except those in 'install/')
make installclean - remove the 'install/' sub-dir
85 changes: 0 additions & 85 deletions doc/index.css

This file was deleted.

155 changes: 0 additions & 155 deletions doc/scripts/make-index.sh

This file was deleted.

Binary file added doc/src/cylc-logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit de01cf6

Please sign in to comment.