Show last_updated in docs (#1888)

* Show last_updated in docs

* Use sphinx-last-updated-by-git

* Set fetch-depth: 0
This commit is contained in:
Ayaz Salikhov
2023-03-10 01:09:28 +04:00
committed by GitHub
parent b3604a68a4
commit 295612d3ad
3 changed files with 5 additions and 1 deletions

View File

@@ -33,6 +33,8 @@ jobs:
steps: steps:
- name: Checkout Repo ⚡️ - name: Checkout Repo ⚡️
uses: actions/checkout@v3 uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set Up Python 🐍 - name: Set Up Python 🐍
uses: actions/setup-python@v4 uses: actions/setup-python@v4

View File

@@ -48,8 +48,9 @@ html_theme_options = {
"text": html_title, "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 = { source_suffix = {
".rst": "restructuredtext", ".rst": "restructuredtext",
".md": "markdown", ".md": "markdown",

View File

@@ -5,3 +5,4 @@ myst-parser>=0.18.0
sphinx>=4.5.0 sphinx>=4.5.0
sphinx-book-theme==1.0.0 sphinx-book-theme==1.0.0
sphinx-copybutton>=0.5.0 sphinx-copybutton>=0.5.0
sphinx-last-updated-by-git>=0.3.4