Skip to content

Commit

Permalink
Show last_updated in docs (#1888)
Browse files Browse the repository at this point in the history
* Show last_updated in docs

* Use sphinx-last-updated-by-git

* Set fetch-depth: 0
  • Loading branch information
mathbunnyru authored Mar 9, 2023
1 parent b3604a6 commit 295612d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/sphinx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ jobs:
steps:
- name: Checkout Repo ⚡️
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Set Up Python 🐍
uses: actions/setup-python@v4
Expand Down
3 changes: 2 additions & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,9 @@
"text": html_title,
},
}
html_last_updated_fmt = "%Y-%m-%d"

extensions = ["myst_parser", "sphinx_copybutton"]
extensions = ["myst_parser", "sphinx_copybutton", "sphinx_last_updated_by_git"]
source_suffix = {
".rst": "restructuredtext",
".md": "markdown",
Expand Down
1 change: 1 addition & 0 deletions docs/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ myst-parser>=0.18.0
sphinx>=4.5.0
sphinx-book-theme==1.0.0
sphinx-copybutton>=0.5.0
sphinx-last-updated-by-git>=0.3.4

0 comments on commit 295612d

Please sign in to comment.