Skip to content

Commit

Permalink
Align workflow with docs repo
Browse files Browse the repository at this point in the history
  • Loading branch information
nrosa-valory committed Jan 14, 2025
1 parent 1a1b744 commit 27853bb
Showing 1 changed file with 22 additions and 3 deletions.
25 changes: 22 additions & 3 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,28 @@ jobs:
sudo apt-get update --fix-missing
sudo apt-get autoremove
sudo apt-get autoclean
pip install tomte[tox]==0.2.17
pip install tomte[tox]==0.2.2
pip install poetry
poetry update
poetry install --no-root
sudo npm install -g markdown-spellcheck
- name: Generate Documentation
run: mkdocs build --clean --strict
- name: Check spelling
run: tox -e spell-check

- name: Check doc links
run: tox -e check-doc-links

- name: markdownlint-cli2-action
uses: DavidAnson/[email protected]
with:
globs: /docs/*.md # optional, default is *.{md,markdown}

- name: Generate Documentation
run: |
find . -name "mkdocs.yml" | xargs -L1 sed -i.snrbck "s/materialx.emoji.twemoji/material.extensions.emoji.twemoji/g"
find . -name "mkdocs.yml" | xargs -L1 sed -i.snrbck "s/materialx.emoji.to_svg/material.extensions.emoji.to_svg/g"
find . -name "*.snrbck" | xargs -L1 rm
poetry run pip3 install mkdocs-material==9.4.10 mkdocs-material-extensions==1.3
poetry run pip3 install setuptools
poetry run mkdocs build --clean

0 comments on commit 27853bb

Please sign in to comment.