Skip to content

Commit e8eeda6

Browse files
authored
Merge pull request #13 from OpenPathfinder/feat/add-visionBoard-docs
2 parents 989a830 + c9dede6 commit e8eeda6

File tree

3 files changed

+11
-27
lines changed

3 files changed

+11
-27
lines changed

.github/workflows/sync_data.yml

Lines changed: 8 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
git fetch origin chore/update-content || true
3939
git checkout chore/update-content || git checkout -b chore/update-content
4040
41-
- name: Clone visionBoard and import checks
41+
- name: Clone visionBoard and run imports
4242
run: |
4343
git clone https://github.com/OpenPathfinder/visionBoard.git temp-visionBoard
4444
cd temp-visionBoard
@@ -47,6 +47,10 @@ jobs:
4747
mkdir -p output
4848
npm run db:export-checks
4949
cp output/checks.json ../data/checks.json
50+
npm run export-policies
51+
cp output/policies.json ../data/policies.json
52+
npm run export-checklists
53+
cp output/checklists.json ../data/checklists.json
5054
cd ..
5155
rm -rf temp-visionBoard
5256
env:
@@ -60,41 +64,19 @@ jobs:
6064
git status
6165
git diff
6266
63-
- name: Commit Updated Checks
64-
run: |
65-
git config user.name "GitHub Actions"
66-
git config user.email "[email protected]"
67-
git add -A
68-
git diff --cached --quiet || git commit -m "chore: sync with visionBoard Checks"
69-
70-
- name: Clone fortSphere and import policies
71-
run: |
72-
git clone https://github.com/OpenPathfinder/fortSphere.git temp-fortSphere
73-
cd temp-fortSphere
74-
npm install
75-
mkdir -p output
76-
npm run export-policies
77-
cp output/policies.json ../data/policies.json
78-
cd ..
79-
rm -rf temp-fortSphere
80-
81-
- name: Debug Git Changes
82-
run: |
83-
git status
84-
git diff
85-
86-
- name: Commit Updated Policies
67+
- name: Commit Updated data imported from visionBoard
8768
run: |
8869
git config user.name "GitHub Actions"
8970
git config user.email "[email protected]"
9071
git add -A
91-
git diff --cached --quiet || git commit -m "chore: sync with fortSphere Policies"
72+
git diff --cached --quiet || git commit -m "chore: sync with visionBoard checks, policies and checklists"
9273
9374
- name: Install Dependencies and update dynamic content
9475
run: |
9576
npm install
9677
npm run populate-checks
9778
npm run populate-policies
79+
npm run populate-checklists
9880
9981
- name: Debug Git Changes
10082
run: |

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@
1313
"write-translations": "docusaurus write-translations",
1414
"write-heading-ids": "docusaurus write-heading-ids",
1515
"populate-checks": "node scripts/populate-checks.js",
16-
"populate-policies": "node scripts/populate-policies.js"
16+
"populate-policies": "node scripts/populate-policies.js",
17+
"populate-checklists": "node scripts/populate-checklists.js"
1718
},
1819
"dependencies": {
1920
"@docusaurus/core": "3.6.3",

scripts/populate-checklists.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
console.log('Not yet implemented. Skipping...');

0 commit comments

Comments
 (0)