Skip to content

Commit

Permalink
Merge pull request #26 from hydrologie/add_RTD
Browse files Browse the repository at this point in the history
Add ReadTheDocs
  • Loading branch information
Zeitsperre authored Sep 8, 2023
2 parents 1e7b5da + 02f9737 commit cf1bc7b
Show file tree
Hide file tree
Showing 9 changed files with 26 additions and 19 deletions.
14 changes: 7 additions & 7 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,19 +27,14 @@ repos:
rev: 23.7.0
hooks:
- id: black
args: [ '--target-version=py39' ]
exclude: ^docs/
- repo: https://github.com/pycqa/flake8
rev: 6.1.0
hooks:
- id: flake8
additional_dependencies: [ 'flake8-rst-docstrings' ]
args: ['--config=setup.cfg']
- repo: https://github.com/psf/black
rev: 23.7.0
hooks:
- id: black
exclude: ^docs/
args: [ '--target-version=py39' ]
- repo: https://github.com/PyCQA/isort
rev: 5.12.0
hooks:
Expand All @@ -55,7 +50,7 @@ repos:
rev: v0.3.8
hooks:
- id: blackdoc
additional_dependencies: [ 'black==23.3.0' ]
additional_dependencies: [ 'black==23.7.0' ]
- repo: https://github.com/adrienverge/yamllint.git
rev: v1.32.0
hooks:
Expand All @@ -65,6 +60,11 @@ repos:
rev: "0.49"
hooks:
- id: check-manifest
- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.26.3
hooks:
- id: check-github-workflows
- id: check-readthedocs
- repo: meta
hooks:
- id: check-hooks-apply
Expand Down
5 changes: 4 additions & 1 deletion .readthedocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,10 @@ sphinx:
build:
os: ubuntu-22.04
tools:
python: "mambaforge-4.10"
python: "mambaforge-22.9"
jobs:
pre_build:
- sphinx-apidoc -o docs/apidoc --private --module-first xhydro

conda:
environment: environment-docs.yml
Expand Down
2 changes: 1 addition & 1 deletion .zenodo.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
},
{
"name": "Rondeau-Genesse, Gabriel",
"affiliation": "Ouranos",
"affiliation": "Ouranos, Montréal, Québec, Canada",
"orcid": "0000-0003-3389-9406"
}
],
Expand Down
1 change: 1 addition & 0 deletions HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ Contributors to this version: Trevor James Smith (:user:`Zeitsperre`), Gabriel R
Announcements
^^^^^^^^^^^^^
* Support for Python3.8 and lower has been dropped. (:pull:`11`).
* `xHydro` now hosts its documentation on `Read the Docs <https://xhydro.readthedocs.io/en/latest/>`_. (:pull:`26`).

New features and enhancements
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Expand Down
2 changes: 2 additions & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ recursive-include docs *.rst conf.py Makefile make.bat *.jpg *.png *.gif
recursive-include tests *
recursive-exclude * __pycache__
recursive-exclude * *.py[co]
recursive-exclude docs apidocs *.rst
recursive-exclude docs _build *

exclude .coveralls.yml
exclude .cruft.json
Expand Down
14 changes: 7 additions & 7 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,14 @@ This package was created with Cookiecutter_ and the `Ouranosinc/cookiecutter-pyp
:target: https://github.com/hydrologie/xhydro/actions
:alt: Build Status

.. |docs| image:: https://img.shields.io/badge/Docs-GitHub.io-blue
:target: https://hydrologie.github.io/xhydro/
:alt: Documentation

..
.. |docs| image:: https://readthedocs.org/projects/xhydro/badge/?version=latest
:target: https://xhydro.readthedocs.io/en/latest/?version=latest
:alt: Documentation Status
.. |docs| image:: https://img.shields.io/badge/Docs-GitHub.io-blue
:target: https://hydrologie.github.io/xhydro/
:alt: Documentation
.. |docs| image:: https://readthedocs.org/projects/xhydro/badge/?version=latest
:target: https://xhydro.readthedocs.io/en/latest/?version=latest
:alt: Documentation Status

.. |license| image:: https://img.shields.io/pypi/l/xhydro
:target: https://github.com/hydrologie/xhydro/blob/main/LICENSE
Expand Down
4 changes: 2 additions & 2 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@
pygments_style = 'sphinx'

# If true, `todo` and `todoList` produce output, else they produce nothing.
todo_include_todos = False
todo_include_todos = True


# -- Options for HTML output -------------------------------------------
Expand All @@ -123,7 +123,7 @@
# Add any paths that contain custom static files (such as style sheets) here,
# relative to this directory. They are copied after the builtin static files,
# so a file named "default.css" will overwrite the builtin "default.css".
html_static_path = ['_static']
# html_static_path = ['_static']


# -- Options for HTMLHelp output ---------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Welcome to xHydro's documentation!
readme
installation
usage
modules
apidoc/modules
contributing
authors
history
Expand Down
1 change: 1 addition & 0 deletions environment-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ dependencies:
- sphinx
- furo
- mock
- nbsphinx
- pandoc
- sphinx-autoapi
- sphinx-codeautolink
Expand Down

0 comments on commit cf1bc7b

Please sign in to comment.