raketman / wiki-markdown
Installs: 0
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:project
Requires
- php: >=7.2.5
- ext-ctype: *
- ext-iconv: *
- doctrine/annotations: ^1.0
- guzzlehttp/psr7: ^1.8
- kriswallsmith/buzz: ^1.2
- meilisearch/meilisearch-php: ^0.17.0
- nyholm/psr7: ^1.4
- php-http/curl-client: ^2.2
- php-http/message: ^1.11
- phpdocumentor/reflection-docblock: ^5.2
- symfony/console: 5.2.*
- symfony/dotenv: 5.2.*
- symfony/flex: ^1.3.1
- symfony/framework-bundle: 5.2.*
- symfony/monolog-bundle: ^3.6
- symfony/process: 5.2.*
- symfony/property-access: 5.2.*
- symfony/property-info: 5.2.*
- symfony/serializer: 5.2.*
- symfony/twig-bundle: 5.2.*
- symfony/yaml: 5.2.*
Requires (Dev)
- symfony/browser-kit: ^5.2
- symfony/css-selector: ^5.2
- symfony/phpunit-bridge: ^5.2
Conflicts
Replaces
This package is auto-updated.
Last update: 2024-04-04 09:58:07 UTC
README
Quick start
To create wiki page
docker run -v {wiki_path}:/var/www/app/docs -p {port}:8000 raketman/wiki
Wiki will be available on port :{port} in your machine.
Try demo
git clone https://github.com/raketman/wiki-markdown.git
docker run -v $(pwd)/wiki-markdown/docs_example:/var/www/app/docs -p 74:8000 raketman/wiki
Wiki open on 127.0.0.1:74 or 0.0.0.0:74
Proxy pass
If need open wiki on part of your app, for example your_app_address/wiki.
You need to add environment APP_PREFIX to docker
docker run -v $(pwd)/../docs2:/var/www/app/docs -p 74:8000 -e APP_PREFIX=/wiki raketman/wiki
Of coures all you images url in wiki must be relative path, not absolute, for example
work wine
![GitHub Pages](./_images/icon.svg)
work wrong
![GitHub Pages](/_images/icon.svg)
Need to send wikiapp uri without prefix You need clean prefix, for example nginx:
location /wiki {
rewrite /wiki/(.*) /$1 break;
proxy_pass 0.0.0.0:74
}
in dir docker you can see docker-compose with example APP_PREFIX
Force update content
docker exec -it {container} php bin/console app:wiki:actualize --force=1
Wiki settings
File settings
The file name is taken from the first line, the # symbols at the beginning and at the end are removed
# Описание апи # -> Описание апи
Dir settings
.meta - file for describing folders on yaml format
Supported keys:
title: folder name order: # sorting within a folder, for point adjustment you can write values with a minus filename15: -10 # will be first dirname20: 99999 # will be at the end filename7: -7
Filtering
The wiki does not include files that
- start with _
- start with.
- do not contain p.
- are in .html format
The wiki does not include directories that
- start with.
- empty dir on finish filtering
Search
Search engine
Search work with meilisearch