intility-bifrost-mkdocs 0.3.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (20) hide show
  1. intility_bifrost_mkdocs-0.3.0/LICENSE +21 -0
  2. intility_bifrost_mkdocs-0.3.0/PKG-INFO +30 -0
  3. intility_bifrost_mkdocs-0.3.0/README.md +90 -0
  4. intility_bifrost_mkdocs-0.3.0/pyproject.toml +78 -0
  5. intility_bifrost_mkdocs-0.3.0/setup.cfg +4 -0
  6. intility_bifrost_mkdocs-0.3.0/src/intility_bifrost_mkdocs/__init__.py +1 -0
  7. intility_bifrost_mkdocs-0.3.0/src/intility_bifrost_mkdocs/overrides/assets/fonts/satoshi-variable-italic.woff2 +0 -0
  8. intility_bifrost_mkdocs-0.3.0/src/intility_bifrost_mkdocs/overrides/assets/fonts/satoshi-variable.woff2 +0 -0
  9. intility_bifrost_mkdocs-0.3.0/src/intility_bifrost_mkdocs/overrides/assets/stylesheets/bifrost.css +1976 -0
  10. intility_bifrost_mkdocs-0.3.0/src/intility_bifrost_mkdocs/overrides/assets/stylesheets/extra.css +1230 -0
  11. intility_bifrost_mkdocs-0.3.0/src/intility_bifrost_mkdocs/overrides/javascripts/mathjax.js +12 -0
  12. intility_bifrost_mkdocs-0.3.0/src/intility_bifrost_mkdocs/overrides/main.html +90 -0
  13. intility_bifrost_mkdocs-0.3.0/src/intility_bifrost_mkdocs/plugin.py +223 -0
  14. intility_bifrost_mkdocs-0.3.0/src/intility_bifrost_mkdocs.egg-info/PKG-INFO +30 -0
  15. intility_bifrost_mkdocs-0.3.0/src/intility_bifrost_mkdocs.egg-info/SOURCES.txt +18 -0
  16. intility_bifrost_mkdocs-0.3.0/src/intility_bifrost_mkdocs.egg-info/dependency_links.txt +1 -0
  17. intility_bifrost_mkdocs-0.3.0/src/intility_bifrost_mkdocs.egg-info/entry_points.txt +2 -0
  18. intility_bifrost_mkdocs-0.3.0/src/intility_bifrost_mkdocs.egg-info/requires.txt +8 -0
  19. intility_bifrost_mkdocs-0.3.0/src/intility_bifrost_mkdocs.egg-info/top_level.txt +1 -0
  20. intility_bifrost_mkdocs-0.3.0/tests/test_plugin.py +287 -0
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Intility AS
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,30 @@
1
+ Metadata-Version: 2.4
2
+ Name: intility-bifrost-mkdocs
3
+ Version: 0.3.0
4
+ Summary: Intility Bifrost theme plugin for MkDocs Material
5
+ Author-email: Erlend Ellefsen <erlend.ellefsen@intility.no>
6
+ License-Expression: MIT
7
+ Project-URL: Homepage, https://intility.github.io/bifrost-mkdocs
8
+ Project-URL: Documentation, https://intility.github.io/bifrost-mkdocs
9
+ Project-URL: Repository, https://github.com/intility/bifrost-mkdocs
10
+ Project-URL: Issues, https://github.com/intility/bifrost-mkdocs/issues
11
+ Project-URL: Changelog, https://github.com/intility/bifrost-mkdocs/blob/main/CHANGELOG.md
12
+ Keywords: mkdocs,mkdocs-material,mkdocs-plugin,documentation,bifrost,intility,theme
13
+ Classifier: Development Status :: 4 - Beta
14
+ Classifier: Framework :: MkDocs
15
+ Classifier: Programming Language :: Python :: 3
16
+ Classifier: Programming Language :: Python :: 3.10
17
+ Classifier: Programming Language :: Python :: 3.11
18
+ Classifier: Programming Language :: Python :: 3.12
19
+ Classifier: Programming Language :: Python :: 3.13
20
+ Classifier: Programming Language :: Python :: 3.14
21
+ Requires-Python: >=3.10
22
+ License-File: LICENSE
23
+ Requires-Dist: mkdocs>=1.6.1
24
+ Requires-Dist: mkdocs-material<10,>=9.7.0
25
+ Provides-Extra: dev
26
+ Requires-Dist: mkdocs-git-revision-date-localized-plugin>=1.5.0; extra == "dev"
27
+ Requires-Dist: livereload>=2.7.1; extra == "dev"
28
+ Requires-Dist: ruff>=0.15.0; extra == "dev"
29
+ Requires-Dist: pytest>=9.0.0; extra == "dev"
30
+ Dynamic: license-file
@@ -0,0 +1,90 @@
1
+ <h1 align="center">
2
+ <img src="https://avatars.githubusercontent.com/u/35199565" width="124px"/><br/>
3
+ Bifrost MkDocs
4
+ </h1>
5
+
6
+ <p align="center">
7
+ <em>Intility's Bifrost design system as a Material for MkDocs plugin.</em>
8
+ </p>
9
+ <p align="center">
10
+ <a href="https://python.org">
11
+ <img src="https://img.shields.io/badge/python-v3.10+-blue.svg?logo=python&logoColor=white&label=python" alt="Python version">
12
+ </a>
13
+ <a href="https://squidfunk.github.io/mkdocs-material/">
14
+ <img src="https://img.shields.io/badge/mkdocs--material-9.7.0+-blue.svg?logo=materialformkdocs&logoColor=white&label=mkdocs-material" alt="MkDocs Material version">
15
+ </a>
16
+ <a href="https://github.com/intility/bifrost-mkdocs/blob/main/LICENSE">
17
+ <img src="https://img.shields.io/badge/license-MIT-blue.svg" alt="License">
18
+ </a>
19
+ </p>
20
+
21
+ ## Description
22
+
23
+ A pip-installable MkDocs plugin that applies Intility's Bifrost design system to Material for MkDocs. The plugin is batteries-included: colors, typography, component styling, markdown extensions, theme features, and admonition icons are all configured automatically.
24
+
25
+ ## Resources
26
+
27
+ [**Documentation**](https://intility.github.io/bifrost-mkdocs/)
28
+ | [**Template**](https://github.com/intility/bifrost-mkdocs-template)
29
+ | [**MIT License**](https://github.com/intility/bifrost-mkdocs/blob/main/LICENSE)
30
+
31
+ ## Installation
32
+
33
+ ```bash
34
+ uv pip install intility-bifrost-mkdocs
35
+ ```
36
+
37
+ To pin a specific version in your `requirements.txt`:
38
+
39
+ ```
40
+ intility-bifrost-mkdocs==0.2.1
41
+ ```
42
+
43
+ ## Usage
44
+
45
+ Add `intility-bifrost` to your `mkdocs.yml` plugins:
46
+
47
+ ```yaml
48
+ theme:
49
+ name: material
50
+ palette:
51
+ - scheme: light
52
+ primary: &bifrost_theme teal # Options: teal, purple, pink, yellow
53
+ toggle:
54
+ icon: material/brightness-7
55
+ name: Switch to dark mode
56
+ - scheme: dark
57
+ primary: *bifrost_theme
58
+ toggle:
59
+ icon: material/brightness-4
60
+ name: Switch to light mode
61
+
62
+ plugins:
63
+ - intility-bifrost
64
+ - search
65
+ ```
66
+
67
+ ## What it provides
68
+
69
+ Adding `intility-bifrost` to your plugins list gives you:
70
+
71
+ - **Bifrost design system** - Colors, typography, and component styling matching the Intility design system
72
+ - **Light/dark mode** - Automatic theme switching with Bifrost color variables
73
+ - **Theme colors** - teal, purple, pink, yellow (set via `primary` in your palette config)
74
+ - **Typography** - Satoshi for headings, Open Sans for body, JetBrains Mono for code
75
+ - **23 markdown extensions** - Admonitions, code highlighting, tabs, mermaid diagrams, math (MathJax), emoji, task lists, and more
76
+ - **13 theme features** - Instant navigation, search suggestions, code copy buttons, etc.
77
+ - **Admonition icons** - Custom FontAwesome icons for all admonition types
78
+
79
+ All defaults are injected only when the user hasn't provided their own config, so you can override anything by setting it explicitly in your `mkdocs.yml`.
80
+
81
+ ## Local development
82
+
83
+ ```bash
84
+ uv venv .venv
85
+ source .venv/bin/activate
86
+ uv pip install -e ".[dev]"
87
+ mkdocs serve
88
+ ```
89
+
90
+ This installs the plugin in editable mode with dev dependencies (ruff, pytest, livereload, git-revision-date plugin). The demo site at `docs/index.md` uses the plugin directly.
@@ -0,0 +1,78 @@
1
+ [project]
2
+ name = "intility-bifrost-mkdocs"
3
+ version = "0.3.0"
4
+ description = "Intility Bifrost theme plugin for MkDocs Material"
5
+ authors = [
6
+ { name = "Erlend Ellefsen", email = "erlend.ellefsen@intility.no" },
7
+ ]
8
+ keywords = [
9
+ "mkdocs",
10
+ "mkdocs-material",
11
+ "mkdocs-plugin",
12
+ "documentation",
13
+ "bifrost",
14
+ "intility",
15
+ "theme",
16
+ ]
17
+ requires-python = ">=3.10"
18
+ license = "MIT"
19
+ classifiers = [
20
+ "Development Status :: 4 - Beta",
21
+ "Framework :: MkDocs",
22
+ "Programming Language :: Python :: 3",
23
+ "Programming Language :: Python :: 3.10",
24
+ "Programming Language :: Python :: 3.11",
25
+ "Programming Language :: Python :: 3.12",
26
+ "Programming Language :: Python :: 3.13",
27
+ "Programming Language :: Python :: 3.14",
28
+ ]
29
+ dependencies = [
30
+ "mkdocs>=1.6.1",
31
+ "mkdocs-material>=9.7.0,<10",
32
+ ]
33
+
34
+ [project.optional-dependencies]
35
+ dev = [
36
+ "mkdocs-git-revision-date-localized-plugin>=1.5.0",
37
+ "livereload>=2.7.1",
38
+ "ruff>=0.15.0",
39
+ "pytest>=9.0.0",
40
+ ]
41
+
42
+ [project.urls]
43
+ Homepage = "https://intility.github.io/bifrost-mkdocs"
44
+ Documentation = "https://intility.github.io/bifrost-mkdocs"
45
+ Repository = "https://github.com/intility/bifrost-mkdocs"
46
+ Issues = "https://github.com/intility/bifrost-mkdocs/issues"
47
+ Changelog = "https://github.com/intility/bifrost-mkdocs/blob/main/CHANGELOG.md"
48
+
49
+ [project.entry-points."mkdocs.plugins"]
50
+ intility-bifrost = "intility_bifrost_mkdocs.plugin:IntilityBifrostPlugin"
51
+
52
+ [build-system]
53
+ requires = ["setuptools>=75"]
54
+ build-backend = "setuptools.build_meta"
55
+
56
+ [tool.setuptools.packages.find]
57
+ where = ["src"]
58
+
59
+ [tool.setuptools.package-data]
60
+ intility_bifrost_mkdocs = [
61
+ "overrides/**/*.html",
62
+ "overrides/**/*.css",
63
+ "overrides/**/*.woff2",
64
+ "overrides/**/*.js",
65
+ ]
66
+
67
+ [tool.ruff]
68
+ target-version = "py310"
69
+ line-length = 88
70
+
71
+ [tool.ruff.lint]
72
+ select = ["E", "F", "I", "UP", "B", "SIM", "RUF"]
73
+
74
+ [tool.ruff.lint.isort]
75
+ known-first-party = ["intility_bifrost_mkdocs"]
76
+
77
+ [tool.pytest.ini_options]
78
+ testpaths = ["tests"]
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+
@@ -0,0 +1 @@
1
+ """Intility Bifrost theme plugin for MkDocs Material."""