MkDocs Plugin used to extrace 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
File details
Details for the file mkdocs-snakemake-rule-plugin-0.2.1.tar.gz
.
File metadata
- Download URL: mkdocs-snakemake-rule-plugin-0.2.1.tar.gz
- Upload date:
- Size: 35.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | de952685fe6cf661c9f5390b02a487699f15a5faf84bc4abe452d72b3d20bf61 |
|
MD5 | a43d43de78cd9b0ed7eeeee926fb6096 |
|
BLAKE2b-256 | ea959d31e2d0cdc1ae63d17b30b561a748fa97132b0c980038263d973e46c704 |