including dynamic content in documentation generated by python-sphinx -
i using sphinx generate documentation project, , building documentation part of product's install process. dynamically include hostname in text and/or code-blocks. have not seen explanations in documentation facility including output of shell command or other specific line(s) specific file. capacity exist?
here 2 sphinx extensions can this:
- autorun: executes python code in
runblock
directives, captures output , inserts documents. - programoutput: executes arbitrary commands using
program-output
directive , inserts output documents.
Comments
Post a Comment