Skip to content

Commit

Permalink
Merge pull request #90 from provenance-io/aj/add-module-docs
Browse files Browse the repository at this point in the history
add analytics
  • Loading branch information
webbushka authored Nov 28, 2023
2 parents e6fe376 + 7cdc198 commit ecc9cde
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 14 deletions.
48 changes: 34 additions & 14 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,20 +59,6 @@ const config = {
},
],

plugins: [
async function myPlugin(context, options) {
return {
name: 'docusaurus-tailwindcss',
configurePostCss(postcssOptions) {
// Appends TailwindCSS and AutoPrefixer.
postcssOptions.plugins.push(require('tailwindcss'));
postcssOptions.plugins.push(require('autoprefixer'));
return postcssOptions;
},
};
},
],

themeConfig:
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
({
Expand Down Expand Up @@ -284,6 +270,40 @@ const config = {
additionalLanguages: ['bash', 'json', 'kotlin', 'protobuf'],
},
}),

plugins: [
async function myPlugin(context, options) {
return {
name: 'docusaurus-tailwindcss',
configurePostCss(postcssOptions) {
// Appends TailwindCSS and AutoPrefixer.
postcssOptions.plugins.push(require('tailwindcss'));
postcssOptions.plugins.push(require('autoprefixer'));
return postcssOptions;
},
};
},
[
'@docusaurus/plugin-google-analytics',
{
trackingID: 'G-J8X4N657D9',
anonymizeIP: true,
},
],
[
'@docusaurus/plugin-client-redirects',
{
fromExtensions: ['html'],
toExtensions: ['html'],
redirects: [
{
from: ['/main', '/master', '/v0.43', '/v0.44'],
to: '/',
},
],
},
],
],
};

module.exports = config;
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
},
"devDependencies": {
"@docusaurus/module-type-aliases": "^3.0.0",
"@docusaurus/plugin-client-redirects": "^3.0.0",
"@docusaurus/tsconfig": "3.0.0",
"@types/react": "^18.2.29",
"autoprefixer": "^10.4.16",
Expand Down
15 changes: 15 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2256,6 +2256,21 @@
react-helmet-async "*"
react-loadable "npm:@docusaurus/[email protected]"

"@docusaurus/plugin-client-redirects@^3.0.0":
version "3.0.0"
resolved "https://registry.yarnpkg.com/@docusaurus/plugin-client-redirects/-/plugin-client-redirects-3.0.0.tgz#983880c467228ed8b1aba5f20ce564696e25f363"
integrity sha512-JcZLod4lgPdbv/OpCbNwTc57u54d01dcWiDy/sBaxls/4HkDGdj6838oBPzbBdnCWrmasBIRz3JYLk+1GU0IOQ==
dependencies:
"@docusaurus/core" "3.0.0"
"@docusaurus/logger" "3.0.0"
"@docusaurus/utils" "3.0.0"
"@docusaurus/utils-common" "3.0.0"
"@docusaurus/utils-validation" "3.0.0"
eta "^2.2.0"
fs-extra "^11.1.1"
lodash "^4.17.21"
tslib "^2.6.0"

"@docusaurus/[email protected]":
version "3.0.0"
resolved "https://registry.yarnpkg.com/@docusaurus/plugin-content-blog/-/plugin-content-blog-3.0.0.tgz#5f3ede003b2b7103043918fbe3f436c116839ca8"
Expand Down

0 comments on commit ecc9cde

Please sign in to comment.