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.2.tar.gz (168.3 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.2-py3-none-any.whl (119.6 kB view details)

Uploaded Python 3

File details

Details for the file mkdoclingo-1.0.2.tar.gz.

File metadata

  • Download URL: mkdoclingo-1.0.2.tar.gz
  • Upload date:
  • Size: 168.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for mkdoclingo-1.0.2.tar.gz
Algorithm Hash digest
SHA256 238eeae0b865e4c77f16da186f0167aff6a49f2e7ebe778ce473120304c70fc4
MD5 237189579d001a2365db58ea8796011c
BLAKE2b-256 9ff18ff89825282d0a324840c61382c71666fd252eb5cd4ca9cd19aececd7a0e

See more details on using hashes here.

Provenance

The following attestation bundles were made for mkdoclingo-1.0.2.tar.gz:

Publisher: deploy.yml on potassco/mkdoclingo

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file mkdoclingo-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: mkdoclingo-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 119.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for mkdoclingo-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 21787393197e0d9e269b33663d2e9e98351991f3163527837be37355564aeb7c
MD5 af07cbd7ef98dfbde66ec62d358521ca
BLAKE2b-256 b3153fb6958320e5dc6caa315e265d045ccdb822296a1334e69fda856f4d34dc

See more details on using hashes here.

Provenance

The following attestation bundles were made for mkdoclingo-1.0.2-py3-none-any.whl:

Publisher: deploy.yml on potassco/mkdoclingo

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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