Skip to content

Commit

Permalink
docs(website): add a search bar
Browse files Browse the repository at this point in the history
Provided by Algolia
Closes #325
  • Loading branch information
C0ZEN committed Feb 1, 2022
1 parent ac10f62 commit f32c9dc
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 1 deletion.
7 changes: 6 additions & 1 deletion documentation/docusaurus.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// @ts-check
// Note: type annotations allow type checking and IDEs autocompletion
const lightCodeTheme = require(`prism-react-renderer/themes/github`);
const darkCodeTheme = require(`prism-react-renderer/themes/dracula`);
/** @type {import('@docusaurus/types').Config} */
Expand Down Expand Up @@ -48,6 +47,12 @@ const config = {
themeConfig:
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
({
algolia: {
apiKey: `2b0b5f5c53eb7c8e61d84c350ca9af70`,
appId: `2SFOQ67X82`,
contextualSearch: true,
indexName: `github-stale-action`,
},
footer: {
copyright: `Copyright © ${new Date().getFullYear()} Stale, Sonia Corporation. Built with Docusaurus.`,
links: [
Expand Down
1 change: 1 addition & 0 deletions documentation/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions documentation/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"dependencies": {
"@docusaurus/core": "2.0.0-beta.15",
"@docusaurus/preset-classic": "2.0.0-beta.15",
"@docusaurus/theme-search-algolia": "2.0.0-beta.15",
"@mdx-js/react": "1.6.22",
"clsx": "1.1.1",
"prism-react-renderer": "1.2.1",
Expand Down
1 change: 1 addition & 0 deletions documentation/sidebars.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// @ts-check
/** @type {import('@docusaurus/plugin-content-docs').SidebarsConfig} */
const sidebars = {
tutorialSidebar: [{ dirName: `.`, type: `autogenerated` }],
Expand Down

0 comments on commit f32c9dc

Please sign in to comment.