Skip to content
This repository has been archived by the owner on Jul 20, 2023. It is now read-only.

Commit

Permalink
Improve build scripts in CI + bump mkdocs-material to 8.0.0b1
Browse files Browse the repository at this point in the history
Tracking issue on upstream: squidfunk/mkdocs-material#3219

Signed-off-by: Andrei Jiroh Eugenio Halili <ajhalili2006@gmail.com>
  • Loading branch information
ajhalili2006 committed Nov 18, 2021
1 parent 86c8773 commit 176bc00
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
12 changes: 4 additions & 8 deletions .gitlab-ci.yml
Expand Up @@ -19,16 +19,12 @@ stages:
- triage
- deploy

dry-run:siteBuild:
site:dry-run:
image: madebythepinshub/mkdocs-material:latest
stage: dry-run
script:
- pip install --upgrade -r requirements.txt
- mkdocs build -v
artifacts:
paths:
- site
expire_in: 7 days
only:
refs:
- branches
Expand All @@ -37,7 +33,7 @@ dry-run:siteBuild:
- master
- staging

siteBuild:
site:build:
image: madebythepinshub/mkdocs-material:latest
stage: build
script:
Expand All @@ -54,11 +50,11 @@ siteBuild:
refs:
- develop

wordCounter:
word-counter:
image: madebythepinshub/mkdocs-material:latest
stage: dry-run
script:
- find handbook -type f | xargs wc -w
- ./scripts/count-words
allow_failure: true

dry-run:triage-ops:
Expand Down
3 changes: 2 additions & 1 deletion requirements.txt
Expand Up @@ -20,7 +20,8 @@ lunr==0.5.8
Markdown
MarkupSafe
mkdocs
mkdocs-material
# https://github.com/squidfunk/mkdocs-material/issues/3219
mkdocs-material==8.0.0b1
mkdocs-material-extensions
mkdocs-minify-plugin
mkdocs-redirects
Expand Down

0 comments on commit 176bc00

Please sign in to comment.