mkdocs-shadcn 0.1.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 (31) hide show
  1. mkdocs_shadcn-0.1.0/.github/workflows/release.yaml +94 -0
  2. mkdocs_shadcn-0.1.0/.gitignore +6 -0
  3. mkdocs_shadcn-0.1.0/LICENSE +21 -0
  4. mkdocs_shadcn-0.1.0/PKG-INFO +18 -0
  5. mkdocs_shadcn-0.1.0/README.md +8 -0
  6. mkdocs_shadcn-0.1.0/pyproject.toml +23 -0
  7. mkdocs_shadcn-0.1.0/shadcn/__init__.py +0 -0
  8. mkdocs_shadcn-0.1.0/shadcn/components/icon.html +9 -0
  9. mkdocs_shadcn-0.1.0/shadcn/components/new.html +2 -0
  10. mkdocs_shadcn-0.1.0/shadcn/components/sidebar_item.html +7 -0
  11. mkdocs_shadcn-0.1.0/shadcn/css/base.css +5604 -0
  12. mkdocs_shadcn-0.1.0/shadcn/css/dracula.css +84 -0
  13. mkdocs_shadcn-0.1.0/shadcn/css/geist.css +9 -0
  14. mkdocs_shadcn-0.1.0/shadcn/css/github-dark.css +86 -0
  15. mkdocs_shadcn-0.1.0/shadcn/css/monokai.css +85 -0
  16. mkdocs_shadcn-0.1.0/shadcn/css/one-dark.css +85 -0
  17. mkdocs_shadcn-0.1.0/shadcn/css/stata-dark.css +85 -0
  18. mkdocs_shadcn-0.1.0/shadcn/fonts/Geist.woff2 +0 -0
  19. mkdocs_shadcn-0.1.0/shadcn/fonts/GeistMono.woff2 +0 -0
  20. mkdocs_shadcn-0.1.0/shadcn/icons/github.svg +5 -0
  21. mkdocs_shadcn-0.1.0/shadcn/icons/gitlab.svg +5 -0
  22. mkdocs_shadcn-0.1.0/shadcn/icons/moon.svg +5 -0
  23. mkdocs_shadcn-0.1.0/shadcn/icons/shadcn.svg +8 -0
  24. mkdocs_shadcn-0.1.0/shadcn/icons/sun.svg +13 -0
  25. mkdocs_shadcn-0.1.0/shadcn/main.html +55 -0
  26. mkdocs_shadcn-0.1.0/shadcn/mkdocs_theme.yml +2 -0
  27. mkdocs_shadcn-0.1.0/shadcn/templates/header.html +38 -0
  28. mkdocs_shadcn-0.1.0/shadcn/templates/page.html +12 -0
  29. mkdocs_shadcn-0.1.0/shadcn/templates/sidebar.html +22 -0
  30. mkdocs_shadcn-0.1.0/shadcn/templates/toc.html +27 -0
  31. mkdocs_shadcn-0.1.0/uv.lock +274 -0
