Skip to content

Commit

Permalink
docs: auto update dev docs & minify files
Browse files Browse the repository at this point in the history
  • Loading branch information
percevalw committed Sep 15, 2023
1 parent 987edb9 commit 9344042
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 4 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@ name: Documentation

on:
push:
branches: [master]
branches: [master, dev]

env:
BRANCH_NAME: ${{ github.head_ref || github.ref_name }}

jobs:
Documentation:
Expand All @@ -21,5 +24,5 @@ jobs:
- name: Build documentation
run: |
git fetch origin gh-pages
mike delete master
mike deploy --push master
mike delete $BRANCH_NAME
mike deploy --push $BRANCH_NAME
2 changes: 1 addition & 1 deletion docs/index.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Getting started
# Getting started okokok

EDS-NLP provides a set of spaCy components that are used to extract information from clinical notes written in French.

Expand Down
7 changes: 7 additions & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,13 @@ hooks:

plugins:
- search
- minify:
minify_html: true
minify_js: true
minify_css: true
htmlmin_opts:
remove_comments: true
cache_safe: true
- autorefs:
priority:
- .*
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ dev = [
"mkdocs~=1.5.2",
"mkdocstrings~=0.20",
"mkdocstrings-python~=1.1",
"mkdocs-minify-plugin",
"pybtex~=0.24.0",
"pathspec>=0.11.1", # required by vendored mkdocs-autorefs PR
"astunparse",
Expand Down

0 comments on commit 9344042

Please sign in to comment.