WikiTricks is a set of tools for working with DokuWiki. It is for now just a simple script to handle the definition of variables to use in a note and the dynamic numbering of Figures.
Features:
- Define variables in a .ini file
- Update variables directly from a python script
- Dynamically number figures
Write your note in a file with the extension example.dokuwiki and use the following syntax to define a variable. You can use variables inside the note using the syntax @variable_name.
Your variables can be defined in a file called example.ini, in the same folder as your note. The values are just plain text.
When you are done with writing, run:
source update.sh example.dokuwikiThis will create a file called example.out with the variables replaced by their values.
Write your note in a file with the extension example.dokuwiki and use the following syntax to define a figure.
^ Figure : Title ^
| yourfigure.png |
the script will replace the Figure by the number of the figure.
When you are done with writing, run:
source update.sh example.dokuwikijust as before.
That is just a simple but handy function to replace the variables in the .ini file directly from your python script or notebook.
