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
41 changes: 0 additions & 41 deletions docs/README.md

This file was deleted.

113 changes: 0 additions & 113 deletions docs/docusaurus.config.js

This file was deleted.

113 changes: 113 additions & 0 deletions docs/docusaurus.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,113 @@
import type * as Preset from '@docusaurus/preset-classic';
import type { Config } from '@docusaurus/types';

const { themes } = require('prism-react-renderer');

const lightCodeTheme = themes.github;
const darkCodeTheme = themes.shadesOfPurple;

const config: Config = {
title: 'SOQL Parser JS',
tagline: 'Parse and generate SOQL queries',
url: 'https://soql-parser-js.getjetstream.app',
baseUrl: '/',
onBrokenLinks: 'throw',
favicon: 'img/favicon.ico',

markdown: {
hooks: {
onBrokenMarkdownImages: 'throw',
onBrokenMarkdownLinks: 'throw',
},
},

// GitHub pages deployment config.
// If you aren't using GitHub pages, you don't need these.
organizationName: 'jetstreamapp',
projectName: 'soql-parser-js',
deploymentBranch: 'gh-pages',
trailingSlash: false,

// Even if you don't use internalization, you can use this field to set useful
// metadata like html lang. For example, if your site is Chinese, you may want
// to replace "en" with "zh-Hans".
i18n: {
defaultLocale: 'en',
locales: ['en'],
},

presets: [
[
'@docusaurus/preset-classic',
{
docs: {
sidebarPath: 'sidebars.ts',
editUrl: 'https://github.com/jetstreamapp/soql-parser-js/docs/docs/',
},
theme: {
customCss: ['./src/css/custom.css'],
},
},
],
],

themeConfig: {
colorMode: {
defaultMode: 'dark',
respectPrefersColorScheme: true,
},
navbar: {
title: '',
logo: {
alt: 'Logo',
src: 'img/soql-parser-js-logo.svg',
},
items: [
{
type: 'doc',
docId: 'overview',
position: 'left',
label: 'Documentation',
},
{ to: '/playground', label: 'Playground', position: 'left' },
{
href: 'https://github.com/jetstreamapp/soql-parser-js',
label: 'GitHub',
position: 'right',
},
],
},
footer: {
style: 'dark',
links: [
{
title: 'Links',
items: [
{
label: 'Documentation',
to: '/docs/overview',
},
{
label: 'GitHub',
href: 'https://github.com/jetstreamapp/soql-parser-js',
},
],
},
],
},
markdown: {
mdx1Compat: {
comments: false,
admonitions: false,
headingIds: false,
},
},
prism: {
theme: lightCodeTheme,
darkTheme: darkCodeTheme,
},
additionalLanguages: ['javascript', 'json', 'sql'],
} satisfies Preset.ThemeConfig,
};

module.exports = config;
Loading