Skip to content
Snippets Groups Projects
Commit 1941e912 authored by David Douard's avatar David Douard
Browse files

distribute sphinx Makefiles as package data

Distribute these Makefiles in share/swh-docs and move the
glossary.rst in share/swh-docs/docs/devel to keep the directory hierarchy
of the source repo.
parent b04e14ef
No related branches found
No related tags found
No related merge requests found
......@@ -44,5 +44,9 @@ setup(
"building": parse_requirements("swh"),
},
include_package_data=True,
data_files=[("share/swh-docs", ["docs/devel/glossary.rst"])],
data_files=[
("share/swh-docs/docs/devel", ["docs/devel/glossary.rst"]),
("share/swh-docs/docs/", ["docs/Makefile"]),
("share/swh-docs/", ["Makefile.sphinx"]),
],
)
......@@ -317,8 +317,8 @@ def set_django_settings(app, env, docname):
def add_glossary_to_index(app, docname, source):
if docname == "index":
lookup = (
Path(sys.prefix) / "share/swh-docs/glossary.rst",
Path(sys.prefix) / "local/share/swh-docs/glossary.rst",
Path(sys.prefix) / "share/swh-docs/docs/devel/glossary.rst",
Path(sys.prefix) / "local/share/swh-docs/docs/devel/glossary.rst",
Path(__file__).parents[3] / "docs/devel/glossary.rst",
Path(__file__).parents[4] / "docs/devel/glossary.rst",
Path(__file__).parents[5] / "docs/devel/glossary.rst",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment