Nicolas Hordé d3af975d76 | ||
---|---|---|
css | ||
hosts/localhost | ||
js | ||
lib | ||
.gitignore | ||
.htaccess | ||
favicon.ico | ||
gpl-3.0.md | ||
index.php | ||
markdow.code-workspace | ||
readme.md |
readme.md
MarkDoc
PHP MarkDown document manager, Free & OpenSource 😍 for easily create your documentation website**
__ __ _ _____
| \/ | | | | __ \
| \ / | __ _ _ __| | _| | | | ___ ___
| |\/| |/ _` | \'__| |/ / | | |/ _ \ / __|
| | | | (_| | | | <| |__| | (_) | (__
|_| |_|\__,_|_| |_|\_\_____/ \___/ \___|
Sous licence GPLv3 Licence - Sources téléchargéables sur GitHub
Based on Pheditor "PHP file editor" By Hamid Samak Release under MIT license
Specials thanks to Hamid Samak
2020 par Nicolas H.
Features
Actual
- Simple Website with customizables menus
- Markdown Editor with syntax highlighting and Emoji support
- Very fast loading with ajax support
- Multiple websites hosting with single MarkDoc installation
- Integrated Image viewer
- Restricted access by ip address
- Admin access logging
Planned
- Complete File Manager
- Password protected area
- Keeping the history of edited files and changes
- Configuration viewer
- Emoji menu in Markdown editor
- Uploading multiple files by drag and drop
Installation
Installation using git
git clone https://github.com/dahut87/MarkDoc.git [website_root]
Install Emoji data and copy Emoji data to the "emoji-data"
wget https://github.com/iamcal/emoji-data/archive/v6.0.0.zip
unzip v6.0.0.zip
mv emoji-data-v6.0.0 emoji-data
Usage
There is a sample website in the "[website_root]/hosts/locahost" directory. It's easy to add a new one, you create one subfolder by name served by your webserver.
[website_root]/hosts/example.com
[website_root]/hosts/test.sample.fr
Configuration
The configuration file is named 'config.php', is located in the [website_root]/hosts/[host]/config.php.
List of the parameters you can modify
define('SUBCONTENT_DIR', 'content');
define('SHOW_HIDDEN_FILES', false);
define('VIEWABLE_FORMAT', 'md');
define('TITLE', 'Documentation');
define('ICON', 'fa-book-open');
define('ALLOWED_EXT','jpg,svg,gif,png,c,tgz,tar.gz,gz,tar,sql,ico');
define('PASSWORD', '[sha512 encoded password]');
define('LOG_FILE', 'log.txt');
define('ACCESS_IP', '');
define('HISTORY_FILE', 'history.txt');
define('MAX_HISTORY_FILES', 5);
NOTE:
The default password is admin
. Please change the password after install or first login.
Dependences
Emoji Support
Thanks to Cal Henderson
- https://github.com/iamcal/js-emoji
- https://github.com/iamcal/php-emoji
- https://github.com/iamcal/emoji-data
Converting Markdown
Thanks to Emanuil Rusev
Editing markdown
Thanks to Wes Cossick