A simple cms/wiki based on markdown.
Go to file
ubergeek e7022a4130 Added user protection from google DRM 2023-07-27 18:16:54 +00:00
articles Initial Code Push 2019-07-01 01:18:23 +00:00
includes fixed license 2019-07-09 07:37:38 -04:00
parsedown@bfaa76d370 OK, added as submodules 2019-07-09 13:05:30 +00:00
parsedown-extra@f21b40a197 OK, added as submodules 2019-07-09 13:05:30 +00:00
.gitmodules OK, added as submodules 2019-07-09 13:05:30 +00:00
.htaccess Correctly detect slashes with numbers in matching regex 2019-07-07 21:16:13 +00:00
LICENSE.md Updated license to AGPL 3 or later, and added git versions of parsedown and parsedown extra 2019-07-09 11:17:46 +00:00
README.md Update 'README.md' 2019-07-07 20:18:20 -04:00
config.php Added config var for css, and also added page var to pick styles on the fly for testing 2019-07-02 12:46:57 +00:00
wiki.php Added user protection from google DRM 2023-07-27 18:16:54 +00:00

README.md

Wiki.php

Wiki.php is a simple cms/wiki script. You can see it in use here:

Installation

Installation is really only a couple of steps:

  • Clone down the repo
  • Edit config.php. The values are pretty self-explantory, but there's also comments explaining
  • Edit includes/header.md, includes/footer.md, and includes/sidebar.md

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 ~ (/includes/|/media) {
}

location / {
  rewrite ^/$ /main;
  rewrite ^/([A-Za-z0-9\/]+)/?$ /wiki.php?page=$1;
}

location /index {
  rewrite ^/index\.php$ /wiki.php?page=main;
}

Once that's all set, you can start editing articles. Main.md is always the landing page.

Directory Structure

./ <-- 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
./parsedown-{version} <-- The parsedown version used in this engine

Support

Open an issue at ubergeek/wiki.php. PRs are also welcomed!