A Twincat handler for mkdocstrings that uses pytwincatparser.
Project description
mkdocstrings-twincat
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:
- Clean up previous builds
- Build the package using uv
- Ask if you want to publish the package to PyPI
- Publish the package if you choose to do so
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mkdocstrings_twincat-0.1.0.tar.gz.
File metadata
- Download URL: mkdocstrings_twincat-0.1.0.tar.gz
- Upload date:
- Size: 12.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
60f671ebbe1a669e5b533efb96f2a19c2dc58d97c2648060ff5133099ca82fcc
|
|
| MD5 |
033b809cd17b9e004b7b0cfd16a2e4b9
|
|
| BLAKE2b-256 |
01c3363b2d5bfd25ff7e6c046d3c194a95ce179cc1e1fed67588fcd3441d2c82
|
File details
Details for the file mkdocstrings_twincat-0.1.0-py3-none-any.whl.
File metadata
- Download URL: mkdocstrings_twincat-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
869dbd3c5ede8e65308ea12c55048acf475cf1e0977b8573f63a3ec95140be78
|
|
| MD5 |
3ebfa0ee2c6cf6785b9c1293fc93c824
|
|
| BLAKE2b-256 |
944829da2dc05c74995c686e8667b701e7313e0aa5474dc3426ca7a6bd11545d
|