-
Notifications
You must be signed in to change notification settings - Fork 10
DM-53868: Switch to new sphinxutils + documenteer2 doc build #237
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
Merged
Merged
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
c09c7cb
Migrate to documenteer v2 configuration
timj 1286429
Fix some docstrings noticed by new sphinx
timj 658ea95
Add Source URL to pyptroject.toml for documenteer
timj 2b7956b
Ignore the doc/api directory
timj e570578
Switch to new documenteer + sphinxutils build
timj 0a78729
Depend on sphinxutils to simplify doc builds
timj 4610e26
Fix python code blocks in some doc strings
timj 22bc26b
Move intersphinx definitions to toml
timj File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -8,6 +8,7 @@ config.log | |
| *.so | ||
| *.cfgc | ||
| *.pyc | ||
| doc/api | ||
| doc/html | ||
| doc/xml | ||
| doc/*.tag | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,32 @@ | ||
| [project] | ||
| title = "lsst-utils" | ||
|
|
||
| [project.python] | ||
| package = "lsst-utils" | ||
|
|
||
| [build] | ||
| clean = true | ||
|
|
||
| [sphinx] | ||
| nitpick_ignore = [ | ||
| ["py:class", "module"], # Sphinx has problems with types.ModuleType. | ||
| ["py:obj", "logging.DEBUG"], # Python 3 constant can not be found. | ||
| ["py:class", "unittest.case.TestCase"], # Sphinx can not see TestCase. | ||
| ["py:obj", "deprecated.sphinx.deprecated"], # No intersphinx for deprecated package. | ||
| ["py:class", "LsstLoggers"], # Sphinx does not understand type aliases | ||
| ["py:obj", "structlog"], # structlog does not have intersphinx mapping. | ||
| ["py:class", "array-like"], | ||
| ["py:class", "scalar"], | ||
| ] | ||
| nitpick_ignore_regex = [ | ||
| ['py:.*', 'lsst\..*'], # Ignore warnings from links to other lsst packages. | ||
| ['py:.*', 'cProfile.Profile'], # Link does not resolve to py3 docs. | ||
| ['py:class', 'a set-like.*'], # collections.abc.Mapping inheritance. | ||
| ['py:class', 'a shallow copy.*'], # collections.abc.Mapping inheritance. | ||
| ['py:class', 'None\. .*'], # collections.abc.Mapping inheritance. | ||
| ['py:class', 'an object providing.*'], # collections.abc.Mapping inheritance. | ||
| ] | ||
|
|
||
| [sphinx.intersphinx.projects] | ||
| astropy = "https://docs.astropy.org/en/stable" | ||
| python = "https://docs.python.org/3" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| documenteer[guide] > 2.0, <3.0 | ||
| lsst-sphinxutils @ git+https://github.com/lsst/sphinxutils@main |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
While it's an improvement in a lot of cases here, this new rigidity does make me sad (I like "convertible to
ResourcePath" as a type, for example). Not much we can do about it, I imagine.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I did add
array-liketo the ignore list because fixing all those seemed a step too far.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If there's an ignore list we can add our own exceptions to then I'm totally happy with this change. I'm all for better guards against non-types due to mispellings, as long as we can carve out exceptions.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes. It's in the documenteer.toml file.