Skip to content

Commit

Permalink
Sidebar automation
Browse files Browse the repository at this point in the history
  • Loading branch information
ineshbose committed Nov 13, 2021
1 parent 95d7b27 commit f7163c4
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/deploy-wiki.yml
Expand Up @@ -17,6 +17,18 @@ jobs:
- name: Copy file
run: |
cp docs/index.md docs/Home.md
- name: List Sidebar
run: |
shopt -s extglob
for folder in docs/!(archive|assets|env)/; do
fname="${folder#*/}"
name="${fname^}"
echo "* ${name%?}" >> docs/_Sidebar.md
for file in $folder*; do
echo " * [$(basename $file | sed 's/\.[^.]*$//')]($(basename $file | sed 's/\.[^.]*$//'))" >> docs/_Sidebar.md
done
done
- name: Upload Documentation to Wiki
uses: SwiftDocOrg/github-wiki-publish-action@v1
with:
Expand Down
12 changes: 0 additions & 12 deletions docs/_Sidebar.md
@@ -1,15 +1,3 @@
<h3>🙌 Portion Mate</h3>

* [Home](home)
* Meetings
* [01-10-2021](2021-10-01)
* [08-10-2021](2021-10-08)
* [15-10-2021](2021-10-15)
* [22-10-2021](2021-10-22)
* [29-10-2021](2021-10-29)
* [05-11-2021](2021-11-05)
* [12-11-2021](2021-11-12)
* Specifications
* [Requirements](requirements)
* [Users](users)
* [Wireframes](wireframes)

0 comments on commit f7163c4

Please sign in to comment.