Skip to content

Latest commit

 

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WikiTricks

What is WikiTricks?

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

How to use variables?

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.dokuwiki

This will create a file called example.out with the variables replaced by their values.

How to use dynamic numbering of Figures?

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.dokuwiki

just as before.

How to use the python script?

That is just a simple but handy function to replace the variables in the .ini file directly from your python script or notebook.

Example

Here is an example of usage. example

About

Just a silly script to ease the writing of dokuwiki notes..

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages