Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4,808 changes: 925 additions & 3,883 deletions bun.lock

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion docs/concepts/05-merkle-airdrops.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,6 @@ date fund it with the airdropped tokens.
gas fees.
2. **You keep full control over unclaimed Tokens**. If a recipient doesn't claim their airdrop, it's not created, and
you remain in full control over their allocation.

- This applies only if the campaign has an expiration date. If there is no expiration date, you can only clawback
during the grace period, and the recipients can claim their airdrop at any time in the future.

Expand Down
23 changes: 18 additions & 5 deletions docusaurus.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { themes as prismThemes } from "prism-react-renderer";
import rehypeKatex from "rehype-katex";
import remarkGfm from "remark-gfm";
import remarkMath from "remark-math";
import { Algolia } from "./src/constants";

const config: Config = {
baseUrl: "/",
Expand All @@ -19,6 +20,23 @@ const config: Config = {
tagline: "Documentation and guides for Sablier",
title: "Sablier Docs",
url: "https://docs.sablier.com",
headTags: [
{
tagName: "link",
attributes: {
rel: "stylesheet",
href: "https://cdn.jsdelivr.net/npm/@docsearch/css@beta",
},
},
{
tagName: "link",
attributes: {
rel: "preconnect",
href: `https://${Algolia.APP_ID}-dsn.algolia.net`,
crossorigin: "true",
},
},
],
presets: [
[
"classic",
Expand Down Expand Up @@ -243,11 +261,6 @@ const config: Config = {
staticDirectories: ["static"],
themes: ["@docusaurus/theme-mermaid", "docusaurus-theme-github-codeblock"],
themeConfig: {
algolia: {
appId: "9L7N2RKHWE",
apiKey: "4fc960889335dad720b725a02667d46a",
indexName: "sablierdocs",
},
codeblock: {
showGithubLink: false,
},
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
},
"dependencies": {
"@algolia/client-search": "^4.24",
"@cookbookdev/docsbot": "^4.25",
"@docsearch/react": "^4.0.0-beta.5",
"@docusaurus/core": "^3.8",
"@docusaurus/plugin-client-redirects": "^3.8",
"@docusaurus/plugin-vercel-analytics": "^3.8",
Expand Down
9 changes: 0 additions & 9 deletions src/components/organisms/AskCookbook.tsx

This file was deleted.

8 changes: 8 additions & 0 deletions src/constants.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
/** @see https://dashboard.algolia.com/apps/9L7N2RKHWE */
export const Algolia = {
APP_ID: "9L7N2RKHWE",
ASSISTANT_ID: "vZ3Iz7SRYcv1",
INDEX_NAME: "sablierdocs",
SEARCH_API_KEY: "4fc960889335dad720b725a02667d46a",
};

export const Links = {
Forms: {
CALL: "https://forms.gle/6z3XyfSLXDoRghG99",
Expand Down
26 changes: 24 additions & 2 deletions src/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
* work well for content-centric websites.
*/

@import "@docsearch/css";

/* You can override the default Infima variables here. */
:root {
--docusaurus-highlighted-code-line-bg: rgba(0, 0, 0, 0.1);
Expand All @@ -20,8 +22,9 @@

--ifm-container-width: var(--sablier-size-content);
--ifm-footer-background-color: var(--sablier-color-dark100);
--ifm-font-family-base: "Urbanist", system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans,
sans-serif, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji",
--ifm-font-family-base:
"Urbanist", system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, sans-serif,
BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji",
"Segoe UI Symbol";
--ifm-navbar-background-color: var(--sablier-color-background);
}
Expand Down Expand Up @@ -93,6 +96,25 @@ html[data-theme="dark"] .alert--info {
);
}

.DocSearch-Button {
width: 200px !important;
max-width: 200px !important;
}

@media (max-width: 768px) {
.DocSearch-Button {
width: 150px !important;
max-width: 150px !important;
}
}

@media (max-width: 480px) {
.DocSearch-Button {
width: 120px !important;
max-width: 120px !important;
}
}

.docusaurus-highlight-code-line {
background-color: rgba(0, 0, 0, 0.1);
display: block;
Expand Down
2 changes: 0 additions & 2 deletions src/pages/index.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import styled from "@emotion/styled";
import Layout from "@theme/Layout";
import { AskCookbook } from "../components/organisms/AskCookbook";
import Header from "../components/organisms/Header";
import Socials from "../components/organisms/Socials";

Expand Down Expand Up @@ -39,7 +38,6 @@ export default function Home() {
<Divider />
<Socials />
</Wrapper>
<AskCookbook />
</Layout>
);
}
14 changes: 14 additions & 0 deletions src/theme/SearchBar.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import { Algolia } from "../constants";
import "@docsearch/css";
import { DocSearch } from "@docsearch/react";

export default function SearchBarWrapper() {
return (
<DocSearch
appId={Algolia.APP_ID}
apiKey={Algolia.SEARCH_API_KEY}
askAi={Algolia.ASSISTANT_ID}
indexName={Algolia.INDEX_NAME}
/>
);
}