Skip to content

Commit

Permalink
Merge pull request #25 from ineshbose/issue/24-wiki_sidebar_automation
Browse files Browse the repository at this point in the history
Sidebar automation
  • Loading branch information
ineshbose authored Nov 13, 2021
2 parents 95d7b27 + f7163c4 commit 43f8152
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
@@ -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 43f8152

Please sign in to comment.