Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Build docs always from the current local version #7472

Merged
merged 9 commits into from Jan 10, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 2 additions & 1 deletion docs/Makefile
Expand Up @@ -41,7 +41,8 @@ html:
install:
@echo "... setting up virtualenv"
python3 -m venv env
. $(VENV); pip install -r requirements.txt
sed "s/^django-cms=.*$//\./g" requirements.txt > requirements.local.txt
. $(VENV); ( cd .. ; pip install -r docs/requirements.local.txt )

@echo "\n" \
"-------------------------------------------------------------------------------------------------- \n" \
Expand Down
2 changes: 1 addition & 1 deletion docs/requirements.txt
Expand Up @@ -40,7 +40,7 @@ django-classy-tags==3.0.1
# via
# django-cms
# django-sekizai
django-cms==3.11.0
.
# via -r requirements.in
django-formtools==2.3
# via django-cms
Expand Down
5 changes: 5 additions & 0 deletions scripts/make-release
Expand Up @@ -226,6 +226,11 @@ git commit cms/static -m "${COMMIT_PREFIX}compiling new static files"


status "- preparing documentation"
# Adjust docs/requirements.txt so that it refers to the local version of django CMS
# (and not to a pypi version)
sed -i 's/^django-cms=.*$/\./g' docs/requirements.txt
git add docs/requirements.txt

"${SCRIPTS}/make-changelog" "${FULL_VERSION}"

upgrade_doc="docs/upgrade/${VERSION}.rst"
Expand Down