slim wiki is a fast and slim wiki based on PHP and markdown.
Check out the demo website for more details and features.
-
Install node.js (this includes
npm
) -
Install grunt globally:
sudo npm install -g grunt-cli
-
Install grunt dependencies in project:
cd src npm install
Note: node.js is only used by grunt for the build. Slim wiki uses PHP to run on server-side.
Build client:
cd src
grunt
Now link the project directory to a locally installed Apache Webserver with PHP and mod_rewrite
enabled.
Go to the browser and open one of:
http://localhost/path/to/src/
- for the development version using the source JavaScript files.http://localhost/path/to/dist/
- for the production version using compressed CSS and JavaScript.
Build automatically on source changes (watch mode):
cd src
grunt watch
Build a release zip:
cd src
grunt release
- Build the project (see above).
- Copy the contents of the
dist
directory to your webspace. - Create a
config.php
(copy and adjust the example). - Give write permissions to the server for the directory
data
(including subdirectories and files).
- Bootstrap - Basic CSS styling.
- Parsedown - PHP markdown parser.
- prism - JavaScript syntax highlighter.
- CodeMirror - JavaScript in-browser code editor.
- Tocbot - JavaScript table of contents generator.
- Vanilla JS - No jQuery. Instead standard DOM API in order to make things fast and slim.
- Slim wiki is inspired by Wikitten. I have used some of their ideas, but technically slim wiki is a complete rewrite.
- Thanks to Daring Fireball for inventing Markdown.
- Thanks to GitHub for hosting this project and for some great enhancements to Markdown.