Skip to content

Commit e33e7da

Browse files
committed
feat: general improvements and minor bugs
1 parent 327f9c2 commit e33e7da

1 file changed

Lines changed: 12 additions & 1 deletion

File tree

.github/workflows/generate-docs.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,21 @@ jobs:
4646
docfx metadata
4747
docfx build
4848
49+
- name: Generate API toc.yaml
50+
run: |
51+
echo "### YamlMime:TableOfContent" > docs/api/toc.yaml
52+
echo "[" >> docs/api/toc.yaml
53+
find docs/_site/api -maxdepth 1 -type f -name '*.html' | sort | while read file; do
54+
name=$(basename "$file" .html)
55+
echo " { \"name\": \"$name\", \"href\": \"$name.html\" }," >> docs/api/toc.yaml
56+
done
57+
sed -i '$ s/},/}/' docs/api/toc.yaml
58+
echo "]" >> docs/api/toc.yaml
59+
4960
- name: Upload artifact
5061
uses: actions/upload-pages-artifact@v3
5162
with:
52-
path: '_site'
63+
path: './docs/_site'
5364

5465
- name: Deploy to GitHub Pages
5566
id: deployment

0 commit comments

Comments
 (0)