Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

idea: variable replacement #4

Open
thomasleveil opened this issue Feb 22, 2016 · 1 comment
Open

idea: variable replacement #4

thomasleveil opened this issue Feb 22, 2016 · 1 comment

Comments

@thomasleveil
Copy link

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

thomasleveil pushed a commit to thomasleveil/mdtogh that referenced this issue Feb 22, 2016
to do replacements on generated html.

See marchtea#4
@marchtea
Copy link
Owner

Nice feature. I'd take this into my feature list.

thomasleveil pushed a commit to thomasleveil/mdtogh that referenced this issue May 9, 2016
to do replacements on generated html.

See marchtea#4
thomasleveil pushed a commit to thomasleveil/mdtogh that referenced this issue May 9, 2016
to do replacements on generated html.

See marchtea#4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants