diff --git a/.github/workflows/lint-autofix.yml b/.github/workflows/lint-autofix.yml index 1c250f2810e0..a793dfa475ff 100644 --- a/.github/workflows/lint-autofix.yml +++ b/.github/workflows/lint-autofix.yml @@ -27,7 +27,7 @@ jobs: - name: Installation run: yarn || yarn || yarn - - name: AutoFix Format + - name: AutoFix Formatting run: yarn format - name: AutoFix JS diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 82eec82d236c..92bfa6c3817c 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -40,5 +40,5 @@ jobs: echo "::add-matcher::.github/workflows/cspell-problem-matcher.json" yarn lint:ci - - name: Prettier Code + - name: Check Formatting run: yarn format:diff diff --git a/.lintstagedrc.json b/.lintstagedrc.json index f526fd4b5bc0..6ac67b360acc 100644 --- a/.lintstagedrc.json +++ b/.lintstagedrc.json @@ -1,5 +1,13 @@ { - "*.{js,jsx,ts,tsx,mjs}": ["eslint --fix"], - "*.css": ["stylelint --allow-empty-input --fix"], - "*": ["prettier --ignore-unknown --write"] + "*.{js,jsx,ts,tsx,mjs,cjs,mts,cts}": [ + "eslint --fix", + "oxfmt --no-error-on-unmatched-pattern" + ], + "*.{css,scss,less}": [ + "stylelint --allow-empty-input --fix", + "oxfmt --no-error-on-unmatched-pattern" + ], + "*.{json,jsonc,json5,md,mdx,html,yml,yaml,toml}": [ + "oxfmt --no-error-on-unmatched-pattern" + ] } diff --git a/.oxfmtrc.json b/.oxfmtrc.json new file mode 100644 index 000000000000..4d48c5b15bdd --- /dev/null +++ b/.oxfmtrc.json @@ -0,0 +1,46 @@ +{ + "$schema": "./node_modules/oxfmt/configuration_schema.json", + "arrowParens": "always", + "bracketSameLine": true, + "bracketSpacing": false, + "ignorePatterns": [ + "dist", + "node_modules", + ".yarn", + "**/build/**", + "coverage", + ".docusaurus", + ".idea", + ".svg", + "*.svg", + "jest/vendor", + "argos/test-results", + "packages/lqip-loader/lib/", + "packages/docusaurus/lib/", + "packages/docusaurus-*/lib/*", + "packages/create-docusaurus/lib/*", + "packages/create-docusaurus/templates/*/docusaurus.config.js", + "packages/eslint-plugin/lib/", + "packages/stylelint-copyright/lib/", + "__fixtures__", + "website/i18n", + "website/versions.json", + "website/docusaurus.config.js", + "website/versioned_docs/", + "website/versioned_sidebars/*.json", + "examples/", + "website/static/katex/katex.min.css", + "website/changelog", + "website/_dogfooding/_swizzle_theme_tests", + "website/_dogfooding/_asset-tests/badSyntax.js", + "website/_dogfooding/_asset-tests/badSyntax.css", + "*.xml", + "*.xsl" + ], + "insertFinalNewline": true, + "printWidth": 80, + "proseWrap": "never", + "singleQuote": true, + "sortPackageJson": false, + "trailingComma": "all" +} diff --git a/.prettierignore b/.prettierignore deleted file mode 100644 index c611d3a49e72..000000000000 --- a/.prettierignore +++ /dev/null @@ -1,36 +0,0 @@ -dist -node_modules -.yarn -**/build/** -coverage -.docusaurus -.idea - -.svg -*.svg - -jest/vendor - -argos/test-results - -packages/lqip-loader/lib/ -packages/docusaurus/lib/ -packages/docusaurus-*/lib/* -packages/create-docusaurus/lib/* -packages/create-docusaurus/templates/*/docusaurus.config.js -packages/eslint-plugin/lib/ -packages/stylelint-copyright/lib/ -__fixtures__ - -website/i18n -website/versions.json -website/docusaurus.config.js -website/versioned_sidebars/*.json - -examples/ -website/static/katex/katex.min.css - -website/changelog -website/_dogfooding/_swizzle_theme_tests -website/_dogfooding/_asset-tests/badSyntax.js -website/_dogfooding/_asset-tests/badSyntax.css diff --git a/.prettierrc b/.prettierrc deleted file mode 100644 index d17d2ebb79c0..000000000000 --- a/.prettierrc +++ /dev/null @@ -1,9 +0,0 @@ -{ - "arrowParens": "always", - "bracketSpacing": false, - "bracketSameLine": true, - "printWidth": 80, - "proseWrap": "never", - "singleQuote": true, - "trailingComma": "all" -} diff --git a/.vscode/extensions.json b/.vscode/extensions.json index 3a5fabe0c6af..d37cec73007c 100644 --- a/.vscode/extensions.json +++ b/.vscode/extensions.json @@ -2,7 +2,7 @@ // See https://go.microsoft.com/fwlink/?LinkId=827846 to learn about workspace recommendations. "recommendations": [ "streetsidesoftware.code-spell-checker", - "esbenp.prettier-vscode", + "oxc.oxc-vscode", "dbaeumer.vscode-eslint", "stylelint.vscode-stylelint", "EditorConfig.EditorConfig", diff --git a/AGENTS.md b/AGENTS.md index 6056cc6cc490..5a2f31bab125 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -13,7 +13,6 @@ Docusaurus uses itself to build its own website, which serves as both documentat ### Monorepo Structure - `packages/` - Core Docusaurus packages and plugins, published to npm - - `docusaurus/` - Main CLI and core functionality - `docusaurus-plugin-*` - Official plugins, the main ones are `docs`, `blog`, `pages` - `docusaurus-theme-classic/` - Default theme, based on the Infima.dev design system and CSS modules @@ -42,7 +41,7 @@ The main CLI commands available - `yarn install` - Install dependencies and then build all monorepo packages - `yarn build:packages` - Build all monorepo packages - `yarn watch` - Incremental build of monorepo packages with file watchers -- `yarn format` - Format code with Prettier +- `yarn format` - Format code with Oxfmt - `yarn lint` - Run linting (ESLint + Stylelint + spell check) - `yarn test` - Run all tests using Jest - `yarn clear` - Clean all build artifacts and caches @@ -68,7 +67,7 @@ Update Jest failing snapshots with the `-u` option. Do not blindly update snapsh ### Linting & Formatting -- `yarn format` - Format code with Prettier +- `yarn format` - Format code with Oxfmt - `yarn lint:js` - ESLint for JS/TS files - `yarn lint:style` - Stylelint for CSS files - `yarn lint:spelling` - CSpell for spell checking diff --git a/CHANGELOG-v2.md b/CHANGELOG-v2.md index d1fea7c77a46..2f70ccf634c9 100644 --- a/CHANGELOG-v2.md +++ b/CHANGELOG-v2.md @@ -5503,9 +5503,7 @@ Bad release, check ## 2.0.0-alpha.58 #### :boom: Breaking Change - `infima` - - The following Infima classes have been renamed for consistency: - - `page-item` → `pagination__item` - `pagination-nav__link--label` → `pagination-nav__label` - `pagination-nav__link--sublabel` → `pagination-nav__sublabel` @@ -5515,7 +5513,6 @@ Bad release, check ## 2.0.0-alpha.58 If you have swizzled components, you need to replace these class names. - `docusaurus` - - [#2764](https://github.com/facebook/docusaurus/pull/2764) feat(v2): allow import SVG images ([@lex111](https://github.com/lex111)) #### :rocket: New Feature diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index de66b73be051..2a777b91242d 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -112,7 +112,7 @@ You can also try using the new [github.dev](https://github.dev/facebook/docusaur - **Most important: Look around.** Match the style you see used in the rest of the project. This includes formatting, naming files, naming things in code, naming things in documentation, etc. - "Attractive" -- We do have Prettier (a formatter) and ESLint (a syntax linter) to catch most stylistic problems. If you are working locally, they should automatically fix some issues during every git commit. +- We do have Oxfmt (a formatter), ESLint (a syntax linter), and Stylelint (for CSS) to catch most stylistic problems. If you are working locally, they should automatically fix some issues during every git commit. - **For documentation**: Do not wrap lines at 80 characters - configure your editor to soft-wrap when editing documentation. Don't worry too much about styles in general—the maintainers will help you fix them as they review your code. diff --git a/README.md b/README.md index 1d411f780d5d..b8cf3e3d7032 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ GitHub Actions status PRs Welcome Discord Chat - code style: prettier + code style: oxfmt Tested with Jest Covered by Argos diff --git a/__tests__/validate-tsconfig.test.ts b/__tests__/validate-tsconfig.test.ts index 9253a7e6d693..17eb983fde66 100644 --- a/__tests__/validate-tsconfig.test.ts +++ b/__tests__/validate-tsconfig.test.ts @@ -47,9 +47,8 @@ describe('tsconfig files', () => { try { Joi.attempt(file.content, tsconfigSchema); } catch (e) { - ( - e as Error - ).message += `\n${file.file} does not match the required schema.`; + (e as Error).message += + `\n${file.file} does not match the required schema.`; throw e; } }); diff --git a/admin/new.docusaurus.io/netlify.toml b/admin/new.docusaurus.io/netlify.toml index 872eed87ce29..82190b133a13 100644 --- a/admin/new.docusaurus.io/netlify.toml +++ b/admin/new.docusaurus.io/netlify.toml @@ -3,31 +3,31 @@ directory = "functions" [[redirects]] -from = "/" -to = "/.netlify/functions/index" -status = 200 +from = "/" +to = "/.netlify/functions/index" +status = 200 [[redirects]] -from = "/codesandbox" -to = "/.netlify/functions/codesandbox" -status = 200 +from = "/codesandbox" +to = "/.netlify/functions/codesandbox" +status = 200 [[redirects]] -from = "/codesandbox-ts" -to = "/.netlify/functions/codesandbox-ts" -status = 200 +from = "/codesandbox-ts" +to = "/.netlify/functions/codesandbox-ts" +status = 200 [[redirects]] -from = "/stackblitz" -to = "/.netlify/functions/stackblitz" -status = 200 +from = "/stackblitz" +to = "/.netlify/functions/stackblitz" +status = 200 [[redirects]] -from = "/stackblitz-ts" -to = "/.netlify/functions/stackblitz-ts" -status = 200 +from = "/stackblitz-ts" +to = "/.netlify/functions/stackblitz-ts" +status = 200 [[redirects]] -from = "/*" -to = "/.netlify/functions/index" -status = 200 +from = "/*" +to = "/.netlify/functions/index" +status = 200 diff --git a/package.json b/package.json index 885b9fc25850..e2374ae3dfe8 100644 --- a/package.json +++ b/package.json @@ -55,8 +55,8 @@ "changelog": "lerna-changelog", "postinstall": "patch-package && yarn lock:update && yarn build:packages", "prepare": "husky install", - "format": "prettier --write .", - "format:diff": "prettier --list-different .", + "format": "oxfmt .", + "format:diff": "oxfmt --list-different .", "lint": "yarn lint:js && yarn lint:style && yarn lint:spelling", "lint:ci": "yarn lint:js --quiet && yarn lint:style && yarn lint:spelling", "lint:js": "eslint --cache --report-unused-disable-directives \"**/*.{js,jsx,ts,tsx,mjs}\"", @@ -77,7 +77,6 @@ "devDependencies": { "@ai-sdk/react": "^2.0.30", "@crowdin/cli": "^3.13.0", - "@prettier/plugin-xml": "^2.2.0", "@swc/core": "^1.7.14", "@swc/jest": "^0.2.39", "@testing-library/dom": "^10.4.1", @@ -117,9 +116,9 @@ "lint-staged": "~13.2.3", "lockfile-lint": "^4.14.0", "npm-run-all": "^4.1.5", + "oxfmt": "^0.41.0", "patch-package": "^8.0.0", "postinstall-postinstall": "^2.1.0", - "prettier": "^2.8.8", "react": "^19.2.4", "react-dom": "^19.2.4", "rimraf": "^3.0.2", diff --git a/packages/create-docusaurus/src/index.ts b/packages/create-docusaurus/src/index.ts index 582262146132..266f96d7220b 100755 --- a/packages/create-docusaurus/src/index.ts +++ b/packages/create-docusaurus/src/index.ts @@ -626,8 +626,8 @@ export default async function init( pkgManager === 'yarn' ? 'yarn' : pkgManager === 'bun' - ? 'bun install' - : `${pkgManager} install --color always`, + ? 'bun install' + : `${pkgManager} install --color always`, [], { env: { diff --git a/packages/docusaurus-mdx-loader/src/utils.ts b/packages/docusaurus-mdx-loader/src/utils.ts index eddca6ac56fc..30ed0506fe4c 100644 --- a/packages/docusaurus-mdx-loader/src/utils.ts +++ b/packages/docusaurus-mdx-loader/src/utils.ts @@ -119,7 +119,7 @@ export async function compileToJSX({ const errorDetails = errorJSON === '{}' ? // regular JS error case: print stacktrace - error.stack ?? 'N/A' + (error.stack ?? 'N/A') : // MDX error: print extra attributes + stacktrace `${errorJSON}\n${error.stack}`; diff --git a/packages/docusaurus-plugin-content-blog/assets/atom.css b/packages/docusaurus-plugin-content-blog/assets/atom.css index d2fc20b27416..34e60c0ba022 100644 --- a/packages/docusaurus-plugin-content-blog/assets/atom.css +++ b/packages/docusaurus-plugin-content-blog/assets/atom.css @@ -11,7 +11,13 @@ main { margin: 2rem auto; max-width: 800px; /* stylelint-disable-next-line font-family-name-quotes */ - font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell; + font-family: + system-ui, + -apple-system, + Segoe UI, + Roboto, + Ubuntu, + Cantarell; } .info { diff --git a/packages/docusaurus-plugin-content-blog/assets/rss.css b/packages/docusaurus-plugin-content-blog/assets/rss.css index d2fc20b27416..34e60c0ba022 100644 --- a/packages/docusaurus-plugin-content-blog/assets/rss.css +++ b/packages/docusaurus-plugin-content-blog/assets/rss.css @@ -11,7 +11,13 @@ main { margin: 2rem auto; max-width: 800px; /* stylelint-disable-next-line font-family-name-quotes */ - font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell; + font-family: + system-ui, + -apple-system, + Segoe UI, + Roboto, + Ubuntu, + Cantarell; } .info { diff --git a/packages/docusaurus-plugin-content-blog/src/feed.ts b/packages/docusaurus-plugin-content-blog/src/feed.ts index 55dc59703747..1803c43b5e3e 100644 --- a/packages/docusaurus-plugin-content-blog/src/feed.ts +++ b/packages/docusaurus-plugin-content-blog/src/feed.ts @@ -196,8 +196,8 @@ async function resolveXsltFilePaths({ }) { const xsltAbsolutePath: string = path.isAbsolute(xsltFilePath) ? xsltFilePath - : (await getDataFilePath({filePath: xsltFilePath, contentPaths})) ?? - path.resolve(contentPaths.contentPath, xsltFilePath); + : ((await getDataFilePath({filePath: xsltFilePath, contentPaths})) ?? + path.resolve(contentPaths.contentPath, xsltFilePath)); if (!(await fs.pathExists(xsltAbsolutePath))) { throw new Error( diff --git a/packages/docusaurus-plugin-content-docs/src/sidebars/generator.ts b/packages/docusaurus-plugin-content-docs/src/sidebars/generator.ts index b37536c7e3f6..d78aab9c92a9 100644 --- a/packages/docusaurus-plugin-content-docs/src/sidebars/generator.ts +++ b/packages/docusaurus-plugin-content-docs/src/sidebars/generator.ts @@ -206,7 +206,7 @@ Available doc IDs: return undefined; } const id = link - ? findDocByLocalId(link.id)?.id ?? getDoc(link.id).id + ? (findDocByLocalId(link.id)?.id ?? getDoc(link.id).id) : findConventionalCategoryDocLink()?.id; if (!id) { return undefined; diff --git a/packages/docusaurus-plugin-content-docs/src/versions/files.ts b/packages/docusaurus-plugin-content-docs/src/versions/files.ts index d7b8115432f5..824c8092eef3 100644 --- a/packages/docusaurus-plugin-content-docs/src/versions/files.ts +++ b/packages/docusaurus-plugin-content-docs/src/versions/files.ts @@ -145,7 +145,7 @@ export async function readVersionNames( ); } - const versions = options.disableVersioning ? [] : versionFileContent ?? []; + const versions = options.disableVersioning ? [] : (versionFileContent ?? []); // We add the current version at the beginning, unless: // - user don't want to; or diff --git a/packages/docusaurus-plugin-debug/package.json b/packages/docusaurus-plugin-debug/package.json index cd9443359098..727225936c36 100644 --- a/packages/docusaurus-plugin-debug/package.json +++ b/packages/docusaurus-plugin-debug/package.json @@ -5,7 +5,7 @@ "main": "lib/index.js", "types": "src/plugin-debug.d.ts", "scripts": { - "build": "tsc --build && node ../../admin/scripts/copyUntypedFiles.js && prettier --config ../../.prettierrc --write \"lib/theme/**/*.js\"", + "build": "tsc --build && node ../../admin/scripts/copyUntypedFiles.js && oxfmt --no-error-on-unmatched-pattern --config ../../.oxfmtrc.json \"lib/theme/**/*.js\"", "watch": "run-p -c copy:watch build:watch", "build:watch": "tsc --build --watch", "copy:watch": "node ../../admin/scripts/copyUntypedFiles.js --watch" diff --git a/packages/docusaurus-plugin-ideal-image/package.json b/packages/docusaurus-plugin-ideal-image/package.json index 2bff7b3ef931..f44a6f1d5738 100644 --- a/packages/docusaurus-plugin-ideal-image/package.json +++ b/packages/docusaurus-plugin-ideal-image/package.json @@ -5,7 +5,7 @@ "main": "lib/index.js", "types": "src/plugin-ideal-image.d.ts", "scripts": { - "build": "tsc --build && node ../../admin/scripts/copyUntypedFiles.js && prettier --config ../../.prettierrc --write \"lib/theme/**/*.js\"", + "build": "tsc --build && node ../../admin/scripts/copyUntypedFiles.js && oxfmt --no-error-on-unmatched-pattern --config ../../.oxfmtrc.json \"lib/theme/**/*.js\"", "watch": "run-p -c copy:watch build:watch", "build:watch": "tsc --build --watch", "copy:watch": "node ../../admin/scripts/copyUntypedFiles.js --watch" diff --git a/packages/docusaurus-plugin-ideal-image/src/plugin-ideal-image.d.ts b/packages/docusaurus-plugin-ideal-image/src/plugin-ideal-image.d.ts index 4739e8a3e8d2..e8f0281dde64 100644 --- a/packages/docusaurus-plugin-ideal-image/src/plugin-ideal-image.d.ts +++ b/packages/docusaurus-plugin-ideal-image/src/plugin-ideal-image.d.ts @@ -118,8 +118,10 @@ declare module '@theme/IdealImageLegacy' { type ThemeKey = 'placeholder' | 'img' | 'icon' | 'noscript'; - export interface ImageProps - extends Omit, 'srcSet' | 'placeholder'> { + export interface ImageProps extends Omit< + ComponentProps<'img'>, + 'srcSet' | 'placeholder' + > { /** * This function decides what icon to show based on the current state of the * component. diff --git a/packages/docusaurus-plugin-pwa/package.json b/packages/docusaurus-plugin-pwa/package.json index 0e9b4a2a97cc..513953e3200d 100644 --- a/packages/docusaurus-plugin-pwa/package.json +++ b/packages/docusaurus-plugin-pwa/package.json @@ -5,7 +5,7 @@ "main": "lib/index.js", "types": "src/plugin-pwa.d.ts", "scripts": { - "build": "tsc --build && node ../../admin/scripts/copyUntypedFiles.js && prettier --config ../../.prettierrc --write \"lib/theme/**/*.js\"", + "build": "tsc --build && node ../../admin/scripts/copyUntypedFiles.js && oxfmt --no-error-on-unmatched-pattern --config ../../.oxfmtrc.json \"lib/theme/**/*.js\"", "watch": "run-p -c copy:watch build:watch", "build:watch": "tsc --build --watch", "copy:watch": "node ../../admin/scripts/copyUntypedFiles.js --watch" diff --git a/packages/docusaurus-theme-classic/package.json b/packages/docusaurus-theme-classic/package.json index 09fa053d21a4..088190388456 100644 --- a/packages/docusaurus-theme-classic/package.json +++ b/packages/docusaurus-theme-classic/package.json @@ -14,7 +14,7 @@ }, "license": "MIT", "scripts": { - "build": "tsc --build && node ../../admin/scripts/copyUntypedFiles.js && prettier --config ../../.prettierrc --write \"lib/theme/**/*.js\"", + "build": "tsc --build && node ../../admin/scripts/copyUntypedFiles.js && oxfmt --no-error-on-unmatched-pattern --config ../../.oxfmtrc.json \"lib/theme/**/*.js\"", "watch": "run-p -c copy:watch build:watch", "build:watch": "tsc --build --watch", "copy:watch": "node ../../admin/scripts/copyUntypedFiles.js --watch" diff --git a/packages/docusaurus-theme-classic/src/nprogress.css b/packages/docusaurus-theme-classic/src/nprogress.css index 5e369a9c8b09..a61916c25a0c 100644 --- a/packages/docusaurus-theme-classic/src/nprogress.css +++ b/packages/docusaurus-theme-classic/src/nprogress.css @@ -34,7 +34,8 @@ right: 0; width: 100px; height: 100%; - box-shadow: 0 0 10px var(--docusaurus-progress-bar-color), + box-shadow: + 0 0 10px var(--docusaurus-progress-bar-color), 0 0 5px var(--docusaurus-progress-bar-color); opacity: 1; transform: rotate(3deg) translate(0, -4px); diff --git a/packages/docusaurus-theme-classic/src/options.ts b/packages/docusaurus-theme-classic/src/options.ts index f4f84b5b1fbc..4fd46c62c40d 100644 --- a/packages/docusaurus-theme-classic/src/options.ts +++ b/packages/docusaurus-theme-classic/src/options.ts @@ -150,8 +150,8 @@ const itemWithType = (type: string | RegExp | undefined) => { type instanceof RegExp ? Joi.string().required().regex(type) : type - ? Joi.string().required().equal(type) - : Joi.string().forbidden(); + ? Joi.string().required().equal(type) + : Joi.string().forbidden(); return Joi.object({ type: typeSchema, }) diff --git a/packages/docusaurus-theme-classic/src/theme/DocSidebarItem/Category/index.tsx b/packages/docusaurus-theme-classic/src/theme/DocSidebarItem/Category/index.tsx index 8f6a2a84a7bf..f87a0f8867f4 100644 --- a/packages/docusaurus-theme-classic/src/theme/DocSidebarItem/Category/index.tsx +++ b/packages/docusaurus-theme-classic/src/theme/DocSidebarItem/Category/index.tsx @@ -284,7 +284,9 @@ function DocSidebarItemCategoryCollapsible({ aria-current={isCurrentPage ? 'page' : undefined} role={collapsible && !href ? 'button' : undefined} aria-expanded={collapsible && !href ? !collapsed : undefined} - href={collapsible ? hrefWithSSRFallback ?? '#' : hrefWithSSRFallback} + href={ + collapsible ? (hrefWithSSRFallback ?? '#') : hrefWithSSRFallback + } {...props}> diff --git a/packages/docusaurus-theme-live-codeblock/package.json b/packages/docusaurus-theme-live-codeblock/package.json index 8cc186f2d594..2ef6dc7d480a 100644 --- a/packages/docusaurus-theme-live-codeblock/package.json +++ b/packages/docusaurus-theme-live-codeblock/package.json @@ -23,7 +23,7 @@ "access": "public" }, "scripts": { - "build": "tsc --build && node ../../admin/scripts/copyUntypedFiles.js && prettier --config ../../.prettierrc --write \"lib/theme/**/*.js\"", + "build": "tsc --build && node ../../admin/scripts/copyUntypedFiles.js && oxfmt --no-error-on-unmatched-pattern --config ../../.oxfmtrc.json \"lib/theme/**/*.js\"", "watch": "run-p -c copy:watch build:watch", "build:watch": "tsc --build --watch", "copy:watch": "node ../../admin/scripts/copyUntypedFiles.js --watch" diff --git a/packages/docusaurus-theme-mermaid/package.json b/packages/docusaurus-theme-mermaid/package.json index db58cd8a2608..687d937a1f49 100644 --- a/packages/docusaurus-theme-mermaid/package.json +++ b/packages/docusaurus-theme-mermaid/package.json @@ -27,7 +27,7 @@ }, "license": "MIT", "scripts": { - "build": "tsc --build && node ../../admin/scripts/copyUntypedFiles.js && prettier --config ../../.prettierrc --write \"lib/theme/**/*.js\"", + "build": "tsc --build && node ../../admin/scripts/copyUntypedFiles.js && oxfmt --no-error-on-unmatched-pattern --config ../../.oxfmtrc.json \"lib/theme/**/*.js\"", "watch": "run-p -c copy:watch build:watch", "build:watch": "tsc --build --watch", "copy:watch": "node ../../admin/scripts/copyUntypedFiles.js --watch" diff --git a/packages/docusaurus-theme-search-algolia/package.json b/packages/docusaurus-theme-search-algolia/package.json index 9df55645c93e..e86ddf22e4e8 100644 --- a/packages/docusaurus-theme-search-algolia/package.json +++ b/packages/docusaurus-theme-search-algolia/package.json @@ -27,7 +27,7 @@ }, "license": "MIT", "scripts": { - "build": "tsc --build && node ../../admin/scripts/copyUntypedFiles.js && prettier --config ../../.prettierrc --write \"lib/theme/**/*.js\"", + "build": "tsc --build && node ../../admin/scripts/copyUntypedFiles.js && oxfmt --no-error-on-unmatched-pattern --config ../../.oxfmtrc.json \"lib/theme/**/*.js\"", "watch": "run-p -c copy:watch build:watch", "build:watch": "tsc --build --watch", "copy:watch": "node ../../admin/scripts/copyUntypedFiles.js --watch" diff --git a/packages/docusaurus-theme-search-algolia/src/theme/SearchBar/index.tsx b/packages/docusaurus-theme-search-algolia/src/theme/SearchBar/index.tsx index cf681939b143..821d1d1d6671 100644 --- a/packages/docusaurus-theme-search-algolia/src/theme/SearchBar/index.tsx +++ b/packages/docusaurus-theme-search-algolia/src/theme/SearchBar/index.tsx @@ -140,8 +140,7 @@ function useResultsFooterComponent({ }): DocSearchProps['resultsFooterComponent'] { return useMemo( () => - ({state}) => - , + ({state}) => , [closeModal], ); } diff --git a/packages/docusaurus-theme-translations/update.mjs b/packages/docusaurus-theme-translations/update.mjs index 0c91fafd939f..3331f3f2ec09 100644 --- a/packages/docusaurus-theme-translations/update.mjs +++ b/packages/docusaurus-theme-translations/update.mjs @@ -231,8 +231,8 @@ const messages = locales.map(([name, stat]) => { percentage > 0.99 ? logger.green : percentage > 0.7 - ? logger.yellow - : logger.red; + ? logger.yellow + : logger.red; const progress = color( `[${''.padStart(filled, '=')}${''.padStart(30 - filled, ' ')}]`, ); diff --git a/packages/docusaurus-types/src/plugin.d.ts b/packages/docusaurus-types/src/plugin.d.ts index 25458e9fd8c1..b3378247a4fa 100644 --- a/packages/docusaurus-types/src/plugin.d.ts +++ b/packages/docusaurus-types/src/plugin.d.ts @@ -208,10 +208,10 @@ export type LoadedPlugin = InitializedPlugin & { }; export type PluginModule = { - (context: LoadContext, options: unknown): - | Plugin - | null - | Promise | null>; + ( + context: LoadContext, + options: unknown, + ): Plugin | null | Promise | null>; validateOptions?: (data: OptionValidationContext) => U; validateThemeConfig?: (data: ThemeConfigValidationContext) => T; diff --git a/packages/docusaurus-types/src/swizzle.d.ts b/packages/docusaurus-types/src/swizzle.d.ts index de480fe55d0f..a440c4238af6 100644 --- a/packages/docusaurus-types/src/swizzle.d.ts +++ b/packages/docusaurus-types/src/swizzle.d.ts @@ -32,12 +32,13 @@ export type SwizzleConfig = { export type WrapperProps< // eslint-disable-next-line @typescript-eslint/no-explicit-any T extends keyof JSX.IntrinsicElements | JSXElementConstructor, -> = T extends JSXElementConstructor - ? unknown extends P - ? // eslint-disable-next-line @typescript-eslint/ban-types - {} - : P - : T extends keyof JSX.IntrinsicElements - ? JSX.IntrinsicElements[T] - : // eslint-disable-next-line @typescript-eslint/ban-types - {}; +> = + T extends JSXElementConstructor + ? unknown extends P + ? // eslint-disable-next-line @typescript-eslint/ban-types + {} + : P + : T extends keyof JSX.IntrinsicElements + ? JSX.IntrinsicElements[T] + : // eslint-disable-next-line @typescript-eslint/ban-types + {}; diff --git a/packages/docusaurus-utils/src/__tests__/pathUtils.test.ts b/packages/docusaurus-utils/src/__tests__/pathUtils.test.ts index 5c683e163c7e..b51970e1dbc3 100644 --- a/packages/docusaurus-utils/src/__tests__/pathUtils.test.ts +++ b/packages/docusaurus-utils/src/__tests__/pathUtils.test.ts @@ -28,10 +28,8 @@ describe('isNameTooLong', () => { 'endi-lie-fd3': false, 'yangshun-tay-48d': false, 'yangshun-tay-f3b': false, - 'foo-bar-foo-bar-foo-bar-foo-bar-foo-bar-foo-bar-foo-bar-foo-bar-foo-bar-foo-bar-foo-bar-foo-bar-foo-bar-foo-bar-foo-bar-foo-bar-foo-bar-foo-bar-foo-bar-foo-bar-foo-bar-foo-bar-foo-bar-foo-bar-foo-bar-foo-bar-foo-bar-foo-bar-foo-bar-foo-bar-foo-bar-foo-bar-d46': - true, - 'foo-bar-foo-bar-foo-bar-foo-bar-foo-bar-foo-bar-foo-bar-foo-bar-foo-bar-foo-bar-foo-bar-foo-bar-foo-bar-foo-bar-foo-bar-foo-bar-foo-bar-foo-bar-foo-bar-foo-bar-foo-bar-foo-bar-foo-bar-foo-bar-foo-bar-foo-bar-foo-bar-foo-bar-foo-bar-test-1-test-2-787': - true, + 'foo-bar-foo-bar-foo-bar-foo-bar-foo-bar-foo-bar-foo-bar-foo-bar-foo-bar-foo-bar-foo-bar-foo-bar-foo-bar-foo-bar-foo-bar-foo-bar-foo-bar-foo-bar-foo-bar-foo-bar-foo-bar-foo-bar-foo-bar-foo-bar-foo-bar-foo-bar-foo-bar-foo-bar-foo-bar-foo-bar-foo-bar-foo-bar-d46': true, + 'foo-bar-foo-bar-foo-bar-foo-bar-foo-bar-foo-bar-foo-bar-foo-bar-foo-bar-foo-bar-foo-bar-foo-bar-foo-bar-foo-bar-foo-bar-foo-bar-foo-bar-foo-bar-foo-bar-foo-bar-foo-bar-foo-bar-foo-bar-foo-bar-foo-bar-foo-bar-foo-bar-foo-bar-foo-bar-test-1-test-2-787': true, // Every Han zi is three bytes 字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字: {apfs: false, xfs: true}, diff --git a/packages/docusaurus-utils/src/lastUpdateUtils.ts b/packages/docusaurus-utils/src/lastUpdateUtils.ts index 8f8acfd43716..0f1a44e86887 100644 --- a/packages/docusaurus-utils/src/lastUpdateUtils.ts +++ b/packages/docusaurus-utils/src/lastUpdateUtils.ts @@ -89,11 +89,11 @@ export async function readLastUpdateData( }); const lastUpdatedBy = showLastUpdateAuthor - ? frontMatterAuthor ?? (await getLastUpdateBy()) + ? (frontMatterAuthor ?? (await getLastUpdateBy())) : undefined; const lastUpdatedAt = showLastUpdateTime - ? frontMatterTimestamp ?? (await getLastUpdateAt()) + ? (frontMatterTimestamp ?? (await getLastUpdateAt())) : undefined; return { diff --git a/packages/docusaurus-utils/src/markdownHeadingIdUtils.ts b/packages/docusaurus-utils/src/markdownHeadingIdUtils.ts index 70d9bb8c1d84..9d49abffcaba 100644 --- a/packages/docusaurus-utils/src/markdownHeadingIdUtils.ts +++ b/packages/docusaurus-utils/src/markdownHeadingIdUtils.ts @@ -194,8 +194,8 @@ export function writeMarkdownHeadingId( const headingId = overwrite ? undefined : migrate - ? parsedHeading.id - : undefined; + ? parsedHeading.id + : undefined; return addHeadingId( parsedHeading.text, diff --git a/packages/docusaurus-utils/src/markdownLinks.ts b/packages/docusaurus-utils/src/markdownLinks.ts index 5a7ad51495d8..37a0434cf4d2 100644 --- a/packages/docusaurus-utils/src/markdownLinks.ts +++ b/packages/docusaurus-utils/src/markdownLinks.ts @@ -98,6 +98,6 @@ export function resolveMarkdownLinkPathname( ); return aliasedSourceMatch - ? sourceToPermalink.get(aliasedSourceMatch) ?? null + ? (sourceToPermalink.get(aliasedSourceMatch) ?? null) : null; } diff --git a/packages/docusaurus-utils/src/urlUtils.ts b/packages/docusaurus-utils/src/urlUtils.ts index 8cbe926202c6..98bf0123527a 100644 --- a/packages/docusaurus-utils/src/urlUtils.ts +++ b/packages/docusaurus-utils/src/urlUtils.ts @@ -190,8 +190,8 @@ export function toURLPath(url: URL): URLPath { const search = url.search ? url.search.slice(1) : url.href.includes('?') - ? '' - : undefined; + ? '' + : undefined; // Fixes annoying url.hash behavior // "" => undefined @@ -200,8 +200,8 @@ export function toURLPath(url: URL): URLPath { const hash = url.hash ? url.hash.slice(1) : url.href.includes('#') - ? '' - : undefined; + ? '' + : undefined; return { pathname, diff --git a/packages/docusaurus/src/client/BaseUrlIssueBanner/index.tsx b/packages/docusaurus/src/client/BaseUrlIssueBanner/index.tsx index b5c10996cd47..e378195f72ad 100644 --- a/packages/docusaurus/src/client/BaseUrlIssueBanner/index.tsx +++ b/packages/docusaurus/src/client/BaseUrlIssueBanner/index.tsx @@ -32,8 +32,8 @@ function createInlineHtmlBanner(baseUrl: string) {

Your Docusaurus site did not load properly.

A very common reason is a wrong site baseUrl configuration.

Current configured baseUrl = ${baseUrl} ${ - baseUrl === '/' ? ' (default value)' : '' - }

+ baseUrl === '/' ? ' (default value)' : '' + }

We suggest trying baseUrl =

`; diff --git a/packages/docusaurus/src/commands/swizzle/components.ts b/packages/docusaurus/src/commands/swizzle/components.ts index 50ae374a6765..87daaea3f897 100644 --- a/packages/docusaurus/src/commands/swizzle/components.ts +++ b/packages/docusaurus/src/commands/swizzle/components.ts @@ -79,9 +79,7 @@ export async function readComponentNames(themePath: string): Promise { async function walk(dir: string): Promise { const files: File[] = await Promise.all( - ( - await fs.readdir(dir) - ).flatMap(async (file) => { + (await fs.readdir(dir)).flatMap(async (file) => { const fullPath = path.join(dir, file); const stat = await fs.stat(fullPath); const isDir = stat.isDirectory(); diff --git a/packages/docusaurus/src/commands/writeTranslations.ts b/packages/docusaurus/src/commands/writeTranslations.ts index ab577806faa3..ff05f2ba852d 100644 --- a/packages/docusaurus/src/commands/writeTranslations.ts +++ b/packages/docusaurus/src/commands/writeTranslations.ts @@ -106,9 +106,8 @@ Available locales are: ${context.i18n.locales.join(',')}.`, extraSourceCodeFilePaths: await getExtraSourceCodeFilePaths(), }); - const defaultCodeMessages = await loadPluginsDefaultCodeTranslationMessages( - plugins, - ); + const defaultCodeMessages = + await loadPluginsDefaultCodeTranslationMessages(plugins); const codeTranslations = applyDefaultCodeTranslations({ extractedCodeTranslations, diff --git a/packages/docusaurus/src/server/plugins/__tests__/plugins.test.ts b/packages/docusaurus/src/server/plugins/__tests__/plugins.test.ts index b62276638b1b..7ac41662e42c 100644 --- a/packages/docusaurus/src/server/plugins/__tests__/plugins.test.ts +++ b/packages/docusaurus/src/server/plugins/__tests__/plugins.test.ts @@ -292,7 +292,7 @@ describe('loadPlugins', () => { someAttributeGlobal: this.someAttribute, }); }, - } as Plugin & ThisType<{someAttribute: string}>), + }) as Plugin & ThisType<{someAttribute: string}>, ); expect(plugin.content).toMatchInlineSnapshot(`"val"`); diff --git a/packages/docusaurus/src/server/translations/translations.ts b/packages/docusaurus/src/server/translations/translations.ts index 51140f33477f..2e63537e3e0f 100644 --- a/packages/docusaurus/src/server/translations/translations.ts +++ b/packages/docusaurus/src/server/translations/translations.ts @@ -92,7 +92,7 @@ function mergeTranslationFileContent({ // If messages already exist, we don't override them (unless requested) message: options.override ? message - : existingContent[key]?.message ?? message, + : (existingContent[key]?.message ?? message), description, }; }, diff --git a/project-words.txt b/project-words.txt index 648db44b9b95..92538c32a9dd 100644 --- a/project-words.txt +++ b/project-words.txt @@ -206,6 +206,8 @@ orta osascript Outerbounds outerbounds +Oxfmt +oxfmt overrideable ozaki ozakione diff --git a/website/_dogfooding/_blog tests/2022-01-21-dup-footnote.mdx b/website/_dogfooding/_blog tests/2022-01-21-dup-footnote.mdx index efbec159e70d..9a92f9b6af2b 100644 --- a/website/_dogfooding/_blog tests/2022-01-21-dup-footnote.mdx +++ b/website/_dogfooding/_blog tests/2022-01-21-dup-footnote.mdx @@ -9,5 +9,7 @@ bar[^2] baz[^3] [^1]: foo + [^2]: bar + [^3]: baz diff --git a/website/_dogfooding/_blog tests/2022-01-22-dup-footnote.mdx b/website/_dogfooding/_blog tests/2022-01-22-dup-footnote.mdx index 5079f97dfc05..7d710c19f124 100644 --- a/website/_dogfooding/_blog tests/2022-01-22-dup-footnote.mdx +++ b/website/_dogfooding/_blog tests/2022-01-22-dup-footnote.mdx @@ -9,5 +9,7 @@ bar[^2] baz[^3] [^1]: foo + [^2]: bar + [^3]: baz diff --git a/website/_dogfooding/_blog tests/2022-04-20-dup-footnote.mdx b/website/_dogfooding/_blog tests/2022-04-20-dup-footnote.mdx index b512db7244ff..21fd121281e5 100644 --- a/website/_dogfooding/_blog tests/2022-04-20-dup-footnote.mdx +++ b/website/_dogfooding/_blog tests/2022-04-20-dup-footnote.mdx @@ -9,5 +9,7 @@ bar[^2] baz[^3] [^1]: foo + [^2]: bar + [^3]: baz diff --git a/website/_dogfooding/_blog tests/custom-atom.css b/website/_dogfooding/_blog tests/custom-atom.css index c016178d9007..ad5829c20101 100644 --- a/website/_dogfooding/_blog tests/custom-atom.css +++ b/website/_dogfooding/_blog tests/custom-atom.css @@ -16,7 +16,13 @@ main { padding: 1.5 rem; max-width: 800px; /* stylelint-disable-next-line font-family-name-quotes */ - font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell; + font-family: + system-ui, + -apple-system, + Segoe UI, + Roboto, + Ubuntu, + Cantarell; } .info { diff --git a/website/_dogfooding/_blog tests/custom-rss.css b/website/_dogfooding/_blog tests/custom-rss.css index c016178d9007..ad5829c20101 100644 --- a/website/_dogfooding/_blog tests/custom-rss.css +++ b/website/_dogfooding/_blog tests/custom-rss.css @@ -16,7 +16,13 @@ main { padding: 1.5 rem; max-width: 800px; /* stylelint-disable-next-line font-family-name-quotes */ - font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell; + font-family: + system-ui, + -apple-system, + Segoe UI, + Roboto, + Ubuntu, + Cantarell; } .info { diff --git a/website/_dogfooding/_docs tests/tests/footnotes.mdx b/website/_dogfooding/_docs tests/tests/footnotes.mdx index da28ea2d66ce..aad2b9aac17a 100644 --- a/website/_dogfooding/_docs tests/tests/footnotes.mdx +++ b/website/_dogfooding/_docs tests/tests/footnotes.mdx @@ -95,52 +95,101 @@ Lorem ipsum dolor sit amet [^48] Lorem ipsum dolor sit amet [^49] [^50] [^1]: footnote 1 + [^2]: footnote 2 + [^3]: footnote 3 + [^4]: footnote 4 + [^5]: footnote 5 + [^6]: footnote 6 + [^7]: footnote 7 + [^8]: footnote 8 + [^9]: footnote 9 + [^10]: footnote 10 + [^11]: footnote 11 + [^12]: footnote 12 + [^13]: footnote 13 + [^14]: footnote 14 + [^15]: footnote 15 + [^16]: footnote 16 + [^17]: footnote 17 + [^18]: footnote 18 + [^19]: footnote 19 + [^20]: footnote 20 + [^21]: footnote 21 + [^22]: footnote 22 + [^23]: footnote 23 + [^24]: footnote 24 + [^25]: footnote 25 + [^26]: footnote 26 + [^27]: footnote 27 + [^28]: footnote 28 + [^29]: footnote 29 + [^30]: footnote 30 + [^31]: footnote 31 + [^32]: footnote 32 + [^33]: footnote 33 + [^34]: footnote 34 + [^35]: footnote 35 + [^36]: footnote 36 + [^37]: footnote 37 + [^38]: footnote 38 + [^39]: footnote 39 + [^40]: footnote 40 + [^41]: footnote 41 + [^42]: footnote 42 + [^43]: footnote 43 + [^44]: footnote 44 + [^45]: footnote 45 + [^46]: footnote 46 + [^47]: footnote 47 + [^48]: footnote 48 + [^49]: footnote 49 + [^50]: footnote 50 diff --git a/website/_dogfooding/_pages tests/code-block-tests.mdx b/website/_dogfooding/_pages tests/code-block-tests.mdx index 69034fdac42b..1848b56493d6 100644 --- a/website/_dogfooding/_pages tests/code-block-tests.mdx +++ b/website/_dogfooding/_pages tests/code-block-tests.mdx @@ -142,9 +142,8 @@ Multi-line text inside `pre` will turn into one-liner, but it's okay (https://gi Input: a = "abcd", b = "cdabcdab"
Output: 3
- Explanation: a after three repetitions become "ab - cdabcdab - cd", at which time b is a substring. + Explanation: a after three repetitions become "ab + cdabcdabcd", at which time b is a substring.
@@ -182,9 +181,8 @@ Multi-line text inside `pre` will turn into one-liner, but it's okay (https://gi Input: a = "abcd", b = "cdabcdab"
Output: 3
- Explanation: a after three repetitions become "ab - cdabcdab - cd", at which time b is a substring. + Explanation: a after three repetitions become "ab + cdabcdabcd", at which time b is a substring.
diff --git a/website/blog/2018/09-11-Towards-Docusaurus-2.mdx b/website/blog/2018/09-11-Towards-Docusaurus-2.mdx index 1cc08c93e0ee..723445d339f4 100644 --- a/website/blog/2018/09-11-Towards-Docusaurus-2.mdx +++ b/website/blog/2018/09-11-Towards-Docusaurus-2.mdx @@ -20,9 +20,10 @@ It all started with this [RFC issue](https://github.com/facebook/docusaurus/issu {'[RFC] Docusaurus v2 · Issue #789 · facebook/docusaurus'} - These are some of the problems I'm seeing in Docusaurus now and also how we can - address them in v2. A number of the ideas here were inspired by VuePress and other - static site generators. In the current static site generators ecosystem, t... + These are some of the problems I'm seeing in Docusaurus now and also how we + can address them in v2. A number of the ideas here were inspired by VuePress + and other static site generators. In the current static site generators + ecosystem, t... Most of the suggested improvements are mentioned in the issue; I will provide details on some of issues in Docusaurus 1 and how we are going to address them in Docusaurus 2. diff --git a/website/blog/releases/3.8/index.mdx b/website/blog/releases/3.8/index.mdx index 673a085983bf..a9243ab2ed35 100644 --- a/website/blog/releases/3.8/index.mdx +++ b/website/blog/releases/3.8/index.mdx @@ -118,15 +118,15 @@ If bundling time is a concern, consider disabling the optional `concatenateModul We have upgraded the [React Native website to Docusaurus v3.8](https://github.com/facebook/react-native-website/pull/4607) already. Here's an updated benchmark showing the global Docusaurus Faster impact on total build time for a site with ~2000 pages: -| ReactNative.dev | Cold Build | Warm Rebuild | -| --------------------- | ------------------ | ------------------ | -| 🐢 Docusaurus Slower | 120s (baseline) | 33s (3.6 × faster) | +| ReactNative.dev | Cold Build | Warm Rebuild | +| -------------------- | ------------------ | ------------------ | +| 🐢 Docusaurus Slower | 120s (baseline) | 33s (3.6 × faster) | | ⚡️ Docusaurus Faster | 31s (3.8 × faster) | 17s (7 × faster) | We measured similar results on our website: -| Docusaurus.io | Cold Build | Warm Rebuild | -| --------------------- | ------------------ | ------------------ | +| Docusaurus.io | Cold Build | Warm Rebuild | +| -------------------- | ------------------ | ------------------ | | 🐢️ Docusaurus Slower | 146s (baseline) | 45s (3.2 × faster) | | ⚡️ Docusaurus Faster | 42s (3.5 × faster) | 24s (6.1 × faster) | diff --git a/website/docs/browser-support.mdx b/website/docs/browser-support.mdx index 675e833367f7..ef64d9d94984 100644 --- a/website/docs/browser-support.mdx +++ b/website/docs/browser-support.mdx @@ -25,8 +25,8 @@ const value = (_obj = obj) === null || _obj === void 0 ? void 0 : (_obj$prop = _obj.prop) === null || _obj$prop === void 0 - ? void 0 - : _obj$prop.val; + ? void 0 + : _obj$prop.val; ``` However, this penalizes all other users with increased site load time because the 29-character line now becomes 168 characters—a 6-fold increase! (In practice, it will be better because the names used will be shorter.) As a tradeoff, the JS loader only transpiles the syntax to the degree that's supported by all browser versions defined in the browser list. diff --git a/website/docs/deployment.mdx b/website/docs/deployment.mdx index 290a62e8a1a0..de114761a0f6 100644 --- a/website/docs/deployment.mdx +++ b/website/docs/deployment.mdx @@ -827,11 +827,9 @@ That's it. Watch the status and wait till the app is deployed. To open the appli [Hostman](https://hostman.com/) allows you to host static websites for free. Hostman automates everything, you just need to connect your repository and follow these easy steps: 1. Create a service. - - To deploy a Docusaurus static website, click **Create** in the top-left corner of your [Dashboard](https://dashboard.hostman.com/) and choose **Front-end app or static website**. 2. Select the project to deploy. - - If you are logged in to Hostman with your GitHub, GitLab, or Bitbucket account, you will see the repository with your projects, including the private ones. - Choose the project you want to deploy. It must contain the directory with the project's files (e.g. `website`). @@ -841,7 +839,6 @@ That's it. Watch the status and wait till the app is deployed. To open the appli - If you didn't use your Git account credentials to log in, you'll be able to access the necessary account now, and then select the project. 3. Configure the build settings. - - Next, the **Website customization** window will appear. Choose the **Static website** option from the list of frameworks. - The **Directory with app** points at the directory that will contain the project's files after the build. If you selected the repository with the contents of the website (or `my_website`) directory during Step 2, you can leave it empty. @@ -855,7 +852,6 @@ That's it. Watch the status and wait till the app is deployed. To open the appli - You can modify the build command if needed. You can enter multiple commands separated by `&&`. 4. Deploy. - - Click **Deploy** to start the build process. - Once it starts, you will enter the deployment log. If there are any issues with the code, you will get warning or error messages in the log specifying the cause of the problem. Usually, the log contains all the debugging data you'll need. diff --git a/website/docusaurus.config.ts b/website/docusaurus.config.ts index 7f541c1caf52..e249ad6eafc9 100644 --- a/website/docusaurus.config.ts +++ b/website/docusaurus.config.ts @@ -222,10 +222,10 @@ export default async function createConfigAsync() { ? // Deploy preview and branch deploys: keep them fast! [defaultLocale] : isI18nStaging - ? // Staging locales: https://docusaurus-i18n-staging.netlify.app/ - [defaultLocale, 'ja'] - : // Production locales - [defaultLocale, 'fr', 'pt-BR', 'ko', 'zh-CN'], + ? // Staging locales: https://docusaurus-i18n-staging.netlify.app/ + [defaultLocale, 'ja'] + : // Production locales + [defaultLocale, 'fr', 'pt-BR', 'ko', 'zh-CN'], }, markdown: { format: 'detect', diff --git a/website/netlify.toml b/website/netlify.toml index 2e2e8fec7d52..9c16410452ef 100644 --- a/website/netlify.toml +++ b/website/netlify.toml @@ -5,14 +5,14 @@ # See also https://github.com/netlify/build/issues/2483 [build] - command = "yarn --cwd .. build:packages && yarn build" - publish = "website/build" +command = "yarn --cwd .. build:packages && yarn build" +publish = "website/build" [build.environment] - NETLIFY_USE_YARN = "true" - YARN_VERSION = "1.22.19" - NODE_VERSION = "24" - NODE_OPTIONS = "--max_old_space_size=8192" +NETLIFY_USE_YARN = "true" +YARN_VERSION = "1.22.19" +NODE_VERSION = "24" +NODE_OPTIONS = "--max_old_space_size=8192" # Note, we run build:packages and git backfill in parallel to speed up builds @@ -20,17 +20,15 @@ # See https://github.com/facebook/docusaurus/pull/11553 [context.production] - command = "(echo 'Build packages start' && yarn --cwd .. build:packages && echo 'Build packages end') & (echo 'Git backfill start' && git backfill && echo 'Git backfill end' ) & wait && yarn netlify:build:production" +command = "(echo 'Build packages start' && yarn --cwd .. build:packages && echo 'Build packages end') & (echo 'Git backfill start' && git backfill && echo 'Git backfill end' ) & wait && yarn netlify:build:production" [context.branch-deploy] - command = "(echo 'Build packages start' && yarn --cwd .. build:packages && echo 'Build packages end') & (echo 'Git backfill start' && git backfill && echo 'Git backfill end' ) & wait && yarn netlify:build:branchDeploy" +command = "(echo 'Build packages start' && yarn --cwd .. build:packages && echo 'Build packages end') & (echo 'Git backfill start' && git backfill && echo 'Git backfill end' ) & wait && yarn netlify:build:branchDeploy" [context.deploy-preview] - command = "(echo 'Build packages start' && yarn --cwd .. build:packages && echo 'Build packages end') & (echo 'Git backfill start' && git backfill && echo 'Git backfill end' ) & wait && yarn netlify:build:deployPreview" +command = "(echo 'Build packages start' && yarn --cwd .. build:packages && echo 'Build packages end') & (echo 'Git backfill start' && git backfill && echo 'Git backfill end' ) & wait && yarn netlify:build:deployPreview" [[plugins]] package = "netlify-plugin-cache" - [plugins.inputs] - paths = [ - "node_modules/.cache", - ] +[plugins.inputs] +paths = ["node_modules/.cache"] diff --git a/website/src/components/BrowserWindow/styles.module.css b/website/src/components/BrowserWindow/styles.module.css index aec42957ce99..bab968586099 100644 --- a/website/src/components/BrowserWindow/styles.module.css +++ b/website/src/components/BrowserWindow/styles.module.css @@ -45,7 +45,9 @@ background-color: var(--ifm-background-color); color: var(--ifm-color-gray-800); padding: 5px 15px; - font: 400 13px Arial, sans-serif; + font: + 400 13px Arial, + sans-serif; user-select: none; } diff --git a/website/src/components/TeamProfileCards/index.tsx b/website/src/components/TeamProfileCards/index.tsx index 331ed26960ce..14111b2e557f 100644 --- a/website/src/components/TeamProfileCards/index.tsx +++ b/website/src/components/TeamProfileCards/index.tsx @@ -160,8 +160,8 @@ export function HonoraryAlumniTeamRow(): ReactNode { githubUrl="https://github.com/wgao19" xUrl="https://x.com/wgao19"> - 🏻‍🌾 Work in progress React developer, maintains Docusaurus, writes - docs and spams this world with many websites. + 🏻‍🌾 Work in progress React developer, maintains Docusaurus, writes docs + and spams this world with many websites. diff --git a/website/src/data/tweets.tsx b/website/src/data/tweets.tsx index b222b1bd96dd..1a7face35106 100644 --- a/website/src/data/tweets.tsx +++ b/website/src/data/tweets.tsx @@ -221,9 +221,9 @@ const TWEETS: TweetItem[] = [ I ❤️ @docusaurus - it makes it so easy to spin up docs, blogs and simple websites. I've used it to:
-
✅ Replatform my blog with GitHub pages
- ✅ Build a website for a local business
✅ Build internal facing - blog/docs sites with @AzureStaticApps +
✅ Replatform my blog with GitHub pages
✅ Build a website + for a local business
✅ Build internal facing blog/docs sites with + @AzureStaticApps ), showOnHomepage: false, @@ -258,11 +258,9 @@ const TWEETS: TweetItem[] = [ @docusaurus v2
- Some obvious changes:
- 🌔 Dark mode
- ⚡️ SPA navigation / prefetching
- 🧐 @algolia DocSearch v3
- 💥 @mdx_js enable many new possibilities
+ Some obvious changes:
🌔 Dark mode
+ ⚡️ SPA navigation / prefetching
🧐 @algolia DocSearch v3
💥 + @mdx_js enable many new possibilities

Check it out: https://reactnative.dev @@ -299,9 +297,8 @@ const TWEETS: TweetItem[] = [ <> New #mobx docs are online! More modern, fixing many UI issues.
-
- 👏 @cloverich did the awesome job of migrating from ancient gitbook - -> @docusaurus! 👏
+
👏 @cloverich did the awesome job of migrating from ancient + gitbook -> @docusaurus! 👏

No real content updates yet, but contributing and publishing has become way easier diff --git a/website/src/pages/showcase/_components/OperatorButton/styles.module.css b/website/src/pages/showcase/_components/OperatorButton/styles.module.css index 4fde44d184fc..6d9fa0d9017c 100644 --- a/website/src/pages/showcase/_components/OperatorButton/styles.module.css +++ b/website/src/pages/showcase/_components/OperatorButton/styles.module.css @@ -25,7 +25,8 @@ .checkboxLabel:hover { opacity: 1; - box-shadow: var(--ifm-global-shadow-md), + box-shadow: + var(--ifm-global-shadow-md), 0 0 2px 1px var(--ifm-color-primary-dark); } diff --git a/website/src/plugins/featureRequests/cannyScript.js b/website/src/plugins/featureRequests/cannyScript.js index a97536feec73..dce00dfadb6a 100644 --- a/website/src/plugins/featureRequests/cannyScript.js +++ b/website/src/plugins/featureRequests/cannyScript.js @@ -7,23 +7,23 @@ function cannyScript() { if (!d.getElementById(i)) { let f = d.getElementsByTagName(s)[0], e = d.createElement(s); - (e.type = 'text/javascript'), + ((e.type = 'text/javascript'), (e.async = !0), (e.src = 'https://canny.io/sdk.js'), - f.parentNode.insertBefore(e, f); + f.parentNode.insertBefore(e, f)); } } if (typeof w.Canny !== 'function') { var c = function () { c.q.push(arguments); }; - (c.q = []), + ((c.q = []), (w.Canny = c), d.readyState === 'complete' ? l() : w.attachEvent - ? w.attachEvent('onload', l) - : w.addEventListener('load', l, !1); + ? w.attachEvent('onload', l) + : w.addEventListener('load', l, !1)); } })(window, document, 'canny-jssdk', 'script'); } diff --git a/website/static/pure-html.html b/website/static/pure-html.html index a7605f8dafdd..6ea1e731dc66 100644 --- a/website/static/pure-html.html +++ b/website/static/pure-html.html @@ -1,4 +1,4 @@ - + Purely HTML page | Docusaurus diff --git a/yarn.lock b/yarn.lock index 5bb261c45de0..aeafeafff3e5 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3158,6 +3158,101 @@ resolved "https://registry.yarnpkg.com/@opentelemetry/api/-/api-1.9.0.tgz#d03eba68273dc0f7509e2a3d5cba21eae10379fe" integrity sha512-3giAOQvZiH5F9bMlMiv8+GSPMeqg0dbaeo58/0SlA9sxSqZhnUtxzX9/2FzyhS9sWQf5S0GJE0AKBrFqjpeYcg== +"@oxfmt/binding-android-arm-eabi@0.41.0": + version "0.41.0" + resolved "https://registry.yarnpkg.com/@oxfmt/binding-android-arm-eabi/-/binding-android-arm-eabi-0.41.0.tgz#09438448ab9479730582cd00fb86e4c33795a364" + integrity sha512-REfrqeMKGkfMP+m/ScX4f5jJBSmVNYcpoDF8vP8f8eYPDuPGZmzp56NIUsYmx3h7f6NzC6cE3gqh8GDWrJHCKw== + +"@oxfmt/binding-android-arm64@0.41.0": + version "0.41.0" + resolved "https://registry.yarnpkg.com/@oxfmt/binding-android-arm64/-/binding-android-arm64-0.41.0.tgz#b01eef08ff2a6be90f5805fe28339ec0130a955c" + integrity sha512-s0b1dxNgb2KomspFV2LfogC2XtSJB42POXF4bMCLJyvQmAGos4ZtjGPfQreToQEaY0FQFjz3030ggI36rF1q5g== + +"@oxfmt/binding-darwin-arm64@0.41.0": + version "0.41.0" + resolved "https://registry.yarnpkg.com/@oxfmt/binding-darwin-arm64/-/binding-darwin-arm64-0.41.0.tgz#a2e24b7c52d40e3bb01939fa9c994d56923294ce" + integrity sha512-EGXGualADbv/ZmamE7/2DbsrYmjoPlAmHEpTL4vapLF4EfVD6fr8/uQDFnPJkUBjiSWFJZtFNsGeN1B6V3owmA== + +"@oxfmt/binding-darwin-x64@0.41.0": + version "0.41.0" + resolved "https://registry.yarnpkg.com/@oxfmt/binding-darwin-x64/-/binding-darwin-x64-0.41.0.tgz#c114c0a30195a65cfe0247e2ffd000416df4d4bc" + integrity sha512-WxySJEvdQQYMmyvISH3qDpTvoS0ebnIP63IMxLLWowJyPp/AAH0hdWtlo+iGNK5y3eVfa5jZguwNaQkDKWpGSw== + +"@oxfmt/binding-freebsd-x64@0.41.0": + version "0.41.0" + resolved "https://registry.yarnpkg.com/@oxfmt/binding-freebsd-x64/-/binding-freebsd-x64-0.41.0.tgz#a9057a31860ec79970a16b5a0a801a51fab99168" + integrity sha512-Y2kzMkv3U3oyuYaR4wTfGjOTYTXiFC/hXmG0yVASKkbh02BJkvD98Ij8bIevr45hNZ0DmZEgqiXF+9buD4yMYQ== + +"@oxfmt/binding-linux-arm-gnueabihf@0.41.0": + version "0.41.0" + resolved "https://registry.yarnpkg.com/@oxfmt/binding-linux-arm-gnueabihf/-/binding-linux-arm-gnueabihf-0.41.0.tgz#1a2be3cbbf2d9e90808858ba8fc38b24023ac44c" + integrity sha512-ptazDjdUyhket01IjPTT6ULS1KFuBfTUU97osTP96X5y/0oso+AgAaJzuH81oP0+XXyrWIHbRzozSAuQm4p48g== + +"@oxfmt/binding-linux-arm-musleabihf@0.41.0": + version "0.41.0" + resolved "https://registry.yarnpkg.com/@oxfmt/binding-linux-arm-musleabihf/-/binding-linux-arm-musleabihf-0.41.0.tgz#f0a12feca29bfaf7437d94c32919ff3ac60c213f" + integrity sha512-UkoL2OKxFD+56bPEBcdGn+4juTW4HRv/T6w1dIDLnvKKWr6DbarB/mtHXlADKlFiJubJz8pRkttOR7qjYR6lTA== + +"@oxfmt/binding-linux-arm64-gnu@0.41.0": + version "0.41.0" + resolved "https://registry.yarnpkg.com/@oxfmt/binding-linux-arm64-gnu/-/binding-linux-arm64-gnu-0.41.0.tgz#b304c7ede72119f7fe7ce7861007c0ee6eb60c08" + integrity sha512-gofu0PuumSOHYczD8p62CPY4UF6ee+rSLZJdUXkpwxg6pILiwSDBIouPskjF/5nF3A7QZTz2O9KFNkNxxFN9tA== + +"@oxfmt/binding-linux-arm64-musl@0.41.0": + version "0.41.0" + resolved "https://registry.yarnpkg.com/@oxfmt/binding-linux-arm64-musl/-/binding-linux-arm64-musl-0.41.0.tgz#295d6ce8d846ca1a287165bf4ff6e7b3cd51f823" + integrity sha512-VfVZxL0+6RU86T8F8vKiDBa+iHsr8PAjQmKGBzSCAX70b6x+UOMFl+2dNihmKmUwqkCazCPfYjt6SuAPOeQJ3g== + +"@oxfmt/binding-linux-ppc64-gnu@0.41.0": + version "0.41.0" + resolved "https://registry.yarnpkg.com/@oxfmt/binding-linux-ppc64-gnu/-/binding-linux-ppc64-gnu-0.41.0.tgz#6c702f37bd69bb88bf78264eef5df9dbcdcada49" + integrity sha512-bwzokz2eGvdfJbc0i+zXMJ4BBjQPqg13jyWpEEZDOrBCQ91r8KeY2Mi2kUeuMTZNFXju+jcAbAbpyJxRGla0eg== + +"@oxfmt/binding-linux-riscv64-gnu@0.41.0": + version "0.41.0" + resolved "https://registry.yarnpkg.com/@oxfmt/binding-linux-riscv64-gnu/-/binding-linux-riscv64-gnu-0.41.0.tgz#9dac4f7f4cf10d94ade5a109554f810a43525595" + integrity sha512-POLM//PCH9uqDeNDwWL3b3DkMmI3oI2cU6hwc2lnztD1o7dzrQs3R9nq555BZ6wI7t2lyhT9CS+CRaz5X0XqLA== + +"@oxfmt/binding-linux-riscv64-musl@0.41.0": + version "0.41.0" + resolved "https://registry.yarnpkg.com/@oxfmt/binding-linux-riscv64-musl/-/binding-linux-riscv64-musl-0.41.0.tgz#ddd573ad4fc8e5d017ab27177eaabea700d68754" + integrity sha512-NNK7PzhFqLUwx/G12Xtm6scGv7UITvyGdAR5Y+TlqsG+essnuRWR4jRNODWRjzLZod0T3SayRbnkSIWMBov33w== + +"@oxfmt/binding-linux-s390x-gnu@0.41.0": + version "0.41.0" + resolved "https://registry.yarnpkg.com/@oxfmt/binding-linux-s390x-gnu/-/binding-linux-s390x-gnu-0.41.0.tgz#3300ee81681382c1ec0a4013807c362c27ef4821" + integrity sha512-qVf/zDC5cN9eKe4qI/O/m445er1IRl6swsSl7jHkqmOSVfknwCe5JXitYjZca+V/cNJSU/xPlC5EFMabMMFDpw== + +"@oxfmt/binding-linux-x64-gnu@0.41.0": + version "0.41.0" + resolved "https://registry.yarnpkg.com/@oxfmt/binding-linux-x64-gnu/-/binding-linux-x64-gnu-0.41.0.tgz#be9068d48bb521eea83ea6bea2b0e08b39d7638b" + integrity sha512-ojxYWu7vUb6ysYqVCPHuAPVZHAI40gfZ0PDtZAMwVmh2f0V8ExpPIKoAKr7/8sNbAXJBBpZhs2coypIo2jJX4w== + +"@oxfmt/binding-linux-x64-musl@0.41.0": + version "0.41.0" + resolved "https://registry.yarnpkg.com/@oxfmt/binding-linux-x64-musl/-/binding-linux-x64-musl-0.41.0.tgz#e0232abd879874823213b71016042d001a740acb" + integrity sha512-O2exZLBxoCMIv2vlvcbkdedazJPTdG0VSup+0QUCfYQtx751zCZNboX2ZUOiQ/gDTdhtXvSiot0h6GEGkOyalA== + +"@oxfmt/binding-openharmony-arm64@0.41.0": + version "0.41.0" + resolved "https://registry.yarnpkg.com/@oxfmt/binding-openharmony-arm64/-/binding-openharmony-arm64-0.41.0.tgz#3e5893cde8cae02494cbb5493de9c46613e77058" + integrity sha512-N+31/VoL+z+NNBt8viy3I4NaIdPbiYeOnB884LKqvXldaE2dRztdPv3q5ipfZYv0RwFp7JfqS4I27K/DSHCakg== + +"@oxfmt/binding-win32-arm64-msvc@0.41.0": + version "0.41.0" + resolved "https://registry.yarnpkg.com/@oxfmt/binding-win32-arm64-msvc/-/binding-win32-arm64-msvc-0.41.0.tgz#31d8dfeeddc855dbecc9f45d11cd892635d2e42f" + integrity sha512-Z7NAtu/RN8kjCQ1y5oDD0nTAeRswh3GJ93qwcW51srmidP7XPBmZbLlwERu1W5veCevQJtPS9xmkpcDTYsGIwQ== + +"@oxfmt/binding-win32-ia32-msvc@0.41.0": + version "0.41.0" + resolved "https://registry.yarnpkg.com/@oxfmt/binding-win32-ia32-msvc/-/binding-win32-ia32-msvc-0.41.0.tgz#873fb408a3e8952fae67763b225e4ea77356e926" + integrity sha512-uNxxP3l4bJ6VyzIeRqCmBU2Q0SkCFgIhvx9/9dJ9V8t/v+jP1IBsuaLwCXGR8JPHtkj4tFp+RHtUmU2ZYAUpMA== + +"@oxfmt/binding-win32-x64-msvc@0.41.0": + version "0.41.0" + resolved "https://registry.yarnpkg.com/@oxfmt/binding-win32-x64-msvc/-/binding-win32-x64-msvc-0.41.0.tgz#0adf46bca6908c6b49c790e598f4972b6f4cd191" + integrity sha512-49ZSpbZ1noozyPapE8SUOSm3IN0Ze4b5nkO+4+7fq6oEYQQJFhE0saj5k/Gg4oewVPdjn0L3ZFeWk2Vehjcw7A== + "@parcel/watcher@2.0.4": version "2.0.4" resolved "https://registry.yarnpkg.com/@parcel/watcher/-/watcher-2.0.4.tgz#f300fef4cc38008ff4b8c29d92588eced3ce014b" @@ -3224,14 +3319,6 @@ resolved "https://registry.yarnpkg.com/@polka/url/-/url-1.0.0-next.28.tgz#d45e01c4a56f143ee69c54dd6b12eade9e270a73" integrity sha512-8LduaNlMZGwdZ6qWrKlfa+2M4gahzFkprZiAt2TF8uS0qQgBizKXpXURqvTJ4WtmupWxaLqjRb2UCTe72mu+Aw== -"@prettier/plugin-xml@^2.2.0": - version "2.2.0" - resolved "https://registry.yarnpkg.com/@prettier/plugin-xml/-/plugin-xml-2.2.0.tgz#2bc2ae667aa817369fdb939aa7d36ea88105483d" - integrity sha512-UWRmygBsyj4bVXvDiqSccwT1kmsorcwQwaIy30yVh8T+Gspx4OlC0shX1y+ZuwXZvgnafmpRYKks0bAu9urJew== - dependencies: - "@xml-tools/parser" "^1.0.11" - prettier ">=2.4.0" - "@rollup/plugin-babel@^5.2.0": version "5.3.1" resolved "https://registry.yarnpkg.com/@rollup/plugin-babel/-/plugin-babel-5.3.1.tgz#04bc0608f4aa4b2e4b1aebf284344d0f68fda283" @@ -5185,13 +5272,6 @@ "@webassemblyjs/ast" "1.14.1" "@xtuc/long" "4.2.2" -"@xml-tools/parser@^1.0.11": - version "1.0.11" - resolved "https://registry.yarnpkg.com/@xml-tools/parser/-/parser-1.0.11.tgz#a118a14099ea5c3c537e4781fad2fc195b57f8ff" - integrity sha512-aKqQ077XnR+oQtHJlrAflaZaL7qZsulWc/i/ZEooar5JiWj1eLt0+Wg28cpa+XLney107wXqneC+oG1IZvxkTA== - dependencies: - chevrotain "7.1.1" - "@xtuc/ieee754@^1.2.0": version "1.2.0" resolved "https://registry.yarnpkg.com/@xtuc/ieee754/-/ieee754-1.2.0.tgz#eef014a3145ae477a1cbc00cd1e552336dceb790" @@ -6331,13 +6411,6 @@ chevrotain-allstar@~0.3.0: dependencies: lodash-es "^4.17.21" -chevrotain@7.1.1: - version "7.1.1" - resolved "https://registry.yarnpkg.com/chevrotain/-/chevrotain-7.1.1.tgz#5122814eafd1585a9601f9180a7be9c42d5699c6" - integrity sha512-wy3mC1x4ye+O+QkEinVJkPf5u2vsrDIYW9G7ZuwFl6v/Yu0LwUuT2POsb+NUWApebyxfkQq6+yDfRExbnI5rcw== - dependencies: - regexp-to-ast "0.5.0" - chevrotain@~11.0.3: version "11.0.3" resolved "https://registry.yarnpkg.com/chevrotain/-/chevrotain-11.0.3.tgz#88ffc1fb4b5739c715807eaeedbbf200e202fc1b" @@ -14054,6 +14127,33 @@ os-tmpdir@~1.0.2: resolved "https://registry.yarnpkg.com/os-tmpdir/-/os-tmpdir-1.0.2.tgz#bbe67406c79aa85c5cfec766fe5734555dfa1274" integrity sha512-D2FR03Vir7FIu45XBY20mTb+/ZSWB00sjU9jdQXt83gDrI4Ztz5Fs7/yy74g2N5SVQY4xY1qDr4rNddwYRVX0g== +oxfmt@^0.41.0: + version "0.41.0" + resolved "https://registry.yarnpkg.com/oxfmt/-/oxfmt-0.41.0.tgz#7dbfb63d19704a85412f36678c3ace092ce88673" + integrity sha512-sKLdJZdQ3bw6x9qKiT7+eID4MNEXlDHf5ZacfIircrq6Qwjk0L6t2/JQlZZrVHTXJawK3KaMuBoJnEJPcqCEdg== + dependencies: + tinypool "2.1.0" + optionalDependencies: + "@oxfmt/binding-android-arm-eabi" "0.41.0" + "@oxfmt/binding-android-arm64" "0.41.0" + "@oxfmt/binding-darwin-arm64" "0.41.0" + "@oxfmt/binding-darwin-x64" "0.41.0" + "@oxfmt/binding-freebsd-x64" "0.41.0" + "@oxfmt/binding-linux-arm-gnueabihf" "0.41.0" + "@oxfmt/binding-linux-arm-musleabihf" "0.41.0" + "@oxfmt/binding-linux-arm64-gnu" "0.41.0" + "@oxfmt/binding-linux-arm64-musl" "0.41.0" + "@oxfmt/binding-linux-ppc64-gnu" "0.41.0" + "@oxfmt/binding-linux-riscv64-gnu" "0.41.0" + "@oxfmt/binding-linux-riscv64-musl" "0.41.0" + "@oxfmt/binding-linux-s390x-gnu" "0.41.0" + "@oxfmt/binding-linux-x64-gnu" "0.41.0" + "@oxfmt/binding-linux-x64-musl" "0.41.0" + "@oxfmt/binding-openharmony-arm64" "0.41.0" + "@oxfmt/binding-win32-arm64-msvc" "0.41.0" + "@oxfmt/binding-win32-ia32-msvc" "0.41.0" + "@oxfmt/binding-win32-x64-msvc" "0.41.0" + p-cancelable@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/p-cancelable/-/p-cancelable-3.0.0.tgz#63826694b54d61ca1c20ebcb6d3ecf5e14cd8050" @@ -15191,11 +15291,6 @@ prelude-ls@^1.2.1: resolved "https://registry.yarnpkg.com/prelude-ls/-/prelude-ls-1.2.1.tgz#debc6489d7a6e6b0e7611888cec880337d316396" integrity sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g== -prettier@>=2.4.0, prettier@^2.8.8: - version "2.8.8" - resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.8.8.tgz#e8c5d7e98a4305ffe3de2e1fc4aca1a71c28b1da" - integrity sha512-tdN8qQGvNjw4CHbY+XXk0JgCXn9QiF21a55rBe5LJAU+kDyC4WQn4+awm2Xfk2lQMk5fKup9XgzTZtGkjBdP9Q== - pretty-ansi@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/pretty-ansi/-/pretty-ansi-3.0.0.tgz#b388a08b49ded78b9390848bc101ee534cb69492" @@ -15792,11 +15887,6 @@ regexp-ast-analysis@^0.6.0: "@eslint-community/regexpp" "^4.5.0" refa "^0.11.0" -regexp-to-ast@0.5.0: - version "0.5.0" - resolved "https://registry.yarnpkg.com/regexp-to-ast/-/regexp-to-ast-0.5.0.tgz#56c73856bee5e1fef7f73a00f1473452ab712a24" - integrity sha512-tlbJqcMHnPKI9zSrystikWKwHkBqu2a/Sgw01h3zFjvYrMxEDYHzzoMZnUrbIfpTFEsoRnnviOXNCzFiSc54Qw== - regexp.prototype.flags@^1.5.2: version "1.5.3" resolved "https://registry.yarnpkg.com/regexp.prototype.flags/-/regexp.prototype.flags-1.5.3.tgz#b3ae40b1d2499b8350ab2c3fe6ef3845d3a96f42" @@ -17557,6 +17647,11 @@ tinyglobby@^0.2.12: fdir "^6.5.0" picomatch "^4.0.3" +tinypool@2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/tinypool/-/tinypool-2.1.0.tgz#303a671d6ef68d03c9512cdc9a47c86b8a85f20c" + integrity sha512-Pugqs6M0m7Lv1I7FtxN4aoyToKg1C4tu+/381vH35y8oENM/Ai7f7C4StcoK4/+BSw9ebcS8jRiVrORFKCALLw== + tinypool@^1.0.2: version "1.0.2" resolved "https://registry.yarnpkg.com/tinypool/-/tinypool-1.0.2.tgz#706193cc532f4c100f66aa00b01c42173d9051b2"