Skip to main content

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

Installation

  1. Initialize a Poetry project:
poetry init
  1. Add the required dependencies:
poetry add mkdocs-juvix-plugin
  1. 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
│   └── ...

Recall that you can run the development server by running:

poetry run mkdocs serve
  1. Otherwise, just add the plugin to your existing MkDocs 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mkdocs_juvix_plugin-0.2.8.tar.gz (821.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mkdocs_juvix_plugin-0.2.8-py3-none-any.whl (825.4 kB view details)

Uploaded Python 3

File details

Details for the file mkdocs_juvix_plugin-0.2.8.tar.gz.

File metadata

  • Download URL: mkdocs_juvix_plugin-0.2.8.tar.gz
  • Upload date:
  • Size: 821.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.12.7 Darwin/23.5.0

File hashes

Hashes for mkdocs_juvix_plugin-0.2.8.tar.gz
Algorithm Hash digest
SHA256 1f961bcf1cff9a923b40ebd80d1f20b7cb994fefb8570f73f835f8d1191c9eb5
MD5 dd22bd5a7bbf37a2014d6bbbc6ec7367
BLAKE2b-256 0fcc286621609770de3bb7b4603bd66f5042b386fdaa81e024c1f00d5ba97509

See more details on using hashes here.

File details

Details for the file mkdocs_juvix_plugin-0.2.8-py3-none-any.whl.

File metadata

File hashes

Hashes for mkdocs_juvix_plugin-0.2.8-py3-none-any.whl
Algorithm Hash digest
SHA256 bf19f0215c3668c99161e23037b6fcca00669c9465b31bb1e25ce5de1c01f22c
MD5 ed95d0d0f5ba9f8c4e002e0176f38329
BLAKE2b-256 a3122b8eb7d0421a1d287c570dcab8a5032663b36bad8ab1e20fab64d5d00182

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page