Skip to content

Variable preprocessor #760

Open
Open
@rivertam

Description

@rivertam

During a discussion for the Amethyst book, we realized we wanted a way to put in doc badges dynamically dependent on the current building version of the Amethyst library.

Is there a way to read from some sort of global key value store (such as environment variables or the configuration) while rendering the markdown? I believe a preprocessor could accomplish this task. Something like

[![develop docs](https://img.shields.io/badge/docs-develop-blue.svg)](#[docsRoot]/amethyst/ecs/prelude/trait.Component.html) [![master docs](https://img.shields.io/badge/docs-master-blue.svg)](#[docsRoot]/amethyst/ecs/prelude/trait.Component.html)

(the idea being #[variableName] would be the way to access a variable -- probably a terrible particular example)

If there is such a way to do this, I don't think it's documented.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions