Jamfile 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. # Copyright (c) 2006 Joel de Guzman
  2. # Copyright (c) 2015 Stefan Seefeld
  3. #
  4. # Distributed under the Boost Software License, Version 1.0. (See accompanying
  5. # file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  6. import boostbook ;
  7. import quickbook ;
  8. import docutils ;
  9. import os ;
  10. path-constant here : . ;
  11. path-constant images : html/images ;
  12. project python/doc
  13. : requirements
  14. -<xsl:param>boost.defaults=Boost
  15. <format>html:<xsl:param>boost.defaults=none
  16. <format>html:<xsl:param>toc.max.depth=3
  17. <format>html:<xsl:param>toc.section.depth=2
  18. <format>html:<xsl:param>chunk.section.depth=1
  19. ;
  20. make numpy : numpy/index.rst : @sphinx-build ;
  21. if [ os.name ] = NT
  22. {
  23. actions sphinx-build { chdir "$(>:D)" && make clean && make html}
  24. }
  25. else
  26. {
  27. actions sphinx-build { make -C "$(>:D)" clean html}
  28. }
  29. boostbook python : python.qbk
  30. : <format>html:<name>$(here)/html
  31. <format>html:<xsl:param>generate.toc="library nop; chapter toc; section toc;"
  32. <format>html:<xsl:param>html.stylesheet=boostbook.css
  33. <format>html:<xsl:param>boost.image.src=images/boost.png
  34. <format>html:<xsl:param>boost.graphics.root=images/
  35. ;
  36. boostbook tutorial : tutorial.qbk
  37. : <format>html:<name>$(here)/html/tutorial
  38. <format>html:<xsl:param>html.stylesheet=../boostbook.css
  39. <format>html:<xsl:param>boost.image.src=../images/boost.png
  40. <format>html:<xsl:param>boost.graphics.root=../images/
  41. ;
  42. boostbook reference : reference.qbk
  43. : <format>html:<name>$(here)/html/reference
  44. <format>html:<xsl:param>html.stylesheet=../boostbook.css
  45. <format>html:<xsl:param>boost.image.src=../images/boost.png
  46. <format>html:<xsl:param>boost.graphics.root=../images/
  47. ;
  48. html article : article.rst
  49. : <location>html
  50. <docutils-html>"--link-stylesheet --traceback --trim-footnote-reference-space --footnote-references=superscript --stylesheet=rst.css"
  51. ;
  52. ###############################################################################
  53. alias boostdoc ;
  54. explicit boostdoc ;
  55. alias boostrelease : python tutorial reference numpy article ;
  56. explicit boostrelease ;