title | author |
---|---|
Wikitten and MDwiki merged Markdown Wiki system |
Uranus Zhou |
This Wikitten and MDwiki merged Wiki system is based on PHP Wiki Wikitten and pure static JavaScript Wiki MDwiki.
You can deploy this merged Wiki system on your PHP web server (via Wikitten) or static web server, also you can view your Wiki locally (via MDwiki).
I made some modifications to MDwiki and Wikitten, so they can share the same Wiki document directory and show similar Wiki interface.
- Put all Markdown document to a new
library
directory, which is the same to Wikitten; - Support YAML front matter at the beginning of Markdown file;
Note
YAML front matter support is already in MDwiki develop version, it should comes to final user in further release. YAML front matter in Markdown document should begin and end with three back-ticks (
`
) instead of three dashes (-).
- I write an auto generate index files script
generate-index.sh
for MDwikilibrary
directory, run this in Bash shell:
./generate-index.sh library
Then generate-index.sh
will generate index.md
for all sub-directories (only if one directory doesn't contain valid index.md
document).
Once you add new Markdown document or delete/rename document in library
directory, you should run this generate-index.sh
to generate new index files.
- Support YAML front matter which begin and end with both three back-ticks (
`
) and three dashes (-); - Show
index.md
document if switch to on directory (instead of tell user to select in Wiki library tree); - Set Markdown table width to 100%.
Note: Wikitten and MDwiki share the same library
Markdown document directory.
Please refer to Wikitten website, you need at least PHP 5.3 and php_fileinfo module, and your web server should support rewrite.
Wikitten config file is config.php
in root directory.
Please refer to MDwiki website.
MDwiki config file is config.json
in root directory, I add a new parseHeader
config in config.json
file (this is already in MDwiki develop version).
Any problems? Feel free to add new issue or contact me at https://zohead.com/.