|
7 | 7 | class RoboFile extends \Robo\Tasks |
8 | 8 | { |
9 | 9 |
|
10 | | - function docs() |
| 10 | + function docs() { |
| 11 | + $this->docsHelpers(); |
| 12 | + $this->docsPlugins(); |
| 13 | + } |
| 14 | + |
| 15 | + function docsPlugins() { |
| 16 | + $this->_exec("npx documentation build lib/plugin/*.js -o docs/plugins.md -f md --shallow --markdown-toc=false --sort-order=alpha "); |
| 17 | + } |
| 18 | + |
| 19 | + function docsHelpers() |
11 | 20 | { |
12 | 21 | $files = scandir('lib/helper'); |
13 | 22 |
|
@@ -88,25 +97,47 @@ function wiki() |
88 | 97 | ->run(); |
89 | 98 |
|
90 | 99 | $this->taskWriteToFile('docs/community-helpers.md') |
91 | | - ->line('---') |
92 | | - ->line('id: community-helpers') |
93 | | - ->line('title: Community Helpers') |
94 | | - ->line('---') |
95 | | - ->line('') |
96 | | - ->line('> Share your helpers at our [Wiki Page](https://github.com/Codeception/CodeceptJS/wiki/Community-Helpers)') |
97 | | - ->line('') |
98 | | - ->textFromFile('website/wiki/Community-Helpers.md') |
99 | | - ->run(); |
| 100 | + ->line('---') |
| 101 | + ->line('id: community-helpers') |
| 102 | + ->line('title: Community Helpers') |
| 103 | + ->line('---') |
| 104 | + ->line('') |
| 105 | + ->line('> Share your helpers at our [Wiki Page](https://github.com/Codeception/CodeceptJS/wiki/Community-Helpers)') |
| 106 | + ->line('') |
| 107 | + ->textFromFile('website/wiki/Community-Helpers.md') |
| 108 | + ->run(); |
100 | 109 |
|
101 | 110 | $this->taskWriteToFile('docs/examples.md') |
102 | | - ->line('---') |
103 | | - ->line('id: examples') |
104 | | - ->line('title: Examples') |
105 | | - ->line('---') |
106 | | - ->line('') |
107 | | - ->line('> Add your own examples to our [Wiki Page](https://github.com/Codeception/CodeceptJS/wiki/Examples)') |
108 | | - ->textFromFile('website/wiki/Examples.md') |
109 | | - ->run(); |
| 111 | + ->line('---') |
| 112 | + ->line('id: examples') |
| 113 | + ->line('title: Examples') |
| 114 | + ->line('---') |
| 115 | + ->line('') |
| 116 | + ->line('> Add your own examples to our [Wiki Page](https://github.com/Codeception/CodeceptJS/wiki/Examples)') |
| 117 | + ->textFromFile('website/wiki/Examples.md') |
| 118 | + ->run(); |
| 119 | + |
| 120 | + $this->taskWriteToFile('docs/books.md') |
| 121 | + ->line('---') |
| 122 | + ->line('id: books') |
| 123 | + ->line('title: Books & Posts') |
| 124 | + ->line('---') |
| 125 | + ->line('') |
| 126 | + ->line('> Add your own books or posts to our [Wiki Page](https://github.com/Codeception/CodeceptJS/wiki/Books-&-Posts)') |
| 127 | + ->textFromFile('website/wiki/Books-&-Posts.md') |
| 128 | + ->run(); |
| 129 | + |
| 130 | + $this->taskWriteToFile('docs/videos.md') |
| 131 | + ->line('---') |
| 132 | + ->line('id: videos') |
| 133 | + ->line('title: Videos') |
| 134 | + ->line('---') |
| 135 | + ->line('') |
| 136 | + ->line('> Add your own videos to our [Wiki Page](https://github.com/Codeception/CodeceptJS/wiki/Videos)') |
| 137 | + ->textFromFile('website/wiki/Videos.md') |
| 138 | + ->run(); |
| 139 | + |
| 140 | + |
110 | 141 | } |
111 | 142 |
|
112 | 143 | function testServer() |
|
0 commit comments