Skip to content
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

refactor: docs: Docs Overhaul #1438

Merged
merged 31 commits into from
Apr 6, 2021
Merged
Show file tree
Hide file tree
Changes from 28 commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
ff73f5e
Beginning new docs
RyRy79261 Mar 3, 2021
625aa04
Theming set up
RyRy79261 Mar 4, 2021
04bed75
General layouts n links sorted
RyRy79261 Mar 5, 2021
4224d1d
Cleaned up
RyRy79261 Mar 5, 2021
fe60759
Updated Commandline
RyRy79261 Mar 5, 2021
1903064
Cleaned a bit
RyRy79261 Mar 5, 2021
c966ee3
Minor cleaning
RyRy79261 Mar 5, 2021
4a8c813
Removed todo
RyRy79261 Mar 5, 2021
e97df1c
Config page
RyRy79261 Mar 5, 2021
b7a7d6c
Connect to Polkadotjs
RyRy79261 Mar 5, 2021
78561af
Fixed dev resources
RyRy79261 Mar 9, 2021
3c40173
New categories sorted
RyRy79261 Mar 10, 2021
0cf496b
Updated permalink
RyRy79261 Mar 10, 2021
51a0813
Corrected contributor doc
RyRy79261 Mar 10, 2021
df39d11
Removed unused partials
RyRy79261 Mar 12, 2021
ff3937a
Tidying
RyRy79261 Mar 15, 2021
e13f514
Removed offical nodes page
RyRy79261 Mar 18, 2021
4f3cbdb
Amended with feed back
RyRy79261 Mar 23, 2021
ae30410
Resolved a majority of feedback
RyRy79261 Mar 25, 2021
7e610c4
Ammeded workflows
RyRy79261 Mar 26, 2021
f03714f
Feedback
RyRy79261 Mar 26, 2021
fdf553e
Added diagram
RyRy79261 Mar 26, 2021
77c449c
Recent feedback
RyRy79261 Mar 29, 2021
34b4aad
Test package content
RyRy79261 Mar 29, 2021
e8560e6
Removed comment
RyRy79261 Mar 29, 2021
86ef076
Debugging page
RyRy79261 Mar 29, 2021
4e368e7
Block production expansion
RyRy79261 Mar 30, 2021
c0ba84a
Merge branch 'development' into feat/docs-overhaul
RyRy79261 Mar 30, 2021
ff75381
Typos
RyRy79261 Mar 31, 2021
1686a75
Host spec link
RyRy79261 Apr 1, 2021
9b27244
Merge branch 'development' into feat/docs-overhaul
noot Apr 5, 2021
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
61 changes: 13 additions & 48 deletions .github/workflows/docs.yml
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
9 changes: 8 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -126,4 +126,11 @@ gossamer: clean

## install: install the gossamer binary in $GOPATH/bin
install:
GOBIN=$(GOPATH)/bin go run scripts/ci.go install
GOBIN=$(GOPATH)/bin go run scripts/ci.go install

build-mkdocs:
docker run --rm -it -v ${PWD}:/docs/docs squidfunk/mkdocs-material build

mkdocs:
docker run --rm -it -p 8000:8000 -v ${PWD}:/docs/docs squidfunk/mkdocs-material

2 changes: 1 addition & 1 deletion cmd/gossamer/flags.go
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ var (
// ImportRawFlag imports a raw private key
ImportRawFlag = cli.StringFlag{
Name: "import-raw",
Usage: "Import encrypted keystore file generated with gossamer",
Usage: "Import a raw private key",
}
// ListFlag List node keys
ListFlag = cli.BoolFlag{
Expand Down
19 changes: 0 additions & 19 deletions docs/Gemfile

This file was deleted.

259 changes: 0 additions & 259 deletions docs/Gemfile.lock

This file was deleted.

Loading