Skip to main content

Mkdocs plugin to generate documentation from clingo files

Project description

mkdoclingo

Installation

To install the project, run

pip install .

Usage

Run the following for basic usage information:

mkdoclingo -h

To generate and open the documentation, run

nox -s doc -- serve

Instructions to install and use nox can be found in DEVELOPMENT.md

How to use the Handler

  1. Add this project to your dependencies

  2. Add handler to mkdocs.yml

    plugins:
    - mkdocstrings:
        handlers:
            asp:
            paths: [encodings]
    
  3. You may now use mkdocstrings identifiers like so:

    ::: some/path/to/encoding.lp
        handler: asp
    

Options

The output is customizable via options.

For example:

::: some/path/to/encoding.lp
    handler: asp
    options:
        source: true

shows the source code of the corresponding encoding.

Currently available options

  • source: Source code of the encoding
  • dependency_graph: Predicate dependency graph of the encoding
  • glossary: Sorted information about predicates

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

mkdoclingo-1.0.1.dev0.tar.gz (169.1 kB view details)

Uploaded Source

Built Distribution

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

mkdoclingo-1.0.1.dev0-py3-none-any.whl (119.7 kB view details)

Uploaded Python 3

File details

Details for the file mkdoclingo-1.0.1.dev0.tar.gz.

File metadata

  • Download URL: mkdoclingo-1.0.1.dev0.tar.gz
  • Upload date:
  • Size: 169.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.0

File hashes

Hashes for mkdoclingo-1.0.1.dev0.tar.gz
Algorithm Hash digest
SHA256 d68f84673018b4ff36b2c0d8e74c53366b22bc0a053b7f92fabca54283887a98
MD5 5f6025effdf7f1100eafe8e5feeb48f2
BLAKE2b-256 bfef1ef1eeb98a60c58d28d88ae84ebbbb75ad4b2c32af217b69c1181d845e1e

See more details on using hashes here.

File details

Details for the file mkdoclingo-1.0.1.dev0-py3-none-any.whl.

File metadata

File hashes

Hashes for mkdoclingo-1.0.1.dev0-py3-none-any.whl
Algorithm Hash digest
SHA256 63443deb27fa111379a417259fb0c5f38594d1da8650098273e03b6fef9c6696
MD5 7d1316f1436d096960d99d94babb654e
BLAKE2b-256 ad3f9231cabd324dbe949bac9a63fbefe91dc81da8f20e482a8ed76624eadf47

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