-
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.
run prettier and eslint and all that stuff
- Loading branch information
1 parent
ab05fd7
commit 41a4799
Showing
21 changed files
with
1,009 additions
and
873 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 |
---|---|---|
@@ -1,7 +1,28 @@ | ||
module.exports = { | ||
extends: ['@dagster-io/eslint-config', 'plugin:@docusaurus/recommended'], | ||
rules: { | ||
'import/no-default-export': 'off', | ||
'react/react-in-jsx-scope': 'off', | ||
parser: '@babel/eslint-parser', | ||
extends: ['plugin:react/recommended', 'plugin:@docusaurus/recommended', 'plugin:mdx/recommended'], | ||
rules: { | ||
'import/no-default-export': 'off', | ||
'react/react-in-jsx-scope': 'off', | ||
}, | ||
ignorePatterns: ['build'], | ||
parserOptions: { | ||
extensions: ['.md', '.mdx'], // Resolve .md files as .mdx | ||
markdownExtensions: ['.md', '.markdown'], // Treat .md and .markdown files as plain markdown | ||
}, | ||
overrides: [ | ||
{ | ||
files: ['*.md', '*.mdx'], | ||
extends: 'plugin:mdx/recommended', | ||
rules: { | ||
'react/jsx-no-undef': 'off', | ||
'react/no-unescaped-entities': 'off', | ||
}, | ||
}, | ||
], | ||
settings: { | ||
react: { | ||
version: 'detect', | ||
}, | ||
}, | ||
}; |
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,13 +1,5 @@ | ||
exports.settings = { | ||
bullet: "-", | ||
emphasis: "_", | ||
strong: "*", | ||
listItemIndent: "one", | ||
rule: "-", | ||
}; | ||
exports.plugins = [ | ||
require("remark-frontmatter"), | ||
require("remark-preset-prettier"), | ||
// GitHub Flavored Markdown's table pipe alignment | ||
[require("remark-gfm"), { tablePipeAlign: true }], | ||
]; | ||
module.exports = { | ||
plugins: [ | ||
'remark-frontmatter', | ||
] | ||
} |
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')], | ||
}; |
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,166 +1,162 @@ | ||
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: "Dagster Docs - Beta", | ||
tagline: | ||
"Dagster is a Python framework for building production-grade data platforms.", | ||
url: "https://docs.dagster.io", | ||
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', | ||
|
||
baseUrl: "/", | ||
onBrokenLinks: "throw", | ||
onBrokenMarkdownLinks: "throw", | ||
organizationName: "dagster", | ||
projectName: "dagster", | ||
markdown: { | ||
mermaid: true, | ||
}, | ||
themes: ["@docusaurus/theme-mermaid"], | ||
i18n: { defaultLocale: "en", locales: ["en"] }, | ||
plugins: [ | ||
require.resolve("docusaurus-plugin-sass"), | ||
require.resolve("docusaurus-plugin-image-zoom"), | ||
], | ||
themeConfig: { | ||
colorMode: { | ||
defaultMode: "dark", | ||
disableSwitch: false, | ||
respectPrefersColorScheme: true, | ||
}, | ||
prism: { | ||
theme: prismThemes.github, | ||
darkTheme: prismThemes.dracula, | ||
additionalLanguages: ["diff", "json", "bash"], | ||
}, | ||
zoom: { | ||
selector: ".markdown > img, .tabs-container img ", | ||
config: { | ||
// options you can specify via https://github.com/francoischalifour/medium-zoom#usage | ||
background: { | ||
light: "rgb(255, 255, 255)", | ||
dark: "rgb(50, 50, 50)", | ||
}, | ||
}, | ||
}, | ||
tableOfContents: { | ||
minHeadingLevel: 2, | ||
maxHeadingLevel: 4, | ||
}, | ||
navbar: { | ||
logo: { | ||
alt: "Dagster Logo", | ||
src: "img/dagster-docs-logo.svg", | ||
srcDark: "img/dagster-docs-logo-dark.svg", | ||
href: "/", | ||
}, | ||
items: [ | ||
{ | ||
label: "Docs", | ||
type: "doc", | ||
docId: "intro", | ||
position: "left", | ||
}, | ||
{ | ||
label: "Integrations", | ||
type: "doc", | ||
docId: "integrations", | ||
position: "left", | ||
}, | ||
{ | ||
label: "Dagster+", | ||
type: "doc", | ||
docId: "dagster-plus", | ||
position: "left", | ||
}, | ||
{ | ||
label: "References", | ||
type: "doc", | ||
docId: "api", | ||
position: "left", | ||
}, | ||
{ | ||
label: "Changelog", | ||
type: "doc", | ||
docId: "changelog", | ||
position: "right", | ||
}, | ||
], | ||
}, | ||
image: "img/docusaurus-social-card.jpg", | ||
docs: { | ||
sidebar: { | ||
autoCollapseCategories: true, | ||
hideable: true, | ||
}, | ||
}, | ||
baseUrl: '/', | ||
onBrokenLinks: 'throw', | ||
onBrokenMarkdownLinks: 'throw', | ||
organizationName: 'dagster', | ||
projectName: 'dagster', | ||
markdown: { | ||
mermaid: true, | ||
}, | ||
themes: ['@docusaurus/theme-mermaid'], | ||
i18n: {defaultLocale: 'en', locales: ['en']}, | ||
plugins: [ | ||
require.resolve('docusaurus-plugin-sass'), | ||
require.resolve('docusaurus-plugin-image-zoom'), | ||
], | ||
themeConfig: { | ||
colorMode: { | ||
defaultMode: 'dark', | ||
disableSwitch: false, | ||
respectPrefersColorScheme: true, | ||
}, | ||
prism: { | ||
theme: prismThemes.github, | ||
darkTheme: prismThemes.dracula, | ||
additionalLanguages: ['diff', 'json', 'bash'], | ||
}, | ||
zoom: { | ||
selector: '.markdown > img, .tabs-container img ', | ||
config: { | ||
// options you can specify via https://github.com/francoischalifour/medium-zoom#usage | ||
background: { | ||
light: 'rgb(255, 255, 255)', | ||
dark: 'rgb(50, 50, 50)', | ||
}, | ||
}, | ||
}, | ||
tableOfContents: { | ||
minHeadingLevel: 2, | ||
maxHeadingLevel: 4, | ||
}, | ||
navbar: { | ||
logo: { | ||
alt: 'Dagster Logo', | ||
src: 'img/dagster-docs-logo.svg', | ||
srcDark: 'img/dagster-docs-logo-dark.svg', | ||
href: '/', | ||
}, | ||
items: [ | ||
{ | ||
label: 'Docs', | ||
type: 'doc', | ||
docId: 'intro', | ||
position: 'left', | ||
}, | ||
{ | ||
label: 'Integrations', | ||
type: 'doc', | ||
docId: 'integrations', | ||
position: 'left', | ||
}, | ||
{ | ||
label: 'Dagster+', | ||
type: 'doc', | ||
docId: 'dagster-plus', | ||
position: 'left', | ||
}, | ||
{ | ||
label: 'References', | ||
type: 'doc', | ||
docId: 'api', | ||
position: 'left', | ||
}, | ||
{ | ||
label: 'Changelog', | ||
type: 'doc', | ||
docId: 'changelog', | ||
position: 'right', | ||
}, | ||
], | ||
}, | ||
image: 'img/docusaurus-social-card.jpg', | ||
docs: { | ||
sidebar: { | ||
autoCollapseCategories: true, | ||
hideable: true, | ||
}, | ||
}, | ||
|
||
footer: { | ||
logo: { | ||
alt: "Dagster Logo", | ||
src: "img/logo.svg", | ||
href: "/", | ||
}, | ||
links: [ | ||
{ | ||
title: "Docs", | ||
items: [ | ||
{ | ||
label: "Docs", | ||
to: "/", | ||
}, | ||
], | ||
}, | ||
{ | ||
title: "Community", | ||
items: [ | ||
{ | ||
label: "Stack Overflow", | ||
href: "https://stackoverflow.com/questions/tagged/dagster", | ||
}, | ||
{ | ||
label: "Twitter", | ||
href: "https://twitter.com/dagster", | ||
}, | ||
], | ||
}, | ||
{ | ||
title: "More", | ||
items: [ | ||
{ | ||
label: "GitHub", | ||
href: "https://github.com/dagster-io/dagster", | ||
}, | ||
], | ||
}, | ||
], | ||
copyright: `Copyright © ${new Date().getFullYear()} Dagster Labs.`, | ||
}, | ||
} satisfies Preset.ThemeConfig, | ||
footer: { | ||
logo: { | ||
alt: 'Dagster Logo', | ||
src: 'img/logo.svg', | ||
href: '/', | ||
}, | ||
links: [ | ||
{ | ||
title: 'Docs', | ||
items: [ | ||
{ | ||
label: 'Docs', | ||
to: '/', | ||
}, | ||
], | ||
}, | ||
{ | ||
title: 'Community', | ||
items: [ | ||
{ | ||
label: 'Stack Overflow', | ||
href: 'https://stackoverflow.com/questions/tagged/dagster', | ||
}, | ||
{ | ||
label: 'Twitter', | ||
href: 'https://twitter.com/dagster', | ||
}, | ||
], | ||
}, | ||
{ | ||
title: 'More', | ||
items: [ | ||
{ | ||
label: 'GitHub', | ||
href: 'https://github.com/dagster-io/dagster', | ||
}, | ||
], | ||
}, | ||
], | ||
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/docs/revamp/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, | ||
], | ||
], | ||
presets: [ | ||
[ | ||
'@docusaurus/preset-classic', | ||
{ | ||
docs: { | ||
sidebarPath: './sidebars.ts', | ||
routeBasePath: '/', | ||
editUrl: 'https://github.com/dagster-io/dagster/tree/docs/revamp/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; |
Oops, something went wrong.