Support for Juvix Markdown files in MkDocs
Project description
Juvix MkDocs
This is a plugin for MkDocs to build static websites and highlight Juvix
codeblocks using the Juvix Compiler. It also adds a
CLI tool to help you get started with a new project called juvix-mkdocs
.
Features
- Highlight Juvix code blocks in Markdown files
- Support for hidden Juvix code blocks
- Extract statements from Juvix code blocks
- A CLI tool to get started with a new project
Getting Started
Prerequisites
- Python 3.9+
- Poetry
- Juvix Compiler
If you want to create a new MkDocs project
We ship the juvix-mkdocs
CLI tool with a Python wheel, so you can install it
with pip, and later use it to create a new MkDocs project. For example:
pip3 install mkdocs-juvix-plugin
Then, create a new MkDocs project:
juvix-mkdocs new
By default, this command would interactively ask you a few questions. You can
skip the interaction by passing the --no-interactive
flag. If you run this in
the interactive mode, it will create a new MkDocs project in the current
directory where you execute the command, say my-project
. And then, it would
run the development server for you. All in all, you would end up with a project
that has the following structure:
my-project/
├── mkdocs.yml
├── poetry.lock
├── pyproject.toml
├── README.md
├── .gitignore
├── .github/
│ ├── workflows/
│ │ ├── ci.yml
├── docs/
│ ├── index.md
│ └── ...
You can run the development server at any time by running:
poetry run mkdocs serve
If you already have a MkDocs project
If you already have a MkDocs project, add the plugin to your existing project,
check out the fixtures in the mkdocs.yml
file for reference, and the folder
(src/fixtures
) for examples.
# mkdocs.yml
plugins:
- juvix
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
File details
Details for the file mkdocs_juvix_plugin-0.2.9.tar.gz
.
File metadata
- Download URL: mkdocs_juvix_plugin-0.2.9.tar.gz
- Upload date:
- Size: 1.2 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.4 CPython/3.12.7 Darwin/23.5.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f54911eb2851825b06312e9aad900a1803aa1413aff187fb44135e5da0ba6d6f |
|
MD5 | b6c4e7a832d9c5f04dacf827c2f464b9 |
|
BLAKE2b-256 | 652cc88f986b82613d315c98e3da0f44b42901ba90264c246ab943302296566a |
File details
Details for the file mkdocs_juvix_plugin-0.2.9-py3-none-any.whl
.
File metadata
- Download URL: mkdocs_juvix_plugin-0.2.9-py3-none-any.whl
- Upload date:
- Size: 1.2 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.4 CPython/3.12.7 Darwin/23.5.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6ce59692f9b9e1731ac0e1e8e36ed264c2159678d967d6c81a799960e0a575e2 |
|
MD5 | 288005186f79a695335f7b4a5fd502e6 |
|
BLAKE2b-256 | 6cefbc9ff688b03a119bb0912d61943b0d1ba305edf54a703fe082cb3d2f4752 |