Skip to content

Commit

Permalink
Algolia support (#45)
Browse files Browse the repository at this point in the history
* Add algolia support

* Fix small typo
  • Loading branch information
MarceloPrado authored Jul 2, 2024
1 parent 81aa61e commit 6defe7b
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 17 deletions.
2 changes: 1 addition & 1 deletion apps/docs/docs/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -68,4 +68,4 @@ In this demo, there are several features working together:
- [theme prop](/fundamentals/customization.mdx#theme-prop)
- [bottom-sheet integration](/fundamentals/usage#bottom-sheet)
- infinite scroll
- [localization](/fundamentals/usage#localization)
- [localization](/fundamentals/usage#localization-and-date-formatting)
21 changes: 7 additions & 14 deletions apps/docs/docusaurus.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,13 @@ import { themes as prismThemes } from "prism-react-renderer";
import type { Config } from "@docusaurus/types";
import type * as Preset from "@docusaurus/preset-classic";

const npm2Yarn = [
require("@docusaurus/remark-plugin-npm2yarn"),
{
sync: true,
converters: [
["bun", (code) => code.replace(/npm/g, "bun")],
["yarn", (code) => code.replace(/npm/g, "yarn")],
],
},
];

const config: Config = {
title: "Flash Calendar",
tagline: "The fastest calendar component for React Native",
favicon: "img/favicon.ico",

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

themeConfig: {
// Replace with your project's social card
image: "img/docusaurus-social-card.jpg",
algolia: {
appId: "XZ9MYUH844",
apiKey: "f23abd1fe4bf9bf91c59d7ccd526269d",
indexName: "marcelopradoio",
},
image: "img/social-card.png",
navbar: {
title: "Flash Calendar",
logo: {
Expand Down
1 change: 0 additions & 1 deletion apps/docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
},
"devDependencies": {
"@docusaurus/module-type-aliases": "^3.4.0",
"@docusaurus/remark-plugin-npm2yarn": "^3.4.0",
"@docusaurus/tsconfig": "^3.4.0",
"@docusaurus/types": "^3.4.0",
"@marceloterreiro/eslint-config": "*",
Expand Down
Binary file added apps/docs/static/img/social-card.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified bun.lockb
Binary file not shown.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"kitchen-sink:expo": "cd kitchen-sink/expo && bun run ios",
"lint": "turbo lint",
"typecheck": "turbo typecheck",
"publish-packages": "turbo build lint test typecheck --filter flash-calendar && changeset version && changeset publish",
"publish-packages": "turbo build lint test typecheck --filter @marceloterreiro/flash-calendar && changeset version && changeset publish",
"test": "turbo test",
"postinstall": "manypkg check"
},
Expand Down

0 comments on commit 6defe7b

Please sign in to comment.