Skip to content

Commit 6defe7b

Browse files
authored
Algolia support (#45)
* Add algolia support * Fix small typo
1 parent 81aa61e commit 6defe7b

File tree

6 files changed

+9
-17
lines changed

6 files changed

+9
-17
lines changed

apps/docs/docs/index.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,4 +68,4 @@ In this demo, there are several features working together:
6868
- [theme prop](/fundamentals/customization.mdx#theme-prop)
6969
- [bottom-sheet integration](/fundamentals/usage#bottom-sheet)
7070
- infinite scroll
71-
- [localization](/fundamentals/usage#localization)
71+
- [localization](/fundamentals/usage#localization-and-date-formatting)

apps/docs/docusaurus.config.ts

+7-14
Original file line numberDiff line numberDiff line change
@@ -2,24 +2,13 @@ import { themes as prismThemes } from "prism-react-renderer";
22
import type { Config } from "@docusaurus/types";
33
import type * as Preset from "@docusaurus/preset-classic";
44

5-
const npm2Yarn = [
6-
require("@docusaurus/remark-plugin-npm2yarn"),
7-
{
8-
sync: true,
9-
converters: [
10-
["bun", (code) => code.replace(/npm/g, "bun")],
11-
["yarn", (code) => code.replace(/npm/g, "yarn")],
12-
],
13-
},
14-
];
15-
165
const config: Config = {
176
title: "Flash Calendar",
187
tagline: "The fastest calendar component for React Native",
198
favicon: "img/favicon.ico",
209

2110
// Set the production url of your site here
22-
url: "https://your-docusaurus-site.example.com",
11+
url: "https://marceloprado.github.io",
2312
// Set the /<baseUrl>/ pathname under which your site is served
2413
// For GitHub pages deployment, it is often '/<projectName>/'
2514
baseUrl: "/flash-calendar/",
@@ -59,8 +48,12 @@ const config: Config = {
5948
plugins: ["@docusaurus/plugin-ideal-image"],
6049

6150
themeConfig: {
62-
// Replace with your project's social card
63-
image: "img/docusaurus-social-card.jpg",
51+
algolia: {
52+
appId: "XZ9MYUH844",
53+
apiKey: "f23abd1fe4bf9bf91c59d7ccd526269d",
54+
indexName: "marcelopradoio",
55+
},
56+
image: "img/social-card.png",
6457
navbar: {
6558
title: "Flash Calendar",
6659
logo: {

apps/docs/package.json

-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
2929
},
3030
"devDependencies": {
3131
"@docusaurus/module-type-aliases": "^3.4.0",
32-
"@docusaurus/remark-plugin-npm2yarn": "^3.4.0",
3332
"@docusaurus/tsconfig": "^3.4.0",
3433
"@docusaurus/types": "^3.4.0",
3534
"@marceloterreiro/eslint-config": "*",

apps/docs/static/img/social-card.png

303 KB
Loading

bun.lockb

-696 Bytes
Binary file not shown.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"kitchen-sink:expo": "cd kitchen-sink/expo && bun run ios",
2121
"lint": "turbo lint",
2222
"typecheck": "turbo typecheck",
23-
"publish-packages": "turbo build lint test typecheck --filter flash-calendar && changeset version && changeset publish",
23+
"publish-packages": "turbo build lint test typecheck --filter @marceloterreiro/flash-calendar && changeset version && changeset publish",
2424
"test": "turbo test",
2525
"postinstall": "manypkg check"
2626
},

0 commit comments

Comments
 (0)