Skip to content

Commit 484b309

Browse files
committed
feat: switch from mkdocs and mkdocs-theme material to properdocs with theme materialx
mkdocs and mkdocs-theme material are no longer supported, properdocs and materialx are drop-in replacements
1 parent 5dfe77c commit 484b309

3 files changed

Lines changed: 12 additions & 10 deletions

File tree

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ repos:
2121
- id: check-toml
2222
- id: check-xml
2323
- id: check-yaml
24-
args: [ '--unsafe' ] # needed for !! tags in mkdocs.yml
24+
args: [ '--unsafe' ] # needed for !! tags in mkdocs.yml / properdocs.yml
2525
- id: end-of-file-fixer
2626
exclude: CHANGELOG.md
2727
- id: mixed-line-ending

mkdocs.yml renamed to properdocs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ nav:
2525
docs_dir: docs
2626
site_dir: site
2727
theme:
28-
name: material
28+
name: materialx
2929
language: en
3030
favicon: assets/images/favicon.svg
3131
icon:

pyproject.toml

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -285,10 +285,10 @@ exclude_lines = [
285285

286286
# Hatch default environment
287287
[tool.hatch.envs.default]
288-
# python = "3.9"
289288
post-install-commands = ["pre-commit install", "pre-commit install --hook-type commit-msg"]
290289
dependencies = [
291290
"pre-commit",
291+
"pre_commit",
292292
"commitizen",
293293
]
294294
# installer = "pip"
@@ -322,12 +322,12 @@ dependencies = [
322322
[tool.hatch.envs.test.scripts]
323323
cov = "pytest --cov-report=term-missing --cov-config=pyproject.toml --cov=src/utils_COMobjects --cov=tests {args}"
324324
no-cov = "cov --no-cov {args}"
325-
debug = "cov --no-cov -s --pdb --pdbcls=IPython.core.debugger:Pdb {args}"
325+
debug = "cov --no-cov -s --pdb --pdbcls=IPython.core.debugger:Pdb {args}"
326326

327327
# Hatch testing environment matrix for various Python versions replacing the functionality of tox
328328
[[tool.hatch.envs.test.matrix]]
329329
template = ["test"]
330-
python = ["3.9", "3.10", "3.11", "3.12", "3.13"]
330+
python = ["3.10", "3.11", "3.12", "3.13", "3.14"]
331331

332332
# Hatch default linting environment for "hatch fmt"
333333
[tool.hatch.envs.hatch-static-analysis]
@@ -370,8 +370,10 @@ all = [
370370
# Hatch environment for building documentation
371371
[tool.hatch.envs.docs]
372372
dependencies = [
373-
"mkdocs~=1.6",
374-
"mkdocs-material[imaging]~=9.4",
373+
"pre-commit", # needed otherwise error
374+
"pre_commit", # needed otherwise error
375+
"properdocs",
376+
"mkdocs-materialx[imaging]",
375377
# Plugins
376378
"mkdocs-include-markdown-plugin",
377379
"mkdocs-gen-files",
@@ -393,10 +395,10 @@ dependencies = [
393395
[tool.hatch.envs.docs.env-vars]
394396
SOURCE_DATE_EPOCH = "1580601600"
395397
PYTHONUNBUFFERED = "1"
396-
MKDOCS_CONFIG = "mkdocs.yml"
398+
MKDOCS_CONFIG = "properdocs.yml"
397399
[tool.hatch.envs.docs.scripts]
398-
build = "mkdocs build --config-file {env:MKDOCS_CONFIG} --clean --strict {args}"
399-
serve = "mkdocs serve --config-file {env:MKDOCS_CONFIG} --dev-addr localhost:8000 {args}"
400+
build = "properdocs build --config-file {env:MKDOCS_CONFIG} --clean --strict {args}"
401+
serve = "properdocs serve --config-file {env:MKDOCS_CONFIG} --dev-addr localhost:8000 {args}"
400402
ci-build = "mike deploy --config-file {env:MKDOCS_CONFIG} --update-aliases {args}"
401403
# --ignore-url=None since the SUMMARY.md file leaves a <toc>None</toc> in sitemap.xml
402404
validate = "linkchecker --config .linkcheckerrc --ignore-url=/reference --ignore-url=None site"

0 commit comments

Comments
 (0)