A wiki in a box - this is a backup read-only mirror of the main Github repository. https://github.com/sbrl/Pepperminty-Wiki/
Go to file
Starbeamrainbowlabs 02154daef0
Reword README to point at new config guide
2018-04-07 14:42:06 +01:00
build Add title hint to rebuild search index button 2018-04-07 13:51:41 +01:00
docs Improve HTTP accepts handling & update docs 2018-03-27 16:59:11 +01:00
modules Add title hint to rebuild search index button 2018-04-07 13:51:41 +01:00
.gitignore Update docs 2018-02-14 22:19:11 +00:00
.travis.yml Remove php 5.6 from travis-ci tester 2017-05-13 17:03:11 +01:00
Changelog.md Made rebuilding search idnex progress bar fill up completely when done 2018-04-07 13:47:39 +01:00
Development.md Add development notes 2016-07-05 15:53:13 +01:00
LICENSE Add license. 2016-03-24 13:58:10 +00:00
Makefile Fix apidocs 2018-02-14 22:24:02 +00:00
Module_API_Docs.md Make new module api link secure 2017-09-16 11:54:19 +01:00
README.md Reword README to point at new config guide 2018-04-07 14:42:06 +01:00
apidoc.json Apparently apidoc has a positively stupid version parser. 2016-10-19 21:00:49 +01:00
build.bat I think I messed up the history. 2016-10-18 19:27:36 +01:00
build.php Write extension of parsedown extra and change default parser. 2016-03-12 15:26:30 +00:00
build.sh Fix permissions 2017-07-03 18:05:57 +01:00
core.php Remove accept_contains_mime, as it's unstable 2018-04-06 23:54:57 +01:00
download.php Improve the look of the downloader a bit. 2017-07-04 18:30:44 +01:00
logo.png Render svg logo to png 2017-10-28 17:21:12 +01:00
logo.svg Add logo 2017-10-28 17:19:20 +01:00
module_index.json Add title hint to rebuild search index button 2018-04-07 13:51:41 +01:00
pack.php {settings} -> //{settings} for phpDocumentor 2017-09-15 17:30:35 +01:00
peppermint-config-info.php Reword README to point at new config guide 2018-04-07 14:42:06 +01:00
peppermint.guiconfig.json Add title hint to rebuild search index button 2018-04-07 13:51:41 +01:00
php_error.php Add better errors by phperror.nnet 2015-11-09 07:08:37 +00:00
phpdoc Move Rest API docs and create main php docs! Hooray! 2017-09-16 11:47:42 +01:00
settings.fragment.php Start creating first-run interface 2017-11-04 21:33:21 +00:00
start-server.bat Bugfix: warning when editing page that doesn't have any tags 2015-10-28 08:43:59 +00:00
start-server.sh Fix permissions 2017-07-03 18:05:57 +01:00
theme_default.css Bugfix: Correct my url on credits page 2018-04-02 19:51:47 +01:00
version Update changelog & 2017-12-30 20:33:30 +00:00

README.md

Pepperminty Wiki Logo Pepperminty Wiki Build Status Join the chat at https://gitter.im/Pepperminty-Wiki/Lobby License: MPL-2.0

A Wiki in a box

Pepperminty Wiki is a complete wiki contained in a single file, inspired by @am2064's Minty Wiki. It's open source too (under MPL-2.0), so contributions are welcome!

Developed by Starbeamrainbowlabs (though contributions from others are welcome!), Pepperminty Wiki has a variety of useful (and cool!) features - such as file upload, a dynamic help page, page revision history, page tags, and more! Other amazing features are in the works too (like a theme gallery, autoupdate, and user watchlists), so check the release notes to see what's been added recently.

Latest Version: v0.15.1 (stable) v0.16-dev (development) (Changelog)

Table of Contents

Screenshots and Demo

Main Page Example

Above: The Main Page used for testing purposes.

A live demo of the latest stable version can be found over at my website

Features

  • Configurable settings
  • User login system
  • Page creation (Sub pages supported)
  • Markdown-powered syntax
    • Templating support
    • Additional syntax for resizing and floating images (see inbuilt help page)
    • File galleries
    • Short syntax for referencing uploaded files
    • Client side mathematical expression parsing, courtesy of MathJax
    • Links to non-existent pages appear red
  • Full page revision history (comparison / manipulation coming soon)
  • Optional time-delayed search indexing
  • Simple edit conflict detection
  • Edit previewing (since v0.14, thanks to @ikisler)
  • Internal links - Links to non-existent pages show up in red
  • Printable page view
  • Customisable theme
  • Basic 'search' bar A full text search engine!
    • Dynamic server-side suggestions (since v0.13!)
  • (Optional) Sidebar with a tree of all the current pages
  • Tags
  • List of all pages and details
    • List of all tags and pages with any given tag
    • List of recent changes
  • Inbuilt help page (modules can add their own sections to it)
  • File upload and preview
    • Simple syntax for including media in a page (explanation on help page)
  • Page protection
  • Simple user settings page (set email address, change password)
  • Threaded page comments (since v0.14)
  • Statistics system - can be extended with modules (since v0.15)
  • Customisable module based system
    • Allows you to add or remove features at will

