immrdimm / docketwiki
Simple and fast wiki and knowledge base
Requires
- php: >=7.3.0
- ext-mbstring: *
Requires (Dev)
- phpunit/phpunit: ^4.8.35
README
See demo here DocketWiki
About
DocketWiki is simple and static documentation for your project or knowledge base
DocketWiki based on MD-files without Database
You do not need powerfull server, database and difficult settings to start
Download archive, upload and unzip on your server. That's all
Based on ParseDown and ParseDown Extra by Emanuil Rusev
Full support of HTML tags and markdown
How To
Getting Started
Before you start, check requirements page
Requirements
The DocketWiki has a few system requirements.
You should ensure that your web server has the following minimum PHP version and extensions:
- PHP >= 7.0
- Fileinfo PHP Extension
- JSON PHP Extension
- No database needed!
Install
Unpack .zip-file into your webserver folder.
That's all!
Files, Directories and Structure of DocketWiki
- folder contains custom styles, scripts, images and other resources for project
- folder contains styles
- folder contains custom java-script files
- folder contains favicons
- folder contains icons for menu
- folder contains all your MD-files
- folder contains templates for error-pages
- folder contains project classes
- folder contains additional third-party libs
- folder contains templates for view
- folder contains sidebar views
- folder contains main views
- entry point of all project
- rules and conditions for webserver
- configuration file
- additional example of configuration file
Configuration
All settings of your DocketWiki placed on config.json at root-folder
You can use config.json of this demo or rename config_example.json and place your changes.
Config structure
Config contain:
- Main Wiki settings
- Sidebar navigation settings
Main settings
First block of settings contain next code:
"version": "1.0.0",
"wiki_name": "DocketWiki",
"wiki_root_url": "/wiki/",
"start_page": "about",
where is:
- of your Wiki
- name of your Wiki
- place '/' if it is root folder, or '/folder_name/' if it is a subfolder of existing website
- place started url of your Wiki
Sidebar navigation settings
Sidebar navigation settings contain an array with all menu-items like this:
"sidebar":{
"menu":[
{
"type":"link",
"icon":"icon1",
"name":"About",
"url":"about"
},
{
"type":"subtitle",
"name":"How To"
},
{
"type":"link",
"icon":"icon1",
"name":"Getting Started",
"url":"how_to/getting_started"
}
]
}
where is:
- - root node for sidebar settings. required.
- - root node for menu settings. required.
- can be tow types: simple menu-item with icon, text and bubble or subtitle-text
Subtitle item
Subtitle item - simple text without links, icons etc.
{
"type":"subtitle",
"name":"How To"
}
- - type of item. required.
- - text of item. required.
Menu item
Menu item - link to page of DocketWiki
{
"type":"link",
"icon":"icon1",
"name":"Getting Started",
"url":"how_to/getting_started",
"bubble": "success",
"bubble_text": "some text"
}
- - type of item. required.
- - icon of item. you can choose icon on Icons page of this DocketWiki
- - text of item. required.
- - url-link of item. required.
- - bubble-type of item. can be success, warning, danger, info and idle
- - bubble-text of item.
Elements
Headings
# Heading H1
## Heading H2
### Heading H3
#### Heading H4
##### Heading H5
###### Heading H6
Texts and other
Paragraphs
You can create a new paragraph by leaving a blank line between lines of text.
Styling text
Main styles of text do you need below:
Blockquote
How to use:
> Something important or not important
Code block
To format code or text into its own distinct block, use triple backticks
``` Place your code here ```
Links
How to use:
[link text](link url)
Footnotes
How to use:
Some text with footnote[^1].
Do not forget[^2] place the footnote!
Lists
Unordered list
- List item 1
- List item 2
- List item 3
Ordered list
1. List item 1
2. List item 2
3. List item 3
Nested list
You can create nested list:
1. First list item
- First nested list item
- Second nested list item
Tables
Standart table using like this:
| Worker | Salary |
| --- | --- |
| James | 1 200 $ |
| Anton | 1 440 $ |
Images
How to use:
![There is an image](https://i.imgur.com/j6EIdA4.png)
Alerts
DocketWiki exists some custom alerts
Example:
<p class="notice notice--info">
Notice Text
</p>
Available types of notices:
Accordeon
If you want to hide some content into accordeon, you can place this code:
<details>
<summary>Accordeon: Show and Hide</summary>
Some hided content
</details>
Icons
DocketWiki uses Feather Icon Pack for styling your sidebar-menu.
HTML tags
DocketWiki has full support of custom HTML-tags
You can place something like this:
<a href="#url">Custom a-tag link</a>