Skip to content

Commit 081639b

Browse files
committed
implement feedback from #20227
1 parent 712de7a commit 081639b

File tree

4 files changed

+382
-153
lines changed

4 files changed

+382
-153
lines changed

.github/workflows/docs-build.yaml

Lines changed: 0 additions & 146 deletions
This file was deleted.

docs/Makefile

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,20 +10,22 @@ build:
1010

1111
.PHONY: setup
1212
setup:
13-
uv sync
14-
uv pip install -e ../shared-data/
15-
uv pip install -e ../api/
16-
uv run playwright install --with-deps chromium
13+
uv sync --python 3.10 --frozen
14+
uv run --python 3.10 playwright install --with-deps chromium
15+
16+
.PHONY: teardown
17+
teardown:
18+
rm -rf .venv
1719

1820
.PHONY: clean
1921
clean:
2022
rm -rf site
2123

2224
.PHONY: serve
2325
serve:
24-
uv run mkdocs serve -f ./mkdocs.yml --livereload
26+
uv run --python 3.10 mkdocs serve -f ./mkdocs.yml --livereload
2527

2628
.PHONY: pdf-flex
2729
pdf-flex:
28-
uv run mkdocs build -f ./flex/mkdocs.yml && \
29-
uv run python flex/export_to_pdf.py flex/site/print_page/index.html site/Opentrons-Flex-Instruction-Manual.pdf 'Opentrons Flex Instruction Manual'
30+
uv run --python 3.10 mkdocs build -f ./flex/mkdocs.yml && \
31+
uv run --python 3.10 python flex/export_to_pdf.py flex/site/print_page/index.html site/Opentrons-Flex-Instruction-Manual.pdf 'Opentrons Flex Instruction Manual'

docs/pyproject.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,11 @@ dependencies = [
1515
"mkdocs-parent-css-plugin",
1616
"mkdocs-print-site-plugin>=2.8",
1717
"playwright>=1.55",
18+
"opentrons",
19+
"opentrons-shared-data",
1820
]
1921

2022
[tool.uv.sources]
2123
mkdocs-parent-css-plugin = { path = "mkdocs-parent-css-plugin", editable = true }
24+
opentrons-shared-data = { path = "../shared-data", editable = true }
25+
opentrons = { path = "../api", editable = true }

0 commit comments

Comments
 (0)