@@ -99,7 +99,6 @@ function replaceMarkdownDocsConfig(content: string, data: DocsData) {
99
99
return content ;
100
100
}
101
101
102
-
103
102
function replaceMarkdownDocsApi ( content : string , data : DocsData ) {
104
103
const startOuterIndex = content . indexOf ( API_START ) ;
105
104
if ( startOuterIndex > - 1 ) {
@@ -223,8 +222,6 @@ function methodsTable(data: DocsData, m: DocsInterfaceMethod) {
223
222
function markdownConfig ( data : DocsData ) {
224
223
const o : string [ ] = [ ] ;
225
224
if ( data . pluginConfigs ) {
226
- o . push ( '## Configuration' )
227
- o . push ( `` ) ;
228
225
data ! . pluginConfigs ! . forEach ( c => {
229
226
o . push ( configInterfaceTable ( data , c ) ) ;
230
227
o . push ( buildExamples ( c ) ) ;
@@ -245,7 +242,11 @@ function buildExamples(c: DocsConfigInterface) {
245
242
o . push ( ` "plugins": {` ) ;
246
243
o . push ( ` "${ c . name } ": {` ) ;
247
244
c . properties . forEach ( ( p , i ) => {
248
- o . push ( ` "${ p . name } ": ${ p . tags . find ( t => t . name === 'example' ) ?. text } ${ i === c . properties . length - 1 ? '' : ',' } ` ) ;
245
+ o . push (
246
+ ` "${ p . name } ": ${ p . tags . find ( t => t . name === 'example' ) ?. text } ${
247
+ i === c . properties . length - 1 ? '' : ','
248
+ } `,
249
+ ) ;
249
250
} ) ;
250
251
o . push ( ` }` ) ;
251
252
o . push ( ` }` ) ;
@@ -256,7 +257,11 @@ function buildExamples(c: DocsConfigInterface) {
256
257
o . push ( `In \`capacitor.config.ts\`:` ) ;
257
258
o . push ( `` ) ;
258
259
o . push ( `\`\`\`ts` ) ;
259
- o . push ( `/// <reference types="@capacitor/${ slugify ( c . name . replace ( / ( [ a - z ] ) ( [ A - Z ] ) / g, '$1 $2' ) ) } " />` ) ;
260
+ o . push (
261
+ `/// <reference types="@capacitor/${ slugify (
262
+ c . name . replace ( / ( [ a - z ] ) ( [ A - Z ] ) / g, '$1 $2' ) ,
263
+ ) } " />`,
264
+ ) ;
260
265
o . push ( `` ) ;
261
266
o . push ( `import { CapacitorConfig } from '@capacitor/cli';` ) ;
262
267
o . push ( `` ) ;
0 commit comments