Skip to content

Commit

Permalink
fix pandoc
Browse files Browse the repository at this point in the history
  • Loading branch information
barneydobson committed Nov 6, 2024
1 parent 4a95b02 commit 8d589d9
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 2 deletions.
22 changes: 21 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,24 @@ permissions:
id-token: write

jobs:
test-docs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- uses: actions/setup-python@v5
with:
python-version: "3.11"

- name: Install dependencies
run: |
pip install .[doc]
python -c "import pypandoc; pypandoc.download_pandoc()"

- name: Test Docs
run: mkdocs build

test:
uses: ./.github/workflows/ci_template.yml
secrets:
Expand Down Expand Up @@ -106,7 +124,9 @@ jobs:
python-version: "3.11"

- name: Install dependencies
run: pip install .[doc]
run: |
pip install .[doc]
python -c "import pypandoc; pypandoc.download_pandoc()"

- name: Deploy Docs
run: mkdocs gh-deploy --force
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,6 @@ optional-dependencies.doc = [
"mkdocs-material",
"mkdocs-material-extensions",
"mkdocstrings[python]",
"pandoc",
"pypandoc",
]
urls.Documentation = "https://imperialcollegelondon.github.io/SWMManywhere/"
Expand Down

0 comments on commit 8d589d9

Please sign in to comment.