Skip to content

idea: create a sphinx extension to insert output of flux commands in examples directly into docs #126

@grondo

Description

@grondo

This is just an idea -- I'm unsure if it could work in practice, but it would be neat if we could develop a sphinx extension that could substitute output of flux command examples in the docs directly during the docs build.

There already exists a sphinxcontrib-programoutput extension that can substitute program output into docs at build time, e.g.:

.. command-output:: python -V

Output:

$ python -V
Python 2.7.1

Perhaps starting from this implementation, someone clever could create an extension that was capable of interacting with a Flux instance and would substitute output of commands. Perhaps our deployed docker images could be used in the Readthedocs build (not sure if that is possible).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions