ilink-world/docs/.docz/gatsby-config.js

104 lines
3.1 KiB
JavaScript
Raw Normal View History

2020-03-12 15:14:51 +00:00
const { mergeWith } = require('lodash/fp')
const fs = require('fs-extra')
let custom = {}
const hasGatsbyConfig = fs.existsSync('./gatsby-config.custom.js')
if (hasGatsbyConfig) {
try {
custom = require('./gatsby-config.custom')
} catch (err) {
console.error(
`Failed to load your gatsby-config.js file : `,
JSON.stringify(err),
)
}
}
const config = {
pathPrefix: '/ilink-world',
siteMetadata: {
title: 'Ilink Documentation',
description: 'iLink Wolrd Documentation',
},
plugins: [
{
resolve: 'gatsby-theme-docz',
options: {
themeConfig: {},
themesDir: 'src',
mdxExtensions: ['.md', '.mdx'],
docgenConfig: {},
menu: [],
mdPlugins: [],
hastPlugins: [],
ignore: [],
typescript: false,
ts: false,
propsParser: true,
'props-parser': true,
debug: false,
native: false,
openBrowser: false,
o: false,
open: false,
'open-browser': false,
root: 'D:\\PROJET\\iLinkApp\\iLinkAppMobile\\docs\\.docz',
base: '/ilink-world',
source: './',
src: './',
files: '**/*.{md,markdown,mdx}',
public: '/public',
dest: '.docz/dist',
d: '.docz/dist',
editBranch: 'master',
eb: 'master',
'edit-branch': 'master',
config: '',
title: 'Ilink Documentation',
description: 'iLink Wolrd Documentation',
host: 'localhost',
port: 3000,
p: 3000,
separator: '-',
paths: {
root: 'D:\\PROJET\\iLinkApp\\iLinkAppMobile\\docs',
templates:
'D:\\PROJET\\iLinkApp\\iLinkAppMobile\\docs\\node_modules\\docz-core\\dist\\templates',
docz: 'D:\\PROJET\\iLinkApp\\iLinkAppMobile\\docs\\.docz',
cache: 'D:\\PROJET\\iLinkApp\\iLinkAppMobile\\docs\\.docz\\.cache',
app: 'D:\\PROJET\\iLinkApp\\iLinkAppMobile\\docs\\.docz\\app',
appPackageJson:
'D:\\PROJET\\iLinkApp\\iLinkAppMobile\\docs\\package.json',
gatsbyConfig:
'D:\\PROJET\\iLinkApp\\iLinkAppMobile\\docs\\gatsby-config.js',
gatsbyBrowser:
'D:\\PROJET\\iLinkApp\\iLinkAppMobile\\docs\\gatsby-browser.js',
gatsbyNode:
'D:\\PROJET\\iLinkApp\\iLinkAppMobile\\docs\\gatsby-node.js',
gatsbySSR:
'D:\\PROJET\\iLinkApp\\iLinkAppMobile\\docs\\gatsby-ssr.js',
importsJs:
'D:\\PROJET\\iLinkApp\\iLinkAppMobile\\docs\\.docz\\app\\imports.js',
rootJs:
'D:\\PROJET\\iLinkApp\\iLinkAppMobile\\docs\\.docz\\app\\root.jsx',
indexJs:
'D:\\PROJET\\iLinkApp\\iLinkAppMobile\\docs\\.docz\\app\\index.jsx',
indexHtml:
'D:\\PROJET\\iLinkApp\\iLinkAppMobile\\docs\\.docz\\app\\index.html',
db: 'D:\\PROJET\\iLinkApp\\iLinkAppMobile\\docs\\.docz\\app\\db.json',
},
},
},
],
}
const merge = mergeWith((objValue, srcValue) => {
if (Array.isArray(objValue)) {
return objValue.concat(srcValue)
}
})
module.exports = merge(config, custom)