MkDocs Plugin used to extract rule information, to generate code and tables.
Project description
MkDocs Snakemake Rule
MkDocs Plugin used to extract rule information.
Installation
To use this plugin, install it with pip in the same environment as MkDocs:
pip install mkdocs-snakemake-rule-plugin
Config
Then add the following entry to the MkDocs config file:
plugins:
- snakemake-rule:
rule_folders:
- 'workflow/rules'
schemas:
- 'workflow/schemas/rules.schema.yaml'
Tag
format
Format of tags are:
#SNAKEMAKE_RULE_SOURCE__filename__rulename#: for source code extraction#SNAKEMAKE_RULE_TABLE__filename__rulename#: for table generation
Tab parts:
- first section identifies if rule source or table should be created
- filename is where the rule is stored, can be without '.skm'
- rulename is the rule that will be extract
Usage
Add tags to your target file and they will be replaced with rule source or tables
MkDocs Markdown example
# Rule information
## Source
#SNAKEMAKE_RULE_SOURCE__fastp__fastp_pe#
## Parameters
#SNAKEMAKE_RULE_TABLEE__fastp__fastp_pe#
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 mkdocs_snakemake_rule_plugin-1.0.0.tar.gz.
File metadata
- Download URL: mkdocs_snakemake_rule_plugin-1.0.0.tar.gz
- Upload date:
- Size: 20.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ac04a87fbb310c38e1d1167aa7c0f51aecb5646b8daeafac491dca0e3fe5e820
|
|
| MD5 |
b724a900631fe8ffc679e17492c71fac
|
|
| BLAKE2b-256 |
1515c4e128269152b100f6481af5813cc71ae816443b6bdbc48c56f9f95dfe93
|
File details
Details for the file mkdocs_snakemake_rule_plugin-1.0.0-py3-none-any.whl.
File metadata
- Download URL: mkdocs_snakemake_rule_plugin-1.0.0-py3-none-any.whl
- Upload date:
- Size: 18.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
395810a87391a15760dbbe0068ba205c8dbb5d474b8662d3afc8fdb351414930
|
|
| MD5 |
050b4a63e08f08fff276bd787931ecd0
|
|
| BLAKE2b-256 |
3bcffea26ea948e5f95dc255222cce664060b48e7e73f281982c1bc27577bbeb
|