const logoIco = '/images/logo.jpg'; module.exports = { title: '柿子树备忘录', description: '记录点滴,分享生活', dest: './dist', // base: '/', head: [ ['link', { rel: 'icon', href: logoIco }], ['meta', { name: 'viewport', content: 'width=device-width,initial-scale=1,user-scalable=no' }], ['meta', { name: 'referrer', content: 'no-referrer' }], ["link", { rel: "stylesheet", href: "/css/vue.css" }], ["link", { rel: "stylesheet", href: "/css/Bubble.css" }], // ["script", { src: "/utils/turf.min.js" }], // ["script", { src: "/utils/PolylineTrailMaterial.js" }], // ["script", { src: "/utils/WallDiffuseMaterialProperty.js" }], // ["script", { src: "/utils/viewUtil.js" }], // ["script", { src: "/utils/Bubble.js" }], ], port: 8888, theme: 'reco', markdown: { lineNumbers: true, //修改提取出的标题级别 extractHeaders: ['h2', 'h3', 'h4'] }, //插件配置 plugins: [ [ 'vuepress-plugin-helper-live2d', { live2d: { // 是否启用(关闭请设置为false)(default: true) enable: true, // 模型名称(default: hibiki)>>>取值请参考: // https://github.com/JoeyBling/hexo-theme-yilia-plus/wiki/live2d%E6%A8%A1%E5%9E%8B%E5%8C%85%E5%B1%95%E7%A4%BA model: 'hijiki', display: { position: "left", // 显示位置:left/right(default: 'right') width: 135, // 模型的长度(default: 135) height: 250, // 模型的高度(default: 300) hOffset: 30, // 水平偏移(default: 65) vOffset: 0, // 垂直偏移(default: 0) }, mobile: { show: true, // 是否在移动设备上显示(default: false) scale: 0.5 }, react: { opacity: 0.8 // 模型透明度(default: 0.8) } } } ] ], themeConfig: { type: 'blog', author: '柿子树', authorAvatar: logoIco, //页面滚动 smoothScroll: true, //关闭搜索框 search: false, //显示所有页面的标题 displayAllHeaders: true, //导航栏 nav: [ { text: '首页', link: '/', icon: 'reco-home' }, { text: '个人笔记', icon: 'reco-document', items: [ { text: 'Web', link: '/article/web/' }, { text: 'GIS', link: '/article/gis/' }, { text: 'Database', link: '/article/db/' }, { text: 'DevOps', link: '/article/devops/' }, { text: '可视化', link: '/article/visual/'} ] }, { text: '案例', link: '/example/', icon: 'reco-three' }, { text: '地图故事', link: '/story/', icon: 'reco-three' }, { text: '生活点滴', link: '/live/', icon: 'reco-eye' }, { text: '归档', link: '/timeline/', icon: 'reco-date' }, { text: '关于我', link: '/aboutme/', icon: 'reco-coding' } ], //文章右侧导航 subSidebar: 'auto', //左侧导航栏 sidebarDepth: 4, sidebar: { '/article/web/': [ { title: 'JavaScript', // 必要的 collapsable: false, // 可选的, 默认值是 true, children: [ '', '/article/web/js/async', '/article/web/js/browser', '/article/web/js/promise', '/article/web/js/fetch' ] }, { title: 'CSS', // 必要的 collapsable: false, // 可选的, 默认值是 true, children: [ '/article/web/css/css_unit', '/article/web/css/cssvar.md', '/article/web/css/flexLayout', '/article/web/css/aos' ] }, { title: '工具', // 必要的 collapsable: false, // 可选的, 默认值是 true, children: [ '/article/web/tool/npmTool', '/article/web/tool/webpackTool' ] }, ], '/article/gis/': [ { title: 'GIS理论基础', collapsable: false, children: [ '', '/article/gis/base/gcs&pgs' ] }, { title: 'GeoServer笔记', collapsable: false, children: [ { title: '思维导图', path:'/article/gis/geoserver/geoserverxmind' }, { title: '一、OGC简述', collapsable: true, children: [ '/article/gis/geoserver/ogc', '/article/gis/geoserver/sfs', '/article/gis/geoserver/gml', '/article/gis/geoserver/ows', '/article/gis/geoserver/servicetype', ] }, { title: '二、基本使用', collapsable: true, children: [ '/article/gis/geoserver/install', '/article/gis/geoserver/datadir', '/article/gis/geoserver/publicshapefile', '/article/gis/geoserver/postgis_table', '/article/gis/geoserver/publictiff', '/article/gis/geoserver/createtitlecaching', '/article/gis/geoserver/layersgroup' ] }, { title: '三、服务标准', collapsable: true, children: [ '/article/gis/geoserver/wms', '/article/gis/geoserver/wfs', '/article/gis/geoserver/wcs', '/article/gis/geoserver/wmts' ] }, { title: '四、图层加载', collapsable: true, children: [ { title: 'ArcGIS for JS 3.x', collapsable: true, children: [ '/article/gis/geoserver/wmslayer', '/article/gis/geoserver/wfslayer', ] }, { title: 'Openlayers', collapsable: true, children: [ '/article/gis/geoserver/olwmts', '/article/gis/geoserver/olwms', '/article/gis/geoserver/olwfs.md' ] }, { title: 'GeoServer跨域配置', path: '/article/gis/geoserver/corsconfig.md' } ] }, { title: '五、服务端开发', collapsable: true, children: [ '/article/gis/geoserver/devEnvironment', '/article/gis/geoserver/geoserverdev', '/article/gis/geoserver/wpsMarker', '/article/gis/geoserver/geoserverwps' ] } ] }, { title: 'Openlayers', collapsable: false, children: [ { title: '思维导图', path: '/article/gis/openlayers/olxmindnew' }, { title: '一、快速起步', collapsable: true, children: [ '/article/gis/openlayers/11quicklystart', '/article/gis/openlayers/12coreclass', '/article/gis/openlayers/13viewexample' ] }, { title: '二、ol结构体系', collapsable: true, children: [ '/article/gis/openlayers/21olconstruct', '/article/gis/openlayers/22olwork' ] }, { title: '三、数据源加载', collapsable: true, children: [ '/article/gis/openlayers/31datatype', '/article/gis/openlayers/32publicdata', '/article/gis/openlayers/33vectortiles', '/article/gis/openlayers/34layerscontrol' ] }, { title: '四、常用控件', collapsable: true, children: [ '/article/gis/openlayers/41defaultcontrol', '/article/gis/openlayers/42addcontrol', '/article/gis/openlayers/43comcontrol', '/article/gis/openlayers/44customcontrol' ] }, { title: '五、几何对象与Style样式', collapsable: true, children: [ '/article/gis/openlayers/51olgeometrymodel', '/article/gis/openlayers/52olgeometry', '/article/gis/openlayers/54olfeature', '/article/gis/openlayers/55olstyle' ] }, { title: '六、事件交互', collapsable: true, children: [ '/article/gis/openlayers/61interactions', '/article/gis/openlayers/62oledits' ] }, { title: '七、OGC服务', collapsable: true, children: [ '/article/gis/openlayers/71ogcintro', '/article/gis/openlayers/72ows', '/article/gis/openlayers/73serviceload', '/article/gis/openlayers/74wfscrud' ] }, { title: '八、常用示例', collapsable: true, children: [ '/article/gis/openlayers/overlay', '/article/gis/openlayers/ol_swipe', '/article/gis/openlayers/ol_projection', '/article/gis/openlayers/ol_cluster', '/article/gis/openlayers/trackline' ] } ] }, { title: 'CesiumJS', collapsable: false, children: [ { title: '思维导图', path: '/article/gis/cesiumjs/cesiumjs' } ] }, { title: 'WorldWind', collapsable: false, children: [ '/article/gis/worldwind/WorldWindJavaMarker.md', '/article/gis/worldwind/OpenGLCRSMarker.md' ] } ], '/article/db/': [ '', '/article/db/geodatabase', '/article/db/shapefile', '/article/db/postgresqlrestore', '/article/db/mongodb_base', '/article/db/mongodb_advance', '/article/db/mongodb_advance1', '/article/db/mongodb_advance2', '/article/db/mongodb_2dindexes', '/article/db/mongodb_gridfs', '/article/db/qingxiesheying', '/article/db/qingxiesheyingsingle', ], '/article/devops/': [ '', '/article/devops/svn', '/article/db/centospg', { title: 'Docker', collapsable: true, children: [ '/article/devops/docker/docker_base', '/article/devops/docker/docker_compose', '/article/devops/docker/docker_install', '/article/devops/docker/docker_commond' ] } ], '/article/visual/': [ '', '/article/visual/EChartsMarker', '/article/visual/echarts_map', '/article/visual/canvas_base' ], '/story/':[ '', '/story/02feidi', ], }, //评论 valineConfig: { appId: 'lLuCK51TbuKPi1TVgxb7vXLK-gzGzoHsz',// your appId appKey: 'A7Ez1vHCpwIHgdPtDLq2AFti', // your appKey }, //博客配置 // blogConfig: { // category: { // location: 2, // 在导航栏菜单中所占的位置,默认2 // text: '分类', // 默认文案 “分类” // icon: 'reco-document' // }, // tag: { // location: 3, // 在导航栏菜单中所占的位置,默认3 // text: 'Tag' // 默认文案 “标签” // } // }, //备案信息 record: '粤ICP备2020116989号-2', recordLink: 'https://beian.miit.gov.cn/' }, configureWebpack: { module: {//所有第三方文件模块的匹配规则 rules: [// 定义了不同模块对应的 loader // 处理图片文件的 loader // 如果需要调用的 loader 只有一个,则只传递一个字符串也行,如果有多个loader,则必须指定数组 // 在配置 url-loader 的时候,多个参数之间,使用 & 符号进行分隔 // { test: /\.webp$/, use: 'webp-loader?limit=880&outputPath=images' }, { test: /\.webp$/, use: 'url-loader?limit=8880&outputPath=images' }, ] }, externals:{ Cesium:"Cesium" } } }