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

Generate module index #900

Merged
merged 2 commits into from
Apr 26, 2021
Merged

Generate module index #900

merged 2 commits into from
Apr 26, 2021

Conversation

boolean5
Copy link
Contributor

This PR fixes #895 by setting up Sphinx to automatically run sphinx-apidoc for every build, using the workaround suggested in readthedocs/readthedocs.org#1139 (comment). Also, it moves readthedocs dependencies under docs/ and makes prune-environment.py automatically generate the environment-rtd.yaml file whenever we run repin.sh, so that we don't have to remember to keep it in sync with the main environment.yaml manually.

Note that we have to install all dependencies and not just the ones required to build the docs after all, as autodoc imports the modules in order to extract the docstrings. Not installing all dependencies would result in import errors.

@vringar, could you please point me to where you found the conda version that readthedocs uses, that you mentioned in #890 (comment)? I'd like to open an issue to revert our workaround of keeping geckodriver pinned to version 0.26.0 when readthedocs updates its conda version.

Populate the module index by setting up Sphinx to automatically run
sphinx-apidoc for every build. Also, move readthedocs dependencies under
docs/ and make prune-environment.py automatically generate the
environment-rtd.yaml file whenever we run repin.sh.
@codecov
Copy link

codecov bot commented Apr 26, 2021

Codecov Report

Merging #900 (15791c3) into master (6efeade) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #900   +/-   ##
=======================================
  Coverage   50.41%   50.41%           
=======================================
  Files          34       34           
  Lines        3372     3372           
=======================================
  Hits         1700     1700           
  Misses       1672     1672           

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 6efeade...15791c3. Read the comment docs.

docs/conf.py Show resolved Hide resolved
@vringar vringar merged commit 07d89ca into master Apr 26, 2021
@vringar vringar deleted the fix-module-index branch April 26, 2021 15:05
Zaxeli pushed a commit to Zaxeli/OpenWPM that referenced this pull request Aug 10, 2021
* Fix documentation module index

Populate the module index by setting up Sphinx to automatically run
sphinx-apidoc for every build. Also, move readthedocs dependencies under
docs/ and make prune-environment.py automatically generate the
environment-rtd.yaml file whenever we run repin.sh.

* Fix black and mypy errors
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.

Generate Module index
2 participants