Skip to content

Commit d107269

Browse files
cmunnsyusefnapora
andauthored
add vuepress plausible plugin (#284)
* add vuepress plausible plugin * fix: formatting diff * rebuild package lock * fix: use legacy openssl to avoid compatibility error see https://stackoverflow.com/questions/69692842/error-message-error0308010cdigital-envelope-routinesunsupported * fix: workaround bug in vuepress sitemap plugin * fix:use node 18 for filecorgi ci build Co-authored-by: Yusef Napora <yusef@napora.org>
1 parent 7a5348a commit d107269

File tree

4 files changed

+23140
-2592
lines changed

4 files changed

+23140
-2592
lines changed

.github/workflows/cicheck.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ jobs:
1919
- name: Setup Python
2020
uses: actions/setup-python@v2.2.2
2121
# Runs a set of commands using the runners shell
22+
- name: Setup Node
23+
uses: actions/setup-node@v3
24+
with:
25+
node-version: 18
2226
- name: Install dependencies
2327
run: |
2428
sudo apt-get update -y

docs/.vuepress/config.js

Lines changed: 24 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ module.exports = {
2424
md.use(require('markdown-it-video'))
2525
md.use(require('markdown-it-footnote'))
2626
md.use(require('markdown-it-task-lists'))
27-
md.use(require('markdown-it-deflist')),
28-
md.use(require('markdown-it-imsize')),
27+
md.use(require('markdown-it-deflist'))
28+
md.use(require('markdown-it-imsize'))
2929
md.use(require('markdown-it-image-lazy-loading'))
3030
}
3131
},
@@ -117,13 +117,13 @@ module.exports = {
117117
{
118118
title: 'Reference',
119119
collapsable: false,
120-
children:
121-
[
122-
'/reference/metadata-schemas',
123-
'/reference/nft-marketplaces',
124-
'/reference/recommended-tools',
125-
'/reference/featured-sites'
126-
]
120+
children:
121+
[
122+
'/reference/metadata-schemas',
123+
'/reference/nft-marketplaces',
124+
'/reference/recommended-tools',
125+
'/reference/featured-sites'
126+
]
127127
},
128128
{
129129
title: 'Contribute',
@@ -146,6 +146,12 @@ module.exports = {
146146
domain: DEPLOY_DOMAIN,
147147
key: COUNTLY_KEY
148148
}],
149+
[
150+
'plausible', {
151+
domain: 'nftschool.dev',
152+
outboundLinkTracking: true
153+
}
154+
],
149155
[
150156
'vuepress-plugin-clean-urls',
151157
{
@@ -197,6 +203,15 @@ module.exports = {
197203
baseURL: DEPLOY_DOMAIN
198204
}
199205
],
206+
[
207+
'@vuepress/last-updated',
208+
// workaround for https://github.com/ekoeryanto/vuepress-plugin-sitemap/issues/16
209+
{
210+
transformer: (timestamp) => {
211+
return new Date(timestamp).toUTCString()
212+
}
213+
}
214+
],
200215
[
201216
'vuepress-plugin-sitemap',
202217
{

0 commit comments

Comments
 (0)