@@ -0,0 +1,94 @@
1
+ on:
2
+ workflow_dispatch:
3
+ push:
4
+ # Pattern matched against refs/tags
5
+ tags:
6
+ - "*" # Push events to every tag not containing /
7
+
8
+ name: Publish mkdocs-shadcn to PyPI
9
+
10
+ jobs:
11
+ build:
12
+ name: Build package
13
+ runs-on: ubuntu-latest
14
+
15
+ steps:
16
+ - uses: actions/checkout@v4
17
+ with:
18
+ persist-credentials: false
19
+ - name: Install uv
20
+ uses: astral-sh/setup-uv@v5
21
+ - name: "Set up Python"
22
+ uses: actions/setup-python@v5
23
+ with:
24
+ python-version-file: "pyproject.toml"
25
+ - name: Build a binary wheel and a source tarball
26
+ run: uv build
27
+ - name: Store the distribution packages
28
+ uses: actions/upload-artifact@v4
29
+ with:
30
+ name: mkdocs-shadcn
31
+ path: dist/
32
+
33
+ publish:
34
+ name: Publish to PyPI
35
+ needs:
36
+ - build
37
+ runs-on: ubuntu-latest
38
+ environment:
39
+ name: pypi
40
+ url: https://pypi.org/p/mkdocs-shadcn # Replace <package-name> with your PyPI project name
41
+ permissions:
42
+ id-token: write # IMPORTANT: mandatory for trusted publishing
43
+
44
+ steps:
45
+ - name: Download artifacts
46
+ uses: actions/download-artifact@v4
47
+ with:
48
+ name: mkdocs-shadcn
49
+ path: dist/
50
+ - name: Publish to PyPI
51
+ uses: pypa/gh-action-pypi-publish@release/v1
52
+
53
+ release:
54
+ name: >-
55
+ Sign the Python 🐍 distribution 📦 with Sigstore
56
+ and upload them to GitHub Release
57
+ needs:
58
+ - publish
59
+ runs-on: ubuntu-latest
60
+
61
+ permissions:
62
+ contents: write # IMPORTANT: mandatory for making GitHub Releases
63
+ id-token: write # IMPORTANT: mandatory for sigstore
64
+
65
+ steps:
66
+ - name: Download artifacts
67
+ uses: actions/download-artifact@v4
68
+ with:
69
+ name: mkdocs-shadcn
70
+ path: dist/
71
+ - name: Sign the dists with Sigstore
72
+ uses: sigstore/gh-action-sigstore-python@v3.0.0
73
+ with:
74
+ inputs: >-
75
+ ./dist/*.tar.gz
76
+ ./dist/*.whl
77
+ - name: Create GitHub Release
78
+ env:
79
+ GITHUB_TOKEN: ${{ github.token }}
80
+ run: >-
81
+ gh release create
82
+ "$GITHUB_REF_NAME"
83
+ --repo "$GITHUB_REPOSITORY"
84
+ --notes ""
85
+ - name: Upload artifact signatures to GitHub Release
86
+ env:
87
+ GITHUB_TOKEN: ${{ github.token }}
88
+ # Upload to GitHub Release using the `gh` CLI.
89
+ # `dist/` contains the built packages, and the
90
+ # sigstore-produced signatures and certificates.
91
+ run: >-
92
+ gh release upload
93
+ "$GITHUB_REF_NAME" dist/**
94
+ --repo "$GITHUB_REPOSITORY"
@@ -0,0 +1,6 @@
1
+ dev
2
+ yarn.lock
3
+ node_modules
4
+ dist
5
+ .venv
6
+ __pycache__
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 asiffer
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,18 @@
1
+ Metadata-Version: 2.4
2
+ Name: mkdocs-shadcn
3
+ Version: 0.1.0
4
+ Summary: Documentation that also shines
5
+ Author-email: Alban Siffer <31479857+asiffer@users.noreply.github.com>
6
+ License-File: LICENSE
7
+ Requires-Python: >=3.13
8
+ Requires-Dist: mkdocs>=1.6.1
9
+ Description-Content-Type: text/markdown
10
+
11
+ # mkdocs-shadcn
12
+
13
+ shadcn theme for MkDocs
14
+
15
+
16
+ > [!IMPORTANT]
17
+ > This is an unofficial port of shadcn/ui to MkDocs, and is not affiliated with [@shadcn](https://twitter.com/shadcn).
18
+
@@ -0,0 +1,8 @@
1
+ # mkdocs-shadcn
2
+
3
+ shadcn theme for MkDocs
4
+
5
+
6
+ > [!IMPORTANT]
7
+ > This is an unofficial port of shadcn/ui to MkDocs, and is not affiliated with [@shadcn](https://twitter.com/shadcn).
8
+
@@ -0,0 +1,23 @@
1
+ [project]
2
+ name = "mkdocs-shadcn"
3
+ version = "0.1.0"
4
+ description = "Documentation that also shines"
5
+ authors = [
6
+ { name = "Alban Siffer", email = "31479857+asiffer@users.noreply.github.com" },
7
+ ]
8
+ readme = "README.md"
9
+ requires-python = ">=3.13"
10
+ dependencies = ["mkdocs>=1.6.1"]
11
+
12
+ [dependency-groups]
13
+ dev = ["pygments>=2.19.1", "pymdown-extensions>=10.14.2"]
14
+
15
+ [project.entry-points."mkdocs.themes"]
16
+ shadcn = "shadcn"
17
+
18
+ [build-system]
19
+ requires = ["hatchling"]
20
+ build-backend = "hatchling.build"
21
+
22
+ [tool.hatch.build.targets.wheel]
23
+ packages = ["shadcn"]
File without changes
@@ -0,0 +1,9 @@
1
+ {% if config.theme.icon %}
2
+ {% if config.theme.icon.startswith("http") %}
3
+ <img class="h-6 w-6" src="{{ config.theme.icon }}">
4
+ {% else %}
5
+ <iconify-icon icon="{{ config.theme.icon }}" noobserver></iconify-icon>
6
+ {% endif %}
7
+ {% else %}
8
+ {% include "icons/shadcn.svg" %}
9
+ {% endif %}
@@ -0,0 +1,2 @@
1
+ <span
2
+ class="ml-2 rounded-md bg-[#adfa1d] px-1.5 py-0.5 text-xs leading-none text-[#000000] no-underline group-hover:no-underline">New</span>
@@ -0,0 +1,7 @@
1
+ <a href="{{ sidebar_item.url | url }}" {% if sidebar_item.active %}data-active {% endif %}
2
+ class="text-sm flex h-8 w-full items-center rounded-lg px-2 text-foreground underline-offset-2 font-normal hover:bg-accent hover:text-accent-foreground data-active:bg-accent data-active:font-medium data-active:text-accent-foreground">
3
+ {{ sidebar_item.title }}
4
+ {% if sidebar_item.meta.new %}
5
+ {% include "components/new.html" %}
6
+ {% endif %}
7
+ </a>