Ensure cog runs against docs/*.md as well

This commit is contained in:
Simon Willison 2023-09-03 07:37:59 -07:00
parent b7e6c1675b
commit 3224f82cff
2 changed files with 2 additions and 2 deletions

View file

@ -31,7 +31,7 @@ jobs:
run: |
cog --check \
-p "import sys, os; sys._called_from_test=True; os.environ['LLM_USER_PATH'] = '/tmp'" \
docs/**/*.md
docs/**/*.md docs/*.md
- name: Run Black
run: |
black --check .

View file

@ -25,7 +25,7 @@
# Rebuild docs with cog
@cog:
pipenv run cog -r -p "import sys, os; sys._called_from_test=True; os.environ['LLM_USER_PATH'] = '/tmp'" docs/**/*.md
pipenv run cog -r -p "import sys, os; sys._called_from_test=True; os.environ['LLM_USER_PATH'] = '/tmp'" docs/**/*.md docs/*.md
# Serve live docs on localhost:8000
@docs: cog