Changeset 83 for trunk


Ignore:
Timestamp:
06/21/10 11:05:18 (14 years ago)
Author:
pinsard
Message:

no more direct usage of docutils

Location:
trunk/adm
Files:
2 deleted
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/adm/extract_rst.sh

    r81 r83  
    11#! /bin/sh 
    22#+ 
     3# 
     4# .. _extract.sh: 
    35# 
    46# ========== 
  • trunk/adm/install.sh

    r81 r83  
    22#+ 
    33# 
    4 # NAME 
    5 # ==== 
     4# .. _install.sh: 
    65# 
    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# ---------------------------------------------- 
    813# 
    914# SYNOPSIS 
  • trunk/adm/linkchecker.sh

    r81 r83  
    22#+ 
    33# 
    4 # NAME 
    5 # ==== 
     4# .. _linkchecker.sh: 
    65# 
    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# --------------------------------------- 
    813# 
    914# SYNOPSIS 
  • trunk/adm/makefile

    r80 r83  
    2020# 
    2121# $Id$ 
     22# 
     23# - fplod 20100621T090148Z aedon.locean-ipsl.upmc.fr (Darwin) 
     24# 
     25#   * remove most of docutils 
     26#   * singlehtml with sphinx 
    2227# 
    2328# - fplod 20100419T092312Z aedon.locean-ipsl.upmc.fr (Darwin) 
     
    224229            -e "s+\.f+.f.pdf+g") 
    225230 
    226 RST2MAN = \ 
    227 rst2man.py 
    228  
    229 RST2HTML = \ 
    230 rst2html.py 
    231  
    232 RST2LATEX = \ 
    233 rst2latex.py 
    234  
    235 RST2LATEX_OPTIONS_MANY = \ 
    236 --documentclass=article \ 
    237 --stylesheet=manuals_many.sty \ 
    238 --traceback \ 
    239 --use-verbatim-when-possible 
    240  
    241231.PHONY : \ 
    242232help \ 
     
    251241man \ 
    252242man_troff \ 
     243man_troff_sphinx \ 
    253244man_html \ 
    254 man_html_many \ 
    255245man_html_sphinx \ 
     246man_html_sphinx_one \ 
    256247man_pdf \ 
    257 man_pdf_many \ 
    258248man_pdf_sphinx \ 
    259249html_src_browser \ 
     
    340330 
    341331man_troff : \ 
    342 $(LIST_SRCSH_TROFF) 
     332man_troff_sphinx 
     333 
     334man_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/ 
    343348 
    344349man_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) 
     350man_html_sphinx \ 
     351man_html_sphinx_one 
    353352 
    354353man_html_sphinx : \ 
     
    367366            $(DIRWWW)/manuals/html/sphinx/ 
    368367 
     368man_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 
    369383man_pdf : \ 
    370 man_pdf_many \ 
    371384man_pdf_sphinx 
    372  
    373 man_pdf_many : \ 
    374 $(LIST_SRCSH_PDF) \ 
    375 $(LIST_SRCMATLAB_PDF) \ 
    376 $(LIST_SRCFORTRAN_PDF) 
    377385 
    378386man_pdf_sphinx : \ 
     
    394402           $(DIRWWW)/manuals/pdf/sphinx/ 
    395403 
    396 $(DIRWWW)/manuals/html/many/index.html : \ 
    397 $(DIRTMP)/index_many.rst 
    398         @$(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  
    434404$(DIRTMP)/sphinx_tmpdir/index.rst : 
    435405        @echo ".. _index:" > $@ 
     
    487457        @touch $@ 
    488458 
    489 $(DIRWWW)/manuals/man/man1/%.1:$(DIRTMP)/%.rst 
    490         @$(RST2MAN) --input-encoding=ISO-8859-15 --strict \ 
    491         $< $@ 
    492  
    493 $(DIRWWW)/manuals/html/many/%.html:$(DIRTMP)/%.rst 
    494         @$(RST2HTML) --input-encoding=ISO-8859-15 --strict \ 
    495         $< $@ 
    496  
    497 $(DIRWWW)/manuals/pdf/many/%.pdf : $(DIRTMP)/%.tex 
    498         @-pdflatex -output-directory $(DIRWWW)/manuals/pdf/many/ $< 
    499         @-pdflatex -output-directory $(DIRWWW)/manuals/pdf/many/ $< 
    500  
    501 $(DIRTMP)/%.tex : $(DIRTMP)/%.rst 
    502         @$(RST2LATEX) $(RST2LATEX_OPTIONS_MANY) --input-encoding=ISO-8859-15 --strict \ 
    503         $< $@ 
    504  
    505459$(DIRTMP)/%.sh.rst : $(DIRSRC)/%.sh 
    506460        @$(DIRADM)/extract_rst.sh -i $< -l sh -o $@ 
  • trunk/adm/sphinx/conf.py

    r80 r83  
    1111# All configuration values have a default; values that are commented out 
    1212# 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#- 
    1336 
    1437import sys, os 
     
    194217#latex_use_modindex = True 
    195218 
    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). 
     223man_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] 
    197232# Example configuration for intersphinx: refer to the Python standard library. 
    198233intersphinx_mapping = {'http://docs.python.org/': None} 
Note: See TracChangeset for help on using the changeset viewer.