Skip to content

Commit

Permalink
Merge pull request #346 from gonuke/fix_publish_main
Browse files Browse the repository at this point in the history
Fix treatment of `source` folder in published website
  • Loading branch information
abachma2 authored Mar 22, 2024
2 parents 2b25d41 + 57dfc16 commit 00e5af7
Show file tree
Hide file tree
Showing 383 changed files with 6 additions and 33,015 deletions.
11 changes: 6 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ SPHINXOPTS =
SPHINXBUILD = sphinx-build
PAPER =
BUILDDIR = ./gh-build
GIT_BRANCH = master
GIT_BRANCH = main
GIT_FORK = cyclus


Expand All @@ -30,10 +30,10 @@ help:
@echo "Please use \`make <target>' where <target> is one of"
@echo " gh-preview to build HTML in directory $BUILDDIR for testing"
@echo " gh-revert to cleanup HTML build in directory $BUILDDIR after testing"
@echo " gh-publish to build final version and push from source branch to master branch"
@echo " gh-publish-only to push from source branch to master branch, assuming already built"
@echo " gh-publish to build final version and push from source branch to main branch"
@echo " gh-publish-only to push from source branch to main branch, assuming already built"
@echo " docker-html to use docker to build HTML in directory $BUILDDIR for testing"
@echo " docker-gh-publish to use docker to build final version and push from source branch to master branch"
@echo " docker-gh-publish to use docker to build final version and push from source branch to main branch"
@echo " serve build+serve html files using Python's SimpleHTTPServer"
@echo " serve-only serve pre-built html files using Python's SimpleHTTPServer"
@echo " dirhtml to make HTML files named index.html in directories"
Expand Down Expand Up @@ -80,11 +80,12 @@ gh-preview html:
gh-publish-only:
git fetch $(GH_UPSTREAM_REPO)
git checkout -B $(GH_PUBLISH_BRANCH) $(GH_UPSTREAM_REPO)/$(GH_PUBLISH_BRANCH)
git checkout $(GH_SOURCE_BRANCH) -- $(GH_SOURCE_DIR)
git reset HEAD
rsync -a $(BUILDDIR)/* .
rsync -a $(BUILDDIR)/.* .
git add -f `(cd $(BUILDDIR); find . -type f; cd ..)`
rm -rf $(BUILDDIR)
rm -rf $(GH_SOURCE_DIR) $(BUILDDIR)
git commit -m "Generated $(GH_PUBLISH_BRANCH) for `git log $(GH_SOURCE_BRANCH) -1 --pretty=short --abbrev-commit`" && git push --force $(GH_UPSTREAM_REPO) $(GH_PUBLISH_BRANCH)
git checkout $(GH_SOURCE_BRANCH)

Expand Down
100 changes: 0 additions & 100 deletions source/arche/cli.rst

This file was deleted.

151 changes: 0 additions & 151 deletions source/arche/cmake.rst

This file was deleted.

Loading

0 comments on commit 00e5af7

Please sign in to comment.