Automatically run sphinx-apidoc during documentation build

Open
#72 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
python

Research direction

Review the documentation build steps described in the issue and compare them with the traits-futures pull request linked there. Determine how sphinx-apidoc can run as part of sphinx-build, then check the affected ETS projects listed in the issue. Done means Read the Docs builds include autogenerated API documentation for the applicable projects without a separate manual step.

Written by the indexing model from the issue text.

Description

At the moment, the steps involved in generating documentation for most ETS projects are

  • run sphinx-apidoc to generate the api documetation
  • run sphinx-build to build the docs

This is problematic for the RtD docs setup for ETS projects as at the moment as it simply runs sphinx-build by default. We could potentially use the RtD config file to specify the additional sphinx-apidoc step but it might be easier to take this approach in traits-futures - https://github.com/enthought/traits-futures/pull/348 - where sphinx-apidoc is run as part of sphinx-build.

This also simplifies the documentation build process in general.

Note that because of this issue, none of the ETS projects on RtD which use autogenerated API docs have API documentation.

  • apptools
  • enable
  • envisage
  • pyface
  • traitsui
Dominant language
Python
Stars
33
Forks
10
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from enthought/ets

All issues in enthought/ets

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.