Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
17 commits
Select commit Hold shift + click to select a range
788b549
Add in-repo documentation manual build tooling
aidangarske Oct 7, 2026
809f311
Migrate the wolfTPM manual into docs/ source pages
aidangarske Oct 7, 2026
e3456ad
Add the Japanese translation of the wolfTPM manual
aidangarske Oct 7, 2026
f237817
Rework the README as a manual landing page and redirect the legacy docs
aidangarske Oct 7, 2026
d30ef09
Correct documentation review findings across the manual and tooling
aidangarske Oct 8, 2026
bc33811
Sync the Japanese manual with the corrected pages and fix in-page anc…
aidangarske Oct 8, 2026
659b16c
Apply second-pass documentation review fixes across the manual
aidangarske Oct 8, 2026
53340cb
Sync the Japanese manual with the second-pass review fixes
aidangarske Oct 8, 2026
375ec53
Apply third-pass documentation review fixes to the SPDM and post-quan…
aidangarske Oct 8, 2026
61c26cb
Sync the Japanese manual with the third-pass review fixes
aidangarske Oct 8, 2026
c5ae08f
Correct the fwTPM clear and GPIO reset guidance in the SPDM and PQC docs
aidangarske Oct 8, 2026
6307cdf
Sync the Japanese manual with the fwTPM clear and GPIO reset corrections
aidangarske Oct 8, 2026
65a0749
Fix the manual CI for Japanese PDF fonts, spelling, and the fwTPM con…
aidangarske Oct 8, 2026
0ea729d
Fix the param-encryption attributes, fwTPM HAL order, and HTML artifact
aidangarske Oct 8, 2026
7066751
Merge remote-tracking branch 'origin/master' into docs-manual-conversion
aidangarske Oct 8, 2026
37c0e17
Fix PDF TOC number spacing and wide-table column widths in the manual
aidangarske Oct 8, 2026
e573787
Correct build commands, PQC floor, SPDM vendor flags, and the doc too…
aidangarske Oct 9, 2026
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
2 changes: 1 addition & 1 deletion .github/workflows/codespell.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,4 @@ jobs:
run: |
codespell --count \
--skip '.git,./IDE,./certs,./m4,*.der,*.pem,*prebuilt_bindings.rs' \
--ignore-words-list 'inh,inout,keypair,nd,parm,rcv,ser,loadIn,importIn,certifyIn,bu,fo,daa,pris,hsi,fram,hart,cna'
--ignore-words-list 'inh,inout,keypair,nd,parm,rcv,ser,loadIn,importIn,certifyIn,bu,fo,daa,pris,hsi,fram,hart,cna,challener'
93 changes: 93 additions & 0 deletions .github/workflows/docs-site.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
name: Build manual with documentation tooling

on:
pull_request:
paths: &doc_paths
- 'docs/**'
- 'mkdocs.yml'
- 'mkdocs-ja.yml'
- 'tools/docs_manual.py'
- 'tools/docs-manual/**'
- 'docker/docs/**'
- '.github/workflows/docs-site.yml'
- 'README.md'
- 'docs/Doxyfile'
- 'examples/README.md'
- 'examples/pcr/README.md'
- 'examples/attestation/README.md'
- 'examples/boot/README.md'
- 'hal/README.md'
- 'hal/tpm_io.h'
- 'wolftpm/tpm2.h'
- 'wolftpm/tpm2_wrap.h'
- 'wolftpm/tpm2_crypto.h'
- 'wolftpm/fwtpm/*.h'
push:
branches: [master]
paths: *doc_paths
workflow_dispatch:

permissions:
contents: read
packages: read

jobs:
build:
runs-on: ubuntu-24.04
timeout-minutes: 60
steps:
- uses: actions/checkout@v4
- name: Select documentation revision
id: documentation
run: echo "sha=$(cat tools/docs-manual/documentation-rev)" >> "$GITHUB_OUTPUT"
- uses: actions/checkout@v4
with:
repository: wolfSSL/documentation
ref: ${{ steps.documentation.outputs.sha }}
path: build/documentation
submodules: recursive
persist-credentials: false
- uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Pull documentation builder
run: |
set -euo pipefail
image_sha=$(sha256sum docker/docs/Dockerfile docker/docs/requirements.txt | sha256sum | cut -c1-16)
image="ghcr.io/wolfssl/wolftpm-docs:sha-$image_sha"
if ! docker pull "$image"; then
docker build --pull -t "$image" docker/docs
fi
echo "DOCS_IMAGE=$image" >> "$GITHUB_ENV"
- name: Build and validate HTML and PDF (English and Japanese)
run: |
tools/check-docs-no-internal-links.sh --selftest
tools/check-docs-no-internal-links.sh
docker run --rm --user "$(id -u):$(id -g)" --env HOME=/tmp \
--mount "type=bind,source=$GITHUB_WORKSPACE,target=/work/wolfTPM" \
--workdir /work/wolfTPM "$DOCS_IMAGE" \
sh -c '
set -e
python3 tools/docs_manual.py build --documentation-root /work/wolfTPM/build/documentation --source-root /work/wolfTPM --target all
test -s build/documentation/wolfTPM/html/index.html
test -s build/documentation/wolfTPM/wolfTPM-Manual.pdf
cp -r build/documentation/wolfTPM/html build/documentation/wolfTPM/html-en
python3 tools/docs_manual.py build --documentation-root /work/wolfTPM/build/documentation --source-root /work/wolfTPM --lang ja --target all
test -s build/documentation/wolfTPM/html/index.html
test -s build/documentation/wolfTPM/wolfTPM-Manual-jp.pdf
cp -r build/documentation/wolfTPM/html build/documentation/wolfTPM/html-ja
'
test -s build/documentation/wolfTPM/wolfTPM-Manual.pdf
test -s build/documentation/wolfTPM/wolfTPM-Manual-jp.pdf
- uses: actions/upload-artifact@v4
with:
name: wolftpm-manual
path: |
build/documentation/wolfTPM/html-en/
build/documentation/wolfTPM/html-ja/
build/documentation/wolfTPM/wolfTPM-Manual.pdf
build/documentation/wolfTPM/wolfTPM-Manual-jp.pdf
if-no-files-found: error
retention-days: 14
42 changes: 42 additions & 0 deletions .github/workflows/publish-docs-image.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Publish documentation image

on:
push:
branches: [master]
paths:
- 'docker/docs/**'
- '.github/workflows/publish-docs-image.yml'
workflow_dispatch:

permissions:
contents: read
packages: write

concurrency:
group: publish-wolftpm-docs-image
cancel-in-progress: false

jobs:
publish:
if: github.repository == 'wolfSSL/wolfTPM'
runs-on: ubuntu-24.04
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
- name: Select image tag
id: image
run: |
image_sha=$(sha256sum docker/docs/Dockerfile docker/docs/requirements.txt | sha256sum | cut -c1-16)
echo "tag=ghcr.io/wolfssl/wolftpm-docs:sha-$image_sha" >> "$GITHUB_OUTPUT"
- uses: docker/setup-buildx-action@v3
- uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- uses: docker/build-push-action@v6
with:
context: docker/docs
file: docker/docs/Dockerfile
push: true
tags: ${{ steps.image.outputs.tag }}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ libtool
Makefile
!/wrapper/rust/Makefile
!/wrapper/rust/wolftpm/Makefile
!/tools/docs-manual/Makefile
wolftpm-config
.dirstamp
*.la
Expand Down
Loading
Loading