Name |
Date |
Size |
#Lines |
LOC |
||
---|---|---|---|---|---|---|
.. | Today | - | ||||
3rd/ | H | 24-Feb-2020 | - | 62,890 | 50,738 | |
_test/ | H | 24-Feb-2020 | - | 354 | 267 | |
docs/img/ | H | 24-Feb-2020 | - | |||
src/ | H | 24-Feb-2020 | - | 1,159 | 595 | |
.travis.yml | H A D | 05-Feb-2020 | 324 | 16 | 15 | |
LICENSE | H A D | 05-Feb-2020 | 34.3 KiB | 675 | 553 | |
README.md | H A D | 05-Feb-2020 | 2.9 KiB | 99 | 76 | |
action.php | H A D | 05-Feb-2020 | 1.5 KiB | 51 | 21 | |
plugin.info.txt | H A D | 05-Feb-2020 | 214 | 8 | 7 | |
syntax.php | H A D | 05-Feb-2020 | 4.4 KiB | 166 | 74 |
README.md
1# Yurii's Gantt Plugin 2 3[](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 11 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  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 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