Skip to content

Commit 0725c2b

Browse files
authored
Nrichers/sc 12743/fix quarto docs workflow issue (#1001)
* Remove validmind/ folder and old python-docs.zip file * Change make python-docs to generate the Python API files * Add site/validmind to the .gitignore * Add make python-docs equivalent to workflows * Try RELEASE_NOTES_RO_PAT
1 parent 3fbd2e2 commit 0725c2b

207 files changed

Lines changed: 57 additions & 14594 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/deploy-docs-prod.yaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,13 @@ jobs:
3333
apt_cleanup: "true"
3434
create_reserve_gb: "3"
3535

36+
- name: Check out validmind-library repository
37+
uses: actions/checkout@v4
38+
with:
39+
repository: validmind/validmind-library
40+
path: site/_source/validmind-library
41+
token: ${{ secrets.RELEASE_NOTES_RO_PAT }}
42+
3643
- name: Check out installation repository
3744
uses: actions/checkout@v4
3845
with:
@@ -55,6 +62,15 @@ jobs:
5562
- name: Setup R environment
5663
uses: ./.github/actions/setup-r
5764

65+
- name: Generate Python library docs
66+
run: |
67+
cd site/_source/validmind-library
68+
make install && make quarto-docs
69+
cd ../../
70+
rm -rf validmind
71+
mkdir -p validmind
72+
rsync -av --exclude '_build' --exclude 'templates' _source/validmind-library/docs/ validmind/
73+
5874
- name: Populate installation
5975
run: cp -r site/_source/installation/site/installation site/installation
6076

.github/workflows/deploy-docs-staging.yaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,13 @@ jobs:
3333
apt_cleanup: "true"
3434
create_reserve_gb: "3"
3535

36+
- name: Check out validmind-library repository
37+
uses: actions/checkout@v4
38+
with:
39+
repository: validmind/validmind-library
40+
path: site/_source/validmind-library
41+
token: ${{ secrets.RELEASE_NOTES_RO_PAT }}
42+
3643
- name: Check out installation repository
3744
uses: actions/checkout@v4
3845
with:
@@ -54,6 +61,15 @@ jobs:
5461

5562
- name: Setup R environment
5663
uses: ./.github/actions/setup-r
64+
65+
- name: Generate Python library docs
66+
run: |
67+
cd site/_source/validmind-library
68+
make install && make quarto-docs
69+
cd ../../
70+
rm -rf validmind
71+
mkdir -p validmind
72+
rsync -av --exclude '_build' --exclude 'templates' _source/validmind-library/docs/ validmind/
5773
5874
- name: Populate installation
5975
run: cp -r site/_source/installation/site/installation site/installation

.github/workflows/validate-docs-site.yaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,13 @@ jobs:
2828
apt_cleanup: "true"
2929
create_reserve_gb: "3"
3030

31+
- name: Check out validmind-library repository
32+
uses: actions/checkout@v4
33+
with:
34+
repository: validmind/validmind-library
35+
path: site/_source/validmind-library
36+
token: ${{ secrets.RELEASE_NOTES_RO_PAT }}
37+
3138
- name: Check out installation repository
3239
uses: actions/checkout@v4
3340
with:
@@ -50,6 +57,15 @@ jobs:
5057
- name: Setup R environment
5158
uses: ./.github/actions/setup-r
5259

60+
- name: Generate Python library docs
61+
run: |
62+
cd site/_source/validmind-library
63+
make install && make quarto-docs
64+
cd ../../
65+
rm -rf validmind
66+
mkdir -p validmind
67+
rsync -av --exclude '_build' --exclude 'templates' _source/validmind-library/docs/ validmind/
68+
5369
- name: Populate installation
5470
run: cp -r site/_source/installation/site/installation site/installation
5571

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,6 @@ site/releases/validmind-library
3131

3232
# Generated ConfigMap for Docker profile
3333
site/validmind-docs.yaml
34+
35+
# Python API docs are now generated on the fly
36+
site/validmind

site/Makefile

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -324,12 +324,12 @@ notebooks:
324324

325325
# Make Python library docs & copy them over
326326
python-docs:
327-
@if [ -d "$(SRC_DIR)/docs" ]; then \
328-
echo "\nUpdating Python source ..."; \
329-
rm -rf $(DEST_DIR_PYTHON); \
330-
mkdir -p $(DEST_DIR_PYTHON); \
331-
rsync -av --exclude '_build' --exclude 'templates' $(SRC_DIR)/docs/ $(DEST_DIR_PYTHON)/; \
332-
fi
327+
echo "\nUpdating Python source ...";
328+
@cd _source/validmind-library && make install && make quarto-docs;
329+
@cd ../../;
330+
rm -rf $(DEST_DIR_PYTHON);
331+
mkdir -p $(DEST_DIR_PYTHON);
332+
rsync -av --exclude '_build' --exclude 'templates' $(SRC_DIR)/docs/ $(DEST_DIR_PYTHON)/;
333333

334334
# Release notes target
335335
release-notes:

site/python-docs.zip

-2.6 MB
Binary file not shown.

site/validmind/README.md

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

site/validmind/_metadata.yml

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

0 commit comments

Comments
 (0)