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 @@ -120,15 +120,16 @@ jobs:
120120 fetch-depth : 0
121121 env :
122122 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
123- - uses : actions/setup-python@v4
123+ - name : Install uv
124+ uses : astral-sh/setup-uv@v6
124125 with :
125- python-version : 3.8.x
126- - run : pip freeze
127- - run : make docs
126+ python-version : 3.12
127+ - name : build docs
128+ run : make docs
128129 - uses : actions/upload-artifact@v4
129130 with :
130131 name : docs
131- path : docs/ site/
132+ path : site/
132133 - uses : aws-actions/configure-aws-credentials@v4
133134 id : creds
134135 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