forked from w3f/polkadot-wiki
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* restructure docs * update all link paths * take out v1 * remove deployment file and update readme * update mirror links and sidebars * update mirror script to account for different paths * fix mirroring and redirection * update links and fixes * fixes * dupdate gitignore - build docs * rUpdate package.json:remove v1; add pretty check on commits, can fix w3f#944 * remove and ignore files * ran pretty-quick * Update README.md * remove 'v2' from naming * update paths in js * update paths in index.js * Update generate-pdf.yml * updates * clean up * [2] Restructure Fixes (2/2) (w3f#2470) * Update learn-scams.md (w3f#2440) * clean up and fixes for restructure * Update package.json * update injection * fixes * trigger ci Co-authored-by: Aleixo Sánchez <[email protected]> * fix conflicts * add slug for redirect to default path /docs/ + updates & edits * fix file ref * update paths and edits [kusama guide] * update mirroring for kusama docs * remove old mirror script Co-authored-by: Aleixo Sánchez <[email protected]>
- Loading branch information
Showing
4,097 changed files
with
143,347 additions
and
138,152 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -51,14 +51,14 @@ jobs: | |
git config --global user.email "[email protected]" | ||
git config --global user.name "Polkadot Wiki CI" | ||
echo "machine github.com login w3fdeploy password ${{ secrets.ACCESS_KEY }}" > ~/.netrc | ||
yarn && yarn kusama:build && echo "staging.kusama.network" > kusama-guide-v2/static/CNAME && GIT_USER=w3fdeploy PUBLISHING=true PROJECT_NAME=kusama-guide-staging yarn run kusama:publish-gh-pages | ||
yarn && yarn kusama:build && echo "staging.kusama.network" > kusama-guide/static/CNAME && GIT_USER=w3fdeploy PUBLISHING=true PROJECT_NAME=kusama-guide-staging yarn run kusama:publish-gh-pages | ||
# setup ipfs cluster tools | ||
wget https://dist.ipfs.io/ipfs-cluster-ctl/v0.14.0/ipfs-cluster-ctl_v0.14.0_linux-amd64.tar.gz | ||
tar xf ./ipfs-cluster-ctl_v0.14.0_linux-amd64.tar.gz | ||
chmod +x ./ipfs-cluster-ctl/ipfs-cluster-ctl | ||
export PATH=$PATH:`pwd`/ipfs-cluster-ctl | ||
which ipfs-cluster-ctl | ||
node ./scripts/ipfs-cluster-pin.js --auth ${{ secrets.CLUSTER_BASIC_AUTH_USER }}:${{ secrets.CLUSTER_BASIC_AUTH_PASSWORD }} --websiteDir ./kusama-guide-v2/build --pinName kusama-guide-staging | ||
node ./scripts/ipfs-cluster-pin.js --auth ${{ secrets.CLUSTER_BASIC_AUTH_USER }}:${{ secrets.CLUSTER_BASIC_AUTH_PASSWORD }} --websiteDir ./kusama-guide/build --pinName kusama-guide-staging |
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 |
---|---|---|
|
@@ -14,7 +14,7 @@ jobs: | |
- uses: actions/setup-node@v2 | ||
with: | ||
node-version: "14" | ||
|
||
- name: Publish | ||
run: | | ||
git config --global user.email "[email protected]" | ||
|
@@ -28,4 +28,4 @@ jobs: | |
chmod +x ./ipfs-cluster-ctl/ipfs-cluster-ctl | ||
export PATH=$PATH:`pwd`/ipfs-cluster-ctl | ||
node ./scripts/ipfs-cluster-pin.js --auth ${{ secrets.CLUSTER_BASIC_AUTH_USER}}:${{ secrets.CLUSTER_BASIC_AUTH_PASSWORD}} --websiteDir ./website-v2/build --pinName polkadot-wiki | ||
node ./scripts/ipfs-cluster-pin.js --auth ${{ secrets.CLUSTER_BASIC_AUTH_USER}}:${{ secrets.CLUSTER_BASIC_AUTH_PASSWORD}} --websiteDir ./polkadot-wiki/build --pinName polkadot-wiki |
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 |
---|---|---|
|
@@ -36,7 +36,7 @@ jobs: | |
# uses: actions/upload-artifact@v2 | ||
# with: | ||
# name: polkadot-wiki | ||
# path: website/static/polkadot-wiki.pdf | ||
# path: polkadot-wiki/static/polkadot-wiki.pdf | ||
|
||
# - name: Build | ||
# run: yarn; yarn polkadot:build | ||
|
@@ -47,7 +47,7 @@ jobs: | |
# id: ipfs_pdf | ||
# uses: aquiladev/[email protected] | ||
# with: | ||
# path: ./website/static/polkadot-wiki.pdf | ||
# path: ./polkadot-wiki/static/polkadot-wiki.pdf | ||
# timeout: 120000 | ||
|
||
# - name: Inject | ||
|
@@ -58,20 +58,28 @@ jobs: | |
# - name: Upload to IPFS | ||
# uses: aquiladev/[email protected] | ||
# with: | ||
# path: ./website/build/polkadot-wiki | ||
# path: ./polkadot-wiki/build/polkadot-wiki | ||
# timeout: 120000 | ||
|
||
- name: Publish | ||
run: | | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "Polkadot Wiki CI" | ||
echo "machine github.com login w3fdeploy password ${{ secrets.ACCESS_KEY }}" > ~/.netrc | ||
yarn && yarn polkadot:build && echo "staging.polkadot.network" > website-v2/static/CNAME && GIT_USER=w3fdeploy PUBLISHING=true PROJECT_NAME=polkadot-wiki-staging yarn run polkadot:publish-gh-pages | ||
yarn && yarn polkadot:build && echo "staging.polkadot.network" > polkadot-wiki/static/CNAME && GIT_USER=w3fdeploy PUBLISHING=true PROJECT_NAME=polkadot-wiki-staging yarn run polkadot:publish-gh-pages | ||
# setup ipfs cluster tools | ||
wget https://dist.ipfs.io/ipfs-cluster-ctl/v0.14.0/ipfs-cluster-ctl_v0.14.0_linux-amd64.tar.gz | ||
tar xf ./ipfs-cluster-ctl_v0.14.0_linux-amd64.tar.gz | ||
chmod +x ./ipfs-cluster-ctl/ipfs-cluster-ctl | ||
export PATH=$PATH:`pwd`/ipfs-cluster-ctl | ||
<<<<<<< HEAD | ||
node ./scripts/ipfs-cluster-pin.js --auth ${{ secrets.CLUSTER_BASIC_AUTH_USER}}:${{ secrets.CLUSTER_BASIC_AUTH_PASSWORD}} --websiteDir ./polkadot-wiki/build --pinName polkadot-wiki-staging | ||
======= | ||
<<<<<<< HEAD | ||
node ./scripts/ipfs-cluster-pin.js --auth ${{ secrets.CLUSTER_BASIC_AUTH_USER}}:${{ secrets.CLUSTER_BASIC_AUTH_PASSWORD}} --websiteDir ./website/build --pinName polkadot-wiki-staging | ||
======= | ||
node ./scripts/ipfs-cluster-pin.js --auth ${{ secrets.CLUSTER_BASIC_AUTH_USER}}:${{ secrets.CLUSTER_BASIC_AUTH_PASSWORD}} --websiteDir ./website-v2/build --pinName polkadot-wiki-staging | ||
>>>>>>> master | ||
>>>>>>> folder |
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,34 +1,35 @@ | ||
name: Generate downloadable PDF | ||
|
||
on: | ||
# Trigger the workflow on push or pull request, | ||
# but only for the master branch | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
generate-pdf: | ||
name: Run the site and generate a PDF from it | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@master | ||
|
||
- name: Clone and run the site | ||
run: | | ||
yarn | ||
yarn polkadot:start & | ||
while ! nc -z localhost 3000; do | ||
sleep 1 | ||
echo waiting for website up... | ||
done | ||
yarn polkadot:pdf | ||
- name: Upload PDF | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: polkadot-wiki | ||
path: website-v2/static/polkadot-wiki.pdf | ||
name: Generate downloadable PDF | ||
|
||
on: | ||
# Trigger the workflow on push or pull request, | ||
# but only for the master branch | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
generate-pdf: | ||
name: Run the site and generate a PDF from it | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@master | ||
|
||
- name: Clone and run the site | ||
run: | | ||
yarn | ||
yarn mirror | ||
yarn polkadot:start & | ||
while ! nc -z localhost 3000; do | ||
sleep 1 | ||
echo waiting for website up... | ||
done | ||
yarn polkadot:pdf | ||
- name: Upload PDF | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: polkadot-wiki | ||
path: website/static/polkadot-wiki.pdf |
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 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.
Oops, something went wrong.