Skip to content

Commit db57244

Browse files
committed
add @nuxtjs/sitemap
1 parent 6b51e96 commit db57244

File tree

5 files changed

+77
-14
lines changed

5 files changed

+77
-14
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
<a href="https://www.npmjs.com/package/vue-final-modal"><img src="https://badgen.net/bundlephobia/minzip/vue-final-modal" alt="Size"></a>
88
<a href="https://www.npmjs.com/package/vue-final-modal"><img src="https://img.shields.io/npm/v/vue-final-modal.svg?sanitize=true" alt="Version"></a>
99
<a href="https://www.npmjs.com/package/vue-final-modal"><img src="https://img.shields.io/npm/l/vue-final-modal.svg?sanitize=true" alt="License"></a>
10+
<a href="https://app.netlify.com/sites/vue-final-modal/deploys"><img src="https://api.netlify.com/api/v1/badges/444b13a8-540f-4438-94da-80c865c8f103/deploy-status" alt="Netlify Status"></a>
1011
</p>
1112

1213
<p align="right">

docs/content/en/index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ features:
2525
<a href="https://www.npmjs.com/package/vue-final-modal"><img class="m-0" src="https://badgen.net/bundlephobia/minzip/vue-final-modal" alt="Size"></a>
2626
<a href="https://www.npmjs.com/package/vue-final-modal"><img class="m-0" src="https://img.shields.io/npm/v/vue-final-modal.svg?sanitize=true" alt="Version"></a>
2727
<a href="https://www.npmjs.com/package/vue-final-modal"><img class="m-0" src="https://img.shields.io/npm/l/vue-final-modal.svg?sanitize=true" alt="License"></a>
28+
<a href="https://app.netlify.com/sites/vue-final-modal/deploys"><img src="https://api.netlify.com/api/v1/badges/444b13a8-540f-4438-94da-80c865c8f103/deploy-status" alt="Netlify Status"></a>
2829
</p>
2930

3031
<p align="right">

docs/nuxt.config.js

Lines changed: 18 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,10 @@
11
import theme from '@nuxt/content-theme-docs'
22
import path from 'path'
33

