-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a95f0d6
commit 8c14773
Showing
22 changed files
with
3,040 additions
and
222 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
node_modules | ||
.docusaurus | ||
build/ | ||
docs/ |
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,3 @@ | ||
{ | ||
"editor.defaultFormatter": "esbenp.prettier-vscode", | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
module.exports = { | ||
presets: [require.resolve('@docusaurus/core/lib/babel/preset')], | ||
presets: [require.resolve("@docusaurus/core/lib/babel/preset")], | ||
}; |
Empty file.
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,128 +1,140 @@ | ||
import { themes as prismThemes } from 'prism-react-renderer'; | ||
import type { Config } from '@docusaurus/types'; | ||
import type * as Preset from '@docusaurus/preset-classic'; | ||
import { themes as prismThemes } from "prism-react-renderer"; | ||
import type { Config } from "@docusaurus/types"; | ||
import type * as Preset from "@docusaurus/preset-classic"; | ||
|
||
const config: Config = { | ||
title: 'My Site', | ||
tagline: 'Dinosaurs are cool', | ||
favicon: 'img/favicon.ico', | ||
title: "Dagster Docs - Beta", | ||
tagline: | ||
"Dagster is a Python framework for building production-grade data platforms.", | ||
url: "https://docs.dagster.io", | ||
favicon: "img/favicon.ico", | ||
|
||
// Set the production url of your site here | ||
url: 'https://your-docusaurus-site.example.com', | ||
// Set the /<baseUrl>/ pathname under which your site is served | ||
// For GitHub pages deployment, it is often '/<projectName>/' | ||
baseUrl: '/', | ||
|
||
// GitHub pages deployment config. | ||
// If you aren't using GitHub pages, you don't need these. | ||
organizationName: 'facebook', // Usually your GitHub org/user name. | ||
projectName: 'docusaurus', // Usually your repo name. | ||
|
||
onBrokenLinks: 'throw', | ||
onBrokenMarkdownLinks: 'warn', | ||
|
||
// Even if you don't use internationalization, 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'], | ||
baseUrl: "/", | ||
onBrokenLinks: "throw", | ||
onBrokenMarkdownLinks: "throw", | ||
organizationName: "dagster", | ||
projectName: "dagster", | ||
markdown: { | ||
mermaid: true, | ||
}, | ||
|
||
presets: [ | ||
[ | ||
'classic', | ||
{ | ||
docs: { | ||
sidebarPath: './sidebars.ts', | ||
routeBasePath: '/', | ||
// Please change this to your repo. | ||
// Remove this to remove the "edit this page" links. | ||
editUrl: | ||
'https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/', | ||
}, | ||
blog: false, | ||
theme: { | ||
customCss: './src/css/custom.css', | ||
}, | ||
} satisfies Preset.Options, | ||
], | ||
], | ||
|
||
themes: ["@docusaurus/theme-mermaid"], | ||
i18n: { defaultLocale: "en", locales: ["en"] }, | ||
plugins: ["docusaurus-plugin-sass"], | ||
themeConfig: { | ||
// Replace with your project's social card | ||
image: 'img/docusaurus-social-card.jpg', | ||
colorMode: { | ||
defaultMode: "dark", | ||
disableSwitch: false, | ||
respectPrefersColorScheme: true, | ||
}, | ||
prism: { | ||
theme: prismThemes.github, | ||
darkTheme: prismThemes.dracula, | ||
additionalLanguages: ["diff", "json"], | ||
}, | ||
tableOfContents: { | ||
minHeadingLevel: 2, | ||
maxHeadingLevel: 4, | ||
}, | ||
navbar: { | ||
title: 'My Site', | ||
title: "Dagster Docs - Beta", | ||
style: "dark", | ||
logo: { | ||
alt: 'My Site Logo', | ||
src: 'img/logo.svg', | ||
alt: "Dagster Logo", | ||
src: "img/logo.svg", | ||
href: "/", | ||
}, | ||
items: [ | ||
{ | ||
type: 'docSidebar', | ||
sidebarId: 'tutorialSidebar', | ||
position: 'left', | ||
label: 'Tutorial', | ||
label: "Docs", | ||
type: "doc", | ||
docId: "intro", | ||
position: "left", | ||
}, | ||
{to: '/blog', label: 'Blog', position: 'left'}, | ||
{ | ||
href: 'https://github.com/facebook/docusaurus', | ||
label: 'GitHub', | ||
position: 'right', | ||
label: "API", | ||
type: "doc", | ||
docId: "api", | ||
position: "left", | ||
}, | ||
{ | ||
href: "https://github.com/dagster-io/dagster", | ||
label: "GitHub", | ||
position: "right", | ||
}, | ||
], | ||
}, | ||
image: "img/docusaurus-social-card.jpg", | ||
docs: { | ||
sidebar: { | ||
autoCollapseCategories: false, | ||
}, | ||
}, | ||
|
||
footer: { | ||
style: 'dark', | ||
style: "dark", | ||
logo: { | ||
alt: "Dagster Logo", | ||
src: "img/logo.svg", | ||
href: "/", | ||
}, | ||
links: [ | ||
{ | ||
title: 'Docs', | ||
title: "Docs", | ||
items: [ | ||
{ | ||
label: 'Tutorial', | ||
to: '/docs/intro', | ||
label: "Tutorial", | ||
to: "/intro", | ||
}, | ||
], | ||
}, | ||
{ | ||
title: 'Community', | ||
title: "Community", | ||
items: [ | ||
{ | ||
label: 'Stack Overflow', | ||
href: 'https://stackoverflow.com/questions/tagged/docusaurus', | ||
label: "Stack Overflow", | ||
href: "https://stackoverflow.com/questions/tagged/dagster", | ||
}, | ||
{ | ||
label: 'Discord', | ||
href: 'https://discordapp.com/invite/docusaurus', | ||
}, | ||
{ | ||
label: 'Twitter', | ||
href: 'https://twitter.com/docusaurus', | ||
label: "Twitter", | ||
href: "https://twitter.com/dagster", | ||
}, | ||
], | ||
}, | ||
{ | ||
title: 'More', | ||
title: "More", | ||
items: [ | ||
{ | ||
label: 'Blog', | ||
to: '/blog', | ||
}, | ||
{ | ||
label: 'GitHub', | ||
href: 'https://github.com/facebook/docusaurus', | ||
label: "GitHub", | ||
href: "https://github.com/dagster-io/dagster", | ||
}, | ||
], | ||
}, | ||
], | ||
copyright: `Copyright © ${new Date().getFullYear()} My Project, Inc. Built with Docusaurus.`, | ||
}, | ||
prism: { | ||
theme: prismThemes.github, | ||
darkTheme: prismThemes.dracula, | ||
copyright: `Copyright © ${new Date().getFullYear()} Dagster Labs.`, | ||
}, | ||
} satisfies Preset.ThemeConfig, | ||
presets: [ | ||
[ | ||
"@docusaurus/preset-classic", | ||
{ | ||
docs: { | ||
sidebarPath: "./sidebars.ts", | ||
routeBasePath: "/", | ||
editUrl: | ||
"https://github.com/dagster-io/dagster/tree/main/docs/docs-next", | ||
}, | ||
blog: false, | ||
theme: { | ||
customCss: [ | ||
require.resolve( | ||
"./node_modules/modern-normalize/modern-normalize.css" | ||
), | ||
require.resolve("./src/styles/custom.scss"), | ||
], | ||
}, | ||
} satisfies Preset.Options, | ||
], | ||
], | ||
}; | ||
|
||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import globals from "globals"; | ||
import pluginJs from "@eslint/js"; | ||
import tseslint from "typescript-eslint"; | ||
import pluginReact from "eslint-plugin-react"; | ||
|
||
export default [ | ||
{ files: ["**/*.{js,mjs,cjs,ts,jsx,tsx}"] }, | ||
{ languageOptions: { globals: globals.browser } }, | ||
pluginJs.configs.recommended, | ||
...tseslint.configs.recommended, | ||
pluginReact.configs.flat.recommended, | ||
{ | ||
rules: { | ||
"react/react-in-jsx-scope": "off", | ||
}, | ||
}, | ||
]; |
Oops, something went wrong.