Home
Massive Wiki Roadmap Pier2Pier Massive Wiki Builder redesign
wiki link test page Mistletoe parser test page
The Walrus
Search All Pages Recent Changes
This note outlines the steps taken to build a Massive Wiki static website. The code outlined is mwb.py, version 2.1.0.
mwb.py
The mwb.py main function steps:
main
get Jinja2 env
set up lunr filename and sitepath indices
render the wiki:
remove and recreate output directory
generate dict of filenames and wikipaths to support wikilinks (first loop through all files)
copy wiki to output; render .md files as HTML
build lunr search index (if specified)
set up search web page
build all_pages web page
cf.
/Users/peterkaminski/Documents/GitHub/developer-massive-wiki/Wiki Theory and Culture/Link As You Think.md
.md
.html
.json
/Users/peterkaminski/Documents/GitHub/developer-massive-wiki/.massivewikibuilder/output/Wiki_Theory_and_Culture/Link_As_You_Think.md
/Users/peterkaminski/Documents/GitHub/developer-massive-wiki/.massivewikibuilder/output/Wiki_Theory_and_Culture/Link_As_You_Think.html
/Users/peterkaminski/Documents/GitHub/developer-massive-wiki/.massivewikibuilder/output/Wiki_Theory_and_Culture/Link_As_You_Think.json
r'([ _?\#]+)'
_
/rootdir/Wiki_Theory_and_Culture/Link_As_You_Think.html
All non-hidden files of any type:
All non-hidden Markdown files:
If we accumulate all links seen during Markdown parsing, after all Markdown files are parsed, we can compare that to the list of wikilink targets, and determine:
These lists could also be output as log messages.
MassiveWikiBuilder V3-pseudocode