-
Notifications
You must be signed in to change notification settings - Fork 129
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: docs: Docs Overhaul (#1438)
* Beginning new docs * Theming set up * General layouts n links sorted * Cleaned up * Updated Commandline * Cleaned a bit * Minor cleaning * Removed todo * Config page * Connect to Polkadotjs * Fixed dev resources * New categories sorted * Updated permalink * Corrected contributor doc * Removed unused partials * Tidying * Removed offical nodes page * Amended with feed back * Resolved a majority of feedback * Ammeded workflows * Feedback * Added diagram * Recent feedback * Test package content * Removed comment * Debugging page * Block production expansion * Typos * Host spec link Co-authored-by: noot <[email protected]>
- Loading branch information
Showing
57 changed files
with
1,173 additions
and
1,106 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 |
---|---|---|
@@ -1,56 +1,21 @@ | ||
name: docs | ||
|
||
name: Publish docs via GitHub Pages | ||
on: | ||
push: | ||
branches: | ||
- development | ||
|
||
env: | ||
RUBY_VERSION: 2.7 | ||
BUNDLE_GEMFILE: docs/Gemfile | ||
|
||
jobs: | ||
deploy_docs: | ||
runs-on: 'ubuntu-latest' | ||
build: | ||
name: Deploy docs | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-ruby@v1 | ||
with: | ||
ruby-version: ${{ env.RUBY_VERSION }} | ||
- name: Setup cache for Bundler | ||
id: cache | ||
uses: actions/cache@v2 | ||
with: | ||
path: vendor/bundle | ||
key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }} | ||
restore-keys: | | ||
${{ runner.os }}-gems- | ||
- name: Set up dependencies | ||
run: | | ||
bundle install --path=vendor/bundle --jobs 4 --retry 3 | ||
bundle clean | ||
- name: Clone target branch | ||
run: | | ||
REMOTE_BRANCH="${REMOTE_BRANCH:-gh-pages}" | ||
REMOTE_REPO="https://${GITHUB_ACTOR}:${{ secrets.GITHUB_TOKEN }}@github.com/${GITHUB_REPOSITORY}.git" | ||
echo "Publishing to ${GITHUB_REPOSITORY} on branch ${REMOTE_BRANCH}" | ||
rm -rf docs/_site/ | ||
git clone --depth=1 --branch="${REMOTE_BRANCH}" --single-branch --no-checkout \ | ||
"${REMOTE_REPO}" docs/_site/ | ||
- name: Build site | ||
run: bundle exec jekyll build --source docs --destination docs/_site --verbose --trace | ||
- name: Checkout main | ||
uses: actions/checkout@v2 | ||
|
||
- name: Deploy docs | ||
uses: mhausenblas/mkdocs-deploy-gh-pages@master | ||
env: | ||
# For jekyll-github-metadata | ||
JEKYLL_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Deploy to GitHub Pages | ||
run: | | ||
SOURCE_COMMIT="$(git log -1 --pretty="%an: %B" "$GITHUB_SHA")" | ||
pushd docs/_site &>/dev/null | ||
: > .nojekyll | ||
git add --all | ||
git -c user.name="${GITHUB_ACTOR}" -c user.email="${GITHUB_ACTOR}@users.noreply.github.com" \ | ||
commit --quiet \ | ||
--message "Deploy docs from ${GITHUB_SHA}" \ | ||
--message "$SOURCE_COMMIT" | ||
git push | ||
popd &>/dev/null | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
CUSTOM_DOMAIN: gossamer.chainsafe.io | ||
CONFIG_FILE: docs/mkdocs.yml | ||
EXTRA_PACKAGES: build-base |
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.