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

CI: Doc configuration #77

Merged
merged 1 commit into from
Aug 23, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 11 additions & 16 deletions docs/_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@ author: Tskit Developers
copyright: "2023"
only_build_toc_files: true

## How can we create logo like tskit, tsinfer, tsdate, etc?
#logo: logo.svg

execute:
execute_notebooks: cache

Expand All @@ -31,37 +28,35 @@ html:

sphinx:
extra_extensions:
- numpydoc
- sphinx_copybutton
- sphinx_design
- sphinx.ext.autodoc
- sphinx_autodoc_typehints
- sphinx.ext.autosummary
- sphinx.ext.todo
- sphinx.ext.doctest
- sphinx.ext.viewcode
- sphinx.ext.intersphinx
- sphinx_issues
- IPython.sphinxext.ipython_console_highlighting

config:
html_theme: sphinx_book_theme
pygments_style: monokai
myst_enable_extensions:
- colon_fence
- deflist
- dollarmath
- substitution
issues_github_path: tskit-dev/tstrait
todo_include_todos: true
intersphinx_mapping:
python: ["https://docs.python.org/3/", null]
matplotlib: ["https://matplotlib.org/stable", null]
numpy: ["https://numpy.org/doc/stable/", null]
pandas: ["https://pandas.pydata.org/pandas-docs/stable", null]
pyslim: ["https://tskit.dev/pyslim/docs/latest/", null]
tskit: ["https://tskit.dev/tskit/docs/stable/", null]
tskit-tutorials: ["https://tskit.dev/tutorials/", null]
msprime: ["https://tskit.dev/msprime/docs/stable/", null]
stdpopsim: ["https://stdpopsim.readthedocs.io/en/stable", null]
numpy: ["https://numpy.org/doc/stable/", null]
stdpopsim: ["https://popsim-consortium.github.io/stdpopsim-docs/stable/", null]

autodoc_member_order: bysource

# Without this option, autodoc tries to put links for all return types
# in terms of the fully-qualified classnames which we don't want, and also
# leads to broken links and nitpick failures. So, until we tackle
# typehints fully, this is the simplest approach.
autodoc_typehints: none
suppress_warnings: etoc.toctree

6 changes: 3 additions & 3 deletions requirements/CI-docs/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ matplotlib==3.7.2
msprime==1.2.0
numba==0.57.1
numpy==1.21.6 # for numba
numpydoc==1.5.0
pandas==2.0.3
sphinx-autodoc-typehints==1.19.1
sphinx-book-theme # not pinned to enable easy updates
sphinx==5.0.2
sphinx-issues==3.0.1
tskit==0.5.5
tskit==0.5.5
19 changes: 4 additions & 15 deletions requirements/development.txt
Original file line number Diff line number Diff line change
@@ -1,24 +1,13 @@
autodocsumm>=0.2.7
black
flake8
jsonschema>=3.0.0
jupyter-book>=0.12.1
jupyter-book
matplotlib
msprime
numba
numpy
packaging
numpydoc
pandas
pre-commit
pytest
scipy
sphinx==4.5
sphinx-argparse
sphinx-autodoc-typehints>=1.18.3
sphinx
sphinx-issues
sphinx-jupyterbook-latex
statsmodels
tskit
tskit-book-theme
tqdm
pydata_sphinx_theme>=0.7.2
tskit
Loading