Skip to content

Commit

Permalink
docs: add changelog (#115)
Browse files Browse the repository at this point in the history
* docs: add changelog

Signed-off-by: Henry Schreiner <[email protected]>

* Update pyproject.toml

---------

Signed-off-by: Henry Schreiner <[email protected]>
  • Loading branch information
henryiii authored Oct 17, 2023
1 parent 1a8e726 commit c84af62
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 0 deletions.
7 changes: 7 additions & 0 deletions docs/changelog.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Changelog

```{changelog}
:changelog-url: https://github.com/scikit-hep/uhi/releases
:github: https://github.com/scikit-hep/uhi/releases
:pypi: https://pypi.org/project/uhi
```
11 changes: 11 additions & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

from __future__ import annotations

import os
import sys

if sys.version_info < (3, 8):
Expand Down Expand Up @@ -33,6 +34,7 @@
"myst_parser",
"sphinx.ext.napoleon",
"sphinx_copybutton",
"sphinx_github_changelog",
]

source_suffix = [".rst", ".md"]
Expand All @@ -45,8 +47,17 @@
# This pattern also affects html_static_path and html_extra_path.
exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"]


# -- Options for HTML output -------------------------------------------------

# The theme to use for HTML and HTML Help pages. See the documentation for
# a list of builtin themes.
html_theme = "furo"


# -- Changelog builder -------------------------------------------------------

sphinx_github_changelog_token = os.environ.get("GITHUB_API_TOKEN")

commit = os.environ.get("READTHEDOCS_GIT_COMMIT_HASH", "main")
code_url = "https://github.com/scientific-python/repo-review/blob"
1 change: 1 addition & 0 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ to plot a histogram, including error bars.
indexing.rst
indexing+.rst
plotting.rst
changelog.md



Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ docs = [
"furo",
"sphinx-copybutton>=0.3.1",
"myst-parser",
"sphinx_github_changelog",
]
test = [
"pytest>=6",
Expand Down

0 comments on commit c84af62

Please sign in to comment.