pulp / oci_env

9 stars 33 forks source link

Make docs building easier #26

Open bmbouter opened 2 years ago

bmbouter commented 2 years ago

Right now you can build docs with:

oci-env shell
pip install -r /src/pulpcore/doc_requirements.txt
cd /src/pulpcore/docs
make diagrams html

It would be great if:

newswangerd commented 2 years ago

Some notes on how to implement this, if anyone wants to give it a shot:

I would recommend creating a oci-env docs subcommand. I don't know enough about how docs work in pulp to make recommendations how how this command should work other than it might be a good idea to follow the patterns for the oci-env test command.

Possible usage for the docs subcommmand:

# Install the doc dependencies for PLUGIN_NAME and run COMMAND for that plugin's makefile
oci-env docs -i -p PLUGIN_NAME COMMAND

# Run COMMAND for that PLUGIN_NAME's docs makefile without installing docs dependencies
oci-env docs -p PLUGIN_NAME COMMAND