Skip to content

Commit

Permalink
Merge pull request #522 from kevin-lee/update-docs
Browse files Browse the repository at this point in the history
Update docs: Bump Docusaurus to 3.1.0 and update version info
  • Loading branch information
kevin-lee authored Jan 26, 2024
2 parents 6423890 + 238cb1e commit 91c89b8
Show file tree
Hide file tree
Showing 5 changed files with 8,370 additions and 14,814 deletions.
13 changes: 6 additions & 7 deletions website/docusaurus.config.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
import {themes as prismThemes} from 'prism-react-renderer';

const algoliaConfig = require('./algolia.config.json');
const googleAnalyticsConfig = require('./google-analytics.config.json');

const lightCodeTheme = require('prism-react-renderer/themes/nightOwlLight');
const darkCodeTheme = require('prism-react-renderer/themes/nightOwl');
const lightCodeTheme = prismThemes.nightOwlLight;
const darkCodeTheme = prismThemes.nightOwl;

const isEmptyObject = obj => {
for (field in obj) return false;
return true;
};
const isEmptyObject = (obj) => Object.keys(obj).length === 0;

const isSearchable = !isEmptyObject(algoliaConfig);
const hasGoogleAnalytics = !isEmptyObject(googleAnalyticsConfig);
Expand Down Expand Up @@ -115,7 +114,7 @@ const websiteConfig = {
"path": "v1",
},
"current": {
"label": "2.0.0-beta22",
"label": "2.0.0-beta24",
},
}
},
Expand Down
Loading

0 comments on commit 91c89b8

Please sign in to comment.