- Timestamp:
- 06/21/10 11:05:18 (14 years ago)
- Location:
- trunk/adm
- Files:
-
- 2 deleted
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/adm/extract_rst.sh
r81 r83 1 1 #! /bin/sh 2 2 #+ 3 # 4 # .. _extract.sh: 3 5 # 4 6 # ========== -
trunk/adm/install.sh
r81 r83 2 2 #+ 3 3 # 4 # NAME 5 # ==== 4 # .. _install.sh: 6 5 # 7 # install.sh - publication of HTML files and associated files 6 # ========== 7 # install.sh 8 # ========== 9 # 10 # ---------------------------------------------- 11 # publication of HTML files and associated files 12 # ---------------------------------------------- 8 13 # 9 14 # SYNOPSIS -
trunk/adm/linkchecker.sh
r81 r83 2 2 #+ 3 3 # 4 # NAME 5 # ==== 4 # .. _linkchecker.sh: 6 5 # 7 # linkchecker.sh - check links of a given directory or url 6 # ============== 7 # linkchecker.sh 8 # ============== 9 # 10 # --------------------------------------- 11 # check links of a given directory or url 12 # --------------------------------------- 8 13 # 9 14 # SYNOPSIS -
trunk/adm/makefile
r80 r83 20 20 # 21 21 # $Id$ 22 # 23 # - fplod 20100621T090148Z aedon.locean-ipsl.upmc.fr (Darwin) 24 # 25 # * remove most of docutils 26 # * singlehtml with sphinx 22 27 # 23 28 # - fplod 20100419T092312Z aedon.locean-ipsl.upmc.fr (Darwin) … … 224 229 -e "s+\.f+.f.pdf+g") 225 230 226 RST2MAN = \227 rst2man.py228 229 RST2HTML = \230 rst2html.py231 232 RST2LATEX = \233 rst2latex.py234 235 RST2LATEX_OPTIONS_MANY = \236 --documentclass=article \237 --stylesheet=manuals_many.sty \238 --traceback \239 --use-verbatim-when-possible240 241 231 .PHONY : \ 242 232 help \ … … 251 241 man \ 252 242 man_troff \ 243 man_troff_sphinx \ 253 244 man_html \ 254 man_html_many \255 245 man_html_sphinx \ 246 man_html_sphinx_one \ 256 247 man_pdf \ 257 man_pdf_many \258 248 man_pdf_sphinx \ 259 249 html_src_browser \ … … 340 330 341 331 man_troff : \ 342 $(LIST_SRCSH_TROFF) 332 man_troff_sphinx 333 334 man_troff_sphinx : \ 335 $(DIRADM)/sphinx/conf.py \ 336 $(DIRTMP)/sphinx_tmpdir/index.rst \ 337 $(LIST_SRCSH_RST) \ 338 $(LIST_SRCMATLAB_RST) \ 339 $(LIST_SRCFORTRAN_RST) 340 @cp $(LIST_SRCSH_RST) $(DIRTMP)/sphinx_tmpdir/ 341 @cp $(LIST_SRCMATLAB_RST) $(DIRTMP)/sphinx_tmpdir/ 342 @cp $(LIST_SRCFORTRAN_RST) $(DIRTMP)/sphinx_tmpdir/ 343 @sphinx-build -b man -c $(DIRADM)/sphinx \ 344 -d $(DIRTMP)/sphinx_tmpdir/doctrees \ 345 -w $(DIRTMP)/sphinx_html.log \ 346 $(DIRTMP)/sphinx_tmpdir/ \ 347 $(DIRWWW)/manuals/man/man1/ 343 348 344 349 man_html : \ 345 man_html_many \ 346 man_html_sphinx 347 348 man_html_many : \ 349 $(DIRWWW)/manuals/html/many/index.html \ 350 $(LIST_SRCSH_HTML) \ 351 $(LIST_SRCMATLAB_HTML) \ 352 $(LIST_SRCFORTRAN_HTML) 350 man_html_sphinx \ 351 man_html_sphinx_one 353 352 354 353 man_html_sphinx : \ … … 367 366 $(DIRWWW)/manuals/html/sphinx/ 368 367 368 man_html_sphinx_one : \ 369 $(DIRADM)/sphinx/conf.py \ 370 $(DIRTMP)/sphinx_tmpdir/index.rst \ 371 $(LIST_SRCSH_RST) \ 372 $(LIST_SRCMATLAB_RST) \ 373 $(LIST_SRCFORTRAN_RST) 374 @cp $(LIST_SRCSH_RST) $(DIRTMP)/sphinx_tmpdir/ 375 @cp $(LIST_SRCMATLAB_RST) $(DIRTMP)/sphinx_tmpdir/ 376 @cp $(LIST_SRCFORTRAN_RST) $(DIRTMP)/sphinx_tmpdir/ 377 @sphinx-build -b singlehtml -c $(DIRADM)/sphinx \ 378 -d $(DIRTMP)/sphinx_tmpdir/doctrees \ 379 -w $(DIRTMP)/sphinx_html.log \ 380 $(DIRTMP)/sphinx_tmpdir/ \ 381 $(DIRWWW)/manuals/html/sphinx_one/ 382 369 383 man_pdf : \ 370 man_pdf_many \371 384 man_pdf_sphinx 372 373 man_pdf_many : \374 $(LIST_SRCSH_PDF) \375 $(LIST_SRCMATLAB_PDF) \376 $(LIST_SRCFORTRAN_PDF)377 385 378 386 man_pdf_sphinx : \ … … 394 402 $(DIRWWW)/manuals/pdf/sphinx/ 395 403 396 $(DIRWWW)/manuals/html/many/index.html : \397 $(DIRTMP)/index_many.rst398 @$(RST2HTML) --input-encoding=ISO-8859-15 --strict \399 $< $@400 401 $(DIRTMP)/index_many.rst :402 @echo "$(PRODUCTNAME) manuals" | tr [:print:] = > $@403 @echo "$(PRODUCTNAME) manuals" >> $@404 @echo "$(PRODUCTNAME) manuals" | tr [:print:] = >> $@405 @echo " " >> $@406 @echo "Shell scripts" >> $@407 @echo "Shell scripts" | tr [:print:] = >> $@408 @for file in $(LIST_SRCSH); \409 do echo " "; \410 echo ".. _$$(basename $${file}) : $$(basename $${file}).html"; \411 echo " "; \412 echo "- $$(basename $${file})_"; \413 done >> $@414 @echo " " >> $@415 @echo "MATLAB scripts" >> $@416 @echo "MATLAB scripts" | tr [:print:] = >> $@417 @for file in $(LIST_SRCMATLAB); \418 do echo " "; \419 echo ".. _$$(basename $${file}) : $$(basename $${file}).html"; \420 echo " "; \421 echo "- $$(basename $${file})_"; \422 done >> $@423 @echo " " >> $@424 @echo "Fortran Sources" >> $@425 @echo "Fortran Sources" | tr [:print:] = >> $@426 @for file in $(LIST_SRCFORTRAN); \427 do echo " "; \428 echo ".. _$$(basename $${file}) : $$(basename $${file}).html"; \429 echo " "; \430 echo "- $$(basename $${file})_"; \431 done >> $@432 @echo " " >> $@433 434 404 $(DIRTMP)/sphinx_tmpdir/index.rst : 435 405 @echo ".. _index:" > $@ … … 487 457 @touch $@ 488 458 489 $(DIRWWW)/manuals/man/man1/%.1:$(DIRTMP)/%.rst490 @$(RST2MAN) --input-encoding=ISO-8859-15 --strict \491 $< $@492 493 $(DIRWWW)/manuals/html/many/%.html:$(DIRTMP)/%.rst494 @$(RST2HTML) --input-encoding=ISO-8859-15 --strict \495 $< $@496 497 $(DIRWWW)/manuals/pdf/many/%.pdf : $(DIRTMP)/%.tex498 @-pdflatex -output-directory $(DIRWWW)/manuals/pdf/many/ $<499 @-pdflatex -output-directory $(DIRWWW)/manuals/pdf/many/ $<500 501 $(DIRTMP)/%.tex : $(DIRTMP)/%.rst502 @$(RST2LATEX) $(RST2LATEX_OPTIONS_MANY) --input-encoding=ISO-8859-15 --strict \503 $< $@504 505 459 $(DIRTMP)/%.sh.rst : $(DIRSRC)/%.sh 506 460 @$(DIRADM)/extract_rst.sh -i $< -l sh -o $@ -
trunk/adm/sphinx/conf.py
r80 r83 11 11 # All configuration values have a default; values that are commented out 12 12 # serve to show the default. 13 # 14 #+ 15 # 16 # TODO 17 # ==== 18 # 19 # - fplod 20100621T084902Z aedon.locean-ipsl.upmc.fr (Darwin) 20 # 21 # * find a way to produce olr_split.sh.1 even if graphviz inside source 22 # * find a way to avoird hard coded man pages name here (should be in 23 # adm/makefile) 24 # * use a specific index.rst for man troff 25 # 26 # EVOLUTIONS 27 # ========== 28 # 29 # $Id$ 30 # 31 # - fplod 20100621T084834Z aedon.locean-ipsl.upmc.fr (Darwin) 32 # 33 # * produce man page for almost all shell scripts 34 # 35 #- 13 36 14 37 import sys, os … … 194 217 #latex_use_modindex = True 195 218 196 219 # -- Options for manual page output -------------------------------------------- 220 221 # One entry per manual page. List of tuples 222 # ( source start file, name, description, authors, manual section). 223 man_pages = [ 224 ('index', 'IRCAAM', u'IRCAAM Documentation', [u'fp'], 1), 225 ('dlogd.sh', 'dlogd.sh', u'dlogd.sh Documentation', [u'fp'], 1), 226 ('elogd.sh', 'elogd.sh', u'elogd.sh Documentation', [u'fp'], 1), 227 ('ircaam_profile.sh', 'ircaam_profile.sh', u'ircaam_profile.sh Documentation', [u'fp'], 1), 228 ('plogd.sh', 'plogd.sh', u'plogd.sh Documentation', [u'fp'], 1), 229 ('refdataget.sh', 'refdataget.sh', u'refdataget.sh Documentation', [u'fp'], 1), 230 ('tlogd.sh', 'tlogd.sh', u'tlogd.sh Documentation', [u'fp'], 1), 231 ] 197 232 # Example configuration for intersphinx: refer to the Python standard library. 198 233 intersphinx_mapping = {'http://docs.python.org/': None}
Note: See TracChangeset
for help on using the changeset viewer.