Skip to content

Commit 11ff7d5

Browse files
author
潘卓然ParnDeedlit
committed
【站点】【升级】【全面升级样式&实现markdown的滚动跟随】
1 parent e5be340 commit 11ff7d5

File tree

15 files changed

+944
-928
lines changed

15 files changed

+944
-928
lines changed
Lines changed: 58 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -1,56 +1,63 @@
11
{
2-
"opts": {
3-
"encoding": "utf8",
4-
"private": false,
5-
"recurse": true,
6-
"lenient": true,
7-
"tutorials": "./docs/jsdoc-config/leaflet/tutorials",
8-
"destination": "./website/public/docs/leaflet",
9-
"template": "./docs/templates/better-docs"
10-
},
11-
"disqus": "",
12-
"tags": {
13-
"allowUnknownTags": true,
14-
"linkdoc-leaflet": "https://www.mapbox.com/mapbox-gl-js/api/"
15-
},
16-
"source": {
17-
"includePattern": ".+\\.js?$",
18-
"include": ["src/service/", "src/leaflet/"],
19-
"exclude": ["src/service/baseserver", "src/leaflet/extend/leaflet-plugins"]
20-
},
21-
"plugins": ["plugins/markdown"],
22-
"templates": {
23-
"search": true,
24-
"cleverLinks": true,
25-
"monospaceLinks": true,
26-
"outputSourceFiles": true,
27-
"outputSourcePath": true,
28-
"default": {
29-
"outputSourceFiles": true
2+
"opts": {
3+
"encoding": "utf8",
4+
"private": false,
5+
"recurse": true,
6+
"lenient": true,
7+
"tutorials": "./docs/jsdoc-config/leaflet/tutorials",
8+
"destination": "./website/public/docs/leaflet",
9+
"template": "./docs/templates/better-docs"
3010
},
31-
"better-docs": {
32-
"logo": "../image/mapgis_blue.png",
33-
"title": "",
34-
"hideGenerator": false,
35-
"navLinks": [
36-
{
37-
"label": "Cesium",
38-
"href": "/docs/cesium/index.html"
39-
},
40-
{
41-
"label": "MapboxGL",
42-
"href": "/docs/mapboxgl/index.html"
11+
"disqus": "",
12+
"tags": {
13+
"allowUnknownTags": true,
14+
"linkdoc-leaflet": "https://www.mapbox.com/mapbox-gl-js/api/"
15+
},
16+
"source": {
17+
"includePattern": ".+\\.js?$",
18+
"include": ["src/service/", "src/leaflet/"],
19+
"exclude": [
20+
"src/service/baseserver",
21+
"src/leaflet/extend/leaflet-plugins",
22+
"src/service/node_modules/turf-jsts/",
23+
"src/service/node_modules/@turf",
24+
"src/service/node_modules/polygon-clipping",
25+
"src/service/node_modules/splaytree"
26+
]
27+
},
28+
"plugins": ["plugins/markdown"],
29+
"templates": {
30+
"search": true,
31+
"cleverLinks": true,
32+
"monospaceLinks": true,
33+
"outputSourceFiles": true,
34+
"outputSourcePath": true,
35+
"default": {
36+
"outputSourceFiles": true
4337
},
44-
{
45-
"label": "Leaflet",
46-
"href": "/docs/leaflet/index.html"
38+
"better-docs": {
39+
"logo": "../image/mapgis_blue.png",
40+
"title": "",
41+
"hideGenerator": false,
42+
"navLinks": [
43+
{
44+
"label": "Cesium",
45+
"href": "/docs/cesium/index.html"
46+
},
47+
{
48+
"label": "MapboxGL",
49+
"href": "/docs/mapboxgl/index.html"
50+
},
51+
{
52+
"label": "Leaflet",
53+
"href": "/docs/leaflet/index.html"
54+
},
55+
{
56+
"label": "OpenLayers",
57+
"href": "/docs/openlayers/index.html"
58+
}
59+
]
4760
},
48-
{
49-
"label": "OpenLayers",
50-
"href": "/docs/openlayers/index.html"
51-
}
52-
]
53-
},
54-
"linenums": true
55-
}
61+
"linenums": true
62+
}
5663
}
Lines changed: 51 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -1,56 +1,62 @@
11
{
22
"opts": {
3-
"encoding": "utf8",
4-
"private": false,
5-
"recurse": true,
6-
"lenient": true,
7-
"tutorials": "./docs/jsdoc-config/openlayers/tutorials",
8-
"destination": "./website/public/docs/openlayers",
9-
"template": "./docs/templates/better-docs"
3+
"encoding": "utf8",
4+
"private": false,
5+
"recurse": true,
6+
"lenient": true,
7+
"tutorials": "./docs/jsdoc-config/openlayers/tutorials",
8+
"destination": "./website/public/docs/openlayers",
9+
"template": "./docs/templates/better-docs"
1010
},
1111
"disqus": "",
1212
"tags": {
13-
"allowUnknownTags": true
13+
"allowUnknownTags": true
1414
},
1515
"source": {
16-
"includePattern": ".+\\.js?$",
17-
"include": ["src/service/", "src/openlayers"],
18-
"exclude": ["src/service/baseserver", "src/openlayers/extend/MilStd_old.js"]
16+
"includePattern": ".+\\.js?$",
17+
"include": ["src/service/", "src/openlayers"],
18+
"exclude": [
19+
"src/service/baseserver",
20+
"src/openlayers/extend/MilStd_old.js",
21+
"src/service/node_modules/turf-jsts/",
22+
"src/service/node_modules/@turf",
23+
"src/service/node_modules/polygon-clipping",
24+
"src/service/node_modules/splaytree"
25+
]
1926
},
2027
"plugins": ["plugins/markdown"],
2128
"templates": {
22-
"search": true,
23-
"cleverLinks": true,
24-
"monospaceLinks": true,
25-
"outputSourceFiles": true,
26-
"outputSourcePath": true,
27-
"default": {
28-
"outputSourceFiles": true
29-
},
30-
"better-docs": {
31-
"logo": "../image/mapgis_blue.png",
32-
"title": "",
33-
"hideGenerator": false,
34-
"navLinks": [
35-
{
36-
"label": "Cesium",
37-
"href": "/docs/cesium/index.html"
38-
},
39-
{
40-
"label": "MapboxGL",
41-
"href": "/docs/mapboxgl/index.html"
42-
},
43-
{
44-
"label": "Leaflet",
45-
"href": "/docs/leaflet/index.html"
46-
},
47-
{
48-
"label": "OpenLayers",
49-
"href": "/docs/openlayers/index.html"
50-
}
51-
]
52-
},
53-
"linenums": true
29+
"search": true,
30+
"cleverLinks": true,
31+
"monospaceLinks": true,
32+
"outputSourceFiles": true,
33+
"outputSourcePath": true,
34+
"default": {
35+
"outputSourceFiles": true
36+
},
37+
"better-docs": {
38+
"logo": "../image/mapgis_blue.png",
39+
"title": "",
40+
"hideGenerator": false,
41+
"navLinks": [
42+
{
43+
"label": "Cesium",
44+
"href": "/docs/cesium/index.html"
45+
},
46+
{
47+
"label": "MapboxGL",
48+
"href": "/docs/mapboxgl/index.html"
49+
},
50+
{
51+
"label": "Leaflet",
52+
"href": "/docs/leaflet/index.html"
53+
},
54+
{
55+
"label": "OpenLayers",
56+
"href": "/docs/openlayers/index.html"
57+
}
58+
]
59+
},
60+
"linenums": true
5461
}
55-
}
56-
62+
}
1.31 KB
Loading
9.19 KB
Loading
11.2 KB
Loading
9.05 KB
Loading
11 KB
Loading

website/public/static/demo/config/config-headers.json

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -194,15 +194,6 @@
194194
]
195195
]
196196
},
197-
{
198-
"title": "Vue开发示例",
199-
"icon": "iconhome",
200-
"hightlights": [[true, true, true, true]],
201-
"links": [["Vue-栅格", "Vue-矢量瓦片", "Vue-交互", "Vue-模型"]],
202-
"routes": [
203-
["/gallery/vue-cesium#raster", "/gallery/vue-cesium#vvectortile", "/gallery/vue-cesium#control", "/gallery/vue-cesium#model"]
204-
]
205-
},
206197
{
207198
"title": "开发API",
208199
"icon": "iconhome",
@@ -331,20 +322,6 @@
331322
]
332323
]
333324
},
334-
{
335-
"title": "Vue开发示例",
336-
"icon": "iconhome",
337-
"hightlights": [[true, false, false, true]],
338-
"links": [["Vue-图层", "Vue-栅格", "Vue-OGC", "Vue-交互"]],
339-
"routes": [
340-
[
341-
"/gallery/vue-mapboxgl#vue-layer",
342-
"/gallery/vue-mapboxgl#vue-raster",
343-
"/gallery/vue-mapboxgl#vue-ogc",
344-
"/gallery/vue-mapboxgl#vue-control"
345-
]
346-
]
347-
},
348325
{
349326
"title": "开发API",
350327
"icon": "iconhome",
Lines changed: 43 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -1,58 +1,56 @@
11
<template>
2-
<div class="plugins-group-card">
3-
<div v-for="(g,i) in Object.keys(list)" :key="i" class="group">
4-
<el-row>
5-
<el-col
6-
:xs="24"
7-
:sm="12"
8-
:md="8"
9-
:lg="6"
10-
v-for="(l,index) in list[g].list"
11-
:key="index"
12-
>
13-
<el-card v-bind:style="list[g].styleObject" class="little-card">
14-
<div class="info-title">{{l.name}}</div>
15-
<div class="info-detail">{{l.info}}</div>
16-
</el-card>
17-
</el-col>
18-
</el-row>
2+
<div class="plugins-group-card">
3+
<div v-for="(g, i) in Object.keys(list)" :key="i" class="group">
4+
<el-row>
5+
<el-col :xs="24" :sm="12" :md="8" :lg="6" v-for="(l, index) in list[g].list" :key="index">
6+
<el-card v-bind:style="list[g].styleObject" class="little-card">
7+
<div class="info-title">{{ l.name }}</div>
8+
<div class="info-detail">{{ l.info }}</div>
9+
</el-card>
10+
</el-col>
11+
</el-row>
12+
</div>
1913
</div>
20-
</div>
2114
</template>
2215

2316
<script>
2417
export default {
25-
props: {
26-
list: Object
27-
}
28-
}
18+
props: {
19+
list: Object
20+
}
21+
};
2922
</script>
3023

