Skip to content

Commit

Permalink
add vuepress plausible plugin (#284)
Browse files Browse the repository at this point in the history
* 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 <[email protected]>
  • Loading branch information
cmunns and yusefnapora authored Jan 23, 2023
1 parent 7a5348a commit d107269
Show file tree
Hide file tree
Showing 4 changed files with 23,140 additions and 2,592 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/cicheck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ jobs:
- name: Setup Python
uses: actions/[email protected]
# Runs a set of commands using the runners shell
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 18
- name: Install dependencies
run: |
sudo apt-get update -y
Expand Down
33 changes: 24 additions & 9 deletions docs/.vuepress/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ module.exports = {
md.use(require('markdown-it-video'))
md.use(require('markdown-it-footnote'))
md.use(require('markdown-it-task-lists'))
md.use(require('markdown-it-deflist')),
md.use(require('markdown-it-imsize')),
md.use(require('markdown-it-deflist'))
md.use(require('markdown-it-imsize'))
md.use(require('markdown-it-image-lazy-loading'))
}
},
Expand Down Expand Up @@ -117,13 +117,13 @@ module.exports = {
{
title: 'Reference',
collapsable: false,
children:
[
'/reference/metadata-schemas',
'/reference/nft-marketplaces',
'/reference/recommended-tools',
'/reference/featured-sites'
]
children:
[
'/reference/metadata-schemas',
'/reference/nft-marketplaces',
'/reference/recommended-tools',
'/reference/featured-sites'
]
},
{
title: 'Contribute',
Expand All @@ -146,6 +146,12 @@ module.exports = {
domain: DEPLOY_DOMAIN,
key: COUNTLY_KEY
}],
[
'plausible', {
domain: 'nftschool.dev',
outboundLinkTracking: true
}
],
[
'vuepress-plugin-clean-urls',
{
Expand Down Expand Up @@ -197,6 +203,15 @@ module.exports = {
baseURL: DEPLOY_DOMAIN
}
],
[
'@vuepress/last-updated',
// workaround for https://github.com/ekoeryanto/vuepress-plugin-sitemap/issues/16
{
transformer: (timestamp) => {
return new Date(timestamp).toUTCString()
}
}
],
[
'vuepress-plugin-sitemap',
{
Expand Down
Loading

0 comments on commit d107269

Please sign in to comment.