4-
const env = {
5-
...(process.env.NODE_ENV === 'production' && {
6-
GITHUB_TOKEN: process.env.GITHUB_TOKEN
7-
})
8-
}
9-
104
export default theme({
11-
env,
5+
env: {
6+
GITHUB_TOKEN: process.env.GITHUB_TOKEN
7+
},
128
generate: {
139
dir: 'docs'
1410
},
@@ -28,5 +24,19 @@ export default theme({
2824
build: {
2925
extractCSS: true
3026
},
31-
css: ['../example/src/assets/css/button.css']
27+
css: ['../example/src/assets/css/button.css'],
28+
modules: ['@nuxtjs/sitemap'],
29+
sitemap: {
30+
hostname: 'https://vue-final-modal.org',
31+
gzip: true,
32+
routes: async () => {
33+
let routes = []
34+
const { $content } = require('@nuxt/content')
35+
const posts = await $content('/', { deep: true }).fetch()
36+
for (const post of posts) {
37+
routes.push(`${post.to}`)
38+
}
39+
return routes
40+
}
41+
}
3242
})

docs/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
},
1616
"devDependencies": {
1717
"@nuxtjs/google-analytics": "^2.4.0",
18+
"@nuxtjs/sitemap": "^2.4.0",
1819
"node-sass": "^4.14.1",
1920
"raw-loader": "^4.0.1",
2021
"sass-loader": "^9.0.3"

docs/yarn.lock

Lines changed: 56 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1356,6 +1356,21 @@
13561356
jimp-compact "^0.12.1"
13571357
workbox-cdn "^5.1.3"
13581358

1359+
"@nuxtjs/sitemap@^2.4.0":
1360+
version "2.4.0"
1361+
resolved "https://registry.yarnpkg.com/@nuxtjs/sitemap/-/sitemap-2.4.0.tgz#6a9fa1c35e161f87375d59949d973568cec40614"
1362+
integrity sha512-TVgIYOtPp7KAfaUo76WRpGbO20j4D/xi/A7shFIGjARHs+FvfAWXNCtBT87dTwe/RoYzAsEKtijFFUTaSu5bUA==
1363+
dependencies:
1364+
async-cache "^1.1.0"
1365+
consola "^2.13.0"
1366+
etag "^1.8.1"
1367+
fresh "^0.5.2"
1368+
fs-extra "^8.1.0"
1369+
is-https "^2.0.2"
1370+
lodash.unionby "^4.8.0"
1371+
minimatch "^3.0.4"
1372+
sitemap "^4.1.1"
1373+
13591374
"@nuxtjs/tailwindcss@^3.0.2":
13601375
version "3.0.2"
13611376
resolved "https://registry.yarnpkg.com/@nuxtjs/tailwindcss/-/tailwindcss-3.0.2.tgz#2763d5f9f8a002130437cec1653f0c15335d8d9b"
@@ -1593,7 +1608,7 @@
15931608
resolved "https://registry.yarnpkg.com/@types/node/-/node-14.6.0.tgz#7d4411bf5157339337d7cff864d9ff45f177b499"
15941609
integrity sha512-mikldZQitV94akrc4sCcSjtJfsTKt4p+e/s0AGscVA6XArQ9kFclP+ZiYUMnq987rc6QlYxXv/EivqlfSLxpKA==
15951610

1596-
"@types/node@^12.12.62":
1611+
"@types/node@^12.0.2", "@types/node@^12.12.62":
15971612
version "12.12.62"
15981613
resolved "https://registry.yarnpkg.com/@types/node/-/node-12.12.62.tgz#733923d73669188d35950253dd18a21570085d2b"
15991614
integrity sha512-qAfo81CsD7yQIM9mVyh6B/U47li5g7cfpVQEDMfQeF8pSZVwzbhwU3crc0qG4DmpsebpJPR49AKOExQyJ05Cpg==
@@ -1637,6 +1652,13 @@
16371652
dependencies:
16381653
"@types/node" "*"
16391654

1655+
"@types/sax@^1.2.0":
1656+
version "1.2.1"
1657+
resolved "https://registry.yarnpkg.com/@types/sax/-/sax-1.2.1.tgz#e0248be936ece791a82db1a57f3fb5f7c87e8172"
1658+
integrity sha512-dqYdvN7Sbw8QT/0Ci5rhjE4/iCMJEM0Y9rHpCu+gGXD9Lwbz28t6HI2yegsB6BoV1sShRMU6lAmAcgRjmFy7LA==
1659+
dependencies:
1660+
"@types/node" "*"
1661+
16401662
"@types/serve-static@*", "@types/serve-static@^1.13.5":
16411663
version "1.13.5"
16421664
resolved "https://registry.yarnpkg.com/@types/serve-static/-/serve-static-1.13.5.tgz#3d25d941a18415d3ab092def846e135a08bbcf53"
@@ -2143,7 +2165,7 @@ are-we-there-yet@~1.1.2:
21432165
delegates "^1.0.0"
21442166
readable-stream "^2.0.6"
21452167

2146-
arg@^4.1.3:
2168+
arg@^4.1.1, arg@^4.1.3:
21472169
version "4.1.3"
21482170
resolved "https://registry.yarnpkg.com/arg/-/arg-4.1.3.tgz#269fc7ad5b8e42cb63c896d5666017261c144089"
21492171
integrity sha512-58S9QDqG0Xx27YwPSt9fJxivjYl432YCwfDMfZ+71RAqUrZef7LrKQZ3LHLOwCS4FLNBplP533Zx895SeOCHvA==
@@ -2240,6 +2262,13 @@ assign-symbols@^1.0.0:
22402262
resolved "https://registry.yarnpkg.com/assign-symbols/-/assign-symbols-1.0.0.tgz#59667f41fadd4f20ccbc2bb96b8d4f7f78ec0367"
22412263
integrity sha1-WWZ/QfrdTyDMvCu5a41Pf3jsA2c=
22422264

2265+
async-cache@^1.1.0:
2266+
version "1.1.0"
2267+
resolved "https://registry.yarnpkg.com/async-cache/-/async-cache-1.1.0.tgz#4a9a5a89d065ec5d8e5254bd9ee96ba76c532b5a"
2268+
integrity sha1-SppaidBl7F2OUlS9nulrp2xTK1o=
2269+
dependencies:
2270+
lru-cache "^4.0.0"
2271+
22432272
async-each@^1.0.1:
22442273
version "1.0.3"
22452274
resolved "https://registry.yarnpkg.com/async-each/-/async-each-1.0.3.tgz#b727dbf87d7651602f06f4d4ac387f47d91b0cbf"
@@ -3162,7 +3191,7 @@ connect@^3.7.0:
31623191
parseurl "~1.3.3"
31633192
utils-merge "1.0.1"
31643193

3165-
consola@^2.10.0, consola@^2.10.1, consola@^2.14.0, consola@^2.15.0, consola@^2.6.0, consola@^2.9.0:
3194+
consola@^2.10.0, consola@^2.10.1, consola@^2.13.0, consola@^2.14.0, consola@^2.15.0, consola@^2.6.0, consola@^2.9.0:
31663195
version "2.15.0"
31673196
resolved "https://registry.yarnpkg.com/consola/-/consola-2.15.0.tgz#40fc4eefa4d2f8ef2e2806147f056ea207fcc0e9"
31683197
integrity sha512-vlcSGgdYS26mPf7qNi+dCisbhiyDnrN1zaRbw3CSuc2wGOMEGGPsp46PdRG5gqXwgtJfjxDkxRNAgRPr1B77vQ==
@@ -5453,7 +5482,7 @@ is-hexadecimal@^1.0.0:
54535482
resolved "https://registry.yarnpkg.com/is-hexadecimal/-/is-hexadecimal-1.0.4.tgz#cc35c97588da4bd49a8eedd6bc4082d44dcb23a7"
54545483
integrity sha512-gyPJuv83bHMpocVYoqof5VDiZveEoGoFL8m3BXNb2VW8Xs+rz9kqO8LOQ5DH6EsuvilT1ApazU0pyl+ytbPtlw==
54555484

5456-
is-https@^2.0.0:
5485+
is-https@^2.0.0, is-https@^2.0.2:
54575486
version "2.0.2"
54585487
resolved "https://registry.yarnpkg.com/is-https/-/is-https-2.0.2.tgz#7009d303c72580f15897d5c063d6b6bc1f838fef"
54595488
integrity sha512-UfUCKVQH/6PQRCh5Qk9vNu4feLZiFmV/gr8DjbtJD0IrCRIDTA6E+d/AVFGPulI5tqK5W45fYbn1Nir1O99rFw==
@@ -5895,6 +5924,11 @@ lodash.toarray@^4.4.0:
58955924
resolved "https://registry.yarnpkg.com/lodash.toarray/-/lodash.toarray-4.4.0.tgz#24c4bfcd6b2fba38bfd0594db1179d8e9b656561"
58965925
integrity sha1-JMS/zWsvuji/0FlNsRedjptlZWE=
58975926

5927+
lodash.unionby@^4.8.0:
5928+
version "4.8.0"
5929+
resolved "https://registry.yarnpkg.com/lodash.unionby/-/lodash.unionby-4.8.0.tgz#883f098ff78f564a727b7508e09cdd539734bb83"
5930+
integrity sha1-iD8Jj/ePVkpye3UI4JzdU5c0u4M=
5931+
58985932
lodash.uniq@^4.5.0:
58995933
version "4.5.0"
59005934
resolved "https://registry.yarnpkg.com/lodash.uniq/-/lodash.uniq-4.5.0.tgz#d0225373aeb652adc1bc82e4945339a842754773"
@@ -5942,7 +5976,7 @@ lowercase-keys@^2.0.0:
59425976
resolved "https://registry.yarnpkg.com/lowercase-keys/-/lowercase-keys-2.0.0.tgz#2603e78b7b4b0006cbca2fbcc8a3202558ac9479"
59435977
integrity sha512-tqNXrS78oMOE73NMxK4EMLQsQowWf8jKooH9g7xPavRT706R6bkQJ6DY2Te7QukaZsulxa30wQ7bk0pm4XiHmA==
59445978

5945-
lru-cache@^4.0.1, lru-cache@^4.1.2:
5979+
lru-cache@^4.0.0, lru-cache@^4.0.1, lru-cache@^4.1.2:
59465980
version "4.1.5"
59475981
resolved "https://registry.yarnpkg.com/lru-cache/-/lru-cache-4.1.5.tgz#8bbe50ea85bed59bc9e33dcab8235ee9bcf443cd"
59485982
integrity sha512-sWZlbEP2OsHNkXrMl5GYk/jKk70MBng6UU4YI/qGDYbgf6YbP4EvmqISbXCoJiRKs+1bSpFHVgQxvJ17F2li5g==
@@ -8535,7 +8569,7 @@ sass-loader@^9.0.3:
85358569
schema-utils "^2.7.0"
85368570
semver "^7.3.2"
85378571

8538-
sax@>=0.6.0, sax@~1.2.4:
8572+
sax@>=0.6.0, sax@^1.2.4, sax@~1.2.4:
85398573
version "1.2.4"
85408574
resolved "https://registry.yarnpkg.com/sax/-/sax-1.2.4.tgz#2816234e2378bddc4e5354fab5caa895df7100d9"
85418575
integrity sha512-NqVDv9TpANUjFm0N8uM5GxL36UgKi9/atZw+x7YFnQ8ckwFGKrl4xX4yWtrey3UJm5nP1kUbnYgLopqWNSRhWw==
@@ -8730,6 +8764,17 @@ simple-swizzle@^0.2.2:
87308764
dependencies:
87318765
is-arrayish "^0.3.1"
87328766

8767+
sitemap@^4.1.1:
8768+
version "4.1.1"
8769+
resolved "https://registry.yarnpkg.com/sitemap/-/sitemap-4.1.1.tgz#c9b459c7d797e629c61f56b86586d4f67dbf250b"
8770+
integrity sha512-+8yd66IxyIFEMFkFpVoPuoPwBvdiL7Ap/HS5YD7igqO4phkyTPFIprCAE9NMHehAY5ZGN3MkAze4lDrOAX3sVQ==
8771+
dependencies:
8772+
"@types/node" "^12.0.2"
8773+
"@types/sax" "^1.2.0"
8774+
arg "^4.1.1"
8775+
sax "^1.2.4"
8776+
xmlbuilder "^13.0.0"
8777+
87338778
slash@^3.0.0:
87348779
version "3.0.0"
87358780
resolved "https://registry.yarnpkg.com/slash/-/slash-3.0.0.tgz#6539be870c165adbd5240220dbe361f1bc4d4634"
@@ -10210,6 +10255,11 @@ xml2js@^0.4.23:
1021010255
sax ">=0.6.0"
1021110256
xmlbuilder "~11.0.0"
1021210257

10258+
xmlbuilder@^13.0.0:
10259+
version "13.0.2"
10260+
resolved "https://registry.yarnpkg.com/xmlbuilder/-/xmlbuilder-13.0.2.tgz#02ae33614b6a047d1c32b5389c1fdacb2bce47a7"
10261+
integrity sha512-Eux0i2QdDYKbdbA6AM6xE4m6ZTZr4G4xF9kahI2ukSEMCzwce2eX9WlTI5J3s+NU7hpasFsr8hWIONae7LluAQ==
10262+
1021310263
xmlbuilder@~11.0.0:
1021410264
version "11.0.1"
1021510265
resolved "https://registry.yarnpkg.com/xmlbuilder/-/xmlbuilder-11.0.1.tgz#be9bae1c8a046e76b31127726347d0ad7002beb3"

0 commit comments

Comments
 (0)