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

docs: Move to gp-libs (our internal helpers for sphinx) #265

Merged
merged 5 commits into from Sep 11, 2022
Merged

Conversation

tony
Copy link
Member

@tony tony commented Sep 11, 2022

Changes

Handles:
- doctests in markdown
- linkifying issues in changelog
- rendering table of contents for sphinx.ext.autodoc directives

And we can remove sphinx-autoapi
@codecov
Copy link

codecov bot commented Sep 11, 2022

Codecov Report

Merging #265 (15a59ea) into master (6ac525c) will decrease coverage by 0.00%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master     #265      +/-   ##
==========================================
- Coverage   93.66%   93.65%   -0.01%     
==========================================
  Files          11       11              
  Lines        1042     1041       -1     
==========================================
- Hits          976      975       -1     
  Misses         66       66              
Impacted Files Coverage Δ
docs/conf.py 58.13% <100.00%> (-0.49%) ⬇️

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

Remove sphinx-autoapi, which has broken imports. The only
purpose this module had was showing table of contents. The
tradeoff was a lot of difficult to track, subtle bugs.

Also move to linkify_issues. A much simpler and more concise
issue linker.
@tony tony merged commit 8daeaa2 into master Sep 11, 2022
@tony tony deleted the gp-libs branch September 11, 2022 15:28
tony added a commit that referenced this pull request Sep 2, 2023
- Render changelog in [`linkify_issues`] 
- Fix Table of contents rendering with sphinx autodoc with [`sphinx_toctree_autodoc_fix`]
- Deprecate `sphinx-autoapi`, per above fixing the table of contents issue

  This also removes the need to workaround autoapi bugs.
- Test doctests in our docs via [`pytest_doctest_docutils`] (built on [`doctest_docutils`])

[`linkify_issues`]: https://gp-libs.git-pull.com/linkify_issues/
[`sphinx_toctree_autodoc_fix`]: https://gp-libs.git-pull.com/sphinx_toctree_autodoc_fix/
[`pytest_doctest_docutils`]: https://gp-libs.git-pull.com/doctest/pytest.html
[`doctest_docutils`]: https://gp-libs.git-pull.com/doctest
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant