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

Build Sphinx API docs under TravisCI/Tox using apidoc #1803

Merged
merged 3 commits into from Nov 15, 2018

Conversation

peterjc
Copy link
Member

@peterjc peterjc commented Sep 24, 2018

This pull request would in part address issue #906, the goal of replacing epydoc for our API documentation. Squashed version of the work-in-progress on #1388.

Note uses autodoc_default_values added in Sphinx 1.8.0

  • I hereby agree to dual licence this and any previous contributions under both
    the Biopython License Agreement AND the BSD 3-Clause License.

  • I have read the CONTRIBUTING.rst file and understand that AppVeyor and
    TravisCI will be used to confirm the Biopython unit tests and flake8 style
    checks pass with these changes.

  • I have added my name to the alphabetical contributors listings in the files
    NEWS.rst and CONTRIB.rst as part of this pull request, am listed
    already, or do not wish to be listed. (This acknowledgement is optional.)

@codecov
Copy link

codecov bot commented Sep 24, 2018

Codecov Report

Merging #1803 into master will decrease coverage by <.01%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1803      +/-   ##
==========================================
- Coverage   85.46%   85.46%   -0.01%     
==========================================
  Files         301      301              
  Lines       49308    49308              
==========================================
- Hits        42140    42139       -1     
- Misses       7168     7169       +1
Impacted Files Coverage Δ
Bio/Graphics/BasicChromosome.py 93.71% <0%> (-0.32%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d31d226...62fdeda. Read the comment docs.

@peterjc
Copy link
Member Author

peterjc commented Oct 2, 2018

Cross reference http://mailman.open-bio.org/pipermail/biopython/2018-October/016549.html for thoughts on where to put the docs online, leaning to GitHub Pages under docs repository, with URL structure following that of ReadTheDocs.org (as a potential additional/alternative host).

We trigger sphinx-apidoc from sphinx's conf.py

In theory this would allow readthedocs to be
used and generate the API documentation *.rst
files on demand.

Uses autodoc_default_values added in Sphinx 1.8.0
@peterjc peterjc force-pushed the travis_sphinx_1_8 branch 4 times, most recently from 83a78cf to 62fdeda Compare November 14, 2018 15:48
I wanted to check only *.rst with:

$ doc8 -e .rst .

Sadly this is broken by design, the bug is that as per
their README file, the "extension" option does not
override, but merges, so cannot remove anything from
the default of .rst and .txt files.
@peterjc peterjc merged commit bf93a76 into biopython:master Nov 15, 2018
@peterjc peterjc deleted the travis_sphinx_1_8 branch January 7, 2020 11:30
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