This is the code powering the website for thunix
Go to file
Ubergeek a777ea330a Beginning of site ver 3.0 2019-07-06 23:20:09 +00:00
articles Beginning of site ver 3.0 2019-07-06 23:20:09 +00:00
images Adding email FAQ 2019-02-13 00:50:45 +00:00
includes Beginning of site ver 3.0 2019-07-06 23:20:09 +00:00
parsedown-1.7.3 Beginning of site ver 3.0 2019-07-06 23:20:09 +00:00
parsedown-extra-0.7.1 Beginning of site ver 3.0 2019-07-06 23:20:09 +00:00
.htaccess Beginning of site ver 3.0 2019-07-06 23:20:09 +00:00
LICENSE.md Beginning of site ver 3.0 2019-07-06 23:20:09 +00:00
LICENSE.txt Changed LICENSE.txt to reflect new license 2019-02-28 05:43:30 -05:00
README.md Beginning of site ver 3.0 2019-07-06 23:20:09 +00:00
config.php Beginning of site ver 3.0 2019-07-06 23:20:09 +00:00
favicon.png First site 2.0 copy 2019-01-12 15:07:18 -05:00
gen_tdp Oops, forgot to put the update script in 2019-03-24 17:41:14 +00:00
humans.txt Updated list of admins 2019-05-09 18:39:18 +00:00
tilde.json Updating tilde.json 2019-06-24 18:20:44 +00:00
wiki.php Beginning of site ver 3.0 2019-07-06 23:20:09 +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 / {
            # 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
            try_files $uri $uri/ /wiki.php?page=$uri;
    }

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!