-
Notifications
You must be signed in to change notification settings - Fork 779
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Docs: Update to jekyll-theme-amethyst 0.4.1 (TOC, gh-pages deploy)
- Loading branch information
Showing
59 changed files
with
242 additions
and
305 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
name: GitHub Pages | ||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
deploy: | ||
name: Deploy | ||
runs-on: ubuntu-20.04 | ||
env: | ||
DEPLOY_DIR: docs/_site/ | ||
DEPLOY_BRANCH: gh-pages | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Prepare branch | ||
run: | | ||
mkdir "${DEPLOY_DIR}" | ||
cd "${DEPLOY_DIR}" | ||
# Clone and checkout existing branch, or initialise with a new and empty branch | ||
git clone --depth 5 --branch "${DEPLOY_BRANCH}" "https://github.com/${GITHUB_REPOSITORY}.git" . || git init -b "${DEPLOY_BRANCH}" | ||
- uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: 2.7 | ||
bundler-cache: true | ||
# If your site is in a subdirectory | ||
working-directory: ./docs/ | ||
|
||
- name: Jekyll build | ||
# If your site is in a subdirectory | ||
working-directory: ./docs/ | ||
run: bundle exec jekyll build | ||
|
||
- name: Push to branch | ||
# Inspired by https://github.com/helaili/jekyll-action/blob/2.2.0/entrypoint.sh | ||
env: | ||
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" | ||
run: | | ||
cd "${DEPLOY_DIR}" | ||
touch .nojekyll | ||
git config user.name "${GITHUB_ACTOR}" && \ | ||
git config user.email "${GITHUB_ACTOR}@users.noreply.github.com" && \ | ||
git add . && \ | ||
git commit --allow-empty -m "Build commit ${GITHUB_SHA}" && \ | ||
git push "https://${GITHUB_ACTOR}:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git" "HEAD:${DEPLOY_BRANCH}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,8 @@ | ||
source "https://rubygems.org" | ||
ruby RUBY_VERSION | ||
|
||
# To upgrade, run `bundle update github-pages`. | ||
gem "github-pages", group: :jekyll_plugins | ||
# To apply changes, run `bundle update`. | ||
gem "jekyll-theme-amethyst", "0.4.1", group: :jekyll_plugins | ||
|
||
# Temporary fix for https://github.com/github/pages-gem/issues/752 | ||
gem "webrick", "~> 1.7" | ||
|
||
gem 'jekyll-algolia', "1.7.0", group: :jekyll_plugins | ||
# Search | ||
gem "jekyll-algolia", "~> 1.7.0", group: :jekyll_plugins |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.