Skip to main content

Support for Juvix Markdown files in MkDocs

Project description

Juvix MkDocs Mkdocs+Juvix CI pages-build-deployment

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

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

Or with juvix-mkdocs (which is a wrapper around poetry run mkdocs serve):

juvix-mkdocs serve

And build the project:

juvix-mkdocs build

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 # assume material theme
  - wikilinks # optional, provides [[wikilink]] support (assume material theme)
  - todo # optional, provides [TODO] support (assume material theme)

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.3.0.tar.gz (1.2 MB 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.3.0-py3-none-any.whl (1.2 MB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mkdocs_juvix_plugin-0.3.0.tar.gz
  • Upload date:
  • Size: 1.2 MB
  • 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.3.0.tar.gz
Algorithm Hash digest
SHA256 55b55807f6f4ce99f6c9a2411a857a16a8a5f69ba9761568b312e59ed2ce0b73
MD5 e81529e181e764b2a5f9378527eeea4f
BLAKE2b-256 09fdf960b563ee3ed8d7607f9c36ec176d715e74ca4a79e554303bf130fd151a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mkdocs_juvix_plugin-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 01883e0600bcd0a1dab54a59a42fbcd7c3c23d3e01c9e45d21380d70807eaa24
MD5 ab20bce67418a968b8dbe964117b426a
BLAKE2b-256 31b99eb02f66d69aae3526791af41fc81352a881d9964d324c331f7b6805b9ff

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