wiki.php/README.md

50 lines
1.7 KiB
Markdown
Raw Normal View History

2019-07-01 01:18:23 +00:00
Wiki.php
========
Wiki.php is a simple cms/wiki script. You can see it in use here:
* [Thunix Wiki](https://wiki.thunix.net)
* [Ubergeek's Personal Page](https://thunix.net/~ubergeek)
Installation
============
Installation is really only a couple of steps:
2019-07-01 01:23:22 +00:00
* Clone down the repo
* Edit config.php. The values are pretty self-explantory, but there's also comments explaining
2019-07-01 02:13:27 +00:00
* Edit includes/header.md, includes/footer.md, and includes/sidebar.md
2019-07-01 01:23:22 +00:00
If you are not using apache, you'll need to add in some mechanism for the rewrites to work, unless you don't care about pretty URLs. But, you will need to keep those in mind when adding links to your documents.
Something along these lines ~should~ work:
location / {
# This is cool because no php is touched for static content.
# include the "?$args" part so non-default permalinks doesn't break when using query string
2019-07-01 12:01:40 +00:00
try_files $uri $uri/ /wiki.php?page=$uri;
}
2019-07-01 01:18:23 +00:00
Once that's all set, you can start editing articles. Main.md is always the landing page.
Directory Structure
===================
2019-07-01 01:21:54 +00:00
./ <-- Doc root
./wiki.php <-- main code
./media <-- Images and such. Files here do get get hit by the rewrite rule
./articles <-- All of your site's content
./includes <-- Support files that make up the layout
header.md <-- site header
footer.md <-- site footer
sidebar.mb <-- site sidebar
./config.php <-- Site configuration file
2019-07-05 12:36:31 +00:00
./parsedown-{version} <-- The parsedown version used in this engine
2019-07-01 01:18:23 +00:00
Support
=======
2019-07-01 12:05:00 +00:00
Open an issue at [ubergeek/wiki.php](https://tildegit.org/ubergeek/wiki.php/issues). PRs are also welcomed!
2019-07-01 01:18:23 +00:00