Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DM-25337: Add -W (warnings as errors) and -n nitpicky mode for stack-docs / package-docs build #167

Merged
merged 5 commits into from
Jun 27, 2023

Conversation

jonathansick
Copy link
Member

This ports #164, which created the 0.8.0 release, to the main branch for future releases (e.g. 1.0.0). Also fixes the issue with the help subcommand not working on sub-commands of stack-docs and package-docs.

This option trigger's Sphinx's own -W option, which causes warnings to
be treated as errors. This may be useful for CI implementations for
package-docs build where a documentation set should be able to build
without warnings, and any warnings should cause a CI run to fail.
The 0.8 release is running off a release branch while we're building
1.0.0; this commit catches the change log up.
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.
This enables Sphinx's nitpicky mode that raises warnings for
unresolvable links and similar issues.
@jonathansick jonathansick merged commit 9b15cb6 into main Jun 27, 2023
7 checks passed
@jonathansick jonathansick deleted the tickets/DM-25337 branch June 27, 2023 19:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant