Skip to content Skip to sidebar Skip to footer

Including Dynamic Content In Documentation Generated By Python Sphinx

I am using Sphinx to generate documentation for my project, and building the documentation as part of the product's install process. I would like to dynamically include the hostnam

Solution 1:

Here are two Sphinx extensions that can do this:

  • autorun: executes Python code in runblock directives, captures the output and inserts it into documents.
  • programoutput: executes arbitrary commands using the program-output directive and inserts the output into documents.

Post a Comment for "Including Dynamic Content In Documentation Generated By Python Sphinx"