Skip to main content

A Twincat handler for mkdocstrings that uses pytwincatparser.

Project description

mkdocstrings-twincat

documentation pypi version

A Twincat handler for mkdocstrings that uses pytwincatparser to parse TwinCAT PLC files.

Installation

pip install mkdocstrings-twincat

Usage

To use this handler, you need to configure it in your mkdocs.yml file:

plugins:
  - mkdocstrings:
      handlers:
        twincat:
          options:
            extra:
              search_path: path/to/your/twincat/files

Then, in your Markdown files, you can use the ::: twincat directive to include documentation for TwinCAT objects:

::: twincat:FB_Example

This will include documentation for the FB_Example POU. You can also document methods and properties:

::: twincat:FB_Example.Method1

Requirements

This handler requires the pytwincatparser package, which is automatically installed as a dependency.

Development

Building and Publishing

This project uses uv for building and publishing. To build and publish the package, you can use one of the provided scripts:

Windows

.\build_uv.ps1

Python Script

python build_uv.py

These scripts will:

  1. Clean up previous builds
  2. Build the package using uv
  3. Ask if you want to publish the package to PyPI
  4. Publish the package if you choose to do so

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

mkdocstrings_twincat-0.1.0.tar.gz (12.5 kB view details)

Uploaded Source

Built Distribution

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

mkdocstrings_twincat-0.1.0-py3-none-any.whl (3.1 kB view details)

Uploaded Python 3

File details

Details for the file mkdocstrings_twincat-0.1.0.tar.gz.

File metadata

File hashes

Hashes for mkdocstrings_twincat-0.1.0.tar.gz
Algorithm Hash digest
SHA256 60f671ebbe1a669e5b533efb96f2a19c2dc58d97c2648060ff5133099ca82fcc
MD5 033b809cd17b9e004b7b0cfd16a2e4b9
BLAKE2b-256 01c3363b2d5bfd25ff7e6c046d3c194a95ce179cc1e1fed67588fcd3441d2c82

See more details on using hashes here.

File details

Details for the file mkdocstrings_twincat-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for mkdocstrings_twincat-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 869dbd3c5ede8e65308ea12c55048acf475cf1e0977b8573f63a3ec95140be78
MD5 3ebfa0ee2c6cf6785b9c1293fc93c824
BLAKE2b-256 944829da2dc05c74995c686e8667b701e7313e0aa5474dc3426ca7a6bd11545d

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