forked from tlspuffin/tlspuffin
-
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.
setup website tooling (tlspuffin#315)
* docs: initial website integration * ci: fix conflicting names for prebuilt tlspuffin artifact * ci: auto-update website content on PR merged * docs: fix rustdoc warnings * docs: update broken README.md links * build: fix macos nix packages
- Loading branch information
1 parent
b39585d
commit a8c6986
Showing
70 changed files
with
15,266 additions
and
704 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 |
---|---|---|
|
@@ -6,7 +6,7 @@ on: | |
- main | ||
|
||
permissions: | ||
contents: write # needed for gh-pages deployment jobs | ||
contents: read | ||
|
||
# NOTE: we prevent parallel runs of this workflow | ||
# | ||
|
@@ -36,42 +36,56 @@ jobs: | |
benchmark: | ||
uses: ./.github/workflows/run-benchmarks.yml | ||
|
||
docs: | ||
name: Build dev Documentation | ||
website: | ||
name: Package Website | ||
runs-on: ubuntu-22.04 | ||
defaults: | ||
run: | ||
shell: bash | ||
env: | ||
RUSTDOCFLAGS: -Dwarnings | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: setup | ||
uses: ./.github/actions/setup | ||
|
||
- name: build website | ||
shell: bash | ||
run: just docs | ||
run: just website-pkg | ||
|
||
- name: upload dev documentation artifact | ||
- name: upload website artifact | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: docs-dev | ||
path: target/docs | ||
if-no-files-found: error | ||
name: website | ||
path: target/package/build/website | ||
|
||
deploy: | ||
needs: [validation, docs] | ||
name: Deploy dev Documentation | ||
needs: [website] | ||
name: Update Website Repository | ||
runs-on: ubuntu-22.04 | ||
environment: github-pages | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: checkout website repository | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: 'tlspuffin/tlspuffin.github.io' | ||
ref: 'main' | ||
ssh-key: ${{ secrets.WEBSITE_REPO_KEY }} | ||
|
||
- name: remove previous website folder | ||
run: | | ||
git rm -rf website/ | ||
rm -rf website | ||
- name: download dev documentation artifact | ||
- name: add updated website | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: docs-dev | ||
path: docs-dev | ||
name: website | ||
path: website | ||
|
||
- name: deploy dev documentation | ||
uses: JamesIves/[email protected] | ||
with: | ||
folder: docs-dev | ||
branch: gh-pages | ||
clean: true | ||
force: true | ||
- name: push the changes | ||
run: | | ||
git config --global user.email tlspuffin@tlspuffin | ||
git config --global user.name tlspuffin | ||
git add website | ||
git commit -m "deploy from ${{ github.repository }}/${{ github.ref}}@${{ github.sha }}" | ||
git push |
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
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,23 @@ | ||
# Rust API files generated by `cargo doc` | ||
/static/api | ||
|
||
# Dependencies | ||
/node_modules | ||
|
||
# Production | ||
/build | ||
|
||
# Generated files | ||
.docusaurus | ||
.cache-loader | ||
|
||
# Misc | ||
.DS_Store | ||
.env.local | ||
.env.development.local | ||
.env.test.local | ||
.env.production.local | ||
|
||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* |
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,18 @@ | ||
This directory contains the documentation source files and the tooling for building the tlspuffin website. | ||
|
||
## Quickstart | ||
|
||
Serve a dev version locally: | ||
```sh | ||
cd docs/ | ||
nix-shell | ||
npm install | ||
npm start | ||
``` | ||
|
||
Build the production version: | ||
```sh | ||
cd docs/ | ||
npm run build | ||
``` | ||
|
Binary file not shown.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.