Skip to content

Commit e891d85

Browse files
committed
docs: hopefully fixed search
1 parent 6f0abe7 commit e891d85

File tree

3 files changed

+221
-187
lines changed

3 files changed

+221
-187
lines changed

docs/docusaurus.config.js

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
const lightCodeTheme = require("prism-react-renderer/themes/github");
55
const darkCodeTheme = require("prism-react-renderer/themes/dracula");
6+
require("dotenv").config();
67

78
/** @type {import('@docusaurus/types').Config} */
89
const config = {
@@ -12,15 +13,15 @@ const config = {
1213
// Algolia search config
1314
// themes: ["@docusaurus/theme-search-algolia"],
1415
// Set the production url of your site here
15-
url: "https://your-docusaurus-test-site.com",
16+
url: "https://rtk-query-loader.ryfylke.dev",
1617
// Set the /<baseUrl>/ pathname under which your site is served
1718
// For GitHub pages deployment, it is often '/<projectName>/'
1819
baseUrl: "/",
1920

2021
// GitHub pages deployment config.
2122
// If you aren't using GitHub pages, you don't need these.
22-
organizationName: "facebook", // Usually your GitHub org/user name.
23-
projectName: "docusaurus", // Usually your repo name.
23+
organizationName: "ryfylke-react-as", // Usually your GitHub org/user name.
24+
projectName: "rtk-query-loader", // Usually your repo name.
2425

2526
onBrokenLinks: "throw",
2627
onBrokenMarkdownLinks: "warn",
@@ -40,8 +41,6 @@ const config = {
4041
({
4142
docs: {
4243
sidebarPath: require.resolve("./sidebars.js"),
43-
// Please change this to your repo.
44-
// Remove this to remove the "edit this page" links.
4544
editUrl:
4645
"https://github.com/ryfylke-react-as/rtk-query-loader/tree/main/docs/",
4746
routeBasePath: "/",
@@ -58,9 +57,9 @@ const config = {
5857
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
5958
({
6059
algolia: {
61-
apiKey: "747dfe4bf013ad89eadcb3a83eb4d70e",
60+
apiKey: process.env.ALGOLIA_API_KEY,
6261
appId: "1NCL1FSCF8",
63-
indexName: "RTK Query Loader",
62+
indexName: "rtk-query-loader",
6463
},
6564
// Replace with your project's social card
6665
image: "img/docusaurus-social-card.jpg",

docs/package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@
1515
"typecheck": "tsc"
1616
},
1717
"dependencies": {
18-
"@docusaurus/core": "2.3.1",
19-
"@docusaurus/preset-classic": "2.3.1",
20-
"@docusaurus/theme-search-algolia": "^2.3.1",
18+
"@docusaurus/core": "^2.4.0",
19+
"@docusaurus/preset-classic": "^2.4.0",
20+
"@docusaurus/theme-search-algolia": "^2.4.0",
2121
"@mdx-js/react": "^1.6.22",
2222
"@reduxjs/toolkit": "^1.9.3",
2323
"clsx": "^1.2.1",
@@ -29,6 +29,7 @@
2929
"devDependencies": {
3030
"@docusaurus/module-type-aliases": "2.3.1",
3131
"@tsconfig/docusaurus": "^1.0.5",
32+
"dotenv": "^16.0.3",
3233
"typescript": "^4.7.4"
3334
},
3435
"browserslist": {

0 commit comments

Comments
 (0)