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

Add support for swh package using src/swh directory structure

parent 50d8fe27
No related branches found
Tags swh-alter-20250314.1
1 merge request!473Add support for swh package using src/swh directory structure
Pipeline #13619 passed
......@@ -34,7 +34,7 @@ sphinx/%: $(apidoc_dep)
apidoc: $(apidoc_dep)
apidoc-stamp:
$(SPHINXAPIDOC) $(APIDOC_OPTS) -o $(APIDOC_DIR) ../swh $(APIDOC_SWH_EXCLUDES)
$(SPHINXAPIDOC) $(APIDOC_OPTS) -o $(APIDOC_DIR) `if [ -d ../src/swh ]; then echo ../src/swh; else echo ../swh; fi` $(APIDOC_SWH_EXCLUDES)
# to silent Sphinx warnings about apidoc documents not included in any toctree
find $(shell pwd)/apidoc -name "*.rst" | xargs sed -i '1i:orphan:\n'
touch $@
......
......@@ -16,6 +16,8 @@ create_links () {
fi
if [ -d "../../../${pymodule}/swh" ] ; then
cp -r -f --symbolic-link $(realpath ../../../${pymodule}/swh/*) sources/swh/
elif [ -d "../../../${pymodule}/src/swh" ] ; then
cp -r -f --symbolic-link $(realpath ../../../${pymodule}/src/swh/*) sources/swh/
fi
pushd ../../../${pymodule}
for EXT in rst md; do
......
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