Skip to main content

An enhanced version of mkdocs-user-defined-values. Keywords can now be categorized.

Project description

mkdocs-labeled-user-defined-values

This is a plugin for a MkDocs which allows pages to have user defined input values.

The difference with the original mkdocs-user-defined-values is the capability to categorize keywords.

Setup

Install the plugin using pip:

pip install mkdocs-labeled-user-defined-values

Activate the plugin in mkdocs.yml:

plugins:
  - search
  - user-defined-values:
      input-placeholder: "{{{user-defined-values}}}"
      keywords:
        cat1:
          YOUR_AWS_REGION:
            placeholder: e.g. ap-southeast-2
          YOUR_AWS_ACCOUNT_ID:
            placeholder: e.g. 12355224536
        cat2:
          ANOTHER_KEYWORD:
            label: any label that I want to display
            placeholder: e.g. any placeholder that I want to display

Note: If you have no plugins entry in your config file yet, you'll likely also want to add the search plugin. MkDocs enables it by default if there is no plugins entry set, but now you have to enable it explicitly.

More information about plugins in the MkDocs documentation.

Config

  • keywords - This is a list of keywords which you want to allow a user to modify.
  • input-placeholder - This is a placeholder where you want the plugin to generate the form for user to provide dynamic values for each keyword. Default value is {{{user-defined-values}}}. Please note that appart from keywords and category names (cat1 and cat2 in the above example), most of the parameters are optional.

Usage

  • Provide a list of keywords you want a user to provide dynamically.
  • Place {{{user-defined-values}}} in your page or template where you want to generate the form for user to provide dynamic values.
  • You can replace category names by any name you desire.

See Also

More information about templates here.

More information about blocks here.

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

File details

Details for the file mkdocs_labeled_user_defined_values-1.0.5-py3-none-any.whl.

File metadata

File hashes

Hashes for mkdocs_labeled_user_defined_values-1.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 8591a8b3dfbb3b76c9610b881e2c448c342fc37bcb58e275b51da91612f0b813
MD5 96468586056d9b89f99d8ca44ead1caf
BLAKE2b-256 30b28343faa43bde8f85487b92433450ba77baaddc18672714cf9ee4f75e7589

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page