• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..Today-

3rd/H24-Feb-2020-62,89050,738

_test/H24-Feb-2020-354267

docs/img/H24-Feb-2020-

src/H24-Feb-2020-1,159595

.travis.ymlH A D05-Feb-2020324 1615

LICENSEH A D05-Feb-202034.3 KiB675553

README.mdH A D05-Feb-20202.9 KiB9976

action.phpH A D05-Feb-20201.5 KiB5121

plugin.info.txtH A D05-Feb-2020214 87

syntax.phpH A D05-Feb-20204.4 KiB16674

README.md

1# Yurii's Gantt Plugin
2
3[![Build Status](https://travis-ci.org/yurii-github/dokuwiki-plugin-yuriigantt.svg?branch=master)](https://travis-ci.org/yurii-github/dokuwiki-plugin-yuriigantt)
4
5[Plugin page at Official](https://www.dokuwiki.org/plugin:yuriigantt)
6[My user at Official](https://forum.dokuwiki.org/user/50392)
7
8This plugin allow you to add Gantt table into Dokuwiki page.
9
10![alt text](docs/img/raw.png "Rendered")
11![alt text](docs/img/rendered.png "Rendered")
12
13In nutshell, it just wraps [dhtmlxGantt](https://dhtmlx.com/docs/products/dhtmlxGantt).
14To use dhtmlxGantt in non-GPL projects (and get Pro version of the product), please obtain Commercial/Enterprise or Ultimate license on their site https://dhtmlx.com/docs/products/dhtmlxGantt/#licensing or contact them at sales@dhtmlx.com
15Replace installation code at *lib/plugins/yuriigantt/3rd/dhtmlxgantt* with your dhtmlxGantt PRO.
16
17p.s. This plugin is shipped with dhtmlxGantt Standard v.6.3.5
18
19## Installation
20
211. automatic TODO
221. manual
23    ```
24    cd YOUR_DOKUWIKI_DIR/lib/plugins
25    git clone --single-branch --branch master https://github.com/yurii-github/dokuwiki-plugin-yuriigantt.git yuriigantt
26    ```
27
28## Usage
29
301. create/request new dokuwiki page from your browser
311. add the least required syntax into the page
32    ```
33    ~~NOCACHE~~
34    ~~~~GANTT~~~~
35
36    ~~~~~~~~~~~
37    ```
381. save. you must see now ![alt text](docs/img/rendered_empty.png "Rendered")
391. (Optional) Click page edit. You will see that data for empty embedded database was initialized
40    ```
41    ~~NOCACHE~~
42    ~~~~GANTT~~~~
43    {
44        "pageId": "asd",
45        "version": "1.0",
46        "dsn": ":embedded:",
47        "increment": {
48            "task": 1,
49            "link": 1
50        },
51        "gantt": {
52            "data": [],
53            "links": []
54        }
55    }
56    ~~~~~~~~~~~
57    ```
58You can also try [this demo example](_test/test_page.txt) instead.
59
60## How It Works
61
62NOTE! Currently only embedded database driver is supported
63
64![alt text](docs/img/diagram.png "Diagram")
65
66### Drivers
67#### Embedded
68Info about gantt database is stored in page within special pattern in JSON format.
69Embedded database also stores its data near database info.
70```
71~~~~GANTT~~~~
72{
73    "pageId": "asd", <--- page identifier
74    "version": "1.0", <-- RESERVED version idetificator
75    "dsn": ":embedded:", <-- says parser what database driver was used
76    "increment": { <--- EMBEDDED table increments
77        "task": 12,
78        "link": 8
79    },
80    "gantt": { <----- EMBEDDED table data
81~~~~~~~~~~~
82```
83On each user update dokuwiki file is parsed, database extracted, its data get changes and with new changes database is stored back to dokuwiki file.
84
85
86**NOTE! If you have file with size more than 10k bytes, please consider to use other drivers!**
87
88## For Developer
89
90If you change syntax parser, to refresh rendered page cache please run page with purge
91```
92http://127.0.0.1:8000/doku.php?id={PAGEID}&purge=true
93```
94
95#### DXHTML
96
97* https://docs.dhtmlx.com/gantt/samples
98
99