dokuwiki-plugin-childrenpages/README.md

83 lines
2.4 KiB
Markdown
Raw Permalink Normal View History

2020-04-02 22:14:46 +00:00
# DokuWiki plugin: Children pages
For each page, this plugin adds children pages in pre-set namespaces, reachable
2020-04-02 22:14:46 +00:00
through links in the page menu.
2020-04-03 21:04:36 +00:00
[![thumbnail]][screenshot]
[thumbnail]: img/thumbnail.png
[screenshot]: img/screenshot.png
## Installation
Right now, only installation through git is available. Alternatives will be
proposed at a later point.
2020-04-03 19:59:15 +00:00
### Installation using archives
#### Requirements
* `curl`
* `tar`
* `gzip`
2020-04-05 13:41:25 +00:00
#### Current stable version (1.1.0)
Assuming the root directory of your DokuWiki installation is `/srv/dokuwiki`:
```
DOKUWIKI_PATH=/srv/dokuwiki
2020-04-05 13:41:25 +00:00
TARBALL_URL=https://forge.dotslashplay.it/vv221/dokuwiki-childrenpages/-/archive/1.0.0/dokuwiki-childrenpages-1.1.0.tar.gz
curl "$TARBALL_URL" > dokuwiki-childrenpages-1.1.0.tar.gz
mkdir --parents "$DOKUWIKI_PATH/lib/plugins/childrenpages"
2020-04-05 13:41:25 +00:00
gzip --stdout --decompress dokuwiki-childrenpages-1.1.0.tar.gz | tar xf - --strip-components=1 --directory="$DOKUWIKI_PATH/lib/plugins/childrenpages"
rm dokuwiki-childrenpages-1.1.0.tar.gz
```
2020-04-03 19:59:15 +00:00
### Installation using git
#### Requirements
* `git`
2020-04-05 13:41:25 +00:00
#### Current stable version (1.1.0)
Assuming the root directory of your DokuWiki installation is `/srv/dokuwiki`:
```
DOKUWIKI_PATH=/srv/dokuwiki
REPO_URL=https://forge.dotslashplay.it/vv221/dokuwiki-childrenpages.git
2020-04-05 13:41:25 +00:00
git clone --branch 1.1.0 --depth 1 "$REPO_URL" "$DOKUWIKI_PATH/lib/plugins/childrenpages"
```
2020-04-03 19:59:15 +00:00
#### Latest development version
Assuming the root directory of your DokuWiki installation is `/srv/dokuwiki`:
```
DOKUWIKI_PATH=/srv/dokuwiki
REPO_URL=https://forge.dotslashplay.it/vv221/dokuwiki-childrenpages.git
git clone --branch master --depth 1 "$REPO_URL" "$DOKUWIKI_PATH/lib/plugins/childrenpages"
```
## Configuration
### Namespaces list
The links to children pages are generated from a list of reserved top level
namespaces. Normal pages should not be created in these namespaces.
This list can be modified in DokuWiki config manager, and defaults to:
```
animation, gameplay, dev, talk
```
2020-04-03 19:59:15 +00:00
## Developers instructions
Up-to-date installation instructions for developers can be found [on the project wiki].
2020-04-02 22:14:46 +00:00
[on the project wiki]: https://forge.dotslashplay.it/vv221/dokuwiki-childrenpages/-/wikis/home#installation-instructions
## Template builders instructions
Up-to-date installation instructions for template builders can be found [on the project wiki].
[on the project wiki]: https://forge.dotslashplay.it/vv221/dokuwiki-childrenpages/-/wikis/home#manipulation-in-templates