37f3e8ae2dd444ecdb4acf771f15e8146a2db384
what?
This tiny script allow gitea markup files (aka Readme(s)) to get dynamic values from repository page.
Live example:
user = chacha
repository = GiteaMarkupVariable
branch =
How to use it:
Put the .sh file in an accessible place, like /usr/local/bin, make it executable.
edit gitea app.ini and add thos two sections (replace/adapt if needed):
[markup.markdown]
ENABLED = true
FILE_EXTENSIONS = .md,.markdown
RENDER_COMMAND = /bin/bash /usr/local/bin/pandocRegex.sh markdown
[markup.restructuredtext]
ENABLED = true
FILE_EXTENSIONS = .rst
RENDER_COMMAND = /bin/bash /usr/local/bin/pandocRegex.sh rst
- Restart gitea and Enjoy !
Description
Languages
Shell
100%