Repository navigation
47 lines (41 loc) · 1.65 KB
/
Copy pathcheck-docs.yml
File metadata and controls
47 lines (41 loc) · 1.65 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
on:
workflow_call:
permissions:
contents: read
env:
UV_LOCKED: 1
UV_PYTHON_DOWNLOADS_JSON_URL: ${{ github.workspace }}/crates/uv-python-managed/download-metadata.json
jobs:
docs:
timeout-minutes: 10
name: "mkdocs"
runs-on: ${{ github.repository_owner == 'astral-sh' && 'github-ubuntu-24.04-x86_64-4' || 'ubuntu-latest' }}
env:
RUSTC_BOOTSTRAP: "1"
CARGO_UNSTABLE_CHECKSUM_FRESHNESS: "true"
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
fetch-depth: 0
persist-credentials: false
- uses: astral-sh/setup-uv@68559e99cc807c1eb7e9238fd43a15bba460eec2 # v10.3.3
with:
# renovate: datasource=github-release-attachments depName=astral-sh/uv
version: "0.13.6"
checksum: "f29c3e94ffabd7e6f3ba521dba169a9b7ec12100bf3257087f0f24f6123f3645"
- uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
with:
python-version: "3.14"
- name: "Install Rust toolchain"
run: rustup toolchain install --profile minimal
- uses: astral-sh/github-actions/rust-workspace-cache@3c9fe5db47e144ea224b57565e3ab1ab769ef41d
with:
save-if: ${{ github.ref == 'refs/heads/main' }}
- name: "Generate reference documentation"
run: |
cargo --locked dev generate-options-reference
cargo --locked dev generate-cli-reference
cargo --locked dev generate-env-vars-reference
cargo --locked dev generate-preview-features-reference
- name: "Build docs"
run: uv run --only-group docs mkdocs build --strict -f mkdocs.yml