Fixed docs build

This commit is contained in:
JRoot Junior 2024-09-08 15:53:44 +03:00
parent 6cebbe29ac
commit 4bf4f8eac9
No known key found for this signature in database
GPG key ID: 738964250D5FF6E2
3 changed files with 10 additions and 11 deletions

View file

@ -84,7 +84,7 @@ docs-gettext:
.PHONY: docs-gettext .PHONY: docs-gettext
docs-serve: docs-serve:
hatch run docs:sphinx-autobuild --watch aiogram/ --watch CHANGELOG.rst --watch README.rst docs/ docs/_build/ $(OPTS) hatch run docs:sphinx-autobuild --watch aiogram/ --watch CHANGES.rst --watch README.rst docs/ docs/_build/ $(OPTS)
.PHONY: docs-serve .PHONY: docs-serve
$(locale_targets): docs-serve-%: $(locale_targets): docs-serve-%:

View file

@ -30,7 +30,7 @@ extensions = [
"sphinx.ext.intersphinx", "sphinx.ext.intersphinx",
"sphinx_substitution_extensions", "sphinx_substitution_extensions",
"sphinx_copybutton", "sphinx_copybutton",
"sphinxcontrib.towncrier.ext", # "sphinxcontrib.towncrier.ext", # Temporary disabled due to bug in the extension https://github.com/sphinx-contrib/sphinxcontrib-towncrier/issues/92
] ]
rst_prolog = f""" rst_prolog = f"""

View file

@ -87,17 +87,16 @@ test = [
"pycryptodomex~=3.19.0", "pycryptodomex~=3.19.0",
] ]
docs = [ docs = [
"Sphinx~=7.2.6", "Sphinx~=8.0.2",
"sphinx-intl~=2.1.0", "sphinx-intl~=2.2.0",
"sphinx-autobuild~=2021.3.14", "sphinx-autobuild~=2024.9.3",
"sphinx-copybutton~=0.5.2", "sphinx-copybutton~=0.5.2",
"furo~=2023.9.10", "furo~=2024.8.6",
"Sphinx-Substitution-Extensions~=2022.2.16", "Sphinx-Substitution-Extensions~=2024.8.6",
"towncrier~=24.7.1", "towncrier~=24.8.0",
"pygments~=2.16.1", "pygments~=2.18.0",
"pymdown-extensions~=10.3", "pymdown-extensions~=10.3",
"markdown-include~=0.8.1", "markdown-include~=0.8.1",
"Pygments~=2.16.1",
"sphinxcontrib-towncrier~=0.4.0a0", "sphinxcontrib-towncrier~=0.4.0a0",
] ]
dev = [ dev = [
@ -148,7 +147,7 @@ features = [
"cli", "cli",
] ]
[tool.hatch.envs.docs.scripts] [tool.hatch.envs.docs.scripts]
serve = "sphinx-autobuild --watch aiogram/ --watch CHANGELOG.rst --watch README.rst docs/ docs/_build/ {args}" serve = "sphinx-autobuild --watch aiogram/ --watch CHANGES.rst --watch README.rst docs/ docs/_build/ {args}"
[tool.hatch.envs.dev] [tool.hatch.envs.dev]
python = "3.12" python = "3.12"