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.3.tar.gz (168.8 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.3-py3-none-any.whl (120.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mkdoclingo-1.0.3.tar.gz
  • Upload date:
  • Size: 168.8 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.3.tar.gz
Algorithm Hash digest
SHA256 7d74e4556c84c7cb8845dd36015dfdcaed86fcfc6278ede9a8d5188577b4c45b
MD5 c4fb432c745c1f96bdc7600382aee499
BLAKE2b-256 dde99c0be53b5963021b6be604f45223878104a00154fa8447db34eaf531ea09

See more details on using hashes here.

Provenance

The following attestation bundles were made for mkdoclingo-1.0.3.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.3-py3-none-any.whl.

File metadata

  • Download URL: mkdoclingo-1.0.3-py3-none-any.whl
  • Upload date:
  • Size: 120.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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 66c0c7a35dac54db37111a059512ee92ab2b2c75eb9370e331914ea78b2530fe
MD5 5f84266fe9f0d15886e11e9bcff5e5f2
BLAKE2b-256 727e37957baa708c7ae32c9a884751ce1e2f751f01bdeb37b3d789eb2803b3da

See more details on using hashes here.

Provenance

The following attestation bundles were made for mkdoclingo-1.0.3-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