-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* duplicate components from other rebranded docs site * add index skeleton, images, and nearform logo * upgrading docusaurus and react * convert docusaurus config and sidebards to ts after upgrade and move docs directory so that autogenerated routing works properly * add docusaurus-search-local * updating styles to match other docusaurus cover pages * landing content * update intro banner and revert primary colors to groq specific ones * readme tweaks * fix broken links and add docusaurus/theme-classic to deal with type error * fix type check errors * Remove edit links * update open source title and swap in figlog --------- Co-authored-by: Christy Presler <cpresler@users.noreply.github.com> Co-authored-by: Charlie Brown <carbonrobot@gmail.com>
- Loading branch information
1 parent
584b7ce
commit b042725
Showing
42 changed files
with
4,783 additions
and
3,473 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
# Website | ||
|
||
This website is built using [Docusaurus 2](https://docusaurus.io/), a modern static website generator. | ||
This website is built using [Docusaurus 3](https://docusaurus.io/), a modern static website generator. |
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,129 @@ | ||
import { themes as prismThemes } from "prism-react-renderer"; | ||
import type { Config } from "@docusaurus/types"; | ||
import type * as Preset from "@docusaurus/preset-classic"; | ||
import MonacoEditorWebpackPlugin from "monaco-editor-webpack-plugin"; | ||
|
||
const config: Config = { | ||
title: "GROQD", | ||
tagline: "Typesafe GROQ Query Builder", | ||
url: "https://commerce.nearform.com/", | ||
favicon: "img/nearform-icon.svg", | ||
baseUrl: process.env.VERCEL_ENV === "preview" ? "/" : "/open-source/groqd", | ||
onBrokenLinks: "throw", | ||
onBrokenMarkdownLinks: "warn", | ||
i18n: { | ||
defaultLocale: "en", | ||
locales: ["en"], | ||
}, | ||
presets: [ | ||
[ | ||
"classic", | ||
{ | ||
docs: { | ||
sidebarPath: "./sidebars.ts", | ||
}, | ||
blog: false, | ||
theme: { | ||
customCss: "./src/css/custom.css", | ||
}, | ||
...(process.env.VERCEL_ENV === "production" && { | ||
gtag: { | ||
trackingID: process.env.GTAG_TRACKING_ID, | ||
anonymizeIP: true, | ||
}, | ||
googleTagManager: { | ||
containerId: process.env.GTM_CONTAINER_ID, | ||
}, | ||
}), | ||
} satisfies Preset.Options, | ||
], | ||
], | ||
themes: [ | ||
[ | ||
require.resolve("@easyops-cn/docusaurus-search-local"), | ||
/** @type {import("@easyops-cn/docusaurus-search-local").PluginOptions} */ | ||
{ | ||
hashed: true, | ||
}, | ||
], | ||
], | ||
plugins: [ | ||
async function twPlugin() { | ||
return { | ||
name: "tailwind-plugin", | ||
configurePostCss(postcssOptions) { | ||
postcssOptions.plugins = [ | ||
require("postcss-import"), | ||
require("tailwindcss"), | ||
require("autoprefixer"), | ||
]; | ||
return postcssOptions; | ||
}, | ||
}; | ||
}, | ||
async function monacoPlugin() { | ||
return { | ||
name: "monaco-plugin", | ||
configureWebpack() { | ||
return { | ||
plugins: [ | ||
new MonacoEditorWebpackPlugin({ | ||
languages: ["typescript", "json"], | ||
}), | ||
], | ||
}; | ||
}, | ||
}; | ||
}, | ||
], | ||
themeConfig: { | ||
metadata: [ | ||
{ | ||
name: "viewport", | ||
content: "width=device-width, initial-scale=1, maximum-scale=1", | ||
}, | ||
], | ||
docs: { | ||
sidebar: { | ||
hideable: true, | ||
}, | ||
}, | ||
navbar: { | ||
title: "GROQD", | ||
logo: { | ||
alt: "Nearform logo", | ||
src: "img/nearform-logo-white.svg", | ||
}, | ||
items: [ | ||
{ | ||
type: "docSidebar", | ||
sidebarId: "sidebar", | ||
position: "left", | ||
label: "Documentation", | ||
}, | ||
{ | ||
href: "https://github.com/FormidableLabs/groqd", | ||
className: "header-github-link", | ||
"aria-label": "GitHub Repository", | ||
position: "right", | ||
}, | ||
], | ||
}, | ||
footer: { | ||
logo: { | ||
alt: "Nearform logo", | ||
src: "img/nearform-logo-white.svg", | ||
href: "https://commerce.nearform.com", | ||
width: 100, | ||
height: 100, | ||
}, | ||
copyright: `Copyright © ${new Date().getFullYear()} Nearform`, | ||
}, | ||
prism: { | ||
theme: prismThemes.github, | ||
darkTheme: prismThemes.okaidia, | ||
}, | ||
} satisfies Preset.ThemeConfig, | ||
}; | ||
|
||
export default config; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.