-
Notifications
You must be signed in to change notification settings - Fork 305
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Modifies the firebase hosting config to remove the `/<version>/` prefix from the guide URLs, which has only ever been `/main/`, due to #6. Also includes rewrites so that historical URLs with the `/main/` prefix will still be honored, and redirected to the appropriate location that's live in the docs. Squirreling away this one-liner for generating a "sitemap" of all URLs: curl -s http://localhost:5000 \ | rg -i 'class="chapter"' \ | perl -npE 's/href=/\nhref=/g ' \ | perl -nE '/href="([\w.\/]+)"/g and say $1' > sitemap.txt which was helpful in creating the redirects. Removes the mdboook-only meta-refresh redirects added in #4232, because the browser UX was atrocious. Refs #3417.
- Loading branch information
1 parent
696ad22
commit 7854a5f
Showing
6 changed files
with
40 additions
and
40 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,23 +36,15 @@ jobs: | |
run: cargo +nightly install mdbook mdbook-katex mdbook-mermaid mdbook-linkcheck | ||
|
||
- name: Build software guide | ||
run: cd docs/guide && mdbook build | ||
|
||
- name: Move software guide to subdirectory | ||
run: | | ||
cd docs/guide | ||
rm -rf firebase-tmp | ||
mkdir firebase-tmp | ||
mv book/html firebase-tmp/${{ github.event.inputs.image_tag || github.ref_name }} | ||
tree firebase-tmp | ||
working-directory: docs/guide | ||
run: mdbook build | ||
|
||
- name: Deploy software guide to firebase | ||
uses: w9jds/[email protected] | ||
with: | ||
args: deploy | ||
env: | ||
FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }} | ||
PROJECT_ID: penumbra-guide | ||
PROJECT_PATH: docs/guide | ||
|
||
- name: Build protocol spec | ||
|
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,5 @@ | ||
{ | ||
"projects": { | ||
"default": "penumbra-guide" | ||
} | ||
} |
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