Skip to content

idea: variable replacement #4

@thomasleveil

Description

@thomasleveil

neat tool! It really ease the generation of documentation on my project ; however, I'm missing one feature: injecting somewhat my project current commit hash (or tag) into the document.

To work around this my current workflow is:

  • call git describe --tags to obtain a description of the current commit
  • call sed on my markdown files to replace {{version}} with the description of the current commit
  • call mdtogh
  • revert the markdown files

It would be nice to let mdtogh handle such replacements. Maybe by introducing a command line option:

mdtogh --replace {{version}} v1.2.3 some_file.md

I'd like your view on such a feature before producing any code

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions