lsst-sqre / documenteer

Sphinx extensions, configurations, and tooling for Rubin Observatory documentation projects
https://documenteer.lsst.io
MIT License
5 stars 3 forks source link

DM-25337: Fix stack-docs/package-docs help command (0.8.1 release) #168

Closed jonathansick closed 1 year ago

jonathansick commented 1 year ago

The issue is that the project root discovery as being done in the main command entrypoint before being passed to sub-commands like build and clean. This meant that even "help" was running code to discover the root of the project directory.

Now the raw root directory input is being passed to the commands that need it, and those commands are running the package discovery.

Now package-docs build -h or package-docs help build will work.