Skip to content

MAINT [PST] set up live preview #28353

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

Merged
merged 4 commits into from
Feb 8, 2024
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.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,9 @@ jobs:
at: doc/_build/html
- run: ls -ltrh doc/_build/html/stable
- deploy:
# TODO: remove the new_web_theme part when the branch is merged into main
command: |
if [[ "${CIRCLE_BRANCH}" =~ ^main$|^[0-9]+\.[0-9]+\.X$ ]]; then
if [[ "${CIRCLE_BRANCH}" =~ ^(main|new_web_theme)$|^[0-9]+\.[0-9]+\.X$ ]]; then
bash build_tools/circle/push_doc.sh doc/_build/html/stable
fi

Expand Down
4 changes: 4 additions & 0 deletions build_tools/circle/push_doc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ GENERATED_DOC_DIR=$(readlink -f $GENERATED_DOC_DIR)
if [ "$CIRCLE_BRANCH" = "main" ]
then
dir=dev
# TODO: remove this branch once new_web_theme is merged into main
elif [ "$CIRCLE_BRANCH" = "new_web_theme" ]
then
dir=_pst_preview
else
# Strip off .X
dir="${CIRCLE_BRANCH::-2}"
Expand Down