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

Documentation Update #449

Merged
merged 8 commits into from
Mar 1, 2023
Merged

Conversation

sushantmimani
Copy link
Contributor

To help us get this pull request reviewed and merged quickly, please be sure to include the following items:

  • Tests (if applicable)
  • Documentation (if applicable)
  • Changelog entry
  • A full explanation here in the PR description of the work done

PR Type

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Documentation content changes
  • Tests
  • Other

Backward Compatibility

Is this change backward compatible with the most recently released version? Does it introduce changes which might change the user experience in any way? Does it alter the API in any way?

  • Yes (backward compatible)
  • No (breaking changes)

Issue Linking

Fixes #419
Fixes #417

@sushantmimani sushantmimani requested a review from a team as a code owner February 28, 2023 17:23
@sushantmimani sushantmimani changed the title Update docs to remove references to deprecated config items Documentation Update Feb 28, 2023
@sushantmimani sushantmimani force-pushed the doc-updates branch 6 times, most recently from 2671349 to 8e46de9 Compare February 28, 2023 20:54
sushantmimani and others added 5 commits February 28, 2023 13:09
This is really messed up, but seems to work reliably now with local
invocations of `poetry run tox -e docs` where before it mostly failed.
As usual, I don't understand the situations under where it was able to
work before. We'll see if the CI tests actually succeed once I push
this...

* `Makefile` fixes

Extensive debugging suggested two related failure modes, where the
`sphinx-build` script could not be located or when executed it failed
to load modules. Investigation revealed that the "here" lines at the
top of `sphinx-build` and friends used relative paths
(`#!.tox/docs/bin/python`), and it appeared this was invoked in contexts
where this path was not resolvable. Tracing the actual chain of control
from `poetry` to `tox` back to `poetry` to `make` makes it difficult to
understand what is actually going on.

In any event, the fix incorporated here works around the problem by
locating the absolute location of `sphinx-build` and then invoking it
using `python /real/location/of/sphinx-build`, which causes the
problematic relative reference to be ignored because the python
interpreter is located using the scoping rules provided by `poetry`. I
believe this was the critical fix of everything incorporated here.

* `pyproject.toml` editorial fixes

These are nits, cleaning up spacing and unnecessary quoting, and have no
functional impact.

* `tox.ini` fixes

This probably isn't important, but I noted `make` wasn't getting invoked
via `poetry run` like everything else, so I fixed it.
Use explicit dict instead of casting literal input
This reverts commit 740efe5.

The cache does not appear to be at fault; let's turn it back on.
@sushantmimani sushantmimani merged commit 6cf4d2c into godaddy:main Mar 1, 2023
@sushantmimani sushantmimani deleted the doc-updates branch March 1, 2023 17:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants