Documentation that also shines
Project description
[!IMPORTANT]
This is an unofficial port of shadcn/ui to MkDocs, and is not affiliated with @shadcn.
Documentation
Yes, yes, the documentation is built with this theme.
Quick start
mkdocs-shadcn can be installed with pip
pip install mkdocs-shadcn
Add the following line to mkdocs.yml:
theme:
name: shadcn
Extensions
The theme tries to support the built-in extensions along with some pymdownx ones.
-
admonition -
codehilite -
fenced_code -
footnotes -
pymdownx.tabbed -
pymdownx.blocks.details -
pymdownx.blocks.tab -
pymdownx.progressbar -
pymdownx.arithmatex - builtin
shadcn.echarts - builtin
shadcn.iconify - builtin
shadcn.codexec
Plugins
- builtin
excalidraw- With this plugin, you can directly edit your excalidraw scene in dev mode (kind of WYSIWYG) while it is rendered as svg at build time. -
mkdocstrings- a MkDocs plugin for auto-generating API documentation from docstrings. (alpha)
Developers
This project is open to contributions. In general, we need to apply the shadcn/ui style to already existing plugins or extensions.
We recently release the css sources we use to style the theme. It mainly uses tailwindcss.
Setup
First clone the repo:
git clone https://github.com/asiffer/mkdocs-shadcn
cd mkdocs-shadcn
Then you can install python dependencies (uv required):
uv sync --all-extras
Finally, you can install tailwind with your favourite package manager (npm, yarn, bun, etc.):
bun install
Dev mode
We use the project pages to as a test project for this theme. You can run the local server in the pages/ subdirectory.
cd pages/
uv run mkdocs serve --watch-theme -w ..
In parallel, you are likely to run the tailwind watcher to compile the css sources. In the root folder:
bun dev
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mkdocs_shadcn-0.9.8.tar.gz.
File metadata
- Download URL: mkdocs_shadcn-0.9.8.tar.gz
- Upload date:
- Size: 3.1 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
20bebd4ce5ee695596b30e853ce48e03d312deae543cd947a53bd3d263031660
|
|
| MD5 |
eec9e42875f9d2a8b5318b12f6fccf9d
|
|
| BLAKE2b-256 |
052358e1f4687c451e123958ce9d9a07d832e1ab9b20c07a20701615685aac45
|
Provenance
The following attestation bundles were made for mkdocs_shadcn-0.9.8.tar.gz:
Publisher:
release.yaml on asiffer/mkdocs-shadcn
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mkdocs_shadcn-0.9.8.tar.gz -
Subject digest:
20bebd4ce5ee695596b30e853ce48e03d312deae543cd947a53bd3d263031660 - Sigstore transparency entry: 729232143
- Sigstore integration time:
-
Permalink:
asiffer/mkdocs-shadcn@d3bbccc83d84d69dd42e8e9ea56127eb10576aca -
Branch / Tag:
refs/tags/v0.9.8 - Owner: https://github.com/asiffer
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yaml@d3bbccc83d84d69dd42e8e9ea56127eb10576aca -
Trigger Event:
push
-
Statement type:
File details
Details for the file mkdocs_shadcn-0.9.8-py3-none-any.whl.
File metadata
- Download URL: mkdocs_shadcn-0.9.8-py3-none-any.whl
- Upload date:
- Size: 1.4 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2c7a76ecd5a5b7ecb781cabbce3c06f1d70d6794ece7fa388d5579db037dc92b
|
|
| MD5 |
219fc1e3a1274617da1fb01c478df407
|
|
| BLAKE2b-256 |
d4df10068c17b8461c294bfe57a50bae79e3f1f31954007abb3cd3d2ed5a956c
|
Provenance
The following attestation bundles were made for mkdocs_shadcn-0.9.8-py3-none-any.whl:
Publisher:
release.yaml on asiffer/mkdocs-shadcn
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mkdocs_shadcn-0.9.8-py3-none-any.whl -
Subject digest:
2c7a76ecd5a5b7ecb781cabbce3c06f1d70d6794ece7fa388d5579db037dc92b - Sigstore transparency entry: 729232144
- Sigstore integration time:
-
Permalink:
asiffer/mkdocs-shadcn@d3bbccc83d84d69dd42e8e9ea56127eb10576aca -
Branch / Tag:
refs/tags/v0.9.8 - Owner: https://github.com/asiffer
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yaml@d3bbccc83d84d69dd42e8e9ea56127eb10576aca -
Trigger Event:
push
-
Statement type: