We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 327f9c2 commit e33e7daCopy full SHA for e33e7da
1 file changed
.github/workflows/generate-docs.yml
@@ -46,10 +46,21 @@ jobs:
46
docfx metadata
47
docfx build
48
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
+
60
- name: Upload artifact
61
uses: actions/upload-pages-artifact@v3
62
with:
- path: '_site'
63
+ path: './docs/_site'
64
65
- name: Deploy to GitHub Pages
66
id: deployment
0 commit comments