@@ -213,7 +213,18 @@ function gen_cmd_pages( $cmd, $parent = array() ) {
213213task ( 'doc-list ' , function ( $ app ){
214214 $ docs = array (
215215 'Guides ' => array (),
216- 'References ' => array (),
216+ 'References ' => array (
217+ 'Configuration options ' => array (
218+ 'path ' => '/config/ ' ,
219+ 'title ' => 'Configuration options defining how a command is executed. ' ,
220+ 'description ' => '' ,
221+ ),
222+ 'Built-in commands ' => array (
223+ 'path ' => '/commands/ ' ,
224+ 'title ' => 'Built-in commands ' ,
225+ 'description ' => 'Commands included in every copy of WP-CLI. ' ,
226+ ),
227+ ),
217228 'Contributing ' => array (),
218229 'Misc ' => array (),
219230 );
@@ -232,7 +243,7 @@ function gen_cmd_pages( $cmd, $parent = array() ) {
232243 preg_match ( '#description:\s(.+)# ' , $ header , $ matches );
233244 $ description = ! empty ( $ matches [1 ] ) ? $ matches [1 ] : '' ;
234245 $ docs [ $ category ][ $ title ] = array (
235- 'path ' => basename ( dirname ( $ file ) ),
246+ 'path ' => ' /docs/ ' . basename ( dirname ( $ file ) ) . ' / ' ,
236247 'title ' => $ title ,
237248 'description ' => $ description ,
238249 );
@@ -246,7 +257,7 @@ function gen_cmd_pages( $cmd, $parent = array() ) {
246257 $ out .= '<ul> ' . PHP_EOL ;
247258 ksort ( $ cat_docs );
248259 foreach ( $ cat_docs as $ cat_doc ) {
249- $ out .= '<li><a href="/docs/ ' . $ cat_doc ['path ' ] . '/ "><strong> ' . $ cat_doc ['title ' ] . '</strong></a> ' ;
260+ $ out .= '<li><a href=" ' . $ cat_doc ['path ' ] . '"><strong> ' . $ cat_doc ['title ' ] . '</strong></a> ' ;
250261 if ( ! empty ( $ cat_doc ['description ' ] ) ) {
251262 $ out .= ' - ' . $ cat_doc ['description ' ];
252263 }
0 commit comments