Changeset 99
- Timestamp:
- 03/26/10 10:27:42 (14 years ago)
- Location:
- trunk/adm
- Files:
-
- 1 deleted
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/adm/makefile
r98 r99 12 12 # ==== 13 13 # 14 # ++ amélioration de la page index avec sphinx ou rest2web15 #16 # sphinx output17 #18 14 # add -W to sphinx command when encoding problems are solved 19 15 # … … 32 28 # 33 29 # - fplod 20100311T143131Z aedon.locean-ipsl.upmc.fr (Darwin) 34 # 30 # 35 31 # * add rest2web (alternative to sphinx) 36 32 # 37 33 # - fplod 20100310T190253Z aedon.locean-ipsl.upmc.fr (Darwin) 38 34 # 39 # * add php and xsl files to man_troff 35 # * add php and xsl files to man_troff 40 36 # 41 37 # - fplod 20100310T182201Z aedon.locean-ipsl.upmc.fr (Darwin) … … 44 40 # 45 41 # - fplod 20100310T091541Z aedon.locean-ipsl.upmc.fr (Darwin) 46 # 42 # 47 43 # * add man_troff with shell scripts possible now with docutils 0.6 48 44 # can be test with … … 109 105 LIST_SRCPHP_RST = \ 110 106 $(shell echo "$(LIST_SRCPHP)" | \ 111 sed -e "s+$(DIRSRC)+$(DIRTMP)/ sphinx_tmpdir/source+g" \112 107 sed -e "s+$(DIRSRC)+$(DIRTMP)/+g" \ 108 -e "s+\.php+.php.rst+g") 113 109 114 110 LIST_SRCPHP_R2W = \ 115 111 $(shell echo "$(LIST_SRCPHP)" | \ 116 112 sed -e "s+$(DIRSRC)+$(DIRTMP)/rest2web_tmpdir+g" \ 117 113 -e "s+\.php+.php.txt+g") 118 114 119 115 120 116 LIST_SRCPHP_TROFF = \ 121 117 $(shell echo "$(LIST_SRCPHP)" | \ 122 123 118 sed -e "s+$(DIRSRC)+$(DIRWWW)/manuals/man/man1/+g" \ 119 -e "s+\.php+.php.1+g") 124 120 125 121 LIST_SRCPHP_HTML = \ 126 122 $(shell echo "$(LIST_SRCPHP)" | \ 127 128 123 sed -e "s+$(DIRSRC)+$(DIRWWW)/manuals/html/many/+g" \ 124 -e "s+\.php+.php.html+g") 129 125 130 126 LIST_SRCPHP_PDF = \ 131 127 $(shell echo "$(LIST_SRCPHP)" | \ 132 133 128 sed -e "s+$(DIRSRC)+$(DIRWWW)/manuals/pdf/many/+g" \ 129 -e "s+\.php+.php.pdf+g") 134 130 135 131 LIST_SRCXSL = \ … … 152 148 LIST_SRCXSL_RST = \ 153 149 $(shell echo "$(LIST_SRCXSL)" | \ 154 sed -e "s+$(DIRSRC)+$(DIRTMP)/sphinx_tmpdir/source+g" \155 150 sed -e "s+$(DIRSRC)+$(DIRTMP)+g" \ 151 -e "s+\.xsl+.xsl.rst+g") 156 152 157 153 LIST_SRCXSL_R2W = \ 158 154 $(shell echo "$(LIST_SRCXSL)" | \ 159 160 155 sed -e "s+$(DIRSRC)+$(DIRTMP)/rest2web_tmpdir+g" \ 156 -e "s+\.xsl+.xsl.txt+g") 161 157 162 158 LIST_SRCXSL_TROFF = \ 163 159 $(shell echo "$(LIST_SRCXSL)" | \ 164 165 160 sed -e "s+$(DIRSRC)+$(DIRWWW)/manuals/man/man1/+g" \ 161 -e "s+\.xsl+.xsl.1+g") 166 162 167 163 LIST_SRCXSL_HTML = \ 168 164 $(shell echo "$(LIST_SRCXSL)" | \ 169 170 165 sed -e "s+$(DIRSRC)+$(DIRWWW)/manuals/html/many/+g" \ 166 -e "s+\.xsl+.xsl.html+g") 171 167 172 168 LIST_SRCXSL_PDF = \ 173 169 $(shell echo "$(LIST_SRCXSL)" | \ 174 175 170 sed -e "s+$(DIRSRC)+$(DIRWWW)/manuals/pdf/many/+g" \ 171 -e "s+\.xsl+.xsl.pdf+g") 176 172 177 173 LIST_SRCSH = \ … … 186 182 LIST_SRCSH_RST = \ 187 183 $(shell echo "$(LIST_SRCSH)" | \ 188 sed -e "s+$(DIRSRC)+$(DIRTMP)/sphinx_tmpdir/source+g" \189 184 sed -e "s+$(DIRSRC)+$(DIRTMP)+g" \ 185 -e "s+\.sh+.sh.rst+g") 190 186 191 187 LIST_SRCSH_R2W = \ 192 188 $(shell echo "$(LIST_SRCSH)" | \ 193 194 189 sed -e "s+$(DIRSRC)+$(DIRTMP)/rest2web_tmpdir+g" \ 190 -e "s+\.sh+.sh.txt+g") 195 191 196 192 LIST_SRCSH_TROFF = \ 197 193 $(shell echo "$(LIST_SRCSH)" | \ 198 199 194 sed -e "s+$(DIRSRC)+$(DIRWWW)/manuals/man/man1/+g" \ 195 -e "s+\.sh+.sh.1+g") 200 196 201 197 LIST_SRCSH_HTML = \ 202 198 $(shell echo "$(LIST_SRCSH)" | \ 203 204 199 sed -e "s+$(DIRSRC)+$(DIRWWW)/manuals/html/many/+g" \ 200 -e "s+\.sh+.sh.html+g") 205 201 206 202 LIST_SRCSH_PDF = \ 207 203 $(shell echo "$(LIST_SRCSH)" | \ 208 209 204 sed -e "s+$(DIRSRC)+$(DIRWWW)/manuals/pdf/many/+g" \ 205 -e "s+\.sh+.sh.pdf+g") 210 206 211 207 REST2WEB = \ … … 264 260 before : 265 261 @mkdir -p $(DIRWWW)/manuals/man/man1/ 266 @mkdir -p $(DIRWWW)/manuals/html/one/267 262 @mkdir -p $(DIRWWW)/manuals/html/many/ 268 263 @mkdir -p $(DIRWWW)/manuals/html/rest2web/ 269 264 @mkdir -p $(DIRWWW)/manuals/html/rest2web/css/ 270 265 @mkdir -p $(DIRWWW)/manuals/html/sphinx/ 271 @mkdir -p $(DIRWWW)/manuals/pdf/one/272 266 @mkdir -p $(DIRWWW)/manuals/pdf/many/ 273 @mkdir -p $(DIRTMP)/sphinx_tmpdir/source/ 267 @mkdir -p $(DIRWWW)/manuals/pdf/sphinx/ 268 @mkdir -p $(DIRTMP)/sphinx_tmpdir/doctrees/ 274 269 @mkdir -p $(DIRTMP)/rest2web_tmpdir/ 275 270 … … 286 281 cleantmp : 287 282 -@rm -f $(DIRTMP)/all.xml 288 -@rm -rf $(DIRTMP)/sphinx_tmpdir/ 283 -@rm -f $(DIRTMP)/*.rst 284 -@rm -f $(DIRTMP)/*.tex 289 285 -@rm -rf $(DIRTMP)/rest2web_tmpdir/ 290 286 -@rm -f $(DIRTMP)/rest2web.log 291 -@rm -f $(DIRTMP)/*.tex292 -@rm -f $(DIRWWW)/manuals/pdf/one/*.aux293 -@rm -f $(DIRWWW)/manuals/pdf/one/*.log294 -@rm -f $(DIRWWW)/manuals/pdf/one/*.out295 287 -@rm -f $(DIRWWW)/manuals/pdf/many/*.aux 296 288 -@rm -f $(DIRWWW)/manuals/pdf/many/*.log 297 289 -@rm -f $(DIRWWW)/manuals/pdf/many/*.out 290 -@rm -rf $(DIRTMP)/sphinx_tmpdir/ 291 -@rm -f $(DIRTMP)/sphinx_*.log 298 292 299 293 design : \ … … 347 341 python $(REST2WEB) $(DIRADM)/rest2web/superbib_site.ini -v 348 342 349 man_ text_sphinx : \343 man_html_sphinx : \ 350 344 $(DIRADM)/sphinx/conf.py \ 351 $(DIR ADM)/sphinx/Makefile\345 $(DIRTMP)/sphinx_tmpdir/index.rst \ 352 346 $(LIST_SRCSH_RST) \ 353 347 $(LIST_SRCXSL_RST) \ 354 348 $(LIST_SRCPHP_RST) 355 echo "sphinx text ++ experimental" 356 mkdir -p $(DIRWWW)/manuals/text/sphinx/ 357 sphinx-build -b text -a -E -c $(DIRADM)/sphinx \ 358 -w $(DIRTMP)/sphinx.log \ 359 $(DIRTMP)/sphinx_tmpdir/source \ 360 $(DIRWWW)/manuals/text/sphinx/ 361 362 man_html_sphinx : \ 363 $(DIRADM)/sphinx/conf.py \ 364 $(DIRADM)/sphinx/Makefile \ 365 $(DIRADM)/sphinx/source/contents.rst \ 366 $(LIST_SRCSH_RST) \ 367 $(LIST_SRCXSL_RST) \ 368 $(LIST_SRCPHP_RST) 369 cp $(DIRADM)/sphinx/source/contents.rst $(DIRTMP)/sphinx_tmpdir/source/ 370 sphinx-build -b html -a -E -c $(DIRADM)/sphinx \ 371 -d build/doctrees \ 372 -w $(DIRTMP)/sphinx.log \ 373 $(DIRTMP)/sphinx_tmpdir/source \ 374 $(DIRWWW)/manuals/html/sphinx/ 349 @cp $(LIST_SRCSH_RST) $(DIRTMP)/sphinx_tmpdir/ 350 @cp $(LIST_SRCXSL_RST) $(DIRTMP)/sphinx_tmpdir/ 351 @cp $(LIST_SRCPHP_RST) $(DIRTMP)/sphinx_tmpdir/ 352 sphinx-build -b html -c $(DIRADM)/sphinx \ 353 -d $(DIRTMP)/sphinx_tmpdir/doctrees \ 354 -w $(DIRTMP)/sphinx_html.log \ 355 $(DIRTMP)/sphinx_tmpdir/ \ 356 $(DIRWWW)/manuals/html/sphinx/ 375 357 376 358 man_pdf : \ 377 359 man_pdf_many \ 378 360 man_pdf_sphinx 379 380 man_pdf_sphinx : \381 $(DIRADM)/sphinx/conf.py \382 $(DIRADM)/sphinx/Makefile \383 $(LIST_SRCSH_RST) \384 $(LIST_SRCXSL_RST) \385 $(LIST_SRCPHP_RST)386 sphinx-build -b latex -a -E -c $(DIRADM)/sphinx \387 -d build/doctrees \388 -w $(DIRTMP)/sphinx.log \389 $(DIRTMP)/sphinx_tmpdir/source \390 $(DIRWWW)/manuals/pdf/sphinx/391 361 392 362 man_pdf_many : \ … … 395 365 $(LIST_SRCPHP_PHP) 396 366 367 man_pdf_sphinx : \ 368 $(DIRADM)/sphinx/conf.py \ 369 $(DIRTMP)/sphinx_tmpdir/index.rst \ 370 $(LIST_SRCSH_RST) \ 371 $(LIST_SRCXSL_RST) \ 372 $(LIST_SRCPHP_RST) 373 @cp $(LIST_SRCSH_RST) $(DIRTMP)/sphinx_tmpdir/ 374 @cp $(LIST_SRCXSL_RST) $(DIRTMP)/sphinx_tmpdir/ 375 @cp $(LIST_SRCPHP_RST) $(DIRTMP)/sphinx_tmpdir/ 376 @sphinx-build -b latex -c $(DIRADM)/sphinx \ 377 -d $(DIRTMP)/sphinx_tmpdir/doctrees \ 378 -w $(DIRTMP)/sphinx_pdf.log \ 379 $(DIRTMP)/sphinx_tmpdir/ \ 380 $(DIRTMP)/sphinx_tmpdir/latex_output 381 cd $(DIRTMP)/sphinx_tmpdir/latex_output/; make all-pdf 382 cp $(DIRTMP)/sphinx_tmpdir/latex_output/*.pdf \ 383 $(DIRWWW)/manuals/pdf/sphinx/ 384 397 385 $(DIRWWW)/manuals/html/many/index.html : \ 398 386 $(DIRTMP)/index_many.rst … … 400 388 $< $@ 401 389 402 $(DIRWWW)/manuals/html/one/index.html : \403 $(DIRTMP)/$(PRODUCT)_manuals.rst404 @$(RST2HTML) --input-encoding=ISO-8859-15 --strict \405 $< $@406 407 $(DIRWWW)/manuals/pdf/one/$(PRODUCT)_manuals.pdf : \408 $(DIRTMP)/$(PRODUCT)_manuals.tex409 @-pdflatex -output-directory $(DIRWWW)/manuals/pdf/one/ $<410 @-pdflatex -output-directory $(DIRWWW)/manuals/pdf/one/ $<411 412 390 $(DIRTMP)/index_many.rst : 413 @echo " ===================">> $@414 @echo "$(PRODUCTNAME) tools" >> $@415 @echo " ===================">> $@391 @echo "$(PRODUCTNAME) manuals" | tr [:print:] = >> $@ 392 @echo "$(PRODUCTNAME) manuals" >> $@ 393 @echo "$(PRODUCTNAME) manuals" | tr [:print:] = >> $@ 416 394 @echo " " >> $@ 417 395 @echo "Shell scripts" >> $@ … … 427 405 @for file in $(LIST_SRCPHP); do echo " ";echo "$$(basename $${file})_"; echo " "; echo ".. _$$(basename $${file}) : $$(basename $${file}).html"; done >> $@ 428 406 429 $(DIRTMP)/rest2web_tmpdir/%.txt: $(DIRTMP)/sphinx_tmpdir/source/%.rst 407 $(DIRTMP)/sphinx_tmpdir/index.rst : 408 @echo ".. _index:" >> $@ 409 @echo " " >> $@ 410 @echo "$(PRODUCTNAME) manuals" | tr [:print:] = >> $@ 411 @echo "$(PRODUCTNAME) manuals" >> $@ 412 @echo "$(PRODUCTNAME) manuals" | tr [:print:] = >> $@ 413 @echo " " >> $@ 414 @echo "Shell scripts" >> $@ 415 @echo "Shell scripts" | tr [:print:] = >> $@ 416 @echo ".. toctree::" >> $@ 417 @echo " :maxdepth: 1" 1>> $@ 418 @echo " :glob:" 1>> $@ 419 @echo " " >> $@ 420 @for file in $(LIST_SRCSH); \ 421 do \ 422 echo " $$(basename $${file})"; \ 423 done >> $@ 424 @echo " " >> $@ 425 @echo "XSL scripts" >> $@ 426 @echo "XSL scripts" | tr [:print:] = >> $@ 427 @echo ".. toctree::" >> $@ 428 @echo " :maxdepth: 1" 1>> $@ 429 @echo " :glob:" 1>> $@ 430 @echo " " >> $@ 431 @for file in $(LIST_SRCXSL); \ 432 do \ 433 echo " $$(basename $${file})"; \ 434 done >> $@ 435 @echo " " >> $@ 436 @echo "PHP scripts" >> $@ 437 @echo "PHP scripts" | tr [:print:] = >> $@ 438 @echo ".. toctree::" >> $@ 439 @echo " :maxdepth: 1" 1>> $@ 440 @echo " :glob:" 1>> $@ 441 @echo " " >> $@ 442 @for file in $(LIST_SRCPHP); \ 443 do \ 444 echo " $$(basename $${file})"; \ 445 done >> $@ 446 @echo " " >> $@ 447 @echo "Indices and tables" >> $@ 448 @echo "Indices and tables" | tr [:print:] = >> $@ 449 @echo "* :ref:\`search\`" >> $@ 450 @echo " " >> $@ 451 452 453 $(DIRTMP)/rest2web_tmpdir/%.txt: $(DIRTMP)/%.rst 430 454 @sed -e "/^#/d" \ 431 455 -e "s+@file@+$$(basename $< .rst)+" \ … … 434 458 @rm $(DIRTMP)/restindex 435 459 436 $(DIRWWW)/manuals/man/man1/%.1:$(DIRTMP)/ sphinx_tmpdir/source/%.rst460 $(DIRWWW)/manuals/man/man1/%.1:$(DIRTMP)/%.rst 437 461 @$(RST2MAN) --input-encoding=ISO-8859-15 --strict \ 438 462 $< $@ 439 463 440 $(DIRWWW)/manuals/html/many/%.html:$(DIRTMP)/ sphinx_tmpdir/source/%.rst464 $(DIRWWW)/manuals/html/many/%.html:$(DIRTMP)/%.rst 441 465 @$(RST2HTML) --input-encoding=ISO-8859-15 --strict \ 442 466 $< $@ … … 446 470 @-pdflatex -output-directory $(DIRWWW)/manuals/pdf/many/ $< 447 471 448 $(DIRTMP)/%.tex : $(DIRTMP)/ sphinx_tmpdir/source/%.rst472 $(DIRTMP)/%.tex : $(DIRTMP)/%.rst 449 473 @$(RST2LATEX) $(RST2LATEX_OPTIONS_MANY) --input-encoding=ISO-8859-15 --strict \ 450 474 $< $@ 451 475 452 $(DIRTMP)/ sphinx_tmpdir/source/%.sh.rst : $(DIRSRC)/%.sh476 $(DIRTMP)/%.sh.rst : $(DIRSRC)/%.sh 453 477 @$(DIRADM)/extract_rst.sh -i $< -l sh -o $@ 454 478 455 $(DIRTMP)/ sphinx_tmpdir/source/%.xsl.rst : $(DIRSRC)/%.xsl479 $(DIRTMP)/%.xsl.rst : $(DIRSRC)/%.xsl 456 480 @$(DIRADM)/extract_rst.sh -i $< -l xml -o $@ 457 481 458 $(DIRTMP)/ sphinx_tmpdir/source/%.php.rst : $(DIRSRC)/%.php482 $(DIRTMP)/%.php.rst : $(DIRSRC)/%.php 459 483 @$(DIRADM)/extract_rst.sh -i $< -l php -o $@ 460 484 -
trunk/adm/sphinx/conf.py
r98 r99 38 38 39 39 # The master toctree document. 40 master_doc = ' contents'40 master_doc = 'index' 41 41 42 42 # General information about the project. … … 62 62 # Else, today_fmt is used as the format for a strftime call. 63 63 #today_fmt = '%B %d, %Y' 64 today_fmt = '%Y% d%B'64 today_fmt = '%Y%m%d' 65 65 66 66 # List of documents that shouldn't be included in the build. … … 154 154 155 155 # If true, links to the reST sources are added to the pages. 156 html_show_sourcelink = False 156 html_show_sourcelink = False 157 157 158 158 # If true, an OpenSearch description file will be output, and all pages will
Note: See TracChangeset
for help on using the changeset viewer.