Skip to content

Commit

Permalink
github action to update options on wiki
Browse files Browse the repository at this point in the history
  • Loading branch information
sumpfork committed Aug 26, 2023
1 parent ca4bd75 commit d79d0ea
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 2 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/update_wiki.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Update wiki
on:
push:
branches: [master]
paths:
- wiki/
- .github/workflows/update_wiki.yml
concurrency:
group: update_wiki
cancel-in-progress: true
permissions:
contents: write
jobs:
publish-wiki:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: 3.8
- name: Install dominion-dividers
run: |
pip install -r requirements.txt
pip install .
- name: Generate Options Doc
shell: bash
run: |
cd wiki
echo '```' > Documentation-(Script-Options)
dominion_dividers --help >> Documentation-(Script-Options)
echo '```' >> Documentation-(Script-Options)
- uses: Andrew-Chen-Wang/github-wiki-action@v4
2 changes: 1 addition & 1 deletion src/domdiv/draw.py
Original file line number Diff line number Diff line change
Expand Up @@ -691,7 +691,7 @@ def drawInfo(self, printIt=True):
text += "</b></font></para>\n"
text += blank_line
text += "Online generator at: "
text += "<a href='http://domtabs.sandflea.org/' color='blue'>http://domtabs.sandflea.org</a>\n\n"
text += "<a href='http://domdiv.bgtools.net/' color='blue'>http://domdiv.bgtools.net</a>\n\n"
text += "Source code on GitHub at: "
text += "<a href='https:/sumpfork/dominiontabs' color='blue'>"
text += "https:/sumpfork/dominiontabs</a>\n\n"
Expand Down
2 changes: 1 addition & 1 deletion src/domdiv/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ def parse_opts(cmdline_args=None):
formatter_class=configargparse.ArgumentDefaultsHelpFormatter,
description="Generate Dominion Dividers",
epilog="Source can be found at 'https:/sumpfork/dominiontabs'. "
"An online version can be found at 'http://domtabs.sandflea.org/'. ",
"An online version can be found at 'http://domdiv.bgtools.net/'. ",
)

# Basic Divider Information
Expand Down

0 comments on commit d79d0ea

Please sign in to comment.