Skip to content

Commit

Permalink
run prettier and eslint and all that stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
PedramNavid committed Aug 16, 2024
1 parent ab05fd7 commit 41a4799
Show file tree
Hide file tree
Showing 21 changed files with 1,009 additions and 873 deletions.
29 changes: 25 additions & 4 deletions docs/docs-next/.eslintrc.js
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',
},
},
};
18 changes: 5 additions & 13 deletions docs/docs-next/.remarkrc.js
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',
]
}
2 changes: 1 addition & 1 deletion docs/docs-next/babel.config.js
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')],
};
312 changes: 154 additions & 158 deletions docs/docs-next/docusaurus.config.ts
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;
Loading

0 comments on commit 41a4799

Please sign in to comment.