Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mkdocs_snakemake_rule_plugin-0.4.1.tar.gz (39.5 kB view details)

Uploaded Source

File details

Details for the file mkdocs_snakemake_rule_plugin-0.4.1.tar.gz.

File metadata

File hashes

Hashes for mkdocs_snakemake_rule_plugin-0.4.1.tar.gz
Algorithm Hash digest
SHA256 76920a1fda12daf00d825e6a9d81095aecbd2c2030f7812eb41e76a3c654333c
MD5 686cc24e1dbd57f769a458dd61699491
BLAKE2b-256 e51ec0bd68cf77170a52bf711aba568494cc21bb1f7251c92b235a5fc3befd45

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