HapiWiki - A simple wiki program written in C
Author: Aki Kareha aki@kareha.org
Licence: CC0
Build and Installation
- Edit
wiki/config.hand adjust settings if needed. - Run
make-> this will generatewiki/wiki.cgi. - Deploy:
- Copy
wiki.cgito your CGI directory - Copy
style.css,logo.png,icon.png, andtile.pngto your HTML directory
- Copy
- Prepare data directory:
- Create the path specified in
WIKI_ROOT(e.g.,/home/hapi/wiki) - Inside it, create a
datadirectory writable by the web server user
- Create the path specified in
WIKI_ROOTcan be set inwiki/config.hor overridden by the environment variableWIKI_ROOT.
Filtering (optional)
- To enable filtering:
- Place
wiki/filter.plinWIKI_ROOT - Create
WIKI_ROOT/openai.keyand put your OpenAI API key inside
- Place
- To disable filtering:
- Comment out
WIKI_FILTERinwiki/config.h.
- Comment out
Usage
- Access
wiki.cgiwith your web browser - Use Login -> create an account and sign in
- Use Edit -> edit pages
- To save changes, you must log in and preview first
Text Formatting Rules
- Links
- CamelCase -> converted to wiki links
- URLs -> converted to hyperlinks
- Some Words -> converted to wiki links
- Lists
*-> unordered list:-> definition list
- Others
-----> horizontal line- MathJax enabled -> write formulas using TeX notation
Description
Languages
C
97.8%
Makefile
1.2%
Perl
1%