tree: b4d49460458680109589838b1dc1956bf615932b [path history] [tgz]
  1. .tx/
  2. _templates/
  3. admin-guide/
  4. appendices/
  5. developer-guide/
  6. dot/
  7. ext/
  8. getting-started/
  9. locale/
  10. preface/
  11. release-notes/
  12. static/
  13. uml/
  14. .gitignore
  15. checkvers.py
  16. CMakeLists.txt
  17. common.defs
  18. conf.cmake.in.py
  19. doap.rdf
  20. docutils.conf
  21. Doxyfile
  22. index-latex.rst
  23. index.rst
  24. mainpage.doc
  25. manpages.cmake.in.py
  26. manpages.py
  27. Pipfile
  28. README.md
  29. robots.txt
  30. sbuild
doc/README.md

Apache Traffic Server Documentation

This directory contains the source code for Traffic Server documentation.

Build

Package Requirements

Traffic Server documentation is built using the Sphinx documentation generator. The Sphinx build tool is distributed as a Python package. A Pipfile is provided to conveniently configure a Python virtual environment with the needed Sphinx packages.

In addition to the Sphinx Python package requirements, building the documentation will also require Java and graphviz system packages to be installed.

Build Steps

Building the docs requires passing -DENABLE_DOCS=ON to cmake (docs generation is off by default), and then using the appropriate build target. The build steps will automatically install a Pipenv virtual environment using docs/Pipfile and do what is necessary to build the docs.

Building HTML Documentation

cmake -B docs-build -DENABLE_DOCS=ON
cmake --build docs-build --target generate_docs

The generated HTML docs will be in docs-build/doc/docbuild/html.

Building PDF Documentation

# Letter paper size (US standard)
cmake --build docs-build --target generate_pdf

# A4 paper size (International standard)
cmake --build docs-build --target generate_pdf_a4

The generated PDF will be in docs-build/doc/docbuild/latex/ApacheTrafficServer.pdf (or docs-build/doc/docbuild/latex-a4/ for A4 format).

Once the build completes, you can use Python's http.server module to create a local test HTTP server to view the built documentation. Note: http.server is only designed for test purposes, not for production use.

cd docs-build/doc/docbuild/html
python3 -m http.server 8888
Serving HTTP on 0.0.0.0 port 8888 (http://0.0.0.0:8888/) ...

You can then view the rendered HTML using your browser of choice and navigating to the http://0.0.0.0:8888/ URL.