Skip to content

Commit

Permalink
Include the changelog in the Sphinx documentation
Browse files Browse the repository at this point in the history
We use the sphinx-mdinclude extension to include the Markdown-formatted
CHANGELOG.md content into the reStructuredText-based documentation.
  • Loading branch information
jparise committed Jan 27, 2024
1 parent 16e4f15 commit cd5203a
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## 0.12.0 - Unreleased
### Added
- All clients now support a user-provided [`httpx.Client`](https://www.python-httpx.org/api/#client)
- All clients now support a user-provided [httpx.Client](https://www.python-httpx.org/api/#client)
objects.

## 0.11.0 - 2024-01-22
Expand Down
1 change: 1 addition & 0 deletions docs/changelog.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.. mdinclude:: ../CHANGELOG.md
1 change: 1 addition & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"sphinx.ext.autodoc",
"sphinx.ext.githubpages",
"sphinx.ext.intersphinx",
"sphinx_mdinclude",
]
intersphinx_mapping = {
"python": ("https://docs.python.org/3/", None),
Expand Down
5 changes: 5 additions & 0 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ Vesta
Vesta is a `Vestaboard <https://www.vestaboard.com/>`_ client library for
Python. It provides API clients and character encoding utilities.

.. toctree::
:hidden:

changelog

Installation
============

Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ dependencies = [
docs = [
"Sphinx==7.2.2",
"furo==2023.9.10",
"sphinx_mdinclude==0.5.3",
]
lint = [
"ruff==0.1.11",
Expand Down

0 comments on commit cd5203a

Please sign in to comment.