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