Getting Started

Requirements

  • PHP-enabled web-server (must be PHP 7+)
  • PHP session support (for logging in, see here for more information)
  • The following PHP extensions:
    • mbstring (for utf8 string handling - currently required)
    • imagick (for preview generation)
    • fileinfo (for proper mime type checking of uploaded files)
    • zip (for compressing exports)
    • intl (for Unicode text normalization when searching and in the id index)
  • Write access to Pepperminty Wiki's own folder (only for editing)

Getting your own copy

Setting up your own copy of Pepperminty Wiki is easy. Since Pepperminty Wiki works on a module based system, all you need to do is choose the modules you want installed, and then configure your new installation so that it fits your needs. There are several ways to do this:

Method 1: Using the latest pre-built stable release

If you want a pre-built stable version, then you can use the latest release. It has a changelog that tells you what has changed since the last release, along with a pre-built version with all the latest modules.

Method 2: Grabbing the pre-built version from the repository

If you're feeling lazy, you can grab the bleeding-edge version from this repository, which comes with all the latest modules. You can get it here.

Method 3: Using the online downloader

Pepperminty Wiki has a downloader that you can use to select the modules you want to include in your install. The online downloader will give you the latest stable release. You can find it here.

Method 3.5: Using the downloader offline

You can also you the downloader offline. Simply clone this repository to your web server and then point your web browser at your.server/path/to/pepperminty/wiki/download.php.

Method 4: Building your own from source

Pepperminty Wiki can also be built from source (and I do this all the time when testing). Start by cloning the repository. Then go into the modules folder and append .disabled to the names of any modules you don't want to be included (e.g. modules/page-edit.php would become modules/page-edit.php.disabled). Then follow the instructions for your platform:

Windows

Simply run the build.bat script in the root of the repository. It will handle everything for you.

Linux and Everyone Else

Run the following commands from the root of the repository in order, adjusting them for your specific platform (these are for a standard Ubuntu Server install):

rm build/index.php
php rebuild_module_index.php
php build.php

These commands are also in build.sh. You can run that if you want. Here's an explanation of what each command does:

  1. Deletes the old index.php in the build folder that comes with the repository
  2. Rebuilds the module index that the build scripts uses to determine what modules it should include when building
  3. Actually builds Pepperminty Wiki. Outputs to index.php.

Configuring

To configure your new install, make sure that you've loaded the wiki in your browser at least once. Then open peppermint.json in your favourite text editor. If you need any help, just contact me or open an issue.

Please note that configuration of Pepperminty Wiki will be done through a GUI soon.

The configuration guide are all the configuration directives that Pepperminty Wiki (and all the modules included in the repository) understand. It is generated automatically from peppermint.guiconfig.json.

API Reference

I have documented the current API and other things that make Pepperminty Wiki tick that you can use to create your own modules. You can find this documentation in the Module_API_Docs.md file in this repository.

I've also documented Pepperminty Wiki's entire REST API using apiDoc. You can view the docs here.

If you do create a module, I'd love to hear about it. Even better, send a pull request!

Real World Usage

None yet! Contact me or open an issue and tell me about where you are using Pepperminty Wiki and I'll add you to this section 😺

Todo

Here's a list of things that I want to add at some point (please feel free to send a pull request and help out!).

  • Better page history (revert to revision, compare revisions, etc.)
  • Intelligent auto-updating system that doesn't wipe your settings / module choices
  • A module registry of some sort (ideas welcome!)
  • Image maps (#103)
  • User management for moderators ( + moderator management for the wiki owner) (#127)
  • An app for Android (Sorry, iOS is not practical at the current time. Feel free to make one yourself! I'm happy to help out if you need help with Pepperminty Wiki itself (e.g. making it more machine-readable (#138)) - message on Gitter (see above), or open an issue on this repository.)
  • User watchlists
  • Theme gallery (#5)
  • (See more on the issue tracker!)
  • ...?

Is the feature you want to see not on this list or not implemented yet? Open an issue or send a pull request!

License

Pepperminty Wiki is released under the Mozilla Public License 2.0. The full license text is included in the LICENSE file in this repository.