Skip to content

Commit ee8f26d

Browse files
authored
Add mkdocs documentation build to playground deployment workflow (#39)
* Add mkdocs documentation build to deploy-playground workflow
1 parent b6ec5ea commit ee8f26d

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

.github/workflows/deploy-playground.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,17 @@ jobs:
3535
- name: Build UMD bundle
3636
run: npm run build:umd
3737

38+
- name: Setup Python
39+
uses: actions/setup-python@v5
40+
with:
41+
python-version: '3.x'
42+
43+
- name: Install mkdocs
44+
run: pip install mkdocs-material==9.7.1
45+
46+
- name: Build documentation
47+
run: mkdocs build
48+
3849
- name: Prepare playground files
3950
run: |
4051
mkdir -p _site/dist
@@ -43,6 +54,7 @@ jobs:
4354
cp samples/language-service-sample/examples.js _site/
4455
cp samples/language-service-sample/styles.css _site/
4556
cp dist/bundle.js _site/dist/
57+
cp -r site _site/docs
4658
4759
- name: Setup Pages
4860
uses: actions/configure-pages@v5

0 commit comments

Comments
 (0)