Skip to content

Commit bc01198

Browse files
committed
uv docs
1 parent 1975874 commit bc01198

File tree

3 files changed

+26
-36
lines changed

3 files changed

+26
-36
lines changed

.github/workflows/main.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -119,15 +119,16 @@ jobs:
119119
fetch-depth: 0
120120
env:
121121
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
122-
- uses: actions/setup-python@v4
122+
- name: Install uv
123+
uses: astral-sh/setup-uv@v6
123124
with:
124-
python-version: 3.8.x
125-
- run: pip freeze
126-
- run: make docs
125+
python-version: 3.12
126+
- name: build docs
127+
run: make docs
127128
- uses: actions/upload-artifact@v4
128129
with:
129130
name: docs
130-
path: docs/site/
131+
path: site/
131132
- uses: aws-actions/configure-aws-credentials@v4
132133
id: creds
133134
with:

Makefile

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -97,9 +97,25 @@ lint: lint-3.8
9797
fmt: RUNNER = bash -c
9898
fmt: fmt-3.8
9999

100+
# Documentation targets
100101
.PHONY: docs
101-
docs:
102-
$(MAKE) -C docs VERSION=$(VERSION)
102+
docs: docs-clean docs-build
103+
104+
.PHONY: docs-clean
105+
docs-clean:
106+
rm -rf site
107+
108+
.PHONY: docs-build
109+
docs-build:
110+
uv venv
111+
uv pip install ".[docs]"
112+
uv run mkdocs build
113+
114+
.PHONY: docs-serve
115+
docs-serve:
116+
uv venv
117+
uv pip install -e ".[docs]"
118+
uv run mkdocs serve
103119

104120
.PHONY: version
105121
version:
@@ -137,14 +153,14 @@ sync-latest-to-s3:
137153
sync-latest-docs-to-s3:
138154
aws s3 sync --acl bucket-owner-full-control \
139155
--cache-control max-age=0 \
140-
docs/site/ \
156+
site/ \
141157
$(S3_PREFIX)/latest/docs/
142158

143159
.PHONY: promote-docs-in-s3
144160
promote-docs-in-s3:
145161
aws s3 sync --delete --acl bucket-owner-full-control \
146162
--cache-control max-age=300 \
147-
docs/site/ \
163+
site/ \
148164
s3://docs.rstudio.com/rsconnect-python/
149165

150166
RSC_API_KEYS=vetiver-testing/rsconnect_api_keys.json

docs/Makefile

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

0 commit comments

Comments
 (0)