File tree Expand file tree Collapse file tree 3 files changed +26
-36
lines changed Expand file tree Collapse file tree 3 files changed +26
-36
lines changed Original file line number Diff line number Diff 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 :
Original file line number Diff line number Diff line change @@ -97,9 +97,25 @@ lint: lint-3.8
9797fmt : RUNNER = bash -c
9898fmt : 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
105121version :
@@ -137,14 +153,14 @@ sync-latest-to-s3:
137153sync-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
144160promote-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
150166RSC_API_KEYS =vetiver-testing/rsconnect_api_keys.json
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments