Skip to content

MAINT: Modify the gh-pages workflow to build the dev. docs in a subdirectory. #12

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 1 commit into from
Oct 10, 2019
Merged
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
14 changes: 7 additions & 7 deletions .github/workflows/publish_docs_to_pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,16 +58,16 @@ jobs:
git fetch origin gh-pages
echo "Checking out gh-pages branch"
git checkout gh-pages
echo "Removing old documentation"
echo "Removing old dev documentation"
git clean -xdf .
cd dev
git rm -r '*'
echo "Committing empty repository"
git commit -m "Remove old documentation"
echo "Committing emptied dev directory"
git commit -m "Remove old dev documentation"
echo "Copying /tmp/html here"
cp -v -r /tmp/html/* .
touch .nojekyll
echo "Adding new documentation"
git add -A
git commit -m "Add new documentation"
echo "Adding new dev documentation"
git add -A .
git commit -m "Add new dev documentation"
echo "Pushing new documentation to origin"
git push -v origin gh-pages