Skip to content

Commit

Permalink
add relative path
Browse files Browse the repository at this point in the history
  • Loading branch information
woojoong88 committed Nov 4, 2024
1 parent 7e72af8 commit 93dbbed
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ clean-all: clean

# checkout the repos inside repos/ dir
repos:
mkdir /tmp/repos
mkdir $(SOURCEDIR)/repos

# build directory paths in repos/* to perform 'git clone <repo>' into
CHECKOUT_REPOS = $(foreach repo,$(OTHER_REPO_DOCS),repos/$(repo))
Expand All @@ -78,9 +78,11 @@ SKIP_CHECKOUT ?=

# clone (only if doesn't exist)
$(CHECKOUT_REPOS): | repos
pushd $(SOURCEDIR) ;\
if [ ! -d '$@' ] ;\
then git clone $(REPO_HOST)/$(@F) $@ ;\
fi
fi ;\
popd

# checkout correct ref if not under test, then copy subdirectories into main
# docs dir
Expand All @@ -107,9 +109,10 @@ prep: | $(OTHER_REPO_DOCS)

# build multiple versions
multiversion: $(VENV_NAME) Makefile | prep $(OTHER_REPO_DOCS)
echo $(SOURCEDIR); \
ls $(SOURCEDIR) ;\
source $</bin/activate ; set -u ;\
sphinx-multiversion "$(SOURCEDIR)" "$(BUILDDIR)/multiversion" $(SPHINXOPTS)
sphinx-multiversion "$(SOURCEDIR)" "$(BUILDDIR)/multiversion" $(SPHINXOPTS)
cp "$(SOURCEDIR)/_templates/meta_refresh.html" "$(BUILDDIR)/multiversion/index.html"

# Catch-all target: route all unknown targets to Sphinx using the new
Expand Down

0 comments on commit 93dbbed

Please sign in to comment.