A simple cms/wiki based on markdown.
You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
Ubergeek 538d9a38e2 Merge branch 'master' of ttm.sh:ubergeek/wiki.php 4 years ago
articles Initial Code Push 4 years ago
includes fixed license 4 years ago
parsedown@bfaa76d370 OK, added as submodules 4 years ago
parsedown-extra@f21b40a197 OK, added as submodules 4 years ago
.gitmodules OK, added as submodules 4 years ago
.htaccess Correctly detect slashes with numbers in matching regex 4 years ago
LICENSE.md Updated license to AGPL 3 or later, and added git versions of parsedown and parsedown extra 4 years ago
README.md Update 'README.md' 4 years ago
config.php Added config var for css, and also added page var to pick styles on the fly for testing 4 years ago
wiki.php Updated license to AGPL 3 or later, and added git versions of parsedown and parsedown extra 4 years ago

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!