31-
<style lang="scss">
24+
<style lang="scss" scoped>
3225
.plugins-group-card {
33-
.group {
34-
.el-card {
35-
width: 90%;
36-
height: 200px;
37-
// display: inline-block;
38-
margin: 12px;
39-
border-radius: 20px;
26+
.group {
27+
.el-card {
28+
width: 90%;
29+
height: 200px;
30+
// display: inline-block;
31+
margin: 12px;
32+
border-radius: 20px;
33+
}
34+
}
35+
a {
36+
span {
37+
color: #3a85c6;
38+
}
4039
}
41-
}
4240
}
43-
.info-title{
44-
padding: 0 0 16px 0;
45-
font-size: 24px;
46-
font-family: Microsoft YaHei;
47-
font-weight: bold;
48-
color: #3A85C6;
49-
line-height: 36px;
41+
.info-title {
42+
padding: 0 0 16px 0;
43+
font-size: 24px;
44+
font-family: Microsoft YaHei;
45+
font-weight: bold;
46+
color: #3a85c6;
47+
line-height: 36px;
5048
}
51-
.info-detail{
52-
font-size: 16px;
53-
font-family: Microsoft YaHei;
54-
font-weight: 400;
55-
color: #6C7582;
56-
line-height: 24px;
49+
.info-detail {
50+
font-size: 16px;
51+
font-family: Microsoft YaHei;
52+
font-weight: 400;
53+
color: #6c7582;
54+
line-height: 24px;
5755
}
58-
</style>
56+
</style>

0 commit comments

Comments
 (0)