File tree Expand file tree Collapse file tree 8 files changed +673
-50
lines changed
ci_generator/templates/job_steps Expand file tree Collapse file tree 8 files changed +673
-50
lines changed Original file line number Diff line number Diff line change 99 run: |
1010 mkdir -p docs/api_reference
1111 cp -r target/doc/* docs/api_reference
12- - name: Set up QEMU
13- uses: docker/setup-qemu-action@v3
14- - name: Set up Docker Buildx
15- uses: docker/setup-buildx-action@v3
16- - name: Build and export to Docker
17- uses: docker/build-push-action@v5
18- with:
19- context: docs/
20- load: true
21- tags: pavex-docs
12+ - name: Install uv
13+ uses: astral-sh/setup-uv@v6
14+ - name: Install the project
15+ run: uv sync --locked
2216- name: Build docs
2317 run: |
24- docker run --rm -v ${PWD}:/docs pavex-docs build --strict
18+ uv run mkdocs build --strict
2519- uses: actions/upload-artifact@v4
2620 with:
2721 name: docs
2822 path: site/
2923- name: Fix base
3024 run: |
3125 # Convert all "absolute" guide links in the reference to relative links so that we can scan for dead links
32- sudo find . -type f -exec sed -i "s#https://pavex.dev/docs/#file:///${PWD}/site/#g" {} +
26+ sudo find . -type f -exec sed -i "s#https://pavex.dev/docs/#file:///${PWD}/site/docs/ #g" {} +
3327 sudo find . -type f -exec sed -i "s#https://pavex.dev/#file:///${PWD}/site/#g" {} +
3428- name: Link Checker
3529 uses: lycheeverse/lychee-action@v2
Original file line number Diff line number Diff line change @@ -1717,27 +1717,21 @@ jobs:
17171717 run : |
17181718 mkdir -p docs/api_reference
17191719 cp -r target/doc/* docs/api_reference
1720- - name : Set up QEMU
1721- uses : docker/setup-qemu-action@v3
1722- - name : Set up Docker Buildx
1723- uses : docker/setup-buildx-action@v3
1724- - name : Build and export to Docker
1725- uses : docker/build-push-action@v5
1726- with :
1727- context : docs/
1728- load : true
1729- tags : pavex-docs
1720+ - name : Install uv
1721+ uses : astral-sh/setup-uv@v6
1722+ - name : Install the project
1723+ run : uv sync --locked
17301724 - name : Build docs
17311725 run : |
1732- docker run --rm -v ${PWD}:/docs pavex-docs build --strict
1726+ uv run mkdocs build --strict
17331727 - uses : actions/upload-artifact@v4
17341728 with :
17351729 name : docs
17361730 path : site/
17371731 - name : Fix base
17381732 run : |
17391733 # Convert all "absolute" guide links in the reference to relative links so that we can scan for dead links
1740- sudo find . -type f -exec sed -i "s#https://pavex.dev/docs/#file:///${PWD}/site/#g" {} +
1734+ sudo find . -type f -exec sed -i "s#https://pavex.dev/docs/#file:///${PWD}/site/docs/ #g" {} +
17411735 sudo find . -type f -exec sed -i "s#https://pavex.dev/#file:///${PWD}/site/#g" {} +
17421736 - name : Link Checker
17431737 uses : lycheeverse/lychee-action@v2
Original file line number Diff line number Diff line change 11FROM squidfunk/mkdocs-material:9
22RUN pip install mkdocs-awesome-pages-plugin
3+ RUN pip install mike
34RUN pip install pygments_ansi_color
45RUN pip install "mkdocs-material[imaging]"
56COPY tools/md_slash ${PACKAGES}/md_slash
Original file line number Diff line number Diff line change 11[project ]
2- name = " md-slash "
2+ name = " md_slash "
33version = " 0.1.0"
44readme = " README.md"
55description = " MkDocs extension to convert trailing slashes to <br>"
@@ -8,7 +8,7 @@ requires-python = ">=3.11"
88dependencies = [" Markdown" ]
99
1010[project .entry-points ."markdown .extensions" ]
11- trailing_slash = " md-slash :makeExtension"
11+ trailing_slash = " md_slash :makeExtension"
1212
1313[build-system ]
1414requires = [" hatchling" ]
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 11site_name : Pavex
2- site_url : " https://pavex.dev/"
2+ site_url : " https://pavex.dev/docs/ "
33site_description : " The documentation for Pavex, a framework for building robust APIs in Rust."
44repo_url : " https://github.com/LukeMathWalker/pavex"
55repo_name : " LukeMathWalker/pavex"
66edit_uri : " edit/main/docs/"
77plugins :
88 # - social
99 - search
10+ - mike :
11+ canonical_version : " latest"
1012 - redirects :
1113 redirect_maps :
1214 " index.md " : " overview/index.md"
15+ extra :
16+ version :
17+ provider : " mike"
1318markdown_extensions :
1419 - admonition
1520 - pymdownx.details
Original file line number Diff line number Diff line change 1+ [project ]
2+ name = " pavex"
3+ version = " 0.1.0"
4+ requires-python = " >=3.13"
5+ dependencies = [
6+ " mike>=2.1.3" ,
7+ " mkdocs-awesome-pages-plugin>=2.10.1" ,
8+ " mkdocs-material>=9.6.23" ,
9+ " mkdocs-redirects>=1" ,
10+ " pymdown-extensions>=10" ,
11+ " pygments-ansi-color>=0.3.0" ,
12+ " pip>=25" ,
13+ " md_slash"
14+ ]
15+
16+ [project .entry-points ."markdown .extensions" ]
17+ trailing_slash = " md_slash:makeExtension"
18+
19+ [tool .uv .sources ]
20+ md_slash = { workspace = true }
21+
22+ [tool .uv .workspace ]
23+ members = [" docs/tools/md_slash" ]
You can’t perform that action at this time.
0 commit comments