Skip to content

Commit

Permalink
Add git-authors plugin
Browse files Browse the repository at this point in the history
Fix CI venv caching

Chore update requirements
  • Loading branch information
kamilkrzyskow committed Feb 13, 2024
1 parent 271c8db commit 18c1fc8
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 5 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/dev.build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ jobs:
# 0 is needed for the update time plugin to work properly
fetch-depth: 0
- name: Install Python
id: install-python
uses: actions/setup-python@v5
with:
python-version: 3.12
Expand All @@ -30,7 +31,7 @@ jobs:
uses: actions/cache@v4
with:
path: venv
key: requirements-${{ hashFiles('requirements*.txt') }}
key: requirements-${{ steps.install-python.outputs.python-version }}-${{ hashFiles('requirements*.txt') }}
- name: Install Uncached Requirements
if: steps.cache-requirements.outputs.cache-hit != 'true'
run: |
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/master.build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ jobs:
# 0 is needed for the update time plugin to work properly
fetch-depth: 0
- name: Install Python
id: install-python
uses: actions/setup-python@v5
with:
python-version: 3.12
Expand All @@ -29,7 +30,7 @@ jobs:
uses: actions/cache@v4
with:
path: venv
key: requirements-${{ hashFiles('requirements*.txt') }}
key: requirements-${{ steps.install-python.outputs.python-version }}-${{ hashFiles('requirements*.txt') }}
- name: Install Uncached Requirements
if: steps.cache-requirements.outputs.cache-hit != 'true'
run: |
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/pull.request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ jobs:
# 0 is needed for the update time plugin to work properly
fetch-depth: 1
- name: Install Python
id: install-python
uses: actions/setup-python@v5
with:
python-version: 3.12
Expand All @@ -29,7 +30,7 @@ jobs:
uses: actions/cache@v4
with:
path: venv
key: requirements-${{ hashFiles('requirements*.txt') }}
key: requirements-${{ steps.install-python.outputs.python-version }}-${{ hashFiles('requirements*.txt') }}
- name: Install Uncached Requirements
if: steps.cache-requirements.outputs.cache-hit != 'true'
run: |
Expand Down
11 changes: 11 additions & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,17 @@ plugins:
- preferences*.md
- genome/index*.md
- zengin/index*.md
- git-authors:
enabled: !ENV [GMC_ENABLE_ON_PUBLISH, False]
show_email_address: false
sort_authors_by: contribution
authorship_threshold_percent: 8
count_empty_lines: false
exclude:
- index*.md
- preferences*.md
- genome/index*.md
- zengin/index*.md
- redirects:
# Empty dict to fill with the `meta_redirects.py` hook.
redirect_maps: {}
Expand Down
4 changes: 2 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# Core Requirements
mkdocs-material==9.5.8
mkdocs-material==9.5.9
mkdocs-git-revision-date-localized-plugin==1.2.1
mkdocs-video==1.5.0
mkdocs-redirects==1.2.1
mkdocs-minify-plugin==0.7.1
mkdocs-static-i18n==1.2.0
git+https://github.com/kamilkrzyskow/gothic-lexer.git@b5ee7868a7e7397cd129ff1f847daa7d39c0e416#egg=gothic_lexer
mkdocs-awesome-pages-plugin==2.9.2

mkdocs-git-authors-plugin==0.7.2

0 comments on commit 18c1fc8

Please sign in to comment.