MDWiki Cartographer
About
Creates an image of a directed graph representing the structure of a markdown wiki. The program makes certain assumptions about the markdown wiki, including:
- All files in the wiki are in one directory
- All files are .md files
- All links are in the markdown style, e.g.
[File description here](file_name_here)
Quick demo
Make sure you have the graphviz package installed first.
To see the program at work without creating your own wiki, just cd
into the root of the repository and run ./cartographer ./testwiki/ index map.dot
. This will generate an svg graph of testwiki
. Now open map.dot.svg
in a web browser.
How to run
- Make sure you have the ‘graphviz’ package installed and that you can successfully run
dot -V
from the command line. - Clone the repository and cd into the directory
- Make
cartographer
executable by runningchmod +x cartographer
- Run
./cartographer "root_dirname" "start_filename" "output_filename"
, where
- root_dirname is the file path to the root directory of the vimwiki of the form “/…/wikiname/”
- start_filename is the name of the file (WITHOUT a file extension) you want the program to start exploring from. You might want this to be ‘index’ if that is your vimwiki home file.
- output_filename is the name of the .dot and .svg files to be outputted
- Finally, open up the resulting .svg file in the browser of your choice.
Related Projects: Provably Packed, Sudokudoka
Notes mentioning this note
There are no notes linking to this note.