From 272a924011f3c8b6112e84cefb8ad3215381b8fd Mon Sep 17 00:00:00 2001 From: sebastien Date: Fri, 30 Oct 2026 14:32:38 +0100 Subject: [PATCH 1/2] fix: point package.json repository fields to meta/docusaurus (AI-assisted) npm provenance (generated by Trusted Publishing) rejects a package whose `repository.url` doesn't match the repository the workflow runs in. Co-Authored-By: Claude Opus 5.5 --- __tests__/validate-package-json.test.ts | 2 +- packages/create-docusaurus/package.json | 4 ++-- packages/docusaurus-babel/package.json | 2 +- packages/docusaurus-bundler/package.json | 2 +- packages/docusaurus-fs/package.json | 2 +- packages/docusaurus-glob/package.json | 2 +- packages/docusaurus-logger/package.json | 4 ++-- packages/docusaurus-mdx-loader/package.json | 2 +- packages/docusaurus-module-type-aliases/package.json | 2 +- packages/docusaurus-plugin-client-redirects/package.json | 2 +- packages/docusaurus-plugin-content-blog/package.json | 2 +- packages/docusaurus-plugin-content-docs/package.json | 2 +- packages/docusaurus-plugin-content-pages/package.json | 2 +- packages/docusaurus-plugin-css-cascade-layers/package.json | 2 +- packages/docusaurus-plugin-debug/package.json | 2 +- packages/docusaurus-plugin-google-gtag/package.json | 2 +- packages/docusaurus-plugin-google-tag-manager/package.json | 2 +- packages/docusaurus-plugin-ideal-image/package.json | 2 +- packages/docusaurus-plugin-pwa/package.json | 2 +- packages/docusaurus-plugin-rsdoctor/package.json | 2 +- packages/docusaurus-plugin-sitemap/package.json | 2 +- packages/docusaurus-plugin-svgr/package.json | 2 +- packages/docusaurus-plugin-vercel-analytics/package.json | 2 +- packages/docusaurus-preset-classic/package.json | 2 +- packages/docusaurus-remark-plugin-npm2yarn/package.json | 2 +- packages/docusaurus-theme-classic/package.json | 2 +- packages/docusaurus-theme-common/package.json | 2 +- packages/docusaurus-theme-live-codeblock/package.json | 2 +- packages/docusaurus-theme-mermaid/package.json | 2 +- packages/docusaurus-theme-search-algolia/package.json | 2 +- packages/docusaurus-theme-translations/package.json | 2 +- packages/docusaurus-tsconfig/package.json | 2 +- packages/docusaurus-types/package.json | 2 +- packages/docusaurus-utils-common/package.json | 2 +- packages/docusaurus-utils-validation/package.json | 2 +- packages/docusaurus-utils/package.json | 2 +- packages/docusaurus/package.json | 4 ++-- packages/eslint-plugin/package.json | 2 +- packages/lqip-loader/package.json | 2 +- packages/stylelint-copyright/package.json | 2 +- 40 files changed, 43 insertions(+), 43 deletions(-) diff --git a/__tests__/validate-package-json.test.ts b/__tests__/validate-package-json.test.ts index b4a5d93bd308..95e0326654e1 100644 --- a/__tests__/validate-package-json.test.ts +++ b/__tests__/validate-package-json.test.ts @@ -52,7 +52,7 @@ describe('packages', () => { .forEach((packageJsonFile) => { expect(packageJsonFile.content.repository).toEqual({ type: 'git', - url: 'https://github.com/facebook/docusaurus.git', + url: 'https://github.com/meta/docusaurus.git', directory: packageJsonFile.file.replace(/\/package\.json$/, ''), }); }); diff --git a/packages/create-docusaurus/package.json b/packages/create-docusaurus/package.json index dca2b8581794..2bfb6825cffb 100755 --- a/packages/create-docusaurus/package.json +++ b/packages/create-docusaurus/package.json @@ -5,11 +5,11 @@ "type": "module", "repository": { "type": "git", - "url": "https://github.com/facebook/docusaurus.git", + "url": "https://github.com/meta/docusaurus.git", "directory": "packages/create-docusaurus" }, "bugs": { - "url": "https://github.com/facebook/docusaurus/issues" + "url": "https://github.com/meta/docusaurus/issues" }, "scripts": { "create-docusaurus": "create-docusaurus", diff --git a/packages/docusaurus-babel/package.json b/packages/docusaurus-babel/package.json index 8b5520892bc1..c5017f1b4fe6 100644 --- a/packages/docusaurus-babel/package.json +++ b/packages/docusaurus-babel/package.json @@ -23,7 +23,7 @@ }, "repository": { "type": "git", - "url": "https://github.com/facebook/docusaurus.git", + "url": "https://github.com/meta/docusaurus.git", "directory": "packages/docusaurus-babel" }, "license": "MIT", diff --git a/packages/docusaurus-bundler/package.json b/packages/docusaurus-bundler/package.json index cd2cce8ddf5f..2e7f8132b73e 100644 --- a/packages/docusaurus-bundler/package.json +++ b/packages/docusaurus-bundler/package.json @@ -13,7 +13,7 @@ }, "repository": { "type": "git", - "url": "https://github.com/facebook/docusaurus.git", + "url": "https://github.com/meta/docusaurus.git", "directory": "packages/docusaurus-bundler" }, "license": "MIT", diff --git a/packages/docusaurus-fs/package.json b/packages/docusaurus-fs/package.json index 971d81c20fad..ae71ce14742b 100644 --- a/packages/docusaurus-fs/package.json +++ b/packages/docusaurus-fs/package.json @@ -13,7 +13,7 @@ }, "repository": { "type": "git", - "url": "https://github.com/facebook/docusaurus.git", + "url": "https://github.com/meta/docusaurus.git", "directory": "packages/docusaurus-fs" }, "license": "MIT", diff --git a/packages/docusaurus-glob/package.json b/packages/docusaurus-glob/package.json index d283a0a3a483..1f524ac83f4d 100644 --- a/packages/docusaurus-glob/package.json +++ b/packages/docusaurus-glob/package.json @@ -13,7 +13,7 @@ }, "repository": { "type": "git", - "url": "https://github.com/facebook/docusaurus.git", + "url": "https://github.com/meta/docusaurus.git", "directory": "packages/docusaurus-glob" }, "license": "MIT", diff --git a/packages/docusaurus-logger/package.json b/packages/docusaurus-logger/package.json index b824fac56d8f..a135c4a68392 100644 --- a/packages/docusaurus-logger/package.json +++ b/packages/docusaurus-logger/package.json @@ -5,11 +5,11 @@ "main": "./lib/index.js", "repository": { "type": "git", - "url": "https://github.com/facebook/docusaurus.git", + "url": "https://github.com/meta/docusaurus.git", "directory": "packages/docusaurus-logger" }, "bugs": { - "url": "https://github.com/facebook/docusaurus/issues" + "url": "https://github.com/meta/docusaurus/issues" }, "scripts": { "build": "tsc", diff --git a/packages/docusaurus-mdx-loader/package.json b/packages/docusaurus-mdx-loader/package.json index 4de6c4b8b983..609b8a3f2240 100644 --- a/packages/docusaurus-mdx-loader/package.json +++ b/packages/docusaurus-mdx-loader/package.json @@ -13,7 +13,7 @@ }, "repository": { "type": "git", - "url": "https://github.com/facebook/docusaurus.git", + "url": "https://github.com/meta/docusaurus.git", "directory": "packages/docusaurus-mdx-loader" }, "license": "MIT", diff --git a/packages/docusaurus-module-type-aliases/package.json b/packages/docusaurus-module-type-aliases/package.json index 8a690c0661ef..8e8d553d88a3 100644 --- a/packages/docusaurus-module-type-aliases/package.json +++ b/packages/docusaurus-module-type-aliases/package.json @@ -8,7 +8,7 @@ }, "repository": { "type": "git", - "url": "https://github.com/facebook/docusaurus.git", + "url": "https://github.com/meta/docusaurus.git", "directory": "packages/docusaurus-module-type-aliases" }, "dependencies": { diff --git a/packages/docusaurus-plugin-client-redirects/package.json b/packages/docusaurus-plugin-client-redirects/package.json index 9885a9d2ecdf..be4f92734c81 100644 --- a/packages/docusaurus-plugin-client-redirects/package.json +++ b/packages/docusaurus-plugin-client-redirects/package.json @@ -10,7 +10,7 @@ }, "repository": { "type": "git", - "url": "https://github.com/facebook/docusaurus.git", + "url": "https://github.com/meta/docusaurus.git", "directory": "packages/docusaurus-plugin-client-redirects" }, "publishConfig": { diff --git a/packages/docusaurus-plugin-content-blog/package.json b/packages/docusaurus-plugin-content-blog/package.json index f7a97f67ce1c..30f57a1bc857 100644 --- a/packages/docusaurus-plugin-content-blog/package.json +++ b/packages/docusaurus-plugin-content-blog/package.json @@ -23,7 +23,7 @@ }, "repository": { "type": "git", - "url": "https://github.com/facebook/docusaurus.git", + "url": "https://github.com/meta/docusaurus.git", "directory": "packages/docusaurus-plugin-content-blog" }, "publishConfig": { diff --git a/packages/docusaurus-plugin-content-docs/package.json b/packages/docusaurus-plugin-content-docs/package.json index e5e3a78413dc..5d52e980cec0 100644 --- a/packages/docusaurus-plugin-content-docs/package.json +++ b/packages/docusaurus-plugin-content-docs/package.json @@ -30,7 +30,7 @@ }, "repository": { "type": "git", - "url": "https://github.com/facebook/docusaurus.git", + "url": "https://github.com/meta/docusaurus.git", "directory": "packages/docusaurus-plugin-content-docs" }, "license": "MIT", diff --git a/packages/docusaurus-plugin-content-pages/package.json b/packages/docusaurus-plugin-content-pages/package.json index 39eab8f94971..c90b2ca3b22d 100644 --- a/packages/docusaurus-plugin-content-pages/package.json +++ b/packages/docusaurus-plugin-content-pages/package.json @@ -13,7 +13,7 @@ }, "repository": { "type": "git", - "url": "https://github.com/facebook/docusaurus.git", + "url": "https://github.com/meta/docusaurus.git", "directory": "packages/docusaurus-plugin-content-pages" }, "license": "MIT", diff --git a/packages/docusaurus-plugin-css-cascade-layers/package.json b/packages/docusaurus-plugin-css-cascade-layers/package.json index f2f3d9e45cb3..5b5279e6317f 100644 --- a/packages/docusaurus-plugin-css-cascade-layers/package.json +++ b/packages/docusaurus-plugin-css-cascade-layers/package.json @@ -13,7 +13,7 @@ }, "repository": { "type": "git", - "url": "https://github.com/facebook/docusaurus.git", + "url": "https://github.com/meta/docusaurus.git", "directory": "packages/docusaurus-plugin-css-cascade-layers" }, "license": "MIT", diff --git a/packages/docusaurus-plugin-debug/package.json b/packages/docusaurus-plugin-debug/package.json index 85cdeb34ceb7..8e9c33a341e0 100644 --- a/packages/docusaurus-plugin-debug/package.json +++ b/packages/docusaurus-plugin-debug/package.json @@ -15,7 +15,7 @@ }, "repository": { "type": "git", - "url": "https://github.com/facebook/docusaurus.git", + "url": "https://github.com/meta/docusaurus.git", "directory": "packages/docusaurus-plugin-debug" }, "license": "MIT", diff --git a/packages/docusaurus-plugin-google-gtag/package.json b/packages/docusaurus-plugin-google-gtag/package.json index 57e2bab7ab49..05ffa279da41 100644 --- a/packages/docusaurus-plugin-google-gtag/package.json +++ b/packages/docusaurus-plugin-google-gtag/package.json @@ -15,7 +15,7 @@ }, "repository": { "type": "git", - "url": "https://github.com/facebook/docusaurus.git", + "url": "https://github.com/meta/docusaurus.git", "directory": "packages/docusaurus-plugin-google-gtag" }, "license": "MIT", diff --git a/packages/docusaurus-plugin-google-tag-manager/package.json b/packages/docusaurus-plugin-google-tag-manager/package.json index 8757b6bac137..9837f29b6de1 100644 --- a/packages/docusaurus-plugin-google-tag-manager/package.json +++ b/packages/docusaurus-plugin-google-tag-manager/package.json @@ -13,7 +13,7 @@ }, "repository": { "type": "git", - "url": "https://github.com/facebook/docusaurus.git", + "url": "https://github.com/meta/docusaurus.git", "directory": "packages/docusaurus-plugin-google-tag-manager" }, "license": "MIT", diff --git a/packages/docusaurus-plugin-ideal-image/package.json b/packages/docusaurus-plugin-ideal-image/package.json index 978ddfbb7e50..a1b480127310 100644 --- a/packages/docusaurus-plugin-ideal-image/package.json +++ b/packages/docusaurus-plugin-ideal-image/package.json @@ -15,7 +15,7 @@ }, "repository": { "type": "git", - "url": "https://github.com/facebook/docusaurus.git", + "url": "https://github.com/meta/docusaurus.git", "directory": "packages/docusaurus-plugin-ideal-image" }, "license": "MIT", diff --git a/packages/docusaurus-plugin-pwa/package.json b/packages/docusaurus-plugin-pwa/package.json index 593aa1406054..ab083b1cf922 100644 --- a/packages/docusaurus-plugin-pwa/package.json +++ b/packages/docusaurus-plugin-pwa/package.json @@ -15,7 +15,7 @@ }, "repository": { "type": "git", - "url": "https://github.com/facebook/docusaurus.git", + "url": "https://github.com/meta/docusaurus.git", "directory": "packages/docusaurus-plugin-pwa" }, "license": "MIT", diff --git a/packages/docusaurus-plugin-rsdoctor/package.json b/packages/docusaurus-plugin-rsdoctor/package.json index a1670dcf0dfa..995dbae43464 100644 --- a/packages/docusaurus-plugin-rsdoctor/package.json +++ b/packages/docusaurus-plugin-rsdoctor/package.json @@ -13,7 +13,7 @@ }, "repository": { "type": "git", - "url": "https://github.com/facebook/docusaurus.git", + "url": "https://github.com/meta/docusaurus.git", "directory": "packages/docusaurus-plugin-rsdoctor" }, "license": "MIT", diff --git a/packages/docusaurus-plugin-sitemap/package.json b/packages/docusaurus-plugin-sitemap/package.json index caf47b8c9151..140375cca41e 100644 --- a/packages/docusaurus-plugin-sitemap/package.json +++ b/packages/docusaurus-plugin-sitemap/package.json @@ -13,7 +13,7 @@ }, "repository": { "type": "git", - "url": "https://github.com/facebook/docusaurus.git", + "url": "https://github.com/meta/docusaurus.git", "directory": "packages/docusaurus-plugin-sitemap" }, "license": "MIT", diff --git a/packages/docusaurus-plugin-svgr/package.json b/packages/docusaurus-plugin-svgr/package.json index a57ee803e7bd..8400c1cf7a39 100644 --- a/packages/docusaurus-plugin-svgr/package.json +++ b/packages/docusaurus-plugin-svgr/package.json @@ -13,7 +13,7 @@ }, "repository": { "type": "git", - "url": "https://github.com/facebook/docusaurus.git", + "url": "https://github.com/meta/docusaurus.git", "directory": "packages/docusaurus-plugin-svgr" }, "license": "MIT", diff --git a/packages/docusaurus-plugin-vercel-analytics/package.json b/packages/docusaurus-plugin-vercel-analytics/package.json index fd52fd10a577..79da9b1d2fed 100644 --- a/packages/docusaurus-plugin-vercel-analytics/package.json +++ b/packages/docusaurus-plugin-vercel-analytics/package.json @@ -13,7 +13,7 @@ }, "repository": { "type": "git", - "url": "https://github.com/facebook/docusaurus.git", + "url": "https://github.com/meta/docusaurus.git", "directory": "packages/docusaurus-plugin-vercel-analytics" }, "license": "MIT", diff --git a/packages/docusaurus-preset-classic/package.json b/packages/docusaurus-preset-classic/package.json index bd1e097784c1..aacc556d2c20 100644 --- a/packages/docusaurus-preset-classic/package.json +++ b/packages/docusaurus-preset-classic/package.json @@ -13,7 +13,7 @@ }, "repository": { "type": "git", - "url": "https://github.com/facebook/docusaurus.git", + "url": "https://github.com/meta/docusaurus.git", "directory": "packages/docusaurus-preset-classic" }, "license": "MIT", diff --git a/packages/docusaurus-remark-plugin-npm2yarn/package.json b/packages/docusaurus-remark-plugin-npm2yarn/package.json index 3999c6edd827..09e4842be364 100644 --- a/packages/docusaurus-remark-plugin-npm2yarn/package.json +++ b/packages/docusaurus-remark-plugin-npm2yarn/package.json @@ -12,7 +12,7 @@ }, "repository": { "type": "git", - "url": "https://github.com/facebook/docusaurus.git", + "url": "https://github.com/meta/docusaurus.git", "directory": "packages/docusaurus-remark-plugin-npm2yarn" }, "license": "MIT", diff --git a/packages/docusaurus-theme-classic/package.json b/packages/docusaurus-theme-classic/package.json index aeb0ed945a9a..da06c25d2c8d 100644 --- a/packages/docusaurus-theme-classic/package.json +++ b/packages/docusaurus-theme-classic/package.json @@ -9,7 +9,7 @@ }, "repository": { "type": "git", - "url": "https://github.com/facebook/docusaurus.git", + "url": "https://github.com/meta/docusaurus.git", "directory": "packages/docusaurus-theme-classic" }, "license": "MIT", diff --git a/packages/docusaurus-theme-common/package.json b/packages/docusaurus-theme-common/package.json index 272d294a99d7..b66c66838e81 100644 --- a/packages/docusaurus-theme-common/package.json +++ b/packages/docusaurus-theme-common/package.json @@ -25,7 +25,7 @@ }, "repository": { "type": "git", - "url": "https://github.com/facebook/docusaurus.git", + "url": "https://github.com/meta/docusaurus.git", "directory": "packages/docusaurus-theme-common" }, "license": "MIT", diff --git a/packages/docusaurus-theme-live-codeblock/package.json b/packages/docusaurus-theme-live-codeblock/package.json index d101183db0fe..2bf9e487d9d6 100644 --- a/packages/docusaurus-theme-live-codeblock/package.json +++ b/packages/docusaurus-theme-live-codeblock/package.json @@ -30,7 +30,7 @@ }, "repository": { "type": "git", - "url": "https://github.com/facebook/docusaurus.git", + "url": "https://github.com/meta/docusaurus.git", "directory": "packages/docusaurus-theme-live-codeblock" }, "license": "MIT", diff --git a/packages/docusaurus-theme-mermaid/package.json b/packages/docusaurus-theme-mermaid/package.json index 8d4ed9081a4f..beaca0edd3a3 100644 --- a/packages/docusaurus-theme-mermaid/package.json +++ b/packages/docusaurus-theme-mermaid/package.json @@ -22,7 +22,7 @@ }, "repository": { "type": "git", - "url": "https://github.com/facebook/docusaurus.git", + "url": "https://github.com/meta/docusaurus.git", "directory": "packages/docusaurus-theme-mermaid" }, "license": "MIT", diff --git a/packages/docusaurus-theme-search-algolia/package.json b/packages/docusaurus-theme-search-algolia/package.json index b3fc53e7fe86..987df850c996 100644 --- a/packages/docusaurus-theme-search-algolia/package.json +++ b/packages/docusaurus-theme-search-algolia/package.json @@ -22,7 +22,7 @@ }, "repository": { "type": "git", - "url": "https://github.com/facebook/docusaurus.git", + "url": "https://github.com/meta/docusaurus.git", "directory": "packages/docusaurus-theme-search-algolia" }, "license": "MIT", diff --git a/packages/docusaurus-theme-translations/package.json b/packages/docusaurus-theme-translations/package.json index 75d8a689f5a7..3ef46990c449 100644 --- a/packages/docusaurus-theme-translations/package.json +++ b/packages/docusaurus-theme-translations/package.json @@ -9,7 +9,7 @@ }, "repository": { "type": "git", - "url": "https://github.com/facebook/docusaurus.git", + "url": "https://github.com/meta/docusaurus.git", "directory": "packages/docusaurus-theme-translations" }, "license": "MIT", diff --git a/packages/docusaurus-tsconfig/package.json b/packages/docusaurus-tsconfig/package.json index 0e18866af18f..35771c487b7d 100644 --- a/packages/docusaurus-tsconfig/package.json +++ b/packages/docusaurus-tsconfig/package.json @@ -13,7 +13,7 @@ ], "repository": { "type": "git", - "url": "https://github.com/facebook/docusaurus.git", + "url": "https://github.com/meta/docusaurus.git", "directory": "packages/docusaurus-tsconfig" }, "license": "MIT", diff --git a/packages/docusaurus-types/package.json b/packages/docusaurus-types/package.json index 99ede8e37bca..30d9a61a4b37 100644 --- a/packages/docusaurus-types/package.json +++ b/packages/docusaurus-types/package.json @@ -8,7 +8,7 @@ }, "repository": { "type": "git", - "url": "https://github.com/facebook/docusaurus.git", + "url": "https://github.com/meta/docusaurus.git", "directory": "packages/docusaurus-types" }, "license": "MIT", diff --git a/packages/docusaurus-utils-common/package.json b/packages/docusaurus-utils-common/package.json index 6ca996718af1..90d5ad8872b6 100644 --- a/packages/docusaurus-utils-common/package.json +++ b/packages/docusaurus-utils-common/package.json @@ -14,7 +14,7 @@ }, "repository": { "type": "git", - "url": "https://github.com/facebook/docusaurus.git", + "url": "https://github.com/meta/docusaurus.git", "directory": "packages/docusaurus-utils-common" }, "license": "MIT", diff --git a/packages/docusaurus-utils-validation/package.json b/packages/docusaurus-utils-validation/package.json index 5b5b5356322f..a2ca11767ddd 100644 --- a/packages/docusaurus-utils-validation/package.json +++ b/packages/docusaurus-utils-validation/package.json @@ -13,7 +13,7 @@ }, "repository": { "type": "git", - "url": "https://github.com/facebook/docusaurus.git", + "url": "https://github.com/meta/docusaurus.git", "directory": "packages/docusaurus-utils-validation" }, "license": "MIT", diff --git a/packages/docusaurus-utils/package.json b/packages/docusaurus-utils/package.json index 408844fcdc8d..36637bd54357 100644 --- a/packages/docusaurus-utils/package.json +++ b/packages/docusaurus-utils/package.json @@ -13,7 +13,7 @@ }, "repository": { "type": "git", - "url": "https://github.com/facebook/docusaurus.git", + "url": "https://github.com/meta/docusaurus.git", "directory": "packages/docusaurus-utils" }, "license": "MIT", diff --git a/packages/docusaurus/package.json b/packages/docusaurus/package.json index 16cd79799fc7..a7a65b30fba5 100644 --- a/packages/docusaurus/package.json +++ b/packages/docusaurus/package.json @@ -17,7 +17,7 @@ ], "repository": { "type": "git", - "url": "https://github.com/facebook/docusaurus.git", + "url": "https://github.com/meta/docusaurus.git", "directory": "packages/docusaurus" }, "bin": { @@ -30,7 +30,7 @@ "copy:watch": "copy-untyped-files --watch" }, "bugs": { - "url": "https://github.com/facebook/docusaurus/issues" + "url": "https://github.com/meta/docusaurus/issues" }, "dependencies": { "@docusaurus/babel": "workspace:*", diff --git a/packages/eslint-plugin/package.json b/packages/eslint-plugin/package.json index feb8d3967269..0528e0d46fb0 100644 --- a/packages/eslint-plugin/package.json +++ b/packages/eslint-plugin/package.json @@ -10,7 +10,7 @@ ], "repository": { "type": "git", - "url": "https://github.com/facebook/docusaurus.git", + "url": "https://github.com/meta/docusaurus.git", "directory": "packages/eslint-plugin" }, "publishConfig": { diff --git a/packages/lqip-loader/package.json b/packages/lqip-loader/package.json index 1b2e83d960ed..e81d7b7cc001 100644 --- a/packages/lqip-loader/package.json +++ b/packages/lqip-loader/package.json @@ -12,7 +12,7 @@ }, "repository": { "type": "git", - "url": "https://github.com/facebook/docusaurus.git", + "url": "https://github.com/meta/docusaurus.git", "directory": "packages/lqip-loader" }, "license": "MIT", diff --git a/packages/stylelint-copyright/package.json b/packages/stylelint-copyright/package.json index 2997480e1820..182247ab9247 100644 --- a/packages/stylelint-copyright/package.json +++ b/packages/stylelint-copyright/package.json @@ -11,7 +11,7 @@ }, "repository": { "type": "git", - "url": "https://github.com/facebook/docusaurus.git", + "url": "https://github.com/meta/docusaurus.git", "directory": "packages/stylelint-copyright" }, "dependencies": { From a0e1dcb7060be66c62a0eeee910e544e50a77401 Mon Sep 17 00:00:00 2001 From: sebastien Date: Fri, 30 Oct 2026 14:32:40 +0100 Subject: [PATCH 2/2] chore: update facebook/docusaurus links to meta/docusaurus (AI-assisted) History is left unchanged: changelogs, blog posts, versioned docs, generated examples and test fixtures. Co-Authored-By: Claude Opus 5.5 --- .agents/skills/code-style/SKILL.md | 2 +- .agents/skills/pull-requests/SKILL.md | 2 +- .github/ISSUE_TEMPLATE/bug.yml | 4 +-- .github/ISSUE_TEMPLATE/config.yml | 2 +- .github/ISSUE_TEMPLATE/documentation.yml | 2 +- .github/ISSUE_TEMPLATE/feature.yml | 2 +- .github/ISSUE_TEMPLATE/proposal.yml | 2 +- .github/PULL_REQUEST_TEMPLATE.md | 4 +-- .github/codeql/codeql-config.yml | 4 +-- .github/dependabot.yml | 6 ++-- .github/workflows/build-hash-router.yml | 6 ++-- .github/workflows/build-perf.yml | 2 +- .github/workflows/security-supply-chain.yml | 2 +- .github/workflows/tests-e2e.yml | 20 ++++++------- .github/workflows/tests-windows.yml | 8 ++--- .github/workflows/tests.yml | 8 ++--- CONTRIBUTING.md | 30 +++++++++---------- README.md | 14 ++++----- .../functionUtils/playgroundUtils.ts | 10 +++---- admin/publish-legacy.md | 14 ++++----- admin/publish.md | 16 +++++----- admin/scripts/formatLighthouseReport.js | 2 +- admin/scripts/generateExamples.js | 4 +-- admin/test-bad-package/README.mdx | 2 +- argos/tests/screenshot.spec.ts | 2 +- crowdin-v2.yaml | 2 +- eslint.config.ts | 2 +- lerna.json | 2 +- packages/create-docusaurus/bin/index.js | 2 +- packages/create-docusaurus/src/utils.ts | 2 +- .../classic-typescript/docusaurus.config.ts | 10 +++---- .../templates/classic/docusaurus.config.js | 10 +++---- .../docs/tutorial-basics/congratulations.mdx | 2 +- .../src/legacy/formatWebpackMessages.js | 2 +- .../src/loaders/styleLoader.ts | 2 +- packages/docusaurus-bundler/src/minifyHtml.ts | 4 +-- packages/docusaurus-glob/src/globUtils.ts | 2 +- packages/docusaurus-logger/src/index.ts | 4 +-- packages/docusaurus-mdx-loader/src/loader.ts | 4 +-- .../docusaurus-mdx-loader/src/processor.ts | 2 +- .../src/remark/contentTitle/index.ts | 2 +- .../src/remark/mermaid/index.ts | 2 +- .../src/remark/toc/index.ts | 2 +- .../src/remark/toc/utils.ts | 4 +-- .../src/remark/transformImage/index.ts | 4 +-- .../src/remark/transformLinks/index.ts | 2 +- .../__snapshots__/index.test.ts.snap | 6 ++-- .../unusedDirectives/__tests__/index.test.ts | 10 +++---- .../src/remark/unusedDirectives/index.ts | 2 +- .../src/collectRedirects.ts | 2 +- .../src/extensionRedirects.ts | 2 +- .../src/writeRedirectFiles.ts | 8 ++--- .../src/contentHelpers.ts | 4 +-- .../src/feed.ts | 2 +- .../src/index.ts | 4 +-- .../src/client/index.ts | 2 +- .../src/client/structuredDataUtils.ts | 2 +- .../src/contentHelpers.ts | 4 +-- .../src/frontMatter.ts | 4 +-- .../src/index.ts | 4 +-- .../src/numberPrefix.ts | 4 +-- .../src/server-export.ts | 2 +- .../src/sidebars/generator.ts | 2 +- .../src/sidebars/types.ts | 4 +-- .../src/versions/files.ts | 4 +-- .../src/versions/version.ts | 2 +- .../src/contentHelpers.ts | 4 +-- .../src/frontMatter.ts | 4 +-- .../src/index.ts | 2 +- .../docusaurus-plugin-google-gtag/src/gtag.ts | 2 +- .../src/options.ts | 2 +- .../src/vendor-gtag.ts | 4 +-- .../src/index.ts | 2 +- .../components/IdealImage/waypoint.tsx | 2 +- .../src/createSitemapItem.ts | 2 +- .../docusaurus-plugin-sitemap/src/options.ts | 2 +- .../docusaurus-plugin-sitemap/src/types.ts | 6 ++-- .../docusaurus-plugin-svgr/src/svgrLoader.ts | 4 +-- .../docusaurus-preset-classic/src/index.ts | 2 +- packages/docusaurus-theme-classic/README.md | 2 +- .../src/getSwizzleConfig.ts | 2 +- .../src/inlineSvgSprites.ts | 2 +- .../docusaurus-theme-classic/src/options.ts | 4 +-- .../src/theme/CodeBlock/Line/index.tsx | 4 +-- .../theme/CodeBlock/Line/styles.module.css | 2 +- .../src/theme/ColorModeToggle/index.tsx | 2 +- .../src/theme/ContentVisibility/index.tsx | 2 +- .../src/theme/DocItem/Content/index.tsx | 2 +- .../theme/DocRoot/Layout/Sidebar/index.tsx | 4 +-- .../src/theme/DocRoot/index.tsx | 2 +- .../theme/DocSidebarItem/Category/index.tsx | 6 ++-- .../src/theme/Icon/ExternalLink/index.tsx | 2 +- .../src/theme/Logo/index.tsx | 2 +- .../src/theme/MDXComponents/Code.tsx | 2 +- .../src/theme/MDXComponents/Ul/index.tsx | 2 +- .../src/theme/MDXComponents/index.tsx | 2 +- .../src/theme/Mermaid.tsx | 2 +- .../theme/Navbar/Content/styles.module.css | 2 +- .../src/theme/Navbar/Search/styles.module.css | 2 +- .../DropdownNavbarItem/Desktop/index.tsx | 2 +- .../DropdownNavbarItem/Mobile/index.tsx | 2 +- .../LocaleDropdownNavbarItem/index.tsx | 2 +- .../src/theme/SearchMetadata/index.tsx | 4 +-- .../src/theme/SiteMetadata/index.tsx | 4 +-- .../src/theme/Tabs/index.tsx | 2 +- .../src/components/Collapsible/index.tsx | 4 +-- .../src/components/Details/index.tsx | 2 +- .../src/components/ThemedComponent/index.tsx | 2 +- .../src/contexts/colorMode.tsx | 6 ++-- .../src/contexts/navbarMobileSidebar.tsx | 6 ++-- .../src/hooks/useCodeWordWrap.ts | 2 +- .../src/hooks/useHideableNavbar.ts | 4 +-- .../src/hooks/useTOCHighlight.ts | 2 +- .../src/hooks/useWindowSize.ts | 4 +-- .../src/utils/anchorUtils.ts | 2 +- .../src/utils/codeBlockUtils.tsx | 2 +- .../src/utils/emojiUtils.ts | 2 +- .../src/utils/jsUtils.ts | 2 +- .../src/utils/routesUtils.ts | 2 +- .../src/utils/scrollUtils.tsx | 6 ++-- .../src/utils/skipToContentUtils.tsx | 8 ++--- .../src/utils/storageUtils.ts | 6 ++-- .../src/utils/tabsUtils.tsx | 2 +- .../src/utils/useAlternatePageUtils.ts | 2 +- .../src/utils/useLocationChange.ts | 2 +- .../src/theme/Playground/Preview/index.tsx | 2 +- .../src/theme/Playground/Provider/index.tsx | 2 +- packages/docusaurus-theme-mermaid/README.md | 2 +- .../src/client/searchPage.ts | 2 +- .../src/client/utils.ts | 2 +- .../src/theme/SearchBar/index.tsx | 2 +- .../src/theme/SearchPage/index.tsx | 2 +- .../src/validateThemeConfig.ts | 2 +- .../docusaurus-theme-translations/README.md | 2 +- .../src/index.ts | 2 +- packages/docusaurus-types/src/bundler.d.ts | 2 +- packages/docusaurus-types/src/config.d.ts | 4 +-- packages/docusaurus-types/src/markdown.d.ts | 4 +-- packages/docusaurus-types/src/routing.d.ts | 6 ++-- .../src/applyTrailingSlash.ts | 2 +- packages/docusaurus-utils-common/src/index.ts | 2 +- .../src/JoiFrontMatter.ts | 2 +- packages/docusaurus-utils/src/constants.ts | 2 +- .../docusaurus-utils/src/lastUpdateUtils.ts | 4 +-- .../docusaurus-utils/src/markdownUtils.ts | 2 +- packages/docusaurus-utils/src/urlUtils.ts | 4 +-- packages/docusaurus-utils/src/vcs/gitUtils.ts | 12 ++++---- .../docusaurus-utils/src/vcs/vcsGitAdHoc.ts | 2 +- packages/docusaurus-utils/src/webpackUtils.ts | 2 +- packages/docusaurus/bin/beforeCli.mjs | 4 +-- packages/docusaurus/bin/docusaurus.mjs | 2 +- .../src/client/BaseUrlIssueBanner/index.tsx | 6 ++-- .../src/client/SiteMetadataDefaults.tsx | 2 +- .../src/client/exports/ErrorBoundary.tsx | 2 +- .../src/client/exports/Interpolate.tsx | 2 +- .../docusaurus/src/client/exports/Link.tsx | 4 +-- .../src/client/exports/useBaseUrl.ts | 4 +-- .../src/client/hasHydratedDataAttribute.tsx | 2 +- .../docusaurus/src/client/renderToHtml.tsx | 2 +- .../src/client/theme-fallback/Error/index.tsx | 2 +- .../src/client/theme-fallback/Root/index.tsx | 2 +- .../src/commands/build/buildLocale.ts | 4 +-- packages/docusaurus/src/commands/cli.ts | 4 +-- packages/docusaurus/src/commands/deploy.ts | 2 +- packages/docusaurus/src/commands/serve.ts | 6 ++-- .../docusaurus/src/commands/start/start.ts | 2 +- .../docusaurus/src/commands/start/utils.ts | 2 +- .../docusaurus/src/commands/start/webpack.ts | 2 +- .../src/commands/swizzle/components.ts | 2 +- .../docusaurus/src/commands/swizzle/tables.ts | 2 +- .../commands/utils/openBrowser/openBrowser.ts | 6 ++-- .../utils/openBrowser/openChrome.applescript | 2 +- packages/docusaurus/src/common.d.ts | 6 ++-- packages/docusaurus/src/server/brokenLinks.ts | 12 ++++---- .../src/server/codegen/codegenRoutes.ts | 6 ++-- .../docusaurus/src/server/configValidation.ts | 4 +-- packages/docusaurus/src/server/i18n.ts | 2 +- .../docusaurus/src/server/plugins/init.ts | 2 +- packages/docusaurus/src/server/site.ts | 2 +- .../docusaurus/src/server/siteMetadata.ts | 4 +-- packages/docusaurus/src/ssg/ssgEnv.ts | 4 +-- packages/docusaurus/src/ssg/ssgExecutor.ts | 4 +-- .../docusaurus/src/ssg/ssgGlobalResult.ts | 4 +-- packages/docusaurus/src/ssg/ssgRenderer.ts | 2 +- .../docusaurus/src/webpack/aliases/index.ts | 4 +-- packages/docusaurus/src/webpack/base.ts | 10 +++---- packages/docusaurus/src/webpack/client.ts | 2 +- packages/docusaurus/src/webpack/configure.ts | 2 +- .../plugins/BundlerCPUProfilerPlugin.ts | 2 +- .../src/webpack/plugins/ChunkAssetPlugin.ts | 2 +- .../plugins/StaticDirectoriesCopyPlugin.ts | 2 +- packages/docusaurus/src/webpack/server.ts | 4 +-- packages/stylelint-copyright/src/index.ts | 2 +- vitest.config.ts | 2 +- .../_dogfooding/_asset-tests/badSyntax.css | 2 +- website/_dogfooding/_asset-tests/badSyntax.js | 4 +-- .../dogfooding/javadoc/index.html | 2 +- .../_blog tests/2021-09-13-dup-title.mdx | 2 +- .../_dogfooding/_blog tests/2023-07-19-a.mdx | 2 +- .../_docs tests/beginner's guide.mdx | 2 +- .../_docs tests/tests/admonitions.mdx | 2 +- .../folder/\303\246\303\270\303\245.mdx" | 2 +- .../ascii/\303\246\303\270\303\245/index.mdx" | 2 +- .../_docs tests/tests/import-bad-package.mdx | 2 +- .../tests/links/resolution/index.mdx | 2 +- .../tests/links/test-markdown-links.mdx | 8 ++--- .../dir-with-unique-index/index.mdx | 2 +- .../_docs tests/tests/toc-partials/index.mdx | 4 +-- .../_dogfooding/_pages tests/analytics.tsx | 2 +- .../_pages tests/code-block-tests.mdx | 10 +++---- website/_dogfooding/_pages tests/diagrams.mdx | 2 +- website/_dogfooding/_pages tests/embeds.tsx | 2 +- .../_pages tests/history-tests.tsx | 2 +- .../_pages tests/hydration-tests.tsx | 2 +- .../_pages tests/layout-no-children.tsx | 2 +- .../_pages tests/markdown-tests-md.md | 6 ++-- .../_pages tests/markdown-tests-mdx.mdx | 6 ++-- .../_pages tests/style-isolation/index.tsx | 2 +- .../_dogfooding/_pages tests/svg/index.mdx | 2 +- website/_dogfooding/docs-tests-sidebars.js | 2 +- website/_dogfooding/dogfooding.config.ts | 10 +++---- .../_dogfooding/migrateStorageNamespace.ts | 2 +- website/community/4-canary.mdx | 2 +- website/community/5-release-process.mdx | 2 +- website/docs/api/docusaurus.config.js.mdx | 4 +-- .../api/plugin-methods/lifecycle-apis.mdx | 4 +-- .../docs/api/plugins/plugin-content-blog.mdx | 4 +-- .../docs/api/plugins/plugin-content-docs.mdx | 6 ++-- .../api/plugins/plugin-css-cascade-layers.mdx | 2 +- .../docs/api/themes/theme-configuration.mdx | 2 +- website/docs/cli.mdx | 2 +- website/docs/deployment/github-pages.mdx | 2 +- website/docs/deployment/index.mdx | 2 +- website/docs/docusaurus-core.mdx | 2 +- .../guides/docs/sidebar/autogenerated.mdx | 2 +- website/docs/guides/docs/sidebar/index.mdx | 2 +- .../markdown-features-code-blocks.mdx | 2 +- .../markdown-features-intro.mdx | 2 +- .../markdown-features-plugins.mdx | 2 +- .../markdown-features-react.mdx | 2 +- .../markdown-features-toc.mdx | 2 +- website/docs/i18n/i18n-crowdin.mdx | 6 ++-- website/docs/i18n/i18n-git.mdx | 2 +- website/docs/i18n/i18n-introduction.mdx | 4 +-- website/docs/i18n/i18n-tutorial.mdx | 4 +-- website/docs/installation.mdx | 6 ++-- website/docs/introduction.mdx | 6 ++-- website/docs/migration/v3.mdx | 20 ++++++------- website/docs/search.mdx | 2 +- website/docs/styling-layout.mdx | 4 +-- website/docs/swizzling.mdx | 8 ++--- website/docusaurus.config-blog-only.js | 2 +- website/docusaurus.config.ts | 28 ++++++++--------- website/netlify.toml | 2 +- .../NavbarItems/CustomDogfoodNavbarItem.tsx | 2 +- website/src/components/Versions.tsx | 2 +- website/src/data/users.tsx | 4 +-- website/src/pages/showcase/index.tsx | 2 +- website/src/pages/versions.tsx | 2 +- .../featureRequests/FeatureRequestsPage.tsx | 4 +-- website/src/theme/CodeBlock/index.tsx | 2 +- website/testCSSOrder.mjs | 8 ++--- website/tsconfig.skipLibCheck.json | 2 +- 263 files changed, 483 insertions(+), 483 deletions(-) diff --git a/.agents/skills/code-style/SKILL.md b/.agents/skills/code-style/SKILL.md index f12feb8ebf8d..06f6e1697d33 100644 --- a/.agents/skills/code-style/SKILL.md +++ b/.agents/skills/code-style/SKILL.md @@ -44,7 +44,7 @@ async function main() { ```ts // The toggle event also fires when React syncs the open attribute -// See https://github.com/facebook/docusaurus/pull/12277 +// See https://github.com/meta/docusaurus/pull/12277 ``` ## Readability over micro-optimizations diff --git a/.agents/skills/pull-requests/SKILL.md b/.agents/skills/pull-requests/SKILL.md index 1e57e6ee1e13..9e3af140e059 100644 --- a/.agents/skills/pull-requests/SKILL.md +++ b/.agents/skills/pull-requests/SKILL.md @@ -1,6 +1,6 @@ --- name: pull-requests -description: Create, update, check the CI of, or merge a facebook/docusaurus pull request. Use before running `gh pr create`, pushing commits to an existing PR, reading its CI checks or bot comments, or merging it. Docusaurus maintainers only. +description: Create, update, check the CI of, or merge a meta/docusaurus pull request. Use before running `gh pr create`, pushing commits to an existing PR, reading its CI checks or bot comments, or merging it. Docusaurus maintainers only. --- # Pull requests diff --git a/.github/ISSUE_TEMPLATE/bug.yml b/.github/ISSUE_TEMPLATE/bug.yml index e2b99b619921..4c550d3a40ac 100644 --- a/.github/ISSUE_TEMPLATE/bug.yml +++ b/.github/ISSUE_TEMPLATE/bug.yml @@ -12,7 +12,7 @@ body: - Do I have basic ideas about where it goes wrong? (For example, if there are stack traces, are they pointing to one file?) - Could it be because of my own mistakes? - **The GitHub issue tracker is not a support forum**. If you are not sure whether it could be your mistakes, ask in the [Discord server](https://discord.gg/docusaurus) or [GitHub discussions](https://github.com/facebook/docusaurus/discussions) first. The quickest way to verify whether it's a Docusaurus defect is through a **reproduction**, starting with a fresh installation and making changes until the bug is reproduced. + **The GitHub issue tracker is not a support forum**. If you are not sure whether it could be your mistakes, ask in the [Discord server](https://discord.gg/docusaurus) or [GitHub discussions](https://github.com/meta/docusaurus/discussions) first. The quickest way to verify whether it's a Docusaurus defect is through a **reproduction**, starting with a fresh installation and making changes until the bug is reproduced. Make the bug obvious. Ideally, we should be able to understand it without running any code. @@ -26,7 +26,7 @@ body: attributes: label: Have you read the Contributing Guidelines on issues? options: - - label: I have read the [Contributing Guidelines on issues](https://github.com/facebook/docusaurus/blob/main/CONTRIBUTING.md#issues). + - label: I have read the [Contributing Guidelines on issues](https://github.com/meta/docusaurus/blob/main/CONTRIBUTING.md#issues). required: true - type: checkboxes diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml index b02d363b105f..9fd87d7a0af2 100644 --- a/.github/ISSUE_TEMPLATE/config.yml +++ b/.github/ISSUE_TEMPLATE/config.yml @@ -10,5 +10,5 @@ contact_links: url: https://stackoverflow.com/questions/tagged/docusaurus about: This issue tracker is not for technical support. Please use Stack Overflow, and ask the community for help. - name: ❓ Advanced question - GitHub Discussions - url: https://github.com/facebook/docusaurus/discussions + url: https://github.com/meta/docusaurus/discussions about: Use GitHub Discussions for advanced and unanswered questions only, requiring a maintainer's answer. Make sure the question wasn't already asked. diff --git a/.github/ISSUE_TEMPLATE/documentation.yml b/.github/ISSUE_TEMPLATE/documentation.yml index b3ca90de2b4d..3d3e83806cd8 100644 --- a/.github/ISSUE_TEMPLATE/documentation.yml +++ b/.github/ISSUE_TEMPLATE/documentation.yml @@ -27,7 +27,7 @@ body: attributes: label: Have you read the Contributing Guidelines on issues? options: - - label: I have read the [Contributing Guidelines on issues](https://github.com/facebook/docusaurus/blob/main/CONTRIBUTING.md#issues). + - label: I have read the [Contributing Guidelines on issues](https://github.com/meta/docusaurus/blob/main/CONTRIBUTING.md#issues). required: true - type: textarea diff --git a/.github/ISSUE_TEMPLATE/feature.yml b/.github/ISSUE_TEMPLATE/feature.yml index cf9d69f2f0f8..d8b1cc3a9020 100644 --- a/.github/ISSUE_TEMPLATE/feature.yml +++ b/.github/ISSUE_TEMPLATE/feature.yml @@ -15,7 +15,7 @@ body: attributes: label: Have you read the Contributing Guidelines on issues? options: - - label: I have read the [Contributing Guidelines on issues](https://github.com/facebook/docusaurus/blob/main/CONTRIBUTING.md#issues). + - label: I have read the [Contributing Guidelines on issues](https://github.com/meta/docusaurus/blob/main/CONTRIBUTING.md#issues). required: true - type: textarea diff --git a/.github/ISSUE_TEMPLATE/proposal.yml b/.github/ISSUE_TEMPLATE/proposal.yml index efd0bfc9808a..a00051d1b142 100644 --- a/.github/ISSUE_TEMPLATE/proposal.yml +++ b/.github/ISSUE_TEMPLATE/proposal.yml @@ -23,7 +23,7 @@ body: attributes: label: Have you read the Contributing Guidelines on issues? options: - - label: I have read the [Contributing Guidelines on issues](https://github.com/facebook/docusaurus/blob/main/CONTRIBUTING.md#issues). + - label: I have read the [Contributing Guidelines on issues](https://github.com/meta/docusaurus/blob/main/CONTRIBUTING.md#issues). required: true - type: textarea diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md index 575fcbf8eb57..1861bb55270a 100644 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -1,12 +1,12 @@ ## Pre-flight checklist -- [ ] I have read the [Contributing Guidelines on pull requests](https://github.com/facebook/docusaurus/blob/main/CONTRIBUTING.md#pull-requests). +- [ ] I have read the [Contributing Guidelines on pull requests](https://github.com/meta/docusaurus/blob/main/CONTRIBUTING.md#pull-requests). - [ ] **If this is a code change**: I have written unit tests and/or added dogfooding pages to fully verify the new behavior. - [ ] **If this is a new API or substantial change**: the PR has an accompanying issue (closes #0000) and the maintainers have approved on my working plan. diff --git a/.github/codeql/codeql-config.yml b/.github/codeql/codeql-config.yml index ead69cdc94dc..ea378e51d720 100644 --- a/.github/codeql/codeql-config.yml +++ b/.github/codeql/codeql-config.yml @@ -8,11 +8,11 @@ paths-ignore: # The inputs (files, CLI args) are usually controlled locally query-filters: # Many false positives - # Example: https://github.com/facebook/docusaurus/security/code-scanning/168 + # Example: https://github.com/meta/docusaurus/security/code-scanning/168 - exclude: id: js/path-injection # Many false positives - # Example: https://github.com/facebook/docusaurus/security/code-scanning/150 + # Example: https://github.com/meta/docusaurus/security/code-scanning/150 - exclude: id: js/polynomial-redos # - exclude: diff --git a/.github/dependabot.yml b/.github/dependabot.yml index dca962e7a064..5906e8a53101 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -30,14 +30,14 @@ updates: default-days: 5 semver-major-days: 30 # +1d compared to pnpm cutoff, otherwise Dependabot opens PRs too early - # See https://github.com/facebook/docusaurus/pull/12241 + # See https://github.com/meta/docusaurus/pull/12241 semver-minor-days: 8 semver-patch-days: 8 # Packages that must be upgraded atomically in a single PR # pnpm lint:catalogs checks that the catalog versions of each group match groups: # Released in lockstep, mixing versions breaks typechecking - # See https://github.com/facebook/docusaurus/pull/12634 + # See https://github.com/meta/docusaurus/pull/12634 typescript-eslint: patterns: - 'typescript-eslint' @@ -70,7 +70,7 @@ updates: - '@svgr/*' # Babel packages depend on each other # Upgrading them independently duplicates Babel packages in the lockfile - # See https://github.com/facebook/docusaurus/pull/12704 + # See https://github.com/meta/docusaurus/pull/12704 babel: patterns: - '@babel/*' diff --git a/.github/workflows/build-hash-router.yml b/.github/workflows/build-hash-router.yml index c490cf4d6dd2..f26291d5afe4 100644 --- a/.github/workflows/build-hash-router.yml +++ b/.github/workflows/build-hash-router.yml @@ -51,7 +51,7 @@ jobs: DOCUSAURUS_PERF_LOGGER: 'true' DOCUSAURUS_ROUTER: 'hash' # Note: hash router + baseUrl do not play well together - # This would host at https://facebook.github.io/docusaurus/#/docusaurus/ + # This would host at https://meta.github.io/docusaurus/#/docusaurus/ # BASE_URL: '/docusaurus/' # hash router + - name: Upload Website artifact @@ -65,7 +65,7 @@ jobs: # with: # path: website/build - # Deploy to https://facebook.github.io/docusaurus/ + # Deploy to https://meta.github.io/docusaurus/ - name: Deploy to GitHub Pages if: ${{ github.event_name != 'pull_request' && github.ref_name == 'main' }} uses: peaceiris/actions-gh-pages@84c30a85c19949d7eee79c4ff27748b70285e453 # v4.1.0 @@ -75,7 +75,7 @@ jobs: ## TODO we should be able to use this new deploy-pages action ## However this requires a Meta admin to configure it here - ## https://github.com/facebook/docusaurus/settings/pages + ## https://github.com/meta/docusaurus/settings/pages ## So for now we keep using the former method ## See https://docusaurus.io/docs/deployment#triggering-deployment-with-github-actions #deploy: diff --git a/.github/workflows/build-perf.yml b/.github/workflows/build-perf.yml index 3e54fa5b3e41..666526a88180 100644 --- a/.github/workflows/build-perf.yml +++ b/.github/workflows/build-perf.yml @@ -64,7 +64,7 @@ jobs: # Always rebuild packages, including for the base branch install-script: bash -c "pnpm install --frozen-lockfile --ignore-scripts && pnpm build:packages" build-script: build:website:fast - clean-script: clear:website # see https://github.com/facebook/docusaurus/pull/6838 + clean-script: clear:website # see https://github.com/meta/docusaurus/pull/6838 pattern: '{website/build/assets/js/main*js,website/build/assets/js/runtime~main*js,website/build/assets/css/styles*css,website/.docusaurus/globalData.json,website/.docusaurus/registry.js,website/.docusaurus/routes.js,website/.docusaurus/routesChunkNames.json,website/.docusaurus/site-metadata.json,website/.docusaurus/codeTranslations.json,website/.docusaurus/i18n.json,website/.docusaurus/docusaurus.config.mjs,website/build/index.html,website/build/docs.html,website/build/docs/**/*.html,website/build/blog.html,website/build/blog/**/*.html}' # HTML files: exclude versioned docs pages, tags pages, html redirect files exclude: '{website/build/docs/?.?.?/**/*.html,website/build/docs/next/**/*.html,website/build/blog/tags/**/*.html,**/*.html.html}' diff --git a/.github/workflows/security-supply-chain.yml b/.github/workflows/security-supply-chain.yml index 72c55f483557..4910e902a418 100644 --- a/.github/workflows/security-supply-chain.yml +++ b/.github/workflows/security-supply-chain.yml @@ -58,7 +58,7 @@ jobs: # Check our init template deps for new supply chain compromissions # This workflow is not ideal but good enough for now - # See why https://github.com/facebook/docusaurus/pull/12448 + # See why https://github.com/meta/docusaurus/pull/12448 supply-chain-site-template: name: Supply Chain - Site Template @${{ matrix.npm_dist_tag }} timeout-minutes: 30 diff --git a/.github/workflows/tests-e2e.yml b/.github/workflows/tests-e2e.yml index d32fa2c7c6ba..a67d9ef6ecac 100644 --- a/.github/workflows/tests-e2e.yml +++ b/.github/workflows/tests-e2e.yml @@ -74,11 +74,11 @@ jobs: E2E_TEST: true - name: Build test-website-in-workspace project # We build 2 locales to ensure a localized site doesn't leak memory - # See https://github.com/facebook/docusaurus/issues/10944 + # See https://github.com/meta/docusaurus/issues/10944 run: pnpm build --locale en --locale fr env: # Our website should build even with limited memory - # See https://github.com/facebook/docusaurus/pull/10590 + # See https://github.com/meta/docusaurus/pull/10590 NODE_OPTIONS: '--max-old-space-size=200' DOCUSAURUS_PERF_LOGGER: 'true' working-directory: test-website-in-workspace @@ -130,11 +130,11 @@ jobs: E2E_TEST: true - name: Build test-website project # We build 2 locales to ensure a localized site doesn't leak memory - # See https://github.com/facebook/docusaurus/issues/10944 + # See https://github.com/meta/docusaurus/issues/10944 run: yarn build --locale en --locale fr env: # Our website should build even with limited memory - # See https://github.com/facebook/docusaurus/pull/10590 + # See https://github.com/meta/docusaurus/pull/10590 NODE_OPTIONS: '--max-old-space-size=200' DOCUSAURUS_PERF_LOGGER: 'true' working-directory: ../test-website @@ -220,11 +220,11 @@ jobs: - name: Build test-website project # We build 2 locales to ensure a localized site doesn't leak memory - # See https://github.com/facebook/docusaurus/issues/10944 + # See https://github.com/meta/docusaurus/issues/10944 run: yarn build --locale en --locale fr env: # Our website should build even with limited memory - # See https://github.com/facebook/docusaurus/pull/10590 + # See https://github.com/meta/docusaurus/pull/10590 NODE_OPTIONS: '--max-old-space-size=200' DOCUSAURUS_PERF_LOGGER: 'true' working-directory: ../test-website @@ -267,11 +267,11 @@ jobs: E2E_TEST: true - name: Build test-website project # We build 2 locales to ensure a localized site doesn't leak memory - # See https://github.com/facebook/docusaurus/issues/10944 + # See https://github.com/meta/docusaurus/issues/10944 run: npm run build -- --locale en --locale fr env: # Our website should build even with limited memory - # See https://github.com/facebook/docusaurus/pull/10590 + # See https://github.com/meta/docusaurus/pull/10590 NODE_OPTIONS: '--max-old-space-size=200' DOCUSAURUS_PERF_LOGGER: 'true' working-directory: ../test-website @@ -314,11 +314,11 @@ jobs: E2E_TEST: true - name: Build test-website project # We build 2 locales to ensure a localized site doesn't leak memory - # See https://github.com/facebook/docusaurus/issues/10944 + # See https://github.com/meta/docusaurus/issues/10944 run: pnpm run build --locale en --locale fr env: # Our website should build even with limited memory - # See https://github.com/facebook/docusaurus/pull/10590 + # See https://github.com/meta/docusaurus/pull/10590 NODE_OPTIONS: '--max-old-space-size=200' DOCUSAURUS_PERF_LOGGER: 'true' working-directory: ../test-website diff --git a/.github/workflows/tests-windows.yml b/.github/workflows/tests-windows.yml index 91908c9ab86f..325a50963bf7 100644 --- a/.github/workflows/tests-windows.yml +++ b/.github/workflows/tests-windows.yml @@ -52,8 +52,8 @@ jobs: - name: Docusaurus Tests run: pnpm test - name: Create a deep path - # https://github.com/facebook/docusaurus/pull/4899 - # https://github.com/facebook/docusaurus/issues/5793 + # https://github.com/meta/docusaurus/pull/4899 + # https://github.com/meta/docusaurus/issues/5793 run: | mkdir -p "website/_dogfooding/_pages tests/deep-file-path-test/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" cd "$_" @@ -67,7 +67,7 @@ jobs: DOCUSAURUS_PERF_LOGGER: 'true' - name: TypeCheck website - # see https://github.com/facebook/docusaurus/pull/10486 + # see https://github.com/meta/docusaurus/pull/10486 run: pnpm --filter website typecheck # The TypeScript compiler of the tested version runs with pnpm dlx, @@ -79,7 +79,7 @@ jobs: - name: TypeCheck website - max version - Latest # For latest TS there are often lib check errors, so we disable it - # Details: https://github.com/facebook/docusaurus/pull/10486 + # Details: https://github.com/meta/docusaurus/pull/10486 run: | pnpm dlx --package=typescript@latest tsc --version pnpm dlx --package=typescript@latest tsc --project website/tsconfig.skipLibCheck.json diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 1920fe6e5232..9e8f91426b4e 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -53,18 +53,18 @@ jobs: run: pnpm --filter @docusaurus/theme-common removeThemeInternalReexport - name: Docusaurus Build # We build 2 locales to ensure a localized site doesn't leak memory - # See https://github.com/facebook/docusaurus/issues/10944 + # See https://github.com/meta/docusaurus/issues/10944 run: pnpm build:website:fast --locale en --locale fr env: # Our website should build even with limited memory - # See https://github.com/facebook/docusaurus/pull/10590 + # See https://github.com/meta/docusaurus/pull/10590 NODE_OPTIONS: "--max-old-space-size=${{ matrix.node == '24.21' && 350 || 300 }}" DOCUSAURUS_PERF_LOGGER: 'true' - name: Docusaurus site CSS order run: pnpm --filter website test:css-order - name: TypeCheck website - # see https://github.com/facebook/docusaurus/pull/10486 + # see https://github.com/meta/docusaurus/pull/10486 run: pnpm --filter website typecheck # The TypeScript compiler of the tested version runs with pnpm dlx, @@ -76,7 +76,7 @@ jobs: - name: TypeCheck website - max version - Latest # For latest TS there are often lib check errors, so we disable it - # Details: https://github.com/facebook/docusaurus/pull/10486 + # Details: https://github.com/meta/docusaurus/pull/10486 run: | pnpm dlx --package=typescript@latest tsc --version pnpm dlx --package=typescript@latest tsc --project website/tsconfig.skipLibCheck.json diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index ab9cfd7bc8e3..d5b743073256 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -16,10 +16,10 @@ Meta has adopted a Code of Conduct that we expect project participants to adhere There are many ways to contribute to Docusaurus, and many of them do not involve writing any code. Here's a few ideas to get started: - Simply start using Docusaurus. Go through the [Getting Started](https://docusaurus.io/docs/installation) guide. Does everything work as expected? If not, we're always looking for improvements. Let us know by [opening an issue](#issues). -- Look through the [open issues](https://github.com/facebook/docusaurus/issues). Provide workarounds, ask for clarification, or suggest labels. Help [triage issues](#triaging-issues-and-pull-requests). -- If you find an issue you would like to fix, [open a pull request](#pull-requests). Issues tagged as [_Good first issue_](https://github.com/facebook/docusaurus/labels/Good%20first%20issue) are a good place to get started. +- Look through the [open issues](https://github.com/meta/docusaurus/issues). Provide workarounds, ask for clarification, or suggest labels. Help [triage issues](#triaging-issues-and-pull-requests). +- If you find an issue you would like to fix, [open a pull request](#pull-requests). Issues tagged as [_Good first issue_](https://github.com/meta/docusaurus/labels/Good%20first%20issue) are a good place to get started. - Read through the [Docusaurus docs](https://docusaurus.io/docs/installation). If you find anything that is confusing or can be improved, you can click "Edit this page" at the bottom of most docs, which takes you to the GitHub interface to make and propose changes. -- Take a look at the [features requested](https://github.com/facebook/docusaurus/labels/feature) by others in the community and consider opening a pull request if you see something you want to work on. +- Take a look at the [features requested](https://github.com/meta/docusaurus/labels/feature) by others in the community and consider opening a pull request if you see something you want to work on. Contributions are very welcome. If you think you need help planning your contribution, please ping us on X at [@docusaurus](https://x.com/docusaurus) and let us know you are looking for a bit of help. @@ -32,13 +32,13 @@ We have the [`#contributors`](https://discord.gg/6g6ASPA) channel on [Discord](h One great way you can contribute to the project without writing any code is to help triage issues and pull requests as they come in. - Ask for more information if you believe the issue does not provide all the details required to solve it. -- Suggest [labels](https://github.com/facebook/docusaurus/labels) that can help categorize issues. +- Suggest [labels](https://github.com/meta/docusaurus/labels) that can help categorize issues. - Flag issues that are stale or that should be closed. - Ask for test plans and review code. ## Our Development Process -Docusaurus uses [GitHub](https://github.com/facebook/docusaurus) as its source of truth. The core team will be working directly there. All changes will be public from the beginning. +Docusaurus uses [GitHub](https://github.com/meta/docusaurus) as its source of truth. The core team will be working directly there. All changes will be public from the beginning. All pull requests will be checked by the continuous integration system, GitHub actions. There are unit tests, end-to-end tests, performance tests, style tests, and much more. @@ -48,13 +48,13 @@ Docusaurus has one primary branch `main` and we use feature branches with deploy ## Issues -When [opening a new issue](https://github.com/facebook/docusaurus/issues/new/choose), always make sure to fill out the issue template. **This step is very important!** Not doing so may result in your issue not being managed in a timely fashion. Don't take this personally if this happens, and feel free to open a new issue once you've gathered all the information required by the template. +When [opening a new issue](https://github.com/meta/docusaurus/issues/new/choose), always make sure to fill out the issue template. **This step is very important!** Not doing so may result in your issue not being managed in a timely fashion. Don't take this personally if this happens, and feel free to open a new issue once you've gathered all the information required by the template. **Please don't use the GitHub issue tracker for questions.** If you have questions about using Docusaurus, use any of our [support channels](https://docusaurus.io/community/support), and we will do our best to answer your questions. ### Bugs -We use [GitHub Issues](https://github.com/facebook/docusaurus/issues) for our public bugs. If you would like to report a problem, take a look around and see if someone already opened an issue about it. If you are certain this is a new, unreported bug, you can submit a [bug report](https://github.com/facebook/docusaurus/issues/new?assignees=&labels=bug%2Cstatus%3A+needs+triage&template=bug.yml). +We use [GitHub Issues](https://github.com/meta/docusaurus/issues) for our public bugs. If you would like to report a problem, take a look around and see if someone already opened an issue about it. If you are certain this is a new, unreported bug, you can submit a [bug report](https://github.com/meta/docusaurus/issues/new?assignees=&labels=bug%2Cstatus%3A+needs+triage&template=bug.yml). - **One issue, one bug:** Please report a single bug per issue. - **Provide reproduction steps:** List all the steps necessary to reproduce the issue. The person reading your bug report should be able to follow these steps to reproduce your issue with minimal effort. @@ -67,20 +67,20 @@ Meta has a [bounty program](https://www.facebook.com/whitehat/) for the safe dis ### Feature requests -If you would like to request a new feature or enhancement but are not yet thinking about opening a pull request, you can file an issue with the [feature template](https://github.com/facebook/docusaurus/issues/new?assignees=&labels=feature%2Cstatus%3A+needs+triage&template=feature.yml) in the form of an **elaborated RFC**. Alternatively, you can use the [Canny board](https://docusaurus.io/feature-requests) for more casual feature requests and gain enough traction before proposing an RFC. +If you would like to request a new feature or enhancement but are not yet thinking about opening a pull request, you can file an issue with the [feature template](https://github.com/meta/docusaurus/issues/new?assignees=&labels=feature%2Cstatus%3A+needs+triage&template=feature.yml) in the form of an **elaborated RFC**. Alternatively, you can use the [Canny board](https://docusaurus.io/feature-requests) for more casual feature requests and gain enough traction before proposing an RFC. ### Proposals -If you intend to make any non-trivial changes to existing implementations, we recommend filing an issue with the [proposal template](https://github.com/facebook/docusaurus/issues/new?assignees=&labels=proposal%2Cstatus%3A+needs+triage&template=proposal.yml). This lets us reach an agreement on your proposal before you put significant effort into it. These types of issues should be rare. +If you intend to make any non-trivial changes to existing implementations, we recommend filing an issue with the [proposal template](https://github.com/meta/docusaurus/issues/new?assignees=&labels=proposal%2Cstatus%3A+needs+triage&template=proposal.yml). This lets us reach an agreement on your proposal before you put significant effort into it. These types of issues should be rare. ### Claiming issues -We have a list of [beginner-friendly issues](https://github.com/facebook/docusaurus/labels/good%20first%20issue) to help you get your feet wet in the Docusaurus codebase and familiar with our contribution process. This is a great place to get started. +We have a list of [beginner-friendly issues](https://github.com/meta/docusaurus/labels/good%20first%20issue) to help you get your feet wet in the Docusaurus codebase and familiar with our contribution process. This is a great place to get started. Apart from the `good first issue`, the following labels are also worth looking at: -- [`help wanted`](https://github.com/facebook/docusaurus/labels/help%20wanted): if you have specific knowledge in one domain, working on these issues can make your expertise shine. -- [`status: accepting pr`](https://github.com/facebook/docusaurus/labels/status%3A%20accepting%20pr): community contributors can feel free to claim any of these. +- [`help wanted`](https://github.com/meta/docusaurus/labels/help%20wanted): if you have specific knowledge in one domain, working on these issues can make your expertise shine. +- [`status: accepting pr`](https://github.com/meta/docusaurus/labels/status%3A%20accepting%20pr): community contributors can feel free to claim any of these. If you want to work on any of these issues, just drop a message saying "I am working on this". **You do not need to ask for assignment to work on any issue explicitly marked as welcoming external contributions.** However, don't "cookie lick", or squat on an issue without actually sending a PR. You are automatically considered as giving up if you don't **send a PR within seven days after your comment**, and the issue automatically becomes up for grabs again. @@ -98,9 +98,9 @@ You can use Gitpod (a free, online, VS Code-like IDE) for contributing. With a s So that you can start contributing straight away. -[![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/#https://github.com/facebook/docusaurus) +[![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/#https://github.com/meta/docusaurus) -You can also try using the new [github.dev](https://github.dev/facebook/docusaurus) feature. While you are browsing any file, changing the domain name from `github.com` to `github.dev` will turn your browser into an online editor. You can start making changes and send pull requests right away. +You can also try using the new [github.dev](https://github.dev/meta/docusaurus) feature. While you are browsing any file, changing the domain name from `github.com` to `github.dev` will turn your browser into an online editor. You can start making changes and send pull requests right away. ### Installation @@ -187,7 +187,7 @@ Tests are integrated into our continuous integration system, so you don't always - **Build and typecheck.** We use TypeScript in our codebase, which can make sure your code is consistent and catches some obvious mistakes early. - **Unit tests.** We use [Vitest](https://vitest.dev/) for unit tests of API endpoints' behavior. You can run `pnpm test` in the root directory to run all tests, or `pnpm test path/to/your/file.test.ts` to run a specific test. - **Dogfooding.** Our website itself covers all kinds of potential configuration cases and we even have a dedicated [tests area](https://docusaurus.io/tests). Don't be afraid to update our website's configuration in your PR—it can help the maintainers preview the effects. We can decide if the website change should be kept when merging and deploying for production. -- **E2E tests.** You can simulate the distribution and installation of the code with your fresh changes. If you need help testing your changes locally, you can check out the doc on doing [local third-party testing](https://github.com/facebook/docusaurus/blob/main/admin/local-third-party-project-testing.md). +- **E2E tests.** You can simulate the distribution and installation of the code with your fresh changes. If you need help testing your changes locally, you can check out the doc on doing [local third-party testing](https://github.com/meta/docusaurus/blob/main/admin/local-third-party-project-testing.md). ### Licensing diff --git a/README.md b/README.md index 84333e25d5ca..3be4c8bb401f 100644 --- a/README.md +++ b/README.md @@ -14,14 +14,14 @@ npm version - GitHub Actions status + GitHub Actions status PRs Welcome Discord Chat Covered by Argos - Gitpod Ready-to-Code + Gitpod Ready-to-Code Netlify Status - Deploy with Vercel + Deploy with Vercel Deploy to Netlify

@@ -65,11 +65,11 @@ Meta has adopted a Code of Conduct that we expect project participants to adhere ### Contributing guide -Read our [contributing guide](https://github.com/facebook/docusaurus/blob/main/CONTRIBUTING.md) to learn about our development process, how to propose bugfixes and improvements, and how to build and test your changes to Docusaurus. +Read our [contributing guide](https://github.com/meta/docusaurus/blob/main/CONTRIBUTING.md) to learn about our development process, how to propose bugfixes and improvements, and how to build and test your changes to Docusaurus. ### Beginner-friendly bugs -To help you get your feet wet and get you familiar with our contribution process, we have a list of [beginner-friendly bugs](https://github.com/facebook/docusaurus/labels/good%20first%20issue) that might contain smaller issues to tackle first. This is a great place to get started. +To help you get your feet wet and get you familiar with our contribution process, we have a list of [beginner-friendly bugs](https://github.com/meta/docusaurus/labels/good%20first%20issue) that might contain smaller issues to tackle first. This is a great place to get started. ## Contact @@ -79,11 +79,11 @@ We have a few channels for contact: - `#general` for those using Docusaurus. - `#contributors` for those wanting to contribute to the Docusaurus core. - [@docusaurus](https://x.com/docusaurus) X -- [GitHub Issues](https://github.com/facebook/docusaurus/issues) +- [GitHub Issues](https://github.com/meta/docusaurus/issues) ## Contributors -This project exists thanks to all the people who contribute. [[Contribute](CONTRIBUTING.md)]. +This project exists thanks to all the people who contribute. [[Contribute](CONTRIBUTING.md)]. ## Backers diff --git a/admin/new.docusaurus.io/functionUtils/playgroundUtils.ts b/admin/new.docusaurus.io/functionUtils/playgroundUtils.ts index b8813f5d7808..8d2f891cc28b 100644 --- a/admin/new.docusaurus.io/functionUtils/playgroundUtils.ts +++ b/admin/new.docusaurus.io/functionUtils/playgroundUtils.ts @@ -9,16 +9,16 @@ const CookieName = 'DocusaurusPlaygroundName'; const PlaygroundConfigs = { codesandbox: - 'https://codesandbox.io/p/sandbox/github/facebook/docusaurus/tree/main/examples/classic?file=%2FREADME.md&privacy=public', + 'https://codesandbox.io/p/sandbox/github/meta/docusaurus/tree/main/examples/classic?file=%2FREADME.md&privacy=public', 'codesandbox-ts': - 'https://codesandbox.io/p/sandbox/github/facebook/docusaurus/tree/main/examples/classic-typescript?file=%2FREADME.md&privacy=public', + 'https://codesandbox.io/p/sandbox/github/meta/docusaurus/tree/main/examples/classic-typescript?file=%2FREADME.md&privacy=public', // Slow to load - // stackblitz: 'https://stackblitz.com/github/facebook/docusaurus/tree/main/examples/classic', + // stackblitz: 'https://stackblitz.com/github/meta/docusaurus/tree/main/examples/classic', // Dedicated branch: faster load - stackblitz: 'https://stackblitz.com/github/facebook/docusaurus/tree/starter', + stackblitz: 'https://stackblitz.com/github/meta/docusaurus/tree/starter', 'stackblitz-ts': - 'https://stackblitz.com/github/facebook/docusaurus/tree/main/examples/classic-typescript', + 'https://stackblitz.com/github/meta/docusaurus/tree/main/examples/classic-typescript', }; const PlaygroundDocumentationUrl = 'https://docusaurus.io/docs/playground'; diff --git a/admin/publish-legacy.md b/admin/publish-legacy.md index 51904a31c271..8c86eac07fbb 100644 --- a/admin/publish-legacy.md +++ b/admin/publish-legacy.md @@ -7,7 +7,7 @@ Since April 2026, Docusaurus releases are published in a GitHub Action `deploy.y See also: - https://docusaurus.io/blog/releases/3.10#trusted-publishing -- https://github.com/facebook/docusaurus/pull/11819 +- https://github.com/meta/docusaurus/pull/11819 - *** Docusaurus is published as an npm package that can be installed via `npm` or `yarn`. @@ -76,7 +76,7 @@ yarn build yarn serve ``` -This local test step is optional because it will be run by the CI on your release PR ([see](https://github.com/facebook/docusaurus/pull/2954/checks?check_run_id=780871959)) +This local test step is optional because it will be run by the CI on your release PR ([see](https://github.com/meta/docusaurus/pull/2954/checks?check_run_id=780871959)) ### 3. Update the changelog @@ -88,7 +88,7 @@ Not all labels will appear in the changelog—some are designed not to. However, is:pr is:merged sort:updated-desc -label:"pr: breaking change","pr: new feature","pr: bug fix","pr: performance","pr: polish","pr: documentation","pr: maintenance","pr: internal","pr: dependencies","pr: showcase" ``` -[Check tags of all recently merged Pull-Requests](https://github.com/facebook/docusaurus/pulls?q=is%3Apr+is%3Amerged+sort%3Aupdated-desc+-label%3A%22pr%3A+breaking+change%22%2C%22pr%3A+new+feature%22%2C%22pr%3A+bug+fix%22%2C%22pr%3A+performance%22%2C%22pr%3A+polish%22%2C%22pr%3A+documentation%22%2C%22pr%3A+maintenance%22%2C%22pr%3A+internal%22%2C%22pr%3A+dependencies%22%2C%22pr%3A+showcase%22%2C%22pr%3A+ignore%22%2C%22pr%3A+translations%22+) +[Check tags of all recently merged Pull-Requests](https://github.com/meta/docusaurus/pulls?q=is%3Apr+is%3Amerged+sort%3Aupdated-desc+-label%3A%22pr%3A+breaking+change%22%2C%22pr%3A+new+feature%22%2C%22pr%3A+bug+fix%22%2C%22pr%3A+performance%22%2C%22pr%3A+polish%22%2C%22pr%3A+documentation%22%2C%22pr%3A+maintenance%22%2C%22pr%3A+internal%22%2C%22pr%3A+dependencies%22%2C%22pr%3A+showcase%22%2C%22pr%3A+ignore%22%2C%22pr%3A+translations%22+) Some general principles about the labeling process: @@ -139,7 +139,7 @@ You should still be on your local branch `/` Make a commit/push, create a pull request with the changes. -Example PR: [#3114](https://github.com/facebook/docusaurus/pull/5098), using title such as `chore: prepare v2.0.0-beta.0 release` +Example PR: [#3114](https://github.com/meta/docusaurus/pull/5098), using title such as `chore: prepare v2.0.0-beta.0 release` **Don't merge it yet**, but wait for the CI checks to complete. @@ -213,7 +213,7 @@ Now that the release is done, **merge the pull request**. ### 7. Create a release on GitHub -- Go to https://github.com/facebook/docusaurus/releases/new +- Go to https://github.com/meta/docusaurus/releases/new - Under the "Tag version" field, look for the newly-created tag, which is `v2.0.0-beta.0` in this case - Paste the CHANGELOG changes in the textarea below - Hit the green "Publish release" button @@ -233,7 +233,7 @@ For Discord: ``` A new version %VER% is available now! 🎉 -See release notes at the following link https://github.com/facebook/docusaurus/releases/tag/%VER% +See release notes at the following link https://github.com/meta/docusaurus/releases/tag/%VER% ``` For X: @@ -255,5 +255,5 @@ NOTE: most likely this last item will be relevant for each new release, so do no - Many documentation improvements and bug fixes! 🐛 ### -https://github.com/facebook/docusaurus/releases/tag/%VER% +https://github.com/meta/docusaurus/releases/tag/%VER% ``` diff --git a/admin/publish.md b/admin/publish.md index da4789450e00..cc24df8334bf 100644 --- a/admin/publish.md +++ b/admin/publish.md @@ -1,6 +1,6 @@ # Publishing Instructions -These instructions have been updated on April 2026, after the [adoption of npm Trusted Publishing](https://docusaurus.io/blog/releases/3.10#trusted-publishing) in v3.10 ([PR](https://github.com/facebook/docusaurus/pull/11819)). +These instructions have been updated on April 2026, after the [adoption of npm Trusted Publishing](https://docusaurus.io/blog/releases/3.10#trusted-publishing) in v3.10 ([PR](https://github.com/meta/docusaurus/pull/11819)). This guide is designed to be a very concise overview. Read the [publish-legacy.md](./publish-legacy.md) guide for more details, many steps remain the same, and it provides more details. @@ -27,7 +27,7 @@ However, we need a release branch to cut the new docs version, publish a release 1. Create a release branch: `git co -b slorber/release-3.11.0` -2. Make sure all the recent PRs have a `pr: ` GitHub label. This [link](https://github.com/facebook/docusaurus/pulls?q=is%3Apr+is%3Amerged+sort%3Aupdated-desc+-label%3A%22pr%3A+breaking+change%22%2C%22pr%3A+new+feature%22%2C%22pr%3A+bug+fix%22%2C%22pr%3A+performance%22%2C%22pr%3A+polish%22%2C%22pr%3A+documentation%22%2C%22pr%3A+maintenance%22%2C%22pr%3A+internal%22%2C%22pr%3A+dependencies%22%2C%22pr%3A+showcase%22%2C%22pr%3A+ignore%22%2C%22pr%3A+translations%22+) helps you find untagged PRs. +2. Make sure all the recent PRs have a `pr: ` GitHub label. This [link](https://github.com/meta/docusaurus/pulls?q=is%3Apr+is%3Amerged+sort%3Aupdated-desc+-label%3A%22pr%3A+breaking+change%22%2C%22pr%3A+new+feature%22%2C%22pr%3A+bug+fix%22%2C%22pr%3A+performance%22%2C%22pr%3A+polish%22%2C%22pr%3A+documentation%22%2C%22pr%3A+maintenance%22%2C%22pr%3A+internal%22%2C%22pr%3A+dependencies%22%2C%22pr%3A+showcase%22%2C%22pr%3A+ignore%22%2C%22pr%3A+translations%22+) helps you find untagged PRs. 3. Run `pnpm changelog --from v3.10.0` to generate a changelog from the tagged PRs since a given release/tag. @@ -46,11 +46,11 @@ pnpm crowdin:download:website pnpm build:website ``` -8. Create a PR ([example](https://github.com/facebook/docusaurus/pull/11825)). Make sure all CI checks pass. If useful, create it earlier to get a deploy preview to review. +8. Create a PR ([example](https://github.com/meta/docusaurus/pull/11825)). Make sure all CI checks pass. If useful, create it earlier to get a deploy preview to review. 9. Upgrade the `package.json` versions: `pnpm lerna version 3.11.0 --exact --no-push --yes` (mostly useful for canary releases versions). -10. Go to the [Publish workflow](https://github.com/facebook/docusaurus/actions/workflows/publish.yml) and click the "Run workflow" button. Fill in the form with: +10. Go to the [Publish workflow](https://github.com/meta/docusaurus/actions/workflows/publish.yml) and click the "Run workflow" button. Fill in the form with: - From branch: `main` - NPM version: `3.10.0` @@ -103,7 +103,7 @@ If you want to release `3.10.1` while `main` is already for `4.0.0` 0. Make sure `docusaurus-v3-maintenance` is up to date. If not, upgrade it from the latest v3 release. The branch is protected so you need to use PRs. -1. Backport/merge all the fixes for the patch release to `docusaurus-v3-maintenance` (using a PR, [example](https://github.com/facebook/docusaurus/pull/11982)) +1. Backport/merge all the fixes for the patch release to `docusaurus-v3-maintenance` (using a PR, [example](https://github.com/meta/docusaurus/pull/11982)) 2. Create a release branch from **main**: `git co main && git pull && git co -b slorber/release-v3.10.1` @@ -111,9 +111,9 @@ If you want to release `3.10.1` while `main` is already for `4.0.0` 4. Create the `3.10.1` changelog entry: `pnpm changelog --from v3.10.0 --to docusaurus-v3-maintenance` -5. Create a release PR that targets `main` ([example](https://github.com/facebook/docusaurus/pull/11983)) +5. Create a release PR that targets `main` ([example](https://github.com/meta/docusaurus/pull/11983)) -6. Go to the [Publish workflow](https://github.com/facebook/docusaurus/actions/workflows/publish.yml) and click the "Run workflow" button. Fill in the form with: +6. Go to the [Publish workflow](https://github.com/meta/docusaurus/actions/workflows/publish.yml) and click the "Run workflow" button. Fill in the form with: - From branch: `docusaurus-v3-maintenance` - ⚠️ Do not use `main`! - NPM version: `3.10.1` @@ -143,7 +143,7 @@ Make sure the [Docusaurus Playground](https://docusaurus.new) sandboxes keeps wo ### Publish the GitHub release -- Go to https://github.com/facebook/docusaurus/releases/new +- Go to https://github.com/meta/docusaurus/releases/new - Use tag `v3.11.0` - Use title `3.11.0` - Paste the release changelog diff --git a/admin/scripts/formatLighthouseReport.js b/admin/scripts/formatLighthouseReport.js index 5236d13d3efe..52274927770a 100644 --- a/admin/scripts/formatLighthouseReport.js +++ b/admin/scripts/formatLighthouseReport.js @@ -52,7 +52,7 @@ const createMarkdownTableRow = ({url, summary, reportUrl}) => { Object.keys(summaryKeys) ).map((k) => scoreEntry(summary[k])), - // See https://github.com/facebook/docusaurus/pull/10527 + // See https://github.com/meta/docusaurus/pull/10527 reportUrl ? `[Report](${reportUrl})` : `Report N/A`, ]; diff --git a/admin/scripts/generateExamples.js b/admin/scripts/generateExamples.js index 20ecede76f94..65bdc13848da 100644 --- a/admin/scripts/generateExamples.js +++ b/admin/scripts/generateExamples.js @@ -14,7 +14,7 @@ import {readJSON} from '@docusaurus/fs'; /** * Generate one example per init template * We use those generated examples as CodeSandbox projects - * See https://github.com/facebook/docusaurus/issues/1699 + * See https://github.com/meta/docusaurus/issues/1699 * @param {string} template */ async function generateTemplateExample(template) { @@ -153,7 +153,7 @@ async function updateStarters() { console.log(''); - console.log('Updating https://github.com/facebook/docusaurus/tree/starter'); + console.log('Updating https://github.com/meta/docusaurus/tree/starter'); await forcePushGitSubtree({ subfolder: 'examples/classic', remote: 'origin', diff --git a/admin/test-bad-package/README.mdx b/admin/test-bad-package/README.mdx index 0deb2916423b..ab0b6b365204 100644 --- a/admin/test-bad-package/README.mdx +++ b/admin/test-bad-package/README.mdx @@ -4,7 +4,7 @@ This package declares a wrong React version on purpose (16.14.0) The goal is to test that the MD/MDX content of this package can still be imported/rendered by our website. -See related issue https://github.com/facebook/docusaurus/issues/9027 +See related issue https://github.com/meta/docusaurus/issues/9027 --- diff --git a/argos/tests/screenshot.spec.ts b/argos/tests/screenshot.spec.ts index 95e88503a4ae..97c31dca84a3 100644 --- a/argos/tests/screenshot.spec.ts +++ b/argos/tests/screenshot.spec.ts @@ -116,7 +116,7 @@ function pathnameToArgosName(pathname: string): string { return pathname; } -// See https://github.com/facebook/docusaurus/pull/9256 +// See https://github.com/meta/docusaurus/pull/9256 // Docusaurus adds a function waitForDocusaurusHydration() { return document.documentElement.dataset.hasHydrated === 'true'; diff --git a/crowdin-v2.yaml b/crowdin-v2.yaml index 0c6f7aea132b..2f588bb75bf3 100644 --- a/crowdin-v2.yaml +++ b/crowdin-v2.yaml @@ -17,7 +17,7 @@ languages_mapping: &languages_mapping # Crowdin regularly update their MDX parser, leading to subtle breakage. # Freezing the parser to a specific version is helpful to ensure things keep # working when they upgrade their MDX parser. -# See https://github.com/facebook/docusaurus/pull/11432 +# See https://github.com/meta/docusaurus/pull/11432 # # Note: you can find the parser version of a Crowdin file using browser DevTools # and inspecting the MDX file icon, it should have a class ".file_type_mdx_v1_2" diff --git a/eslint.config.ts b/eslint.config.ts index 33c54a7fb4ea..2ae28ae9bdc1 100644 --- a/eslint.config.ts +++ b/eslint.config.ts @@ -37,7 +37,7 @@ const plugins = defineConfig([ docusaurus.configs.flat.all, // TODO replace by maintained plugin? - // See https://github.com/facebook/docusaurus/pull/11803 + // See https://github.com/meta/docusaurus/pull/11803 // This adapts the legacy plugin to flat config { plugins: { diff --git a/lerna.json b/lerna.json index 0ecbc9fe3722..6517bd86c1ae 100644 --- a/lerna.json +++ b/lerna.json @@ -3,7 +3,7 @@ "npmClient": "pnpm", "useNx": false, "changelog": { - "repo": "facebook/docusaurus", + "repo": "meta/docusaurus", "labels": { "pr: breaking change": ":boom: Breaking Change", "pr: new feature": ":rocket: New Feature", diff --git a/packages/create-docusaurus/bin/index.js b/packages/create-docusaurus/bin/index.js index 293c222e37ab..62769f92f99d 100755 --- a/packages/create-docusaurus/bin/index.js +++ b/packages/create-docusaurus/bin/index.js @@ -50,7 +50,7 @@ program ) .description('Initialize website.') .action((siteName, template, rootDir, options) => - // See https://github.com/facebook/docusaurus/pull/6860 + // See https://github.com/meta/docusaurus/pull/6860 import('../lib/index.js').then(({default: init}) => init(path.resolve(rootDir ?? '.'), siteName, template, options), ), diff --git a/packages/create-docusaurus/src/utils.ts b/packages/create-docusaurus/src/utils.ts index 6147f142b64e..9c977937e1cd 100644 --- a/packages/create-docusaurus/src/utils.ts +++ b/packages/create-docusaurus/src/utils.ts @@ -14,7 +14,7 @@ import {type PackageManager} from './constants.js'; * We use a simple kebab-case-like conversion * It's not perfect, but good enough * We don't want to depend on lodash in this package - * See https://github.com/facebook/docusaurus/pull/11653 + * See https://github.com/meta/docusaurus/pull/11653 * @param siteName */ export function siteNameToPackageName(siteName: string): string { diff --git a/packages/create-docusaurus/templates/classic-typescript/docusaurus.config.ts b/packages/create-docusaurus/templates/classic-typescript/docusaurus.config.ts index f8a6e31c10f2..0d2506551a14 100644 --- a/packages/create-docusaurus/templates/classic-typescript/docusaurus.config.ts +++ b/packages/create-docusaurus/templates/classic-typescript/docusaurus.config.ts @@ -17,7 +17,7 @@ const config: Config = { // GitHub pages deployment config. // If you aren't using GitHub pages, you don't need these. - organizationName: 'facebook', // Usually your GitHub org/user name. + organizationName: 'meta', // Usually your GitHub org/user name. projectName: 'docusaurus', // Usually your repo name. onBrokenLinks: 'throw', @@ -39,7 +39,7 @@ const config: Config = { // 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/', + 'https://github.com/meta/docusaurus/tree/main/packages/create-docusaurus/templates/shared/', }, blog: { showReadingTime: true, @@ -50,7 +50,7 @@ const config: Config = { // 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/', + 'https://github.com/meta/docusaurus/tree/main/packages/create-docusaurus/templates/shared/', // Useful options to enforce blogging best practices onInlineTags: 'warn', onInlineAuthors: 'warn', @@ -81,7 +81,7 @@ const config: Config = { }, {to: '/blog', label: 'Blog', position: 'left'}, { - href: 'https://github.com/facebook/docusaurus', + href: 'https://github.com/meta/docusaurus', label: 'GitHub', position: 'right', }, @@ -125,7 +125,7 @@ const config: Config = { }, { label: 'GitHub', - href: 'https://github.com/facebook/docusaurus', + href: 'https://github.com/meta/docusaurus', }, ], }, diff --git a/packages/create-docusaurus/templates/classic/docusaurus.config.js b/packages/create-docusaurus/templates/classic/docusaurus.config.js index 76f6f9b8f537..3dd6af2cea27 100644 --- a/packages/create-docusaurus/templates/classic/docusaurus.config.js +++ b/packages/create-docusaurus/templates/classic/docusaurus.config.js @@ -22,7 +22,7 @@ const config = { // GitHub pages deployment config. // If you aren't using GitHub pages, you don't need these. - organizationName: 'facebook', // Usually your GitHub org/user name. + organizationName: 'meta', // Usually your GitHub org/user name. projectName: 'docusaurus', // Usually your repo name. onBrokenLinks: 'throw', @@ -45,7 +45,7 @@ const config = { // 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/', + 'https://github.com/meta/docusaurus/tree/main/packages/create-docusaurus/templates/shared/', }, blog: { showReadingTime: true, @@ -56,7 +56,7 @@ const config = { // 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/', + 'https://github.com/meta/docusaurus/tree/main/packages/create-docusaurus/templates/shared/', // Useful options to enforce blogging best practices onInlineTags: 'warn', onInlineAuthors: 'warn', @@ -89,7 +89,7 @@ const config = { }, {to: '/blog', label: 'Blog', position: 'left'}, { - href: 'https://github.com/facebook/docusaurus', + href: 'https://github.com/meta/docusaurus', label: 'GitHub', position: 'right', }, @@ -133,7 +133,7 @@ const config = { }, { label: 'GitHub', - href: 'https://github.com/facebook/docusaurus', + href: 'https://github.com/meta/docusaurus', }, ], }, diff --git a/packages/create-docusaurus/templates/shared/docs/tutorial-basics/congratulations.mdx b/packages/create-docusaurus/templates/shared/docs/tutorial-basics/congratulations.mdx index 2917c3971f75..a4c18949a445 100644 --- a/packages/create-docusaurus/templates/shared/docs/tutorial-basics/congratulations.mdx +++ b/packages/create-docusaurus/templates/shared/docs/tutorial-basics/congratulations.mdx @@ -10,7 +10,7 @@ Docusaurus has **much more to offer**! Have **5 more minutes**? Take a look at **[versioning](../tutorial-extras/manage-docs-versions.mdx)** and **[i18n](../tutorial-extras/translate-your-site.mdx)**. -Anything **unclear** or **buggy** in this tutorial? [Please report it!](https://github.com/facebook/docusaurus/discussions/4610) +Anything **unclear** or **buggy** in this tutorial? [Please report it!](https://github.com/meta/docusaurus/discussions/4610) ## What's next? diff --git a/packages/docusaurus-bundler/src/legacy/formatWebpackMessages.js b/packages/docusaurus-bundler/src/legacy/formatWebpackMessages.js index 9c72e791d253..8e66cb8aab24 100644 --- a/packages/docusaurus-bundler/src/legacy/formatWebpackMessages.js +++ b/packages/docusaurus-bundler/src/legacy/formatWebpackMessages.js @@ -8,7 +8,7 @@ // TODO Legacy CRA react-dev-utils package code // This code was in CRA/react-dev-utils (deprecated in 2025) // We just copied the code as-is to remove a fat/useless dependency subtree -// See https://github.com/facebook/docusaurus/pull/10956 +// See https://github.com/meta/docusaurus/pull/10956 // See https://github.com/facebook/create-react-app/blob/main/packages/react-dev-utils/formatWebpackMessages.js /* eslint-disable */ diff --git a/packages/docusaurus-bundler/src/loaders/styleLoader.ts b/packages/docusaurus-bundler/src/loaders/styleLoader.ts index 02e51ad87141..3367fd48215c 100644 --- a/packages/docusaurus-bundler/src/loaders/styleLoader.ts +++ b/packages/docusaurus-bundler/src/loaders/styleLoader.ts @@ -22,7 +22,7 @@ export async function createStyleLoadersFactory({ } = {}, ) { const cssOptions: {[key: string]: unknown} = { - // TODO turn esModule on later, see https://github.com/facebook/docusaurus/pull/6424 + // TODO turn esModule on later, see https://github.com/meta/docusaurus/pull/6424 esModule: false, ...cssOptionsArg, }; diff --git a/packages/docusaurus-bundler/src/minifyHtml.ts b/packages/docusaurus-bundler/src/minifyHtml.ts index f4ceda933c55..6a5012dd4e3f 100644 --- a/packages/docusaurus-bundler/src/minifyHtml.ts +++ b/packages/docusaurus-bundler/src/minifyHtml.ts @@ -34,7 +34,7 @@ export async function getHtmlMinifier(): Promise { async function getSwcMinifier(): Promise { // Import it lazily: not need for the dev server, more performant // This also temporarily fix our StackBlitz playground - // See https://github.com/facebook/docusaurus/issues/12008 + // See https://github.com/meta/docusaurus/issues/12008 // See https://github.com/swc-project/swc/issues/11833 const {minify: swcHtmlMinifier} = await import('@swc/html'); return { @@ -53,7 +53,7 @@ async function getSwcMinifier(): Promise { // Keep attribute quotes. WhatsApp and some RDFa parsers ignore // og:image when the minifier emits property=og:image without quotes. - // See https://github.com/facebook/docusaurus/issues/12368 + // See https://github.com/meta/docusaurus/issues/12368 quotes: true, // Sorting these attributes (class) can lead to React hydration errors diff --git a/packages/docusaurus-glob/src/globUtils.ts b/packages/docusaurus-glob/src/globUtils.ts index 4ec0be2e8f6f..8509fe7bf0df 100644 --- a/packages/docusaurus-glob/src/globUtils.ts +++ b/packages/docusaurus-glob/src/globUtils.ts @@ -115,7 +115,7 @@ function posixPath(str: string): string { } // Glob that fix Windows path patterns -// See https://github.com/facebook/docusaurus/pull/4222#issuecomment-795517329 +// See https://github.com/meta/docusaurus/pull/4222#issuecomment-795517329 export async function safeGlob( patterns: string[], options?: GlobOptions, diff --git a/packages/docusaurus-logger/src/index.ts b/packages/docusaurus-logger/src/index.ts index 5ebcaa06697c..28c053eb5b1e 100644 --- a/packages/docusaurus-logger/src/index.ts +++ b/packages/docusaurus-logger/src/index.ts @@ -11,8 +11,8 @@ export default OriginalLogger; // Extra named export to avoid problems in ESM modules // Notably: core .mjs CLI + create-docusaurus -// See https://github.com/facebook/docusaurus/pull/6661 -// See https://github.com/facebook/docusaurus/pull/7295 +// See https://github.com/meta/docusaurus/pull/6661 +// See https://github.com/meta/docusaurus/pull/7295 export const logger = OriginalLogger; export {PerfLogger} from './perfLogger'; diff --git a/packages/docusaurus-mdx-loader/src/loader.ts b/packages/docusaurus-mdx-loader/src/loader.ts index b0d6fd1c6339..75773dd234ad 100644 --- a/packages/docusaurus-mdx-loader/src/loader.ts +++ b/packages/docusaurus-mdx-loader/src/loader.ts @@ -152,8 +152,8 @@ async function loadMDXWithCaching({ // Notably: unused directives warnings are only reported by the client // Note: asset requests do not depend on the compiler, emitting assets // is controlled by the bundler asset rules - // See https://github.com/facebook/docusaurus/issues/10544#issuecomment-2390943794 - // See https://github.com/facebook/docusaurus/pull/10553 + // See https://github.com/meta/docusaurus/issues/10544#issuecomment-2390943794 + // See https://github.com/meta/docusaurus/pull/10553 if (compilerName === 'client') { const promise = loadMDX({ fileContent, diff --git a/packages/docusaurus-mdx-loader/src/processor.ts b/packages/docusaurus-mdx-loader/src/processor.ts index ac311aa2c061..c1a26d745ed5 100644 --- a/packages/docusaurus-mdx-loader/src/processor.ts +++ b/packages/docusaurus-mdx-loader/src/processor.ts @@ -197,7 +197,7 @@ function createProcessorUncached({ if (format === 'md') { // This is what permits to embed HTML elements with format 'md' - // See https://github.com/facebook/docusaurus/pull/8960 + // See https://github.com/meta/docusaurus/pull/8960 // See https://github.com/mdx-js/mdx/pull/2295#issuecomment-1540085960 const rehypeRawPlugin: MDXPlugin = [ rehypeRaw, diff --git a/packages/docusaurus-mdx-loader/src/remark/contentTitle/index.ts b/packages/docusaurus-mdx-loader/src/remark/contentTitle/index.ts index d1fa0ad7561a..1c93c216f683 100644 --- a/packages/docusaurus-mdx-loader/src/remark/contentTitle/index.ts +++ b/packages/docusaurus-mdx-loader/src/remark/contentTitle/index.ts @@ -52,7 +52,7 @@ const plugin: Plugin = function plugin( } else { // TODO in the future it might be better to export contentTitle as // as JSX node to keep this logic a theme concern? - // See https://github.com/facebook/docusaurus/pull/10335#issuecomment-2250187371 + // See https://github.com/meta/docusaurus/pull/10335#issuecomment-2250187371 wrapHeadingInJsxHeader(node, parent, index); } return EXIT; // We only handle the very first heading diff --git a/packages/docusaurus-mdx-loader/src/remark/mermaid/index.ts b/packages/docusaurus-mdx-loader/src/remark/mermaid/index.ts index b19e68c163d0..525bd7dc99fc 100644 --- a/packages/docusaurus-mdx-loader/src/remark/mermaid/index.ts +++ b/packages/docusaurus-mdx-loader/src/remark/mermaid/index.ts @@ -13,7 +13,7 @@ import type {Root} from 'mdast'; // TODO: this plugin shouldn't be in the core MDX loader // After we allow plugins to provide Remark/Rehype plugins (see -// https://github.com/facebook/docusaurus/issues/6370), this should be provided +// https://github.com/meta/docusaurus/issues/6370), this should be provided // by theme-mermaid itself export default function plugin(): Transformer { return (root) => { diff --git a/packages/docusaurus-mdx-loader/src/remark/toc/index.ts b/packages/docusaurus-mdx-loader/src/remark/toc/index.ts index 366880d8159c..c7c0e139dfcd 100644 --- a/packages/docusaurus-mdx-loader/src/remark/toc/index.ts +++ b/packages/docusaurus-mdx-loader/src/remark/toc/index.ts @@ -160,7 +160,7 @@ const plugin: Plugin = function plugin( // If user explicitly writes "export const toc" in his mdx file // We keep it as is do not override their explicit toc structure - // See https://github.com/facebook/docusaurus/pull/7530#discussion_r1458087876 + // See https://github.com/meta/docusaurus/pull/7530#discussion_r1458087876 if (existingTocExport) { return; } diff --git a/packages/docusaurus-mdx-loader/src/remark/toc/utils.ts b/packages/docusaurus-mdx-loader/src/remark/toc/utils.ts index 6e4c0453e392..8d78add5fef8 100644 --- a/packages/docusaurus-mdx-loader/src/remark/toc/utils.ts +++ b/packages/docusaurus-mdx-loader/src/remark/toc/utils.ts @@ -144,7 +144,7 @@ export function createTOCExportNodeAST({ return { type: 'mdxjsEsm', - value: '', // See https://github.com/facebook/docusaurus/pull/9684#discussion_r1457595181 + value: '', // See https://github.com/meta/docusaurus/pull/9684#discussion_r1457595181 data: { estree: { type: 'Program', @@ -192,7 +192,7 @@ function stringifyChildren(node: Parent): string { function mdxJsxTextElementToHtml(element: MdxJsxTextElement): string { const tag = element.name; - // See https://github.com/facebook/docusaurus/issues/11003#issuecomment-2733925363 + // See https://github.com/meta/docusaurus/issues/11003#issuecomment-2733925363 if (tag === 'img') { return ''; } diff --git a/packages/docusaurus-mdx-loader/src/remark/transformImage/index.ts b/packages/docusaurus-mdx-loader/src/remark/transformImage/index.ts index 1be91fbf3bad..fc2c0bea0f1a 100644 --- a/packages/docusaurus-mdx-loader/src/remark/transformImage/index.ts +++ b/packages/docusaurus-mdx-loader/src/remark/transformImage/index.ts @@ -86,7 +86,7 @@ async function toImageRequireNode( imagePath: string, context: Context, ) { - // MdxJsxTextElement => see https://github.com/facebook/docusaurus/pull/8288#discussion_r1125871405 + // MdxJsxTextElement => see https://github.com/meta/docusaurus/pull/8288#discussion_r1125871405 const jsxNode = node as unknown as MdxJsxTextElement; const attributes: MdxJsxTextElement['attributes'] = []; @@ -217,7 +217,7 @@ async function processImageNode(target: Target, context: Context) { // We decode it first because Node Url.pathname is always encoded // while the image file-system path are not. - // See https://github.com/facebook/docusaurus/discussions/10720 + // See https://github.com/meta/docusaurus/discussions/10720 const decodedPathname = decodeURIComponent(localUrlPath.pathname); // We try to convert image urls without protocol to images with require calls diff --git a/packages/docusaurus-mdx-loader/src/remark/transformLinks/index.ts b/packages/docusaurus-mdx-loader/src/remark/transformLinks/index.ts index be977723246f..2f7188631eee 100644 --- a/packages/docusaurus-mdx-loader/src/remark/transformLinks/index.ts +++ b/packages/docusaurus-mdx-loader/src/remark/transformLinks/index.ts @@ -90,7 +90,7 @@ function toAssetRequireNode( assetPath: string, context: Context, ) { - // MdxJsxTextElement => see https://github.com/facebook/docusaurus/pull/8288#discussion_r1125871405 + // MdxJsxTextElement => see https://github.com/meta/docusaurus/pull/8288#discussion_r1125871405 const jsxNode = node as unknown as MdxJsxTextElement; const attributes: MdxJsxTextElement['attributes'] = []; diff --git a/packages/docusaurus-mdx-loader/src/remark/unusedDirectives/__tests__/__snapshots__/index.test.ts.snap b/packages/docusaurus-mdx-loader/src/remark/unusedDirectives/__tests__/__snapshots__/index.test.ts.snap index 5ee0739a08b7..a73c3fee8958 100644 --- a/packages/docusaurus-mdx-loader/src/remark/unusedDirectives/__tests__/__snapshots__/index.test.ts.snap +++ b/packages/docusaurus-mdx-loader/src/remark/unusedDirectives/__tests__/__snapshots__/index.test.ts.snap @@ -5,7 +5,7 @@ exports[`directives remark plugin - client compiler > default behavior for conta [ "[WARNING] Docusaurus found 1 unused Markdown directives in file "packages/docusaurus-mdx-loader/src/remark/unusedDirectives/__tests__/__fixtures__/containerDirectives.md" - :::unusedDirective (7:1) -Your content might render in an unexpected way. Visit https://github.com/facebook/docusaurus/pull/9394 to find out why and how to fix it.", +Your content might render in an unexpected way. Visit https://github.com/meta/docusaurus/pull/9394 to find out why and how to fix it.", ], ] `; @@ -24,7 +24,7 @@ exports[`directives remark plugin - client compiler > default behavior for leaf [ "[WARNING] Docusaurus found 1 unused Markdown directives in file "packages/docusaurus-mdx-loader/src/remark/unusedDirectives/__tests__/__fixtures__/leafDirectives.md" - ::unusedLeafDirective (1:1) -Your content might render in an unexpected way. Visit https://github.com/facebook/docusaurus/pull/9394 to find out why and how to fix it.", +Your content might render in an unexpected way. Visit https://github.com/meta/docusaurus/pull/9394 to find out why and how to fix it.", ], ] `; @@ -41,7 +41,7 @@ exports[`directives remark plugin - client compiler > default behavior for text "[WARNING] Docusaurus found 2 unused Markdown directives in file "packages/docusaurus-mdx-loader/src/remark/unusedDirectives/__tests__/__fixtures__/textDirectives.md" - :textDirective3 (9:7) - :textDirective4 (11:7) -Your content might render in an unexpected way. Visit https://github.com/facebook/docusaurus/pull/9394 to find out why and how to fix it.", +Your content might render in an unexpected way. Visit https://github.com/meta/docusaurus/pull/9394 to find out why and how to fix it.", ], ] `; diff --git a/packages/docusaurus-mdx-loader/src/remark/unusedDirectives/__tests__/index.test.ts b/packages/docusaurus-mdx-loader/src/remark/unusedDirectives/__tests__/index.test.ts index 8ab74de64ccf..3de1fad67089 100644 --- a/packages/docusaurus-mdx-loader/src/remark/unusedDirectives/__tests__/index.test.ts +++ b/packages/docusaurus-mdx-loader/src/remark/unusedDirectives/__tests__/index.test.ts @@ -79,7 +79,7 @@ describe('directives remark plugin - client compiler', () => { .rejects.toThrowErrorMatchingInlineSnapshot(` [Error: Docusaurus found 1 unused Markdown directives in file "packages/docusaurus-mdx-loader/src/remark/unusedDirectives/__tests__/__fixtures__/containerDirectives.md" - :::unusedDirective (7:1) - Your content might render in an unexpected way. Visit https://github.com/facebook/docusaurus/pull/9394 to find out why and how to fix it. + Your content might render in an unexpected way. Visit https://github.com/meta/docusaurus/pull/9394 to find out why and how to fix it. To ignore this error, use the \`siteConfig.markdown.hooks.onUnusedMarkdownDirectives\` option.] `); }); @@ -88,7 +88,7 @@ describe('directives remark plugin - client compiler', () => { .rejects.toThrowErrorMatchingInlineSnapshot(` [Error: Docusaurus found 1 unused Markdown directives in file "packages/docusaurus-mdx-loader/src/remark/unusedDirectives/__tests__/__fixtures__/leafDirectives.md" - ::unusedLeafDirective (1:1) - Your content might render in an unexpected way. Visit https://github.com/facebook/docusaurus/pull/9394 to find out why and how to fix it. + Your content might render in an unexpected way. Visit https://github.com/meta/docusaurus/pull/9394 to find out why and how to fix it. To ignore this error, use the \`siteConfig.markdown.hooks.onUnusedMarkdownDirectives\` option.] `); }); @@ -98,7 +98,7 @@ describe('directives remark plugin - client compiler', () => { [Error: Docusaurus found 2 unused Markdown directives in file "packages/docusaurus-mdx-loader/src/remark/unusedDirectives/__tests__/__fixtures__/textDirectives.md" - :textDirective3 (9:7) - :textDirective4 (11:7) - Your content might render in an unexpected way. Visit https://github.com/facebook/docusaurus/pull/9394 to find out why and how to fix it. + Your content might render in an unexpected way. Visit https://github.com/meta/docusaurus/pull/9394 to find out why and how to fix it. To ignore this error, use the \`siteConfig.markdown.hooks.onUnusedMarkdownDirectives\` option.] `); }); @@ -107,7 +107,7 @@ describe('directives remark plugin - client compiler', () => { .rejects.toThrowErrorMatchingInlineSnapshot(` [Error: Docusaurus found 1 unused Markdown directives in file "packages/docusaurus-mdx-loader/src/remark/unusedDirectives/__tests__/__fixtures__/cautionAdmonition.md" - :::caution (7:1) - the :::caution admonition has been removed in Docusaurus v4, use :::warning instead - Your content might render in an unexpected way. Visit https://github.com/facebook/docusaurus/pull/9394 to find out why and how to fix it. + Your content might render in an unexpected way. Visit https://github.com/meta/docusaurus/pull/9394 to find out why and how to fix it. To ignore this error, use the \`siteConfig.markdown.hooks.onUnusedMarkdownDirectives\` option.] `); }); @@ -119,7 +119,7 @@ describe('directives remark plugin - client compiler', () => { - :::secondary (7:1) - the :::secondary admonition has been removed in Docusaurus v4, use :::note instead - :::success (13:1) - the :::success admonition has been removed in Docusaurus v4, use :::tip instead - :::important (19:1) - the :::important admonition has been removed in Docusaurus v4, use :::info instead - Your content might render in an unexpected way. Visit https://github.com/facebook/docusaurus/pull/9394 to find out why and how to fix it. + Your content might render in an unexpected way. Visit https://github.com/meta/docusaurus/pull/9394 to find out why and how to fix it. To ignore this error, use the \`siteConfig.markdown.hooks.onUnusedMarkdownDirectives\` option.] `); }); diff --git a/packages/docusaurus-mdx-loader/src/remark/unusedDirectives/index.ts b/packages/docusaurus-mdx-loader/src/remark/unusedDirectives/index.ts index d46becbe320a..2557249f7412 100644 --- a/packages/docusaurus-mdx-loader/src/remark/unusedDirectives/index.ts +++ b/packages/docusaurus-mdx-loader/src/remark/unusedDirectives/index.ts @@ -79,7 +79,7 @@ function formatUnusedDirectivesMessage({ directives: Directives[]; filePath: string; }): string { - const supportUrl = 'https://github.com/facebook/docusaurus/pull/9394'; + const supportUrl = 'https://github.com/meta/docusaurus/pull/9394'; const customPath = posixPath(path.relative(process.cwd(), filePath)); const warningTitle = logger.interpolate`Docusaurus found ${directives.length} unused Markdown directives in file path=${customPath}`; const customSupportUrl = logger.interpolate`url=${supportUrl}`; diff --git a/packages/docusaurus-plugin-client-redirects/src/collectRedirects.ts b/packages/docusaurus-plugin-client-redirects/src/collectRedirects.ts index 225ab35c118f..6214edc7b3de 100644 --- a/packages/docusaurus-plugin-client-redirects/src/collectRedirects.ts +++ b/packages/docusaurus-plugin-client-redirects/src/collectRedirects.ts @@ -96,7 +96,7 @@ function validateCollectedRedirects( // We now allow "to" to contain any string // We only do this "broken redirect" check from to that looks like pathnames // note: we allow querystring/anchors - // See https://github.com/facebook/docusaurus/issues/6845 + // See https://github.com/meta/docusaurus/issues/6845 .map((to) => { if (to.startsWith('/')) { const url = URL.parse(to, 'https://example.com'); diff --git a/packages/docusaurus-plugin-client-redirects/src/extensionRedirects.ts b/packages/docusaurus-plugin-client-redirects/src/extensionRedirects.ts index 3fc48cdfad49..611bb857024f 100644 --- a/packages/docusaurus-plugin-client-redirects/src/extensionRedirects.ts +++ b/packages/docusaurus-plugin-client-redirects/src/extensionRedirects.ts @@ -65,7 +65,7 @@ export function createToExtensionsRedirects( /** * Create new `/path.html/index.html` that redirects to existing an `/path` * The filename pattern might look weird but it's on purpose (see - * https://github.com/facebook/docusaurus/issues/5055) + * https://github.com/meta/docusaurus/issues/5055) */ export function createFromExtensionsRedirects( paths: string[], diff --git a/packages/docusaurus-plugin-client-redirects/src/writeRedirectFiles.ts b/packages/docusaurus-plugin-client-redirects/src/writeRedirectFiles.ts index 8c735c071ce0..e5e7ed79e71f 100644 --- a/packages/docusaurus-plugin-client-redirects/src/writeRedirectFiles.ts +++ b/packages/docusaurus-plugin-client-redirects/src/writeRedirectFiles.ts @@ -34,16 +34,16 @@ export function createToUrl(baseUrl: string, to: string): string { // served by host providers! // Otherwise it can produce infinite redirect loops! // -// See https://github.com/facebook/docusaurus/issues/5055 -// See https://github.com/facebook/docusaurus/pull/5085 -// See https://github.com/facebook/docusaurus/pull/5102 +// See https://github.com/meta/docusaurus/issues/5055 +// See https://github.com/meta/docusaurus/pull/5085 +// See https://github.com/meta/docusaurus/pull/5102 function getRedirectFilePath( fromPath: string, trailingSlash: boolean | undefined, // Now unused, on purpose ): string { const fileName = path.basename(fromPath); const filePath = path.dirname(fromPath); - // Edge case for https://github.com/facebook/docusaurus/pull/5102 + // Edge case for https://github.com/meta/docusaurus/pull/5102 // If the redirect source path is /xyz, with file /xyz.html // We can't write the redirect file at /xyz.html/index.html because for Unix // FS, a file/folder can't have the same name "xyz.html" diff --git a/packages/docusaurus-plugin-content-blog/src/contentHelpers.ts b/packages/docusaurus-plugin-content-blog/src/contentHelpers.ts index 5cfb028d2278..9195d196f3ea 100644 --- a/packages/docusaurus-plugin-content-blog/src/contentHelpers.ts +++ b/packages/docusaurus-plugin-content-blog/src/contentHelpers.ts @@ -15,8 +15,8 @@ function indexBlogPostsBySource(content: BlogContent): Map { // TODO this is bad, we should have a better way to do this (new lifecycle?) // The source to blog/permalink is a mutable map passed to the mdx loader -// See https://github.com/facebook/docusaurus/pull/10457 -// See https://github.com/facebook/docusaurus/pull/10185 +// See https://github.com/meta/docusaurus/pull/10457 +// See https://github.com/meta/docusaurus/pull/10185 export function createContentHelpers() { const sourceToBlogPost = new Map(); const sourceToPermalink = new Map(); diff --git a/packages/docusaurus-plugin-content-blog/src/feed.ts b/packages/docusaurus-plugin-content-blog/src/feed.ts index fd1dc67ea5ca..e55c97645c32 100644 --- a/packages/docusaurus-plugin-content-blog/src/feed.ts +++ b/packages/docusaurus-plugin-content-blog/src/feed.ts @@ -135,7 +135,7 @@ async function defaultCreateFeedItems({ String(new URL(src, blogPostAbsoluteUrl)); // Make links and image urls absolute - // See https://github.com/facebook/docusaurus/issues/9136 + // See https://github.com/meta/docusaurus/issues/9136 $(`div#${blogPostContainerID} a, div#${blogPostContainerID} img`).each( (_, elm) => { if (elm.tagName === 'a') { diff --git a/packages/docusaurus-plugin-content-blog/src/index.ts b/packages/docusaurus-plugin-content-blog/src/index.ts index 09d1c1f200e7..46b47b83e654 100644 --- a/packages/docusaurus-plugin-content-blog/src/index.ts +++ b/packages/docusaurus-plugin-content-blog/src/index.ts @@ -180,7 +180,7 @@ export default async function pluginContentBlog( return { test: /\.mdx?$/i, include: contentDirs - // Trailing slash is important, see https://github.com/facebook/docusaurus/pull/3970 + // Trailing slash is important, see https://github.com/meta/docusaurus/pull/3970 .map(addTrailingPathSeparator), use: [mdxLoaderItem, createBlogMarkdownLoader()], }; @@ -303,7 +303,7 @@ export default async function pluginContentBlog( }); // TODO this is not the correct place to aggregate and paginate tags - // for reasons similar to https://github.com/facebook/docusaurus/pull/11562 + // for reasons similar to https://github.com/meta/docusaurus/pull/11562 // What we should do here is only read the tags file (similar to authors) const blogTags: BlogTags = getBlogTags({ blogPosts, diff --git a/packages/docusaurus-plugin-content-docs/src/client/index.ts b/packages/docusaurus-plugin-content-docs/src/client/index.ts index 8a1f94fe8f91..1d977718da0a 100644 --- a/packages/docusaurus-plugin-content-docs/src/client/index.ts +++ b/packages/docusaurus-plugin-content-docs/src/client/index.ts @@ -118,7 +118,7 @@ export type DocVersionSuggestions = { }; // Important to use a constant object to avoid React useEffect executions etc. -// see https://github.com/facebook/docusaurus/issues/5089 +// see https://github.com/meta/docusaurus/issues/5089 const StableEmptyObject = {}; // In blog-only mode, docs hooks are still used by the theme. We need a fail- diff --git a/packages/docusaurus-plugin-content-docs/src/client/structuredDataUtils.ts b/packages/docusaurus-plugin-content-docs/src/client/structuredDataUtils.ts index 806353346313..7241b66888b4 100644 --- a/packages/docusaurus-plugin-content-docs/src/client/structuredDataUtils.ts +++ b/packages/docusaurus-plugin-content-docs/src/client/structuredDataUtils.ts @@ -33,7 +33,7 @@ function getBreadcrumbsStructuredData({ '@type': 'BreadcrumbList', itemListElement: breadcrumbs // We filter breadcrumb items without links, they are not allowed - // See also https://github.com/facebook/docusaurus/issues/9319#issuecomment-2643560845 + // See also https://github.com/meta/docusaurus/issues/9319#issuecomment-2643560845 .filter((breadcrumb) => breadcrumb.href) .map((breadcrumb, index) => ({ '@type': 'ListItem', diff --git a/packages/docusaurus-plugin-content-docs/src/contentHelpers.ts b/packages/docusaurus-plugin-content-docs/src/contentHelpers.ts index 0ff11ddaa2b7..228a0c1d4c82 100644 --- a/packages/docusaurus-plugin-content-docs/src/contentHelpers.ts +++ b/packages/docusaurus-plugin-content-docs/src/contentHelpers.ts @@ -19,8 +19,8 @@ function indexDocsBySource( // TODO this is bad, we should have a better way to do this (new lifecycle?) // The source to doc/permalink is a mutable map passed to the mdx loader -// See https://github.com/facebook/docusaurus/pull/10457 -// See https://github.com/facebook/docusaurus/pull/10185 +// See https://github.com/meta/docusaurus/pull/10457 +// See https://github.com/meta/docusaurus/pull/10185 export function createContentHelpers() { const sourceToDoc = new Map(); const sourceToPermalink = new Map(); diff --git a/packages/docusaurus-plugin-content-docs/src/frontMatter.ts b/packages/docusaurus-plugin-content-docs/src/frontMatter.ts index e28f6da4a708..cfb7b318b938 100644 --- a/packages/docusaurus-plugin-content-docs/src/frontMatter.ts +++ b/packages/docusaurus-plugin-content-docs/src/frontMatter.ts @@ -23,13 +23,13 @@ import type {DocFrontMatter} from '@docusaurus/plugin-content-docs'; // We use default values in code instead const DocFrontMatterSchema = Joi.object({ id: Joi.string(), - // See https://github.com/facebook/docusaurus/issues/4591#issuecomment-822372398 + // See https://github.com/meta/docusaurus/issues/4591#issuecomment-822372398 title: Joi.string().allow(''), hide_title: Joi.boolean(), hide_table_of_contents: Joi.boolean(), keywords: Joi.array().items(Joi.string().required()), image: URISchema, - // See https://github.com/facebook/docusaurus/issues/4591#issuecomment-822372398 + // See https://github.com/meta/docusaurus/issues/4591#issuecomment-822372398 description: Joi.string().allow(''), slug: Joi.string(), sidebar_key: Joi.string(), diff --git a/packages/docusaurus-plugin-content-docs/src/index.ts b/packages/docusaurus-plugin-content-docs/src/index.ts index f512768dd203..47931da445d4 100644 --- a/packages/docusaurus-plugin-content-docs/src/index.ts +++ b/packages/docusaurus-plugin-content-docs/src/index.ts @@ -51,7 +51,7 @@ import type {RuleSetRule} from 'webpack'; // MDX loader is not 100% deterministic, leading to cache invalidation issue // This permits to invalidate the MDX loader cache entries when content changes -// Problem documented here: https://github.com/facebook/docusaurus/pull/10934 +// Problem documented here: https://github.com/meta/docusaurus/pull/10934 // TODO this is not a perfect solution, find better? async function createMdxLoaderDependencyFile({ dataDir, @@ -123,7 +123,7 @@ export default async function pluginContentDocs( } = options; const contentDirs = versionsMetadata .flatMap(getContentPathList) - // Trailing slash is important, see https://github.com/facebook/docusaurus/pull/3970 + // Trailing slash is important, see https://github.com/meta/docusaurus/pull/3970 .map(addTrailingPathSeparator); return createMDXLoaderRule({ diff --git a/packages/docusaurus-plugin-content-docs/src/numberPrefix.ts b/packages/docusaurus-plugin-content-docs/src/numberPrefix.ts index a838d7667d7b..1f355ba789dc 100644 --- a/packages/docusaurus-plugin-content-docs/src/numberPrefix.ts +++ b/packages/docusaurus-plugin-content-docs/src/numberPrefix.ts @@ -8,8 +8,8 @@ import type {NumberPrefixParser} from '@docusaurus/plugin-content-docs'; // Best-effort to avoid parsing some patterns as number prefix -// ignore common date-like patterns: https://github.com/facebook/docusaurus/issues/4640 -// ignore common versioning patterns: https://github.com/facebook/docusaurus/issues/4653 +// ignore common date-like patterns: https://github.com/meta/docusaurus/issues/4640 +// ignore common versioning patterns: https://github.com/meta/docusaurus/issues/4653 // Both of them would look like 7.0-foo or 2021-11-foo // note: we could try to parse float numbers in filenames, but that is probably // not worth it, as a version such as "8.0" can be interpreted as either a diff --git a/packages/docusaurus-plugin-content-docs/src/server-export.ts b/packages/docusaurus-plugin-content-docs/src/server-export.ts index bd2f4e4f76ab..54cf27e21c6e 100644 --- a/packages/docusaurus-plugin-content-docs/src/server-export.ts +++ b/packages/docusaurus-plugin-content-docs/src/server-export.ts @@ -8,7 +8,7 @@ // APIs available to Node.js // Those are undocumented but used by some third-party plugins // For this reason it's preferable to avoid doing breaking changes -// See also https://github.com/facebook/docusaurus/pull/6477 +// See also https://github.com/meta/docusaurus/pull/6477 export { CURRENT_VERSION_NAME, diff --git a/packages/docusaurus-plugin-content-docs/src/sidebars/generator.ts b/packages/docusaurus-plugin-content-docs/src/sidebars/generator.ts index 3ab888317df4..f5e9477254a9 100644 --- a/packages/docusaurus-plugin-content-docs/src/sidebars/generator.ts +++ b/packages/docusaurus-plugin-content-docs/src/sidebars/generator.ts @@ -44,7 +44,7 @@ type Dir = { [item: string]: Dir | string; }; -// Comment for this feature: https://github.com/facebook/docusaurus/issues/3464#issuecomment-818670449 +// Comment for this feature: https://github.com/meta/docusaurus/issues/3464#issuecomment-818670449 export const DefaultSidebarItemsGenerator: SidebarItemsGenerator = ({ numberPrefixParser, isCategoryIndex, diff --git a/packages/docusaurus-plugin-content-docs/src/sidebars/types.ts b/packages/docusaurus-plugin-content-docs/src/sidebars/types.ts index 550243b90ea3..7c8893bed844 100644 --- a/packages/docusaurus-plugin-content-docs/src/sidebars/types.ts +++ b/packages/docusaurus-plugin-content-docs/src/sidebars/types.ts @@ -230,7 +230,7 @@ export type CategoryMetadataFile = { // TODO should we allow "items" here? how would this work? would an // "autogenerated" type be allowed? // This mkdocs plugin do something like that: https://github.com/lukasgeiter/mkdocs-awesome-pages-plugin/ - // cf comment: https://github.com/facebook/docusaurus/issues/3464#issuecomment-784765199 + // cf comment: https://github.com/meta/docusaurus/issues/3464#issuecomment-784765199 }; // Reduce API surface for options.sidebarItemsGenerator @@ -276,7 +276,7 @@ export type SidebarItemsGeneratorOption = ( /** * Useful to re-use/enhance the default sidebar generation logic from * Docusaurus. - * @see https://github.com/facebook/docusaurus/issues/4640#issuecomment-822292320 + * @see https://github.com/meta/docusaurus/issues/4640#issuecomment-822292320 */ defaultSidebarItemsGenerator: SidebarItemsGenerator; } & SidebarItemsGeneratorArgs, diff --git a/packages/docusaurus-plugin-content-docs/src/versions/files.ts b/packages/docusaurus-plugin-content-docs/src/versions/files.ts index 55f756e6884e..ce4753625d0c 100644 --- a/packages/docusaurus-plugin-content-docs/src/versions/files.ts +++ b/packages/docusaurus-plugin-content-docs/src/versions/files.ts @@ -219,8 +219,8 @@ export async function getVersionMetadataPaths({ // If the current version defines a path to a sidebar file that does not // exist, we throw! Note: for versioned sidebars, the file may not exist (as // we prefer to not create it rather than to create an empty file) - // See https://github.com/facebook/docusaurus/issues/3366 - // See https://github.com/facebook/docusaurus/pull/4775 + // See https://github.com/meta/docusaurus/issues/3366 + // See https://github.com/meta/docusaurus/pull/4775 if ( versionName === CURRENT_VERSION_NAME && typeof sidebarFilePath === 'string' && diff --git a/packages/docusaurus-plugin-content-docs/src/versions/version.ts b/packages/docusaurus-plugin-content-docs/src/versions/version.ts index e06f50566ec9..5a32930e5821 100644 --- a/packages/docusaurus-plugin-content-docs/src/versions/version.ts +++ b/packages/docusaurus-plugin-content-docs/src/versions/version.ts @@ -136,7 +136,7 @@ export function getVersionBadge({ }: VersionContext): VersionMetadata['badge'] { // If site is not versioned or only one version is included // we don't show the version badge by default - // See https://github.com/facebook/docusaurus/issues/3362 + // See https://github.com/meta/docusaurus/issues/3362 const defaultVersionBadge = versionNames.length !== 1; return options.versions[versionName]?.badge ?? defaultVersionBadge; } diff --git a/packages/docusaurus-plugin-content-pages/src/contentHelpers.ts b/packages/docusaurus-plugin-content-pages/src/contentHelpers.ts index d3a96dfc3dc9..beb79a57145e 100644 --- a/packages/docusaurus-plugin-content-pages/src/contentHelpers.ts +++ b/packages/docusaurus-plugin-content-pages/src/contentHelpers.ts @@ -13,8 +13,8 @@ function indexPagesBySource(content: LoadedContent): Map { // TODO this is bad, we should have a better way to do this (new lifecycle?) // The source to page/permalink is a mutable map passed to the mdx loader -// See https://github.com/facebook/docusaurus/pull/10457 -// See https://github.com/facebook/docusaurus/pull/10185 +// See https://github.com/meta/docusaurus/pull/10457 +// See https://github.com/meta/docusaurus/pull/10185 export function createContentHelpers() { const sourceToPage = new Map(); const sourceToPermalink = new Map(); diff --git a/packages/docusaurus-plugin-content-pages/src/frontMatter.ts b/packages/docusaurus-plugin-content-pages/src/frontMatter.ts index 3f0db8e02ca8..ea0ae2ffa470 100644 --- a/packages/docusaurus-plugin-content-pages/src/frontMatter.ts +++ b/packages/docusaurus-plugin-content-pages/src/frontMatter.ts @@ -17,9 +17,9 @@ import type {PageFrontMatter} from '@docusaurus/plugin-content-pages'; /* eslint-disable camelcase */ const PageFrontMatterSchema = Joi.object({ - // See https://github.com/facebook/docusaurus/issues/4591#issuecomment-822372398 + // See https://github.com/meta/docusaurus/issues/4591#issuecomment-822372398 title: Joi.string().allow(''), - // See https://github.com/facebook/docusaurus/issues/4591#issuecomment-822372398 + // See https://github.com/meta/docusaurus/issues/4591#issuecomment-822372398 description: Joi.string().allow(''), keywords: Joi.array().items(Joi.string().required()), image: URISchema, diff --git a/packages/docusaurus-plugin-content-pages/src/index.ts b/packages/docusaurus-plugin-content-pages/src/index.ts index 95ac604a18f2..8828fb03d277 100644 --- a/packages/docusaurus-plugin-content-pages/src/index.ts +++ b/packages/docusaurus-plugin-content-pages/src/index.ts @@ -55,7 +55,7 @@ export default function pluginContentPages( return createMDXLoaderRule({ include: contentDirs - // Trailing slash is important, see https://github.com/facebook/docusaurus/pull/3970 + // Trailing slash is important, see https://github.com/meta/docusaurus/pull/3970 .map(addTrailingPathSeparator), options: { admonitions, diff --git a/packages/docusaurus-plugin-google-gtag/src/gtag.ts b/packages/docusaurus-plugin-google-gtag/src/gtag.ts index dc04ed076b80..17604404a6bd 100644 --- a/packages/docusaurus-plugin-google-gtag/src/gtag.ts +++ b/packages/docusaurus-plugin-google-gtag/src/gtag.ts @@ -19,7 +19,7 @@ const clientModule: ClientModule = { // `react-helmet-async` updates it. We want to send the current document's // title to gtag instead of the old one's, so we use `setTimeout` to defer // execution to the next tick. - // See: https://github.com/facebook/docusaurus/issues/7420 + // See: https://github.com/meta/docusaurus/issues/7420 setTimeout(() => { // Always refer to the variable on window in case it gets overridden // elsewhere. diff --git a/packages/docusaurus-plugin-google-gtag/src/options.ts b/packages/docusaurus-plugin-google-gtag/src/options.ts index f068430a2b5a..9256e63e3cac 100644 --- a/packages/docusaurus-plugin-google-gtag/src/options.ts +++ b/packages/docusaurus-plugin-google-gtag/src/options.ts @@ -43,7 +43,7 @@ export function validateThemeConfig({ }: ThemeConfigValidationContext): ThemeConfig { if ('gtag' in themeConfig) { throw new Error( - 'The "gtag" field in themeConfig should now be specified as option for plugin-google-gtag. More information at https://github.com/facebook/docusaurus/pull/5832.', + 'The "gtag" field in themeConfig should now be specified as option for plugin-google-gtag. More information at https://github.com/meta/docusaurus/pull/5832.', ); } return themeConfig; diff --git a/packages/docusaurus-plugin-google-gtag/src/vendor-gtag.ts b/packages/docusaurus-plugin-google-gtag/src/vendor-gtag.ts index 078aaf3dcd2d..f695cf4a6c3d 100644 --- a/packages/docusaurus-plugin-google-gtag/src/vendor-gtag.ts +++ b/packages/docusaurus-plugin-google-gtag/src/vendor-gtag.ts @@ -7,8 +7,8 @@ // Types directly copied from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/gtag.js // I'd prefer not do that, but this should fix our StackBlitz playground -// See https://github.com/facebook/docusaurus/pull/12080 -// See https://github.com/facebook/docusaurus/issues/11615 +// See https://github.com/meta/docusaurus/pull/12080 +// See https://github.com/meta/docusaurus/issues/11615 /* eslint-disable */ declare var gtag: Gtag.Gtag; diff --git a/packages/docusaurus-plugin-ideal-image/src/index.ts b/packages/docusaurus-plugin-ideal-image/src/index.ts index f3c380d88ad2..9257eb247f30 100644 --- a/packages/docusaurus-plugin-ideal-image/src/index.ts +++ b/packages/docusaurus-plugin-ideal-image/src/index.ts @@ -69,7 +69,7 @@ export default function pluginIdealImage( dependency: {not: 'url'}, // We don't want to use the image loader for non-React source code // ie we don't want to use ideal image loader for CSS files... - // See https://github.com/facebook/docusaurus/issues/10862 + // See https://github.com/meta/docusaurus/issues/10862 issuer: { and: [/\.(?:tsx?|jsx?|mdx?)$/i], }, diff --git a/packages/docusaurus-plugin-ideal-image/src/theme/IdealImageLegacy/components/IdealImage/waypoint.tsx b/packages/docusaurus-plugin-ideal-image/src/theme/IdealImageLegacy/components/IdealImage/waypoint.tsx index c5d3ba33bc6d..8395346be30b 100644 --- a/packages/docusaurus-plugin-ideal-image/src/theme/IdealImageLegacy/components/IdealImage/waypoint.tsx +++ b/packages/docusaurus-plugin-ideal-image/src/theme/IdealImageLegacy/components/IdealImage/waypoint.tsx @@ -20,7 +20,7 @@ function addEventListener( // Because waypoint may fire before the setState() updates due to batching // queueMicrotask is a better option than setTimeout() or React.flushSync() -// See https://github.com/facebook/docusaurus/issues/11018 +// See https://github.com/meta/docusaurus/issues/11018 // See https://github.com/civiccc/react-waypoint/blob/0905ac5a073131147c96dd0694bd6f1b6ee8bc97/src/onNextTick.js function subscribeMicrotask(callback: () => void) { let subscribed = true; diff --git a/packages/docusaurus-plugin-sitemap/src/createSitemapItem.ts b/packages/docusaurus-plugin-sitemap/src/createSitemapItem.ts index d4706785c217..870cd916a19c 100644 --- a/packages/docusaurus-plugin-sitemap/src/createSitemapItem.ts +++ b/packages/docusaurus-plugin-sitemap/src/createSitemapItem.ts @@ -43,7 +43,7 @@ async function getRouteLastUpdatedAt( ): Promise { // Important to bail-out early here // This can lead to duplicated VCS calls and performance problems - // See https://github.com/facebook/docusaurus/pull/11211 + // See https://github.com/meta/docusaurus/pull/11211 if (route.metadata?.lastUpdatedAt === null) { return null; } diff --git a/packages/docusaurus-plugin-sitemap/src/options.ts b/packages/docusaurus-plugin-sitemap/src/options.ts index 69746741c874..69a2baba722d 100644 --- a/packages/docusaurus-plugin-sitemap/src/options.ts +++ b/packages/docusaurus-plugin-sitemap/src/options.ts @@ -61,7 +61,7 @@ export const DEFAULT_OPTIONS: PluginOptions = { // Removed in Docusaurus v4: Google ignores and , // and the same value for all routes does not make sense anyway // Users can still emit them per-route with createSitemapItems() -// See also https://github.com/facebook/docusaurus/issues/2604 +// See also https://github.com/meta/docusaurus/issues/2604 function removedOptionSchema(option: 'changefreq' | 'priority') { return Joi.any() .forbidden() diff --git a/packages/docusaurus-plugin-sitemap/src/types.ts b/packages/docusaurus-plugin-sitemap/src/types.ts index e367e574f061..c5d24876f55f 100644 --- a/packages/docusaurus-plugin-sitemap/src/types.ts +++ b/packages/docusaurus-plugin-sitemap/src/types.ts @@ -45,7 +45,7 @@ export type SitemapItem = { * - YYYY-MM-DD * * Note: as of 2024, Google uses this value for crawling priority. - * See also https://github.com/facebook/docusaurus/issues/2604 + * See also https://github.com/meta/docusaurus/issues/2604 */ lastmod?: string | null; @@ -53,7 +53,7 @@ export type SitemapItem = { * One of the specified enum values * * Note: as of 2024, Google ignores this value. - * See also https://github.com/facebook/docusaurus/issues/2604 + * See also https://github.com/meta/docusaurus/issues/2604 */ changefreq?: ChangeFreq | null; @@ -63,7 +63,7 @@ export type SitemapItem = { * The default priority of a page is 0.5. * * Note: as of 2024, Google ignores this value. - * See also https://github.com/facebook/docusaurus/issues/2604 + * See also https://github.com/meta/docusaurus/issues/2604 */ priority?: number | null; }; diff --git a/packages/docusaurus-plugin-svgr/src/svgrLoader.ts b/packages/docusaurus-plugin-svgr/src/svgrLoader.ts index 412b858f8794..c9363db21e7a 100644 --- a/packages/docusaurus-plugin-svgr/src/svgrLoader.ts +++ b/packages/docusaurus-plugin-svgr/src/svgrLoader.ts @@ -22,8 +22,8 @@ import type {Configuration, RuleSetRule} from 'webpack'; // page, these ids clash and SVGs render with each other's gradients/masks. // We prefix ids with a short hash of the SVG file path to make them unique. // The path is relative to the site dir so that ids are stable across machines. -// See https://github.com/facebook/docusaurus/issues/8297 -// See https://github.com/facebook/docusaurus/issues/10679 +// See https://github.com/meta/docusaurus/issues/8297 +// See https://github.com/meta/docusaurus/issues/10679 function getSVGIdPrefix({ siteDir, filePath, diff --git a/packages/docusaurus-preset-classic/src/index.ts b/packages/docusaurus-preset-classic/src/index.ts index 2011be7756fd..4748b55a2c97 100644 --- a/packages/docusaurus-preset-classic/src/index.ts +++ b/packages/docusaurus-preset-classic/src/index.ts @@ -58,7 +58,7 @@ You can now use either: - @docusaurus/plugin-google-gtag - presetOptions.gtag - @docusaurus/plugin-google-tag-manager - presetOptions.googleTagManager -See also: https://github.com/facebook/docusaurus/issues/7221`, +See also: https://github.com/meta/docusaurus/issues/7221`, ); } diff --git a/packages/docusaurus-theme-classic/README.md b/packages/docusaurus-theme-classic/README.md index 0b15395d5027..fffe50a2ee15 100644 --- a/packages/docusaurus-theme-classic/README.md +++ b/packages/docusaurus-theme-classic/README.md @@ -28,4 +28,4 @@ module.exports = { $ npm swizzle @docusaurus/theme-classic [component name] ``` -All components used by this theme can be found [here](https://github.com/facebook/docusaurus/tree/main/packages/docusaurus-theme-classic/src/theme) +All components used by this theme can be found [here](https://github.com/meta/docusaurus/tree/main/packages/docusaurus-theme-classic/src/theme) diff --git a/packages/docusaurus-theme-classic/src/getSwizzleConfig.ts b/packages/docusaurus-theme-classic/src/getSwizzleConfig.ts index 9c15d09ca638..17047ae17a2a 100644 --- a/packages/docusaurus-theme-classic/src/getSwizzleConfig.ts +++ b/packages/docusaurus-theme-classic/src/getSwizzleConfig.ts @@ -396,7 +396,7 @@ export default function getSwizzleConfig(): SwizzleConfig { wrap: 'forbidden', }, description: - 'The Navbar item components mapping. Can be ejected to add custom navbar item types.\nSee https://github.com/facebook/docusaurus/issues/7227.', + 'The Navbar item components mapping. Can be ejected to add custom navbar item types.\nSee https://github.com/meta/docusaurus/issues/7227.', }, NotFound: { actions: { diff --git a/packages/docusaurus-theme-classic/src/inlineSvgSprites.ts b/packages/docusaurus-theme-classic/src/inlineSvgSprites.ts index b729c9bbb5cc..a8af11044ac7 100644 --- a/packages/docusaurus-theme-classic/src/inlineSvgSprites.ts +++ b/packages/docusaurus-theme-classic/src/inlineSvgSprites.ts @@ -6,7 +6,7 @@ */ // For icons that are heavily repeated in the static html output -// See also https://github.com/facebook/docusaurus/issues/5865 +// See also https://github.com/meta/docusaurus/issues/5865 export const SvgSpriteDefs = ` `; diff --git a/packages/docusaurus-theme-classic/src/options.ts b/packages/docusaurus-theme-classic/src/options.ts index 316b486dab5e..e5d16391d997 100644 --- a/packages/docusaurus-theme-classic/src/options.ts +++ b/packages/docusaurus-theme-classic/src/options.ts @@ -137,7 +137,7 @@ const HtmlNavbarItemSchema = Joi.object({ }); // A temporary workaround to allow users to add custom navbar items -// See https://github.com/facebook/docusaurus/issues/7227 +// See https://github.com/meta/docusaurus/issues/7227 const CustomNavbarItemRegexp = /custom-.*/; const CustomNavbarItemSchema = Joi.object({ type: Joi.string().regex(CustomNavbarItemRegexp).required(), @@ -348,7 +348,7 @@ const LogoSchema = Joi.object({ }); // Normalize prism language to lowercase -// See https://github.com/facebook/docusaurus/issues/9012 +// See https://github.com/meta/docusaurus/issues/9012 const PrismLanguage = Joi.string().custom((val) => val.toLowerCase()); export const ThemeConfigSchema = Joi.object({ diff --git a/packages/docusaurus-theme-classic/src/theme/CodeBlock/Line/index.tsx b/packages/docusaurus-theme-classic/src/theme/CodeBlock/Line/index.tsx index 844519e9d7c5..b5e85baae1c2 100644 --- a/packages/docusaurus-theme-classic/src/theme/CodeBlock/Line/index.tsx +++ b/packages/docusaurus-theme-classic/src/theme/CodeBlock/Line/index.tsx @@ -17,14 +17,14 @@ type Token = Props['line'][number]; // This
; } // Replaces single lines with '\n' by '' so that we don't end up with // duplicate line breaks (the '\n' + the artificial
above) -// see also https://github.com/facebook/docusaurus/pull/11565 +// see also https://github.com/meta/docusaurus/pull/11565 function fixLineBreak(line: Token[]) { const singleLineBreakToken = line.length === 1 && line[0]!.content === '\n' ? line[0] : undefined; diff --git a/packages/docusaurus-theme-classic/src/theme/CodeBlock/Line/styles.module.css b/packages/docusaurus-theme-classic/src/theme/CodeBlock/Line/styles.module.css index 454874ff256d..406e7e016206 100644 --- a/packages/docusaurus-theme-classic/src/theme/CodeBlock/Line/styles.module.css +++ b/packages/docusaurus-theme-classic/src/theme/CodeBlock/Line/styles.module.css @@ -6,7 +6,7 @@ */ /* Intentionally has zero specificity, so that to be able to override -the background in custom CSS file due bug https://github.com/facebook/docusaurus/issues/3678 */ +the background in custom CSS file due bug https://github.com/meta/docusaurus/issues/3678 */ :where(:root) { --docusaurus-highlighted-code-line-bg: rgb(72 77 91); } diff --git a/packages/docusaurus-theme-classic/src/theme/ColorModeToggle/index.tsx b/packages/docusaurus-theme-classic/src/theme/ColorModeToggle/index.tsx index 92ffe74b11c5..71d3f945ca71 100644 --- a/packages/docusaurus-theme-classic/src/theme/ColorModeToggle/index.tsx +++ b/packages/docusaurus-theme-classic/src/theme/ColorModeToggle/index.tsx @@ -128,7 +128,7 @@ function ColorModeToggle({ aria-label={getColorModeAriaLabel(value)} // For accessibility decisions - // See https://github.com/facebook/docusaurus/issues/7667#issuecomment-2724401796 + // See https://github.com/meta/docusaurus/issues/7667#issuecomment-2724401796 // aria-live disabled on purpose - This is annoying because: // - without this attribute, VoiceOver doesn't announce on button enter diff --git a/packages/docusaurus-theme-classic/src/theme/ContentVisibility/index.tsx b/packages/docusaurus-theme-classic/src/theme/ContentVisibility/index.tsx index aac3570e37e8..6952ac22f092 100644 --- a/packages/docusaurus-theme-classic/src/theme/ContentVisibility/index.tsx +++ b/packages/docusaurus-theme-classic/src/theme/ContentVisibility/index.tsx @@ -15,7 +15,7 @@ export default function ContentVisibility({metadata}: Props): ReactNode { const {unlisted, frontMatter} = metadata; // Reading draft/unlisted status from frontMatter is useful to display // the banners in dev mode (in dev, metadata.unlisted is always false) - // See https://github.com/facebook/docusaurus/issues/8285 + // See https://github.com/meta/docusaurus/issues/8285 return ( <> {(unlisted || frontMatter.unlisted) && } diff --git a/packages/docusaurus-theme-classic/src/theme/DocItem/Content/index.tsx b/packages/docusaurus-theme-classic/src/theme/DocItem/Content/index.tsx index d0e278858be9..053e3412d30d 100644 --- a/packages/docusaurus-theme-classic/src/theme/DocItem/Content/index.tsx +++ b/packages/docusaurus-theme-classic/src/theme/DocItem/Content/index.tsx @@ -17,7 +17,7 @@ import type {Props} from '@theme/DocItem/Content'; Title can be declared inside md content or declared through front matter and added manually. To make both cases consistent, the added title is added under the same div.markdown block - See https://github.com/facebook/docusaurus/pull/4882#issuecomment-853021120 + See https://github.com/meta/docusaurus/pull/4882#issuecomment-853021120 We render a "synthetic title" if: - user doesn't ask to hide it with front matter diff --git a/packages/docusaurus-theme-classic/src/theme/DocRoot/Layout/Sidebar/index.tsx b/packages/docusaurus-theme-classic/src/theme/DocRoot/Layout/Sidebar/index.tsx index 7ea64ff764d0..0c247805329b 100644 --- a/packages/docusaurus-theme-classic/src/theme/DocRoot/Layout/Sidebar/index.tsx +++ b/packages/docusaurus-theme-classic/src/theme/DocRoot/Layout/Sidebar/index.tsx @@ -18,7 +18,7 @@ import styles from './styles.module.css'; // Reset sidebar state when sidebar changes // Use React key to unmount/remount the children -// See https://github.com/facebook/docusaurus/issues/3414 +// See https://github.com/meta/docusaurus/issues/3414 function ResetOnSidebarChange({children}: {children: ReactNode}) { const sidebar = useDocsSidebar(); return ( @@ -41,7 +41,7 @@ export default function DocRootLayoutSidebar({ setHiddenSidebar(false); } // onTransitionEnd won't fire when sidebar animation is disabled - // fixes https://github.com/facebook/docusaurus/issues/8918 + // fixes https://github.com/meta/docusaurus/issues/8918 if (!hiddenSidebar && prefersReducedMotion()) { setHiddenSidebar(true); } diff --git a/packages/docusaurus-theme-classic/src/theme/DocRoot/index.tsx b/packages/docusaurus-theme-classic/src/theme/DocRoot/index.tsx index 2776997fb80d..eb448dadbf12 100644 --- a/packages/docusaurus-theme-classic/src/theme/DocRoot/index.tsx +++ b/packages/docusaurus-theme-classic/src/theme/DocRoot/index.tsx @@ -20,7 +20,7 @@ export default function DocRoot(props: Props): ReactNode { const currentDocRouteMetadata = useDocRootMetadata(props); if (!currentDocRouteMetadata) { // We only render the not found content to avoid a double layout - // see https://github.com/facebook/docusaurus/pull/7966#pullrequestreview-1077276692 + // see https://github.com/meta/docusaurus/pull/7966#pullrequestreview-1077276692 return ; } const {docElement, sidebarName, sidebarItems} = currentDocRouteMetadata; 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 078bc5953626..702384e905c9 100644 --- a/packages/docusaurus-theme-classic/src/theme/DocSidebarItem/Category/index.tsx +++ b/packages/docusaurus-theme-classic/src/theme/DocSidebarItem/Category/index.tsx @@ -78,7 +78,7 @@ function useAutoExpandActiveCategory({ * the category even when JS fails to load, is delayed or simply disabled * React hydration becomes an optional progressive enhancement * see https://github.com/facebookincubator/infima/issues/36#issuecomment-772543188 - * see https://github.com/facebook/docusaurus/issues/3030 + * see https://github.com/meta/docusaurus/issues/3030 */ function useCategoryHrefWithSSRFallback( item: Props['item'], @@ -245,13 +245,13 @@ function DocSidebarItemCategoryCollapsible({ // When already on the category's page, we collapse it // We don't use "isActive" because it would collapse the // category even when we browse a children element - // See https://github.com/facebook/docusaurus/issues/11213 + // See https://github.com/meta/docusaurus/issues/11213 if (isCurrentPage) { e.preventDefault(); updateCollapsed(); } else { // When navigating to a new category, we always expand - // see https://github.com/facebook/docusaurus/issues/10854#issuecomment-2609616182 + // see https://github.com/meta/docusaurus/issues/10854#issuecomment-2609616182 updateCollapsed(false); } } else { diff --git a/packages/docusaurus-theme-classic/src/theme/Icon/ExternalLink/index.tsx b/packages/docusaurus-theme-classic/src/theme/Icon/ExternalLink/index.tsx index 19f5ffea34cf..5ed9fff557f0 100644 --- a/packages/docusaurus-theme-classic/src/theme/Icon/ExternalLink/index.tsx +++ b/packages/docusaurus-theme-classic/src/theme/Icon/ExternalLink/index.tsx @@ -12,7 +12,7 @@ import type {Props} from '@theme/Icon/ExternalLink'; import styles from './styles.module.css'; // References symbol in docusaurus-theme-classic/src/inlineSvgSprites.ts -// See why: https://github.com/facebook/docusaurus/issues/5865 +// See why: https://github.com/meta/docusaurus/issues/5865 const svgSprite = '#theme-svg-external-link'; export default function IconExternalLink({ diff --git a/packages/docusaurus-theme-classic/src/theme/Logo/index.tsx b/packages/docusaurus-theme-classic/src/theme/Logo/index.tsx index 663c8dd64203..84968411d080 100644 --- a/packages/docusaurus-theme-classic/src/theme/Logo/index.tsx +++ b/packages/docusaurus-theme-classic/src/theme/Logo/index.tsx @@ -38,7 +38,7 @@ function LogoThemedImage({ ); // Is this extra div really necessary? - // introduced in https://github.com/facebook/docusaurus/pull/5666 + // introduced in https://github.com/meta/docusaurus/pull/5666 return imageClassName ? (
{themedImage}
) : ( diff --git a/packages/docusaurus-theme-classic/src/theme/MDXComponents/Code.tsx b/packages/docusaurus-theme-classic/src/theme/MDXComponents/Code.tsx index c97949c59276..2055b2916728 100644 --- a/packages/docusaurus-theme-classic/src/theme/MDXComponents/Code.tsx +++ b/packages/docusaurus-theme-classic/src/theme/MDXComponents/Code.tsx @@ -14,7 +14,7 @@ import type {Props} from '@theme/MDXComponents/Code'; function shouldBeInline(props: Props) { return ( // empty code blocks have no props.children, - // see https://github.com/facebook/docusaurus/pull/9704 + // see https://github.com/meta/docusaurus/pull/9704 typeof props.children !== 'undefined' && React.Children.toArray(props.children).every( (el) => typeof el === 'string' && !el.includes('\n'), diff --git a/packages/docusaurus-theme-classic/src/theme/MDXComponents/Ul/index.tsx b/packages/docusaurus-theme-classic/src/theme/MDXComponents/Ul/index.tsx index 951308c8009e..5edd0331e51d 100644 --- a/packages/docusaurus-theme-classic/src/theme/MDXComponents/Ul/index.tsx +++ b/packages/docusaurus-theme-classic/src/theme/MDXComponents/Ul/index.tsx @@ -12,7 +12,7 @@ import type {Props} from '@theme/MDXComponents/Ul'; import styles from './styles.module.css'; function transformUlClassName(className?: string): string | undefined { - // Fix https://github.com/facebook/docusaurus/issues/9098 + // Fix https://github.com/meta/docusaurus/issues/9098 if (typeof className === 'undefined') { return undefined; } diff --git a/packages/docusaurus-theme-classic/src/theme/MDXComponents/index.tsx b/packages/docusaurus-theme-classic/src/theme/MDXComponents/index.tsx index d57df15a0f11..f31c6e789501 100644 --- a/packages/docusaurus-theme-classic/src/theme/MDXComponents/index.tsx +++ b/packages/docusaurus-theme-classic/src/theme/MDXComponents/index.tsx @@ -22,7 +22,7 @@ import type {MDXComponentsObject} from '@theme/MDXComponents'; const MDXComponents: MDXComponentsObject = { Head, - details: MDXDetails, // For MD mode support, see https://github.com/facebook/docusaurus/issues/9092#issuecomment-1602902274 + details: MDXDetails, // For MD mode support, see https://github.com/meta/docusaurus/issues/9092#issuecomment-1602902274 Details: MDXDetails, code: MDXCode, a: MDXA, diff --git a/packages/docusaurus-theme-classic/src/theme/Mermaid.tsx b/packages/docusaurus-theme-classic/src/theme/Mermaid.tsx index 1c326bb04fb6..dbcd53eb2295 100644 --- a/packages/docusaurus-theme-classic/src/theme/Mermaid.tsx +++ b/packages/docusaurus-theme-classic/src/theme/Mermaid.tsx @@ -11,6 +11,6 @@ // By default, the classic theme does not provide any Mermaid implementation // Yet we declare it there so that we can register it in MDX // TODO later the mermaid theme should be able to register its MDX component -// see https://github.com/facebook/docusaurus/pull/7490#issuecomment-1279117288 +// see https://github.com/meta/docusaurus/pull/7490#issuecomment-1279117288 export {default} from '@docusaurus/Noop'; diff --git a/packages/docusaurus-theme-classic/src/theme/Navbar/Content/styles.module.css b/packages/docusaurus-theme-classic/src/theme/Navbar/Content/styles.module.css index 109e0928bda9..ae9da709c317 100644 --- a/packages/docusaurus-theme-classic/src/theme/Navbar/Content/styles.module.css +++ b/packages/docusaurus-theme-classic/src/theme/Navbar/Content/styles.module.css @@ -16,7 +16,7 @@ Hide color mode toggle in small viewports /* Restore some Infima style that broke with CSS Cascade Layers -See https://github.com/facebook/docusaurus/pull/11142 +See https://github.com/meta/docusaurus/pull/11142 */ :global(.navbar__items--right) > :last-child { padding-right: 0; diff --git a/packages/docusaurus-theme-classic/src/theme/Navbar/Search/styles.module.css b/packages/docusaurus-theme-classic/src/theme/Navbar/Search/styles.module.css index e3703c17dc0c..99bbc7217d37 100644 --- a/packages/docusaurus-theme-classic/src/theme/Navbar/Search/styles.module.css +++ b/packages/docusaurus-theme-classic/src/theme/Navbar/Search/styles.module.css @@ -7,7 +7,7 @@ /* Workaround to avoid rendering empty search container -See https://github.com/facebook/docusaurus/pull/9385 +See https://github.com/meta/docusaurus/pull/9385 */ .navbarSearchContainer:empty { display: none; diff --git a/packages/docusaurus-theme-classic/src/theme/NavbarItem/DropdownNavbarItem/Desktop/index.tsx b/packages/docusaurus-theme-classic/src/theme/NavbarItem/DropdownNavbarItem/Desktop/index.tsx index cb8df1203943..55d70c27d526 100644 --- a/packages/docusaurus-theme-classic/src/theme/NavbarItem/DropdownNavbarItem/Desktop/index.tsx +++ b/packages/docusaurus-theme-classic/src/theme/NavbarItem/DropdownNavbarItem/Desktop/index.tsx @@ -57,7 +57,7 @@ export default function DropdownNavbarItemDesktop({ aria-expanded={showDropdown} role="button" // # hash permits to make the tag focusable in case no link target - // See https://github.com/facebook/docusaurus/pull/6003 + // See https://github.com/meta/docusaurus/pull/6003 // There's probably a better solution though... href={props.to ? undefined : '#'} className={clsx('navbar__link', className)} diff --git a/packages/docusaurus-theme-classic/src/theme/NavbarItem/DropdownNavbarItem/Mobile/index.tsx b/packages/docusaurus-theme-classic/src/theme/NavbarItem/DropdownNavbarItem/Mobile/index.tsx index 0dd7edf32301..ff9ca693cd1b 100644 --- a/packages/docusaurus-theme-classic/src/theme/NavbarItem/DropdownNavbarItem/Mobile/index.tsx +++ b/packages/docusaurus-theme-classic/src/theme/NavbarItem/DropdownNavbarItem/Mobile/index.tsx @@ -111,7 +111,7 @@ export default function DropdownNavbarItemMobile({ }); // # hash permits to make the tag focusable in case no link target - // See https://github.com/facebook/docusaurus/pull/6003 + // See https://github.com/meta/docusaurus/pull/6003 // There's probably a better solution though... const href = props.to ? undefined : '#'; diff --git a/packages/docusaurus-theme-classic/src/theme/NavbarItem/LocaleDropdownNavbarItem/index.tsx b/packages/docusaurus-theme-classic/src/theme/NavbarItem/LocaleDropdownNavbarItem/index.tsx index e2a4ee24d978..5322c1267ca4 100644 --- a/packages/docusaurus-theme-classic/src/theme/NavbarItem/LocaleDropdownNavbarItem/index.tsx +++ b/packages/docusaurus-theme-classic/src/theme/NavbarItem/LocaleDropdownNavbarItem/index.tsx @@ -58,7 +58,7 @@ function useLocaleDropdownUtils() { // We have 2 query strings because // - there's the current one // - there's one user can provide through navbar config - // see https://github.com/facebook/docusaurus/pull/8915 + // see https://github.com/meta/docusaurus/pull/8915 const finalSearch = mergeSearchStrings( [search, options.queryString], 'append', diff --git a/packages/docusaurus-theme-classic/src/theme/SearchMetadata/index.tsx b/packages/docusaurus-theme-classic/src/theme/SearchMetadata/index.tsx index 2ff45f82c38c..7b196a07cd2e 100644 --- a/packages/docusaurus-theme-classic/src/theme/SearchMetadata/index.tsx +++ b/packages/docusaurus-theme-classic/src/theme/SearchMetadata/index.tsx @@ -13,8 +13,8 @@ import type {Props} from '@theme/SearchMetadata'; // Note: we bias toward using Algolia metadata on purpose // Not doing so leads to confusion in the community, // as it requires to first crawl the site with the Algolia plugin enabled first -// - https://github.com/facebook/docusaurus/issues/6693 -// - https://github.com/facebook/docusaurus/issues/4555 +// - https://github.com/meta/docusaurus/issues/6693 +// - https://github.com/meta/docusaurus/issues/4555 export default function SearchMetadata({ locale, version, diff --git a/packages/docusaurus-theme-classic/src/theme/SiteMetadata/index.tsx b/packages/docusaurus-theme-classic/src/theme/SiteMetadata/index.tsx index b4511d4fd13e..e717794dc7a9 100644 --- a/packages/docusaurus-theme-classic/src/theme/SiteMetadata/index.tsx +++ b/packages/docusaurus-theme-classic/src/theme/SiteMetadata/index.tsx @@ -21,7 +21,7 @@ import SearchMetadata from '@theme/SearchMetadata'; // TODO move to SiteMetadataDefaults or theme-common ? // Useful for i18n/SEO // See https://developers.google.com/search/docs/advanced/crawling/localized-versions -// See https://github.com/facebook/docusaurus/issues/3317 +// See https://github.com/meta/docusaurus/issues/3317 function AlternateLangHeaders(): ReactNode { const { i18n: {currentLocale, defaultLocale, localeConfigs}, @@ -85,7 +85,7 @@ function useDefaultCanonicalUrl() { } = useDocusaurusContext(); // TODO using useLocation().pathname is not a super idea - // See https://github.com/facebook/docusaurus/issues/9170 + // See https://github.com/meta/docusaurus/issues/9170 const {pathname} = useLocation(); const canonicalPathname = applyTrailingSlash(useBaseUrl(pathname), { diff --git a/packages/docusaurus-theme-classic/src/theme/Tabs/index.tsx b/packages/docusaurus-theme-classic/src/theme/Tabs/index.tsx index 92d3c2f2486f..daab17569043 100644 --- a/packages/docusaurus-theme-classic/src/theme/Tabs/index.tsx +++ b/packages/docusaurus-theme-classic/src/theme/Tabs/index.tsx @@ -131,7 +131,7 @@ export default function Tabs(props: Props): ReactNode { {sanitizeTabsChildren(props.children)} diff --git a/packages/docusaurus-theme-common/src/components/Collapsible/index.tsx b/packages/docusaurus-theme-common/src/components/Collapsible/index.tsx index 874939a98c7d..f436e0353b81 100644 --- a/packages/docusaurus-theme-common/src/components/Collapsible/index.tsx +++ b/packages/docusaurus-theme-common/src/components/Collapsible/index.tsx @@ -75,7 +75,7 @@ https://github.com/mui-org/material-ui/blob/e724d98eba018e55e1a684236a2037e24bcf function getAutoHeightDuration(height: number) { if (prefersReducedMotion()) { // Not using 0 because it prevents onTransitionEnd to fire and bubble up :/ - // See https://github.com/facebook/docusaurus/pull/8906 + // See https://github.com/meta/docusaurus/pull/8906 return 1; } const constant = height / 36; @@ -234,7 +234,7 @@ type CollapsibleProps = CollapsibleBaseProps & { * Delay rendering of the content till first expansion. Marked as required to * force us to think if content should be server-rendered or not. This has * perf impact since it reduces html file sizes, but could undermine SEO. - * @see https://github.com/facebook/docusaurus/issues/4753 + * @see https://github.com/meta/docusaurus/issues/4753 */ lazy: boolean; }; diff --git a/packages/docusaurus-theme-common/src/components/Details/index.tsx b/packages/docusaurus-theme-common/src/components/Details/index.tsx index cb52c63e1049..b5f06fdfb229 100644 --- a/packages/docusaurus-theme-common/src/components/Details/index.tsx +++ b/packages/docusaurus-theme-common/src/components/Details/index.tsx @@ -106,7 +106,7 @@ export function Details({ }} onToggle={(e) => { // The toggle event also fires when React syncs the open attribute - // See https://github.com/facebook/docusaurus/pull/12277 + // See https://github.com/meta/docusaurus/pull/12277 const isOpen = e.currentTarget.open; if (isOpen === !collapsed) { return; diff --git a/packages/docusaurus-theme-common/src/components/ThemedComponent/index.tsx b/packages/docusaurus-theme-common/src/components/ThemedComponent/index.tsx index fa96eded7260..8fb56cf3022e 100644 --- a/packages/docusaurus-theme-common/src/components/ThemedComponent/index.tsx +++ b/packages/docusaurus-theme-common/src/components/ThemedComponent/index.tsx @@ -53,7 +53,7 @@ export default function ThemedComponent({ // We need to render both components on the server / hydration to avoid: // - a flash of wrong theme before hydration // - React hydration mismatches - // See https://github.com/facebook/docusaurus/pull/3730 + // See https://github.com/meta/docusaurus/pull/3730 return ['light', 'dark']; } diff --git a/packages/docusaurus-theme-common/src/contexts/colorMode.tsx b/packages/docusaurus-theme-common/src/contexts/colorMode.tsx index 9efc6521a6c3..e904c3024063 100644 --- a/packages/docusaurus-theme-common/src/contexts/colorMode.tsx +++ b/packages/docusaurus-theme-common/src/contexts/colorMode.tsx @@ -114,7 +114,7 @@ const persistColorModeChoice = (newColorMode: ColorModeChoice) => { // to avoid a React hydration mismatch errors // The useColorMode() hook value lags behind on purpose // This helps users avoid hydration mismatch errors in their code -// See also https://github.com/facebook/docusaurus/issues/7986 +// See also https://github.com/meta/docusaurus/issues/7986 function useColorModeState() { const { colorMode: {defaultMode}, @@ -123,7 +123,7 @@ function useColorModeState() { // Since the provider may unmount/remount on client navigation, we need to // reinitialize the state with the correct values to avoid visual glitches. - // See also https://github.com/facebook/docusaurus/issues/11399#issuecomment-3279181314 + // See also https://github.com/meta/docusaurus/issues/11399#issuecomment-3279181314 const [colorMode, setColorModeState] = useState( isBrowser ? ColorModeAttribute.get() : defaultMode, ); @@ -220,7 +220,7 @@ function useContextValue(): ContextValue { // Note: we don't use "setColorMode" on purpose // The system changes should never be considered an explicit theme choice // They only affect the "effective" color, and should never be persisted - // Note: this listener also fire when printing, see https://github.com/facebook/docusaurus/pull/6490 + // Note: this listener also fire when printing, see https://github.com/meta/docusaurus/pull/6490 setColorModeState(newSystemColorMode); ColorModeAttribute.set(newSystemColorMode); }); diff --git a/packages/docusaurus-theme-common/src/contexts/navbarMobileSidebar.tsx b/packages/docusaurus-theme-common/src/contexts/navbarMobileSidebar.tsx index cbd9e73403ae..55090599719e 100644 --- a/packages/docusaurus-theme-common/src/contexts/navbarMobileSidebar.tsx +++ b/packages/docusaurus-theme-common/src/contexts/navbarMobileSidebar.tsx @@ -70,7 +70,7 @@ function useContextValue(): ContextValue { } // A component hook wrapper enables conditional rendering -// See reason here: https://github.com/facebook/docusaurus/issues/10988 +// See reason here: https://github.com/meta/docusaurus/issues/10988 function OnHistoryPop({ handler, }: { @@ -93,13 +93,13 @@ export function NavbarMobileSidebarProvider({ // Most likely firing when using the Android back button (but not only) // Important: we can only have a single history blocker at a time // That's why this needs to be rendered conditionally - // See bug report https://github.com/facebook/docusaurus/issues/10988 + // See bug report https://github.com/meta/docusaurus/issues/10988 value.shown && ( { value.toggle(); // Prevent pop navigation; seems desirable enough - // See https://github.com/facebook/docusaurus/pull/5462#issuecomment-911699846 + // See https://github.com/meta/docusaurus/pull/5462#issuecomment-911699846 return false; }} /> diff --git a/packages/docusaurus-theme-common/src/hooks/useCodeWordWrap.ts b/packages/docusaurus-theme-common/src/hooks/useCodeWordWrap.ts index df17460c46f6..91155ecabf31 100644 --- a/packages/docusaurus-theme-common/src/hooks/useCodeWordWrap.ts +++ b/packages/docusaurus-theme-common/src/hooks/useCodeWordWrap.ts @@ -9,7 +9,7 @@ import {useState, useCallback, useEffect, useRef} from 'react'; import {useMutationObserver} from './useMutationObserver'; // Callback fires when the "hidden" attribute of a tabpanel changes -// See https://github.com/facebook/docusaurus/pull/7485 +// See https://github.com/meta/docusaurus/pull/7485 function useTabBecameVisibleCallback( codeBlockRef: RefObject, callback: () => void, diff --git a/packages/docusaurus-theme-common/src/hooks/useHideableNavbar.ts b/packages/docusaurus-theme-common/src/hooks/useHideableNavbar.ts index 275652cff213..8ac3a6a13f14 100644 --- a/packages/docusaurus-theme-common/src/hooks/useHideableNavbar.ts +++ b/packages/docusaurus-theme-common/src/hooks/useHideableNavbar.ts @@ -34,7 +34,7 @@ export function useHideableNavbar(hideOnScroll: boolean): { } // Needed mostly for handling rubber band scrolling. - // See https://github.com/facebook/docusaurus/pull/5721 + // See https://github.com/meta/docusaurus/pull/5721 if (scrollTop < navbarHeight.current) { setIsNavbarVisible(true); return; @@ -62,7 +62,7 @@ export function useHideableNavbar(hideOnScroll: boolean): { return; } - // See https://github.com/facebook/docusaurus/pull/8059#issuecomment-1239639480 + // See https://github.com/meta/docusaurus/pull/8059#issuecomment-1239639480 const currentHash = locationChangeEvent.location.hash; const currentHashAnchor = currentHash ? document.getElementById(currentHash.substring(1)) diff --git a/packages/docusaurus-theme-common/src/hooks/useTOCHighlight.ts b/packages/docusaurus-theme-common/src/hooks/useTOCHighlight.ts index 75fead66fd1b..083c926950bb 100644 --- a/packages/docusaurus-theme-common/src/hooks/useTOCHighlight.ts +++ b/packages/docusaurus-theme-common/src/hooks/useTOCHighlight.ts @@ -75,7 +75,7 @@ function getActiveAnchor( // we consider the active anchor is the previous one. This is because the // main text appearing in the user screen mostly belong to the previous // anchor. Returns null for the first anchor, see - // https://github.com/facebook/docusaurus/issues/5318 + // https://github.com/meta/docusaurus/issues/5318 return anchors[anchors.indexOf(nextVisibleAnchor) - 1] ?? null; } // No anchor under viewport top (i.e. we are at the bottom of the page), diff --git a/packages/docusaurus-theme-common/src/hooks/useWindowSize.ts b/packages/docusaurus-theme-common/src/hooks/useWindowSize.ts index fb0e3b427c9a..3bf2569a969b 100644 --- a/packages/docusaurus-theme-common/src/hooks/useWindowSize.ts +++ b/packages/docusaurus-theme-common/src/hooks/useWindowSize.ts @@ -20,7 +20,7 @@ type WindowSize = keyof typeof windowSizes; // Note: this value is also hardcoded in Infima // Both JS and CSS must have the same value // Updating this JS value alone is not enough -// See https://github.com/facebook/docusaurus/issues/9603 +// See https://github.com/meta/docusaurus/issues/9603 const DesktopBreakpoint = 996; function getWindowSize(desktopBreakpoint: number): WindowSize { @@ -61,7 +61,7 @@ export function useWindowSize({ subscribeToWindowResize, () => getWindowSize(desktopBreakpoint), // super important to return a constant value to avoid hydration mismatch - // see https://github.com/facebook/docusaurus/issues/9379 + // see https://github.com/meta/docusaurus/issues/9379 () => windowSizes.ssr, ); } diff --git a/packages/docusaurus-theme-common/src/utils/anchorUtils.ts b/packages/docusaurus-theme-common/src/utils/anchorUtils.ts index 64c2832644ea..83fd7ba30b9b 100644 --- a/packages/docusaurus-theme-common/src/utils/anchorUtils.ts +++ b/packages/docusaurus-theme-common/src/utils/anchorUtils.ts @@ -13,7 +13,7 @@ import styles from './anchorUtils.module.css'; * we do not navigate to an anchor that will appear below the navbar. * This happens in particular for MDX headings and footnotes. * - * See https://github.com/facebook/docusaurus/issues/11232 + * See https://github.com/meta/docusaurus/issues/11232 * See also headings case https://x.com/JoshWComeau/status/1332015868725891076 */ export function useAnchorTargetClassName( diff --git a/packages/docusaurus-theme-common/src/utils/codeBlockUtils.tsx b/packages/docusaurus-theme-common/src/utils/codeBlockUtils.tsx index 223c7530aaa1..1f64ed42ec8f 100644 --- a/packages/docusaurus-theme-common/src/utils/codeBlockUtils.tsx +++ b/packages/docusaurus-theme-common/src/utils/codeBlockUtils.tsx @@ -350,7 +350,7 @@ export function parseClassNameLanguage( // Prism languages are always lowercase // We want to fail-safe and allow both "php" and "PHP" -// See https://github.com/facebook/docusaurus/issues/9012 +// See https://github.com/meta/docusaurus/issues/9012 function normalizeLanguage(language: string | undefined): string | undefined { return language?.toLowerCase(); } diff --git a/packages/docusaurus-theme-common/src/utils/emojiUtils.ts b/packages/docusaurus-theme-common/src/utils/emojiUtils.ts index 3f65e56fd8b8..24abbab64198 100644 --- a/packages/docusaurus-theme-common/src/utils/emojiUtils.ts +++ b/packages/docusaurus-theme-common/src/utils/emojiUtils.ts @@ -30,7 +30,7 @@ export function extractLeadingEmoji(input: string): { // Leading grapheme contains an emoji // Covers flags/ZWJ/skin tones, excludes digits - // See https://github.com/facebook/docusaurus/pull/12072 + // See https://github.com/meta/docusaurus/pull/12072 if (!/^\p{RGI_Emoji}$/v.test(grapheme)) { return {emoji: null, rest: input}; } diff --git a/packages/docusaurus-theme-common/src/utils/jsUtils.ts b/packages/docusaurus-theme-common/src/utils/jsUtils.ts index 740a5a8b61df..157fa11570f0 100644 --- a/packages/docusaurus-theme-common/src/utils/jsUtils.ts +++ b/packages/docusaurus-theme-common/src/utils/jsUtils.ts @@ -31,6 +31,6 @@ export function duplicates( * @returns An array with duplicate elements removed by reference comparison. */ export function uniq(arr: T[]): T[] { - // Note: had problems with [...new Set()]: https://github.com/facebook/docusaurus/issues/4972#issuecomment-863895061 + // Note: had problems with [...new Set()]: https://github.com/meta/docusaurus/issues/4972#issuecomment-863895061 return Array.from(new Set(arr)); } diff --git a/packages/docusaurus-theme-common/src/utils/routesUtils.ts b/packages/docusaurus-theme-common/src/utils/routesUtils.ts index b662ab4bf23d..84367d9a0e96 100644 --- a/packages/docusaurus-theme-common/src/utils/routesUtils.ts +++ b/packages/docusaurus-theme-common/src/utils/routesUtils.ts @@ -28,7 +28,7 @@ export function isSamePath( /** * Note that sites don't always have a homepage in practice, so we can't assume * that linking to '/' is always safe. - * @see https://github.com/facebook/docusaurus/pull/6517#issuecomment-1048709116 + * @see https://github.com/meta/docusaurus/pull/6517#issuecomment-1048709116 */ export function findHomePageRoute({ baseUrl, diff --git a/packages/docusaurus-theme-common/src/utils/scrollUtils.tsx b/packages/docusaurus-theme-common/src/utils/scrollUtils.tsx index c1a5fdd1eb76..3c3e3caf2800 100644 --- a/packages/docusaurus-theme-common/src/utils/scrollUtils.tsx +++ b/packages/docusaurus-theme-common/src/utils/scrollUtils.tsx @@ -62,7 +62,7 @@ export function ScrollControllerProvider({ * so as not to toggle Navbar/BackToTop visibility. * * This API permits to temporarily disable/ignore scroll events. Motivated by - * https://github.com/facebook/docusaurus/pull/5618 + * https://github.com/meta/docusaurus/pull/5618 */ function useScrollController(): ScrollController { const context = useContext(ScrollMonitorContext); @@ -176,7 +176,7 @@ function useScrollPositionSaver(): UseScrollPositionSaver { * the same group upper in the tree, yet to avoid a bad UX, the clicked tab must * remain under the user mouse. * - * @see https://github.com/facebook/docusaurus/pull/5618 + * @see https://github.com/meta/docusaurus/pull/5618 */ export function useScrollPositionBlocker(): { /** @@ -220,7 +220,7 @@ export function useScrollPositionBlocker(): { useLayoutEffect(() => { // Queuing permits to restore scroll position after all useLayoutEffect // have run, and yet preserve the sync nature of the scroll restoration - // See https://github.com/facebook/docusaurus/issues/8625 + // See https://github.com/meta/docusaurus/issues/8625 queueMicrotask(() => nextLayoutEffectCallbackRef.current?.()); }); diff --git a/packages/docusaurus-theme-common/src/utils/skipToContentUtils.tsx b/packages/docusaurus-theme-common/src/utils/skipToContentUtils.tsx index f7e5a02ede73..86620ed8e2f7 100644 --- a/packages/docusaurus-theme-common/src/utils/skipToContentUtils.tsx +++ b/packages/docusaurus-theme-common/src/utils/skipToContentUtils.tsx @@ -17,7 +17,7 @@ import {useLocationChange} from './useLocationChange'; * Focusing the Docusaurus Layout children is a reasonable fallback. * * __ prefix allows search crawlers (Algolia/DocSearch) to ignore anchors - * https://github.com/facebook/docusaurus/issues/8883#issuecomment-1516328368 + * https://github.com/meta/docusaurus/issues/8883#issuecomment-1516328368 */ export const SkipToContentFallbackId = '__docusaurus_skipToContent_fallback'; @@ -28,7 +28,7 @@ function getSkipToContentTarget(): HTMLElement | null { return ( // Try to focus the
in priority // Note: this will only work if JS is enabled - // See https://github.com/facebook/docusaurus/issues/6411#issuecomment-1284136069 + // See https://github.com/meta/docusaurus/issues/6411#issuecomment-1284136069 document.querySelector('main:first-of-type') ?? // Then try to focus the fallback element (usually the Layout children) document.getElementById(SkipToContentFallbackId) @@ -67,7 +67,7 @@ function useSkipToContent(): { }, []); // "Reset" focus when navigating. - // See https://github.com/facebook/docusaurus/pull/8204#issuecomment-1276547558 + // See https://github.com/meta/docusaurus/pull/8204#issuecomment-1276547558 useLocationChange(({location}) => { if (containerRef.current && !location.hash && action === 'PUSH') { programmaticFocus(containerRef.current); @@ -98,7 +98,7 @@ export function SkipToContentLink(props: SkipToContentLinkProps): ReactNode { {linkLabel} diff --git a/packages/docusaurus-theme-common/src/utils/storageUtils.ts b/packages/docusaurus-theme-common/src/utils/storageUtils.ts index 32b667854ad5..4f958180697a 100644 --- a/packages/docusaurus-theme-common/src/utils/storageUtils.ts +++ b/packages/docusaurus-theme-common/src/utils/storageUtils.ts @@ -35,7 +35,7 @@ function dispatchChangeEvent({ // If we set multiple times the same storage value, events should not be fired // The native events behave this way, so our manual event dispatch should // rather behave exactly the same. Not doing so might create infinite loops. - // See https://github.com/facebook/docusaurus/issues/8594 + // See https://github.com/meta/docusaurus/issues/8594 if (oldValue === newValue) { return; } @@ -57,7 +57,7 @@ function dispatchChangeEvent({ * Will return `null` if browser storage is unavailable (like running Docusaurus * in an iframe). This should NOT be called in SSR. * - * @see https://github.com/facebook/docusaurus/pull/4501 + * @see https://github.com/meta/docusaurus/pull/4501 */ function getBrowserStorage( storageType: StorageType = DefaultStorageType, @@ -134,7 +134,7 @@ Please only call storage APIs in effects and event handlers.`); * The API is fail-safe, since usage of browser storage should be considered * unreliable. Local storage might simply be unavailable (iframe + browser * security) or operations might fail individually. Please assume that using - * this API can be a no-op. See also https://github.com/facebook/docusaurus/issues/6036 + * this API can be a no-op. See also https://github.com/meta/docusaurus/issues/6036 */ export function createStorageSlot( keyInput: string, diff --git a/packages/docusaurus-theme-common/src/utils/tabsUtils.tsx b/packages/docusaurus-theme-common/src/utils/tabsUtils.tsx index 3f3a8dffe13a..06f0c36f25fb 100644 --- a/packages/docusaurus-theme-common/src/utils/tabsUtils.tsx +++ b/packages/docusaurus-theme-common/src/utils/tabsUtils.tsx @@ -256,7 +256,7 @@ export function useTabsContextValue(props: TabsProps): TabsContextValue { return value; })(); // Sync in a layout/sync effect is important, for useScrollPositionBlocker - // See https://github.com/facebook/docusaurus/issues/8625 + // See https://github.com/meta/docusaurus/issues/8625 useLayoutEffect(() => { if (valueToSync) { setSelectedValue(valueToSync); diff --git a/packages/docusaurus-theme-common/src/utils/useAlternatePageUtils.ts b/packages/docusaurus-theme-common/src/utils/useAlternatePageUtils.ts index fd537163f1d9..4d3052f9fe4b 100644 --- a/packages/docusaurus-theme-common/src/utils/useAlternatePageUtils.ts +++ b/packages/docusaurus-theme-common/src/utils/useAlternatePageUtils.ts @@ -42,7 +42,7 @@ export function useAlternatePageUtils(): { } = useDocusaurusContext(); // TODO using useLocation().pathname is not a super idea - // See https://github.com/facebook/docusaurus/issues/9170 + // See https://github.com/meta/docusaurus/issues/9170 const {pathname} = useLocation(); const canonicalPathname = applyTrailingSlash(pathname, { diff --git a/packages/docusaurus-theme-common/src/utils/useLocationChange.ts b/packages/docusaurus-theme-common/src/utils/useLocationChange.ts index 56708058cf28..59bf1cc398a9 100644 --- a/packages/docusaurus-theme-common/src/utils/useLocationChange.ts +++ b/packages/docusaurus-theme-common/src/utils/useLocationChange.ts @@ -13,7 +13,7 @@ import type {Location} from 'history'; /** * Fires an effect when the location changes (which includes hash, query, etc.). * Importantly, doesn't fire when there's no previous location: see - * https://github.com/facebook/docusaurus/pull/6696 + * https://github.com/meta/docusaurus/pull/6696 */ export function useLocationChange( onLocationChange: (locationChangeEvent: { diff --git a/packages/docusaurus-theme-live-codeblock/src/theme/Playground/Preview/index.tsx b/packages/docusaurus-theme-live-codeblock/src/theme/Playground/Preview/index.tsx index 67281fccbc3b..97c7390eadb2 100644 --- a/packages/docusaurus-theme-live-codeblock/src/theme/Playground/Preview/index.tsx +++ b/packages/docusaurus-theme-live-codeblock/src/theme/Playground/Preview/index.tsx @@ -23,7 +23,7 @@ function Loader() { function PlaygroundLivePreview(): ReactNode { // No SSR for the live preview - // See https://github.com/facebook/docusaurus/issues/5747 + // See https://github.com/meta/docusaurus/issues/5747 return ( }> {() => ( diff --git a/packages/docusaurus-theme-live-codeblock/src/theme/Playground/Provider/index.tsx b/packages/docusaurus-theme-live-codeblock/src/theme/Playground/Provider/index.tsx index 94be6959cc07..0c671c88f496 100644 --- a/packages/docusaurus-theme-live-codeblock/src/theme/Playground/Provider/index.tsx +++ b/packages/docusaurus-theme-live-codeblock/src/theme/Playground/Provider/index.tsx @@ -12,7 +12,7 @@ import {usePrismTheme} from '@docusaurus/theme-common'; import type {Props} from '@theme/Playground/Provider'; // this should rather be a stable function -// see https://github.com/facebook/docusaurus/issues/9630#issuecomment-1855682643 +// see https://github.com/meta/docusaurus/issues/9630#issuecomment-1855682643 const DEFAULT_TRANSFORM_CODE = (code: string) => `${code};`; function LiveProviderComponent({code, children, ...props}: Props): ReactNode { diff --git a/packages/docusaurus-theme-mermaid/README.md b/packages/docusaurus-theme-mermaid/README.md index ba03756e1f9b..abbe15c7dc63 100644 --- a/packages/docusaurus-theme-mermaid/README.md +++ b/packages/docusaurus-theme-mermaid/README.md @@ -18,4 +18,4 @@ yarn add @docusaurus/theme-mermaid $ npm swizzle @docusaurus/theme-mermaid [component name] ``` -All components used by this theme can be found [here](https://github.com/facebook/docusaurus/tree/main/packages/docusaurus-theme-mermaid/src/theme) +All components used by this theme can be found [here](https://github.com/meta/docusaurus/tree/main/packages/docusaurus-theme-mermaid/src/theme) diff --git a/packages/docusaurus-theme-search-algolia/src/client/searchPage.ts b/packages/docusaurus-theme-search-algolia/src/client/searchPage.ts index 181c79d658e9..c0bceba12109 100644 --- a/packages/docusaurus-theme-search-algolia/src/client/searchPage.ts +++ b/packages/docusaurus-theme-search-algolia/src/client/searchPage.ts @@ -32,7 +32,7 @@ export function useSearchLinkCreator(): (searchValue: string) => string { return useCallback( function createSearchLink(searchValue: string) { - // Refer to https://github.com/facebook/docusaurus/pull/2838 + // Refer to https://github.com/meta/docusaurus/pull/2838 // Note: if searchPagePath is falsy, useSearchPage() will not be called return `${baseUrl}${ searchPagePath as string diff --git a/packages/docusaurus-theme-search-algolia/src/client/utils.ts b/packages/docusaurus-theme-search-algolia/src/client/utils.ts index 3ec1336779ac..e97974531612 100644 --- a/packages/docusaurus-theme-search-algolia/src/client/utils.ts +++ b/packages/docusaurus-theme-search-algolia/src/client/utils.ts @@ -35,6 +35,6 @@ export function mergeFacetFilters( // TODO I'm pretty sure this is incorrect // see https://www.algolia.com/doc/api-reference/api-parameters/facetFilters/?client=javascript // Note: Algolia is working to provide a reliable facet merging strategy - // see https://github.com/facebook/docusaurus/pull/11327#issuecomment-3284742923 + // see https://github.com/meta/docusaurus/pull/11327#issuecomment-3284742923 return [...normalize(f1), ...normalize(f2)]; } 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 6b46c11930ad..57641058e690 100644 --- a/packages/docusaurus-theme-search-algolia/src/theme/SearchBar/index.tsx +++ b/packages/docusaurus-theme-search-algolia/src/theme/SearchBar/index.tsx @@ -315,7 +315,7 @@ export default function SearchBar(props: Partial): ReactNode { const docSearchProps: DocSearchV4Props = { ...(siteConfig.themeConfig.algolia as DocSearchV4Props), // Let props override theme config - // See https://github.com/facebook/docusaurus/pull/11581 + // See https://github.com/meta/docusaurus/pull/11581 ...props, }; diff --git a/packages/docusaurus-theme-search-algolia/src/theme/SearchPage/index.tsx b/packages/docusaurus-theme-search-algolia/src/theme/SearchPage/index.tsx index 103a6b9206d8..4d5e3178b36a 100644 --- a/packages/docusaurus-theme-search-algolia/src/theme/SearchPage/index.tsx +++ b/packages/docusaurus-theme-search-algolia/src/theme/SearchPage/index.tsx @@ -440,7 +440,7 @@ function SearchPageContent(): ReactNode { {/* We should not index search pages - See https://github.com/facebook/docusaurus/pull/3233 + See https://github.com/meta/docusaurus/pull/3233 */} diff --git a/packages/docusaurus-theme-search-algolia/src/validateThemeConfig.ts b/packages/docusaurus-theme-search-algolia/src/validateThemeConfig.ts index 546c7a104144..27b954ff0d3e 100644 --- a/packages/docusaurus-theme-search-algolia/src/validateThemeConfig.ts +++ b/packages/docusaurus-theme-search-algolia/src/validateThemeConfig.ts @@ -15,7 +15,7 @@ import type { export const DEFAULT_CONFIG = { // Enabled by default, as it makes sense in most cases - // see also https://github.com/facebook/docusaurus/issues/5880 + // see also https://github.com/meta/docusaurus/issues/5880 contextualSearch: true, searchParameters: {}, searchPagePath: 'search', diff --git a/packages/docusaurus-theme-translations/README.md b/packages/docusaurus-theme-translations/README.md index 91a6db5fe079..8caa3b03e6f8 100644 --- a/packages/docusaurus-theme-translations/README.md +++ b/packages/docusaurus-theme-translations/README.md @@ -17,4 +17,4 @@ After updating the theme code, you can "synchronize" the translations by running pnpm --filter @docusaurus/theme-translations run update ``` -Then, ask contributors to translate the newly added labels on this [issue](https://github.com/facebook/docusaurus/issues/3526) +Then, ask contributors to translate the newly added labels on this [issue](https://github.com/meta/docusaurus/issues/3526) diff --git a/packages/docusaurus-theme-translations/src/index.ts b/packages/docusaurus-theme-translations/src/index.ts index dc300a10014c..f44a2fc6cbf6 100644 --- a/packages/docusaurus-theme-translations/src/index.ts +++ b/packages/docusaurus-theme-translations/src/index.ts @@ -18,7 +18,7 @@ export function codeTranslationLocalesToTry(locale: string): string[] { const intlLocale = new Intl.Locale(locale); // If locale is just a simple language like "pt", we want to fallback to // "pt-BR" (not "pt-PT"!) - // See https://github.com/facebook/docusaurus/pull/4536#issuecomment-810088783 + // See https://github.com/meta/docusaurus/pull/4536#issuecomment-810088783 const maximizedLocale = intlLocale.maximize(); // "pt-Latn-BR" return [ // May be "zh", "zh-CN", "zh-Hans", "zh-cn", or anything: very likely to be diff --git a/packages/docusaurus-types/src/bundler.d.ts b/packages/docusaurus-types/src/bundler.d.ts index 3204afd00ca5..c0f32f820b9e 100644 --- a/packages/docusaurus-types/src/bundler.d.ts +++ b/packages/docusaurus-types/src/bundler.d.ts @@ -10,7 +10,7 @@ import type webpack from 'webpack'; // We use Webpack and Rspack interchangeably because most Rspack APIs are // compatible with Webpack. So it's ok to use Webpack types for Rspack too. // When compatibility doesn't work, use "CurrentBundler.name" -// See https://github.com/facebook/docusaurus/pull/10402 +// See https://github.com/meta/docusaurus/pull/10402 export type CurrentBundler = { name: 'webpack' | 'rspack'; instance: typeof webpack; diff --git a/packages/docusaurus-types/src/config.d.ts b/packages/docusaurus-types/src/config.d.ts index 8db7154f70cd..7a76f806333a 100644 --- a/packages/docusaurus-types/src/config.d.ts +++ b/packages/docusaurus-types/src/config.d.ts @@ -49,7 +49,7 @@ export type VscInitializeParams = { // VCS (Version Control System) config hooks to get file change info. // This lets you override and customize the default Docusaurus behavior. // This can be useful to optimize calls or when using something else than git -// See https://github.com/facebook/docusaurus/issues/11208 +// See https://github.com/meta/docusaurus/issues/11208 // See https://github.com/e18e/ecosystem-issues/issues/216 export type VcsConfig = { /** @@ -95,7 +95,7 @@ export type FutureConfig = { * entry point, and use the browser hash for routing. The Docusaurus site * content will be rendered client-side, like a regular single page * application. - * @see https://github.com/facebook/docusaurus/issues/3825 + * @see https://github.com/meta/docusaurus/issues/3825 */ experimental_router: RouterType; }; diff --git a/packages/docusaurus-types/src/markdown.d.ts b/packages/docusaurus-types/src/markdown.d.ts index 97edfc2985d1..72f895249e6b 100644 --- a/packages/docusaurus-types/src/markdown.d.ts +++ b/packages/docusaurus-types/src/markdown.d.ts @@ -140,7 +140,7 @@ export type MarkdownConfig = { * A function callback that lets users parse the front matter themselves. * Gives the opportunity to read it from a different source, or process it. * - * @see https://github.com/facebook/docusaurus/issues/5568 + * @see https://github.com/meta/docusaurus/issues/5568 */ parseFrontMatter: ParseFrontMatter; @@ -176,7 +176,7 @@ export type MarkdownConfig = { /** * Set of flags make it easier to upgrade from MDX 1 to MDX 2 - * See also https://github.com/facebook/docusaurus/issues/4029 + * See also https://github.com/meta/docusaurus/issues/4029 */ mdx1Compat: MDX1CompatOptions; diff --git a/packages/docusaurus-types/src/routing.d.ts b/packages/docusaurus-types/src/routing.d.ts index d5c89fc9aa71..3f95a7cac58e 100644 --- a/packages/docusaurus-types/src/routing.d.ts +++ b/packages/docusaurus-types/src/routing.d.ts @@ -44,7 +44,7 @@ export type RouteModules = { * * Some plugins might use this data to provide additional features. * This is the case of the sitemap plugin to provide support for "lastmod". - * See also: https://github.com/facebook/docusaurus/pull/9954 + * See also: https://github.com/meta/docusaurus/pull/9954 */ export type RouteMetadata = { /** @@ -59,7 +59,7 @@ export type RouteMetadata = { * but can also be provided through other means (usually front matter). * * This has notably been introduced for adding "lastmod" support to the - * sitemap plugin, see https://github.com/facebook/docusaurus/pull/9954 + * sitemap plugin, see https://github.com/meta/docusaurus/pull/9954 * * `undefined` means we haven't tried to compute the value for this route. * This is usually the case for routes created by third-party plugins that do @@ -172,7 +172,7 @@ export type ChunkNames = { * Chunk keys are routes with a hash, because 2 routes can conflict with each * other if they have the same path, e.g.: parent=/docs, child=/docs * - * @see https://github.com/facebook/docusaurus/issues/2917 + * @see https://github.com/meta/docusaurus/issues/2917 */ export type RouteChunkNames = { [routePathHashed: string]: ChunkNames; diff --git a/packages/docusaurus-utils-common/src/applyTrailingSlash.ts b/packages/docusaurus-utils-common/src/applyTrailingSlash.ts index 6e8b63fd4365..4460c0634b75 100644 --- a/packages/docusaurus-utils-common/src/applyTrailingSlash.ts +++ b/packages/docusaurus-utils-common/src/applyTrailingSlash.ts @@ -48,7 +48,7 @@ export default function applyTrailingSlash( // Never transform '/' to '' // Never remove the baseUrl trailing slash! // If baseUrl = /myBase/, we want to emit /myBase/index.html and not - // /myBase.html! See https://github.com/facebook/docusaurus/issues/5077 + // /myBase.html! See https://github.com/meta/docusaurus/issues/5077 const shouldNotApply = pathname === '/' || pathname === baseUrl; const newPathname = shouldNotApply diff --git a/packages/docusaurus-utils-common/src/index.ts b/packages/docusaurus-utils-common/src/index.ts index 0c4aae428147..855c706dab40 100644 --- a/packages/docusaurus-utils-common/src/index.ts +++ b/packages/docusaurus-utils-common/src/index.ts @@ -6,7 +6,7 @@ */ // __ prefix allows search crawlers (Algolia/DocSearch) to ignore anchors -// https://github.com/facebook/docusaurus/issues/8883#issuecomment-1516328368 +// https://github.com/meta/docusaurus/issues/8883#issuecomment-1516328368 export const blogPostContainerID = '__blog-post-container'; export { diff --git a/packages/docusaurus-utils-validation/src/JoiFrontMatter.ts b/packages/docusaurus-utils-validation/src/JoiFrontMatter.ts index 5de48285cc38..e590950dd034 100644 --- a/packages/docusaurus-utils-validation/src/JoiFrontMatter.ts +++ b/packages/docusaurus-utils-validation/src/JoiFrontMatter.ts @@ -25,7 +25,7 @@ const JoiFrontMatterString: Joi.Extension = { * to write "tag: '2021'". Also yaml tries to convert patterns like "2019-01-01" * to dates automatically. * - * @see https://github.com/facebook/docusaurus/issues/4642 + * @see https://github.com/meta/docusaurus/issues/4642 * @see https://github.com/sideway/joi/issues/1442#issuecomment-823997884 */ export const JoiFrontMatter = Joi.extend(JoiFrontMatterString) as typeof Joi; diff --git a/packages/docusaurus-utils/src/constants.ts b/packages/docusaurus-utils/src/constants.ts index bb5520e35fcf..e0401b24a945 100644 --- a/packages/docusaurus-utils/src/constants.ts +++ b/packages/docusaurus-utils/src/constants.ts @@ -96,7 +96,7 @@ export const DEFAULT_PLUGIN_ID = 'default'; * Overrides the default max size when the `DOCUSAURUS_ASSET_INLINE_MAX_SIZE` * env variable is set. * - * @see https://github.com/facebook/docusaurus/issues/5493 + * @see https://github.com/meta/docusaurus/issues/5493 */ export const ASSET_INLINE_MAX_SIZE: number | undefined = process.env .DOCUSAURUS_ASSET_INLINE_MAX_SIZE diff --git a/packages/docusaurus-utils/src/lastUpdateUtils.ts b/packages/docusaurus-utils/src/lastUpdateUtils.ts index 48076692df80..7a9e2dce648c 100644 --- a/packages/docusaurus-utils/src/lastUpdateUtils.ts +++ b/packages/docusaurus-utils/src/lastUpdateUtils.ts @@ -73,7 +73,7 @@ export async function readLastUpdateData( ); const getLastUpdateBy = () => getLastUpdateMemoized().then((update) => { - // Important, see https://github.com/facebook/docusaurus/pull/11211 + // Important, see https://github.com/meta/docusaurus/pull/11211 if (update === null) { return null; } @@ -81,7 +81,7 @@ export async function readLastUpdateData( }); const getLastUpdateAt = () => getLastUpdateMemoized().then((update) => { - // Important, see https://github.com/facebook/docusaurus/pull/11211 + // Important, see https://github.com/meta/docusaurus/pull/11211 if (update === null) { return null; } diff --git a/packages/docusaurus-utils/src/markdownUtils.ts b/packages/docusaurus-utils/src/markdownUtils.ts index 76f824f33ebd..3a82a52cbb6e 100644 --- a/packages/docusaurus-utils/src/markdownUtils.ts +++ b/packages/docusaurus-utils/src/markdownUtils.ts @@ -178,7 +178,7 @@ export function createExcerpt(fileString: string): string | undefined { } // Pre/postprocessing to handle MDX special chars within inline code blocks - // See https://github.com/facebook/docusaurus/pull/11821 + // See https://github.com/meta/docusaurus/pull/11821 function preprocessLine(str: string) { return ( str diff --git a/packages/docusaurus-utils/src/urlUtils.ts b/packages/docusaurus-utils/src/urlUtils.ts index 0b661ce3d6cc..4583a6994d55 100644 --- a/packages/docusaurus-utils/src/urlUtils.ts +++ b/packages/docusaurus-utils/src/urlUtils.ts @@ -314,13 +314,13 @@ export function buildHttpsUrl( /** * Whether the current URL is an SSH protocol. In addition to looking for * `ssh:`, it will also allow protocol-less URLs like - * `git@github.com:facebook/docusaurus.git`. + * `git@github.com:meta/docusaurus.git`. */ export function hasSSHProtocol(sourceRepoUrl: string): boolean { const url = URL.parse(sourceRepoUrl); if (url === null) { // Recognizes SCP-style addresses, implying SSH - // Example: git@github.com:facebook/docusaurus.git + // Example: git@github.com:meta/docusaurus.git return /^(?:[\w-]+@)?[\w.-]+:[\w./-]+/.test(sourceRepoUrl); } return url.protocol === 'ssh:'; diff --git a/packages/docusaurus-utils/src/vcs/gitUtils.ts b/packages/docusaurus-utils/src/vcs/gitUtils.ts index 447f28524d89..f257a654cda8 100644 --- a/packages/docusaurus-utils/src/vcs/gitUtils.ts +++ b/packages/docusaurus-utils/src/vcs/gitUtils.ts @@ -14,7 +14,7 @@ import logger from '@docusaurus/logger'; import {fs, pathExists} from '@docusaurus/fs'; // Quite high/conservative concurrency value (it was previously "Infinity") -// See https://github.com/facebook/docusaurus/pull/10915 +// See https://github.com/meta/docusaurus/pull/10915 const DefaultGitCommandConcurrency = os.availableParallelism() * 4; const GitCommandConcurrencyEnv = process.env.DOCUSAURUS_GIT_COMMAND_CONCURRENCY @@ -27,7 +27,7 @@ const GitCommandConcurrency = : DefaultGitCommandConcurrency; // We use a queue to avoid running too many concurrent Git commands at once -// See https://github.com/facebook/docusaurus/issues/10348 +// See https://github.com/meta/docusaurus/issues/10348 const GitCommandQueue = new PQueue({ concurrency: GitCommandConcurrency, }); @@ -130,7 +130,7 @@ export async function getFileCommitDate( } // We add a "RESULT:" prefix to make parsing easier - // See why: https://github.com/facebook/docusaurus/pull/10022 + // See why: https://github.com/meta/docusaurus/pull/10022 const resultFormat = includeAuthor ? 'RESULT:%ct,%an' : 'RESULT:%ct'; const result = await GitCommandQueue.add(() => { @@ -138,7 +138,7 @@ export async function getFileCommitDate( 'git', [ // Do not include GPG signature in the log output - // See https://github.com/facebook/docusaurus/pull/10022 + // See https://github.com/meta/docusaurus/pull/10022 '-c', 'log.showSignature=false', 'log', @@ -155,7 +155,7 @@ export async function getFileCommitDate( }); // We only parse the output line starting with our "RESULT:" prefix - // See why https://github.com/facebook/docusaurus/pull/10022 + // See why https://github.com/meta/docusaurus/pull/10022 const regex = includeAuthor ? /(?:^|\n)RESULT:(?\d+),(?.+)(?:$|\n)/ : /(?:^|\n)RESULT:(?\d+)(?:$|\n)/; @@ -387,7 +387,7 @@ export async function getGitRepositoryFilesInfo( [ '--no-pager', // Do not include GPG signature in the log output - // See https://github.com/facebook/docusaurus/pull/10022 + // See https://github.com/meta/docusaurus/pull/10022 '-c', 'log.showSignature=false', // The git command we want to run diff --git a/packages/docusaurus-utils/src/vcs/vcsGitAdHoc.ts b/packages/docusaurus-utils/src/vcs/vcsGitAdHoc.ts index 61c6e592f2d2..c5fb6a655e31 100644 --- a/packages/docusaurus-utils/src/vcs/vcsGitAdHoc.ts +++ b/packages/docusaurus-utils/src/vcs/vcsGitAdHoc.ts @@ -13,7 +13,7 @@ import type {VcsConfig} from '@docusaurus/types'; * This is the default/historical Docusaurus Git VCS implementation. * Unfortunately, it is a major bottleneck for large sites/repositories. * - * See also https://github.com/facebook/docusaurus/issues/11208 + * See also https://github.com/meta/docusaurus/issues/11208 */ export const VcsGitAdHoc: VcsConfig = { initialize: () => { diff --git a/packages/docusaurus-utils/src/webpackUtils.ts b/packages/docusaurus-utils/src/webpackUtils.ts index 71991a37f897..2407be965d9b 100644 --- a/packages/docusaurus-utils/src/webpackUtils.ts +++ b/packages/docusaurus-utils/src/webpackUtils.ts @@ -137,7 +137,7 @@ function createAssetRuleUtils({isServer}: {isServer: boolean}): AssetRuleUtils { /** * The SVG rule is isolated on purpose: our SVGR plugin enhances it - * See https://github.com/facebook/docusaurus/pull/10820 + * See https://github.com/meta/docusaurus/pull/10820 */ svgs: () => ({ test: /\.svg$/i, diff --git a/packages/docusaurus/bin/beforeCli.mjs b/packages/docusaurus/bin/beforeCli.mjs index c29cd26cf170..fb35edab21ff 100644 --- a/packages/docusaurus/bin/beforeCli.mjs +++ b/packages/docusaurus/bin/beforeCli.mjs @@ -71,13 +71,13 @@ export default async function beforeCli() { notifier.check(); } } catch (err) { - // Do not stop cli if this fails, see https://github.com/facebook/docusaurus/issues/5400 + // Do not stop cli if this fails, see https://github.com/meta/docusaurus/issues/5400 logger.error(err); } /** * We don't want to display update message for canary releases. - * See https://github.com/facebook/docusaurus/issues/5378 + * See https://github.com/meta/docusaurus/issues/5378 * @param {import('update-notifier').UpdateInfo} update */ function ignoreUpdate(update) { diff --git a/packages/docusaurus/bin/docusaurus.mjs b/packages/docusaurus/bin/docusaurus.mjs index 4ebc2a151784..e2e0c044454e 100755 --- a/packages/docusaurus/bin/docusaurus.mjs +++ b/packages/docusaurus/bin/docusaurus.mjs @@ -16,7 +16,7 @@ import beforeCli from './beforeCli.mjs'; // Env variables are initialized to dev, but can be overridden by each command // For example, "docusaurus build" overrides them to "production" -// See also https://github.com/facebook/docusaurus/issues/8599 +// See also https://github.com/meta/docusaurus/issues/8599 process.env.BABEL_ENV ??= 'development'; process.env.NODE_ENV ??= 'development'; diff --git a/packages/docusaurus/src/client/BaseUrlIssueBanner/index.tsx b/packages/docusaurus/src/client/BaseUrlIssueBanner/index.tsx index 08108957389d..638de5c0b618 100644 --- a/packages/docusaurus/src/client/BaseUrlIssueBanner/index.tsx +++ b/packages/docusaurus/src/client/BaseUrlIssueBanner/index.tsx @@ -15,7 +15,7 @@ import useDocusaurusContext from '@docusaurus/useDocusaurusContext'; import './styles.module.css'; // __ prefix allows search crawlers (Algolia/DocSearch) to ignore anchors -// https://github.com/facebook/docusaurus/issues/8883#issuecomment-1516328368 +// https://github.com/meta/docusaurus/issues/8883#issuecomment-1516328368 const BannerContainerId = '__docusaurus-base-url-issue-banner-container'; const BannerId = '__docusaurus-base-url-issue-banner'; const SuggestionContainerId = @@ -23,7 +23,7 @@ const SuggestionContainerId = // It is important to not use React to render this banner // otherwise Google would index it, even if it's hidden with some critical CSS! -// See https://github.com/facebook/docusaurus/issues/4028 +// See https://github.com/meta/docusaurus/issues/4028 // - We can't SSR (or it would be indexed) // - We can't CSR (as it means the baseurl is correct) function createInlineHtmlBanner(baseUrl: string) { @@ -93,7 +93,7 @@ function BaseUrlIssueBanner() { * * Note: it might create false positives (ie network failures): not a big deal * - * @see https://github.com/facebook/docusaurus/pull/3621 + * @see https://github.com/meta/docusaurus/pull/3621 */ export default function MaybeBaseUrlIssueBanner(): ReactNode { const { diff --git a/packages/docusaurus/src/client/SiteMetadataDefaults.tsx b/packages/docusaurus/src/client/SiteMetadataDefaults.tsx index bf89ea6e6a39..854206d16de8 100644 --- a/packages/docusaurus/src/client/SiteMetadataDefaults.tsx +++ b/packages/docusaurus/src/client/SiteMetadataDefaults.tsx @@ -22,7 +22,7 @@ export default function SiteMetadataDefaults(): ReactNode { {/* charSet + generator are handled in the html templates - See https://github.com/facebook/docusaurus/pull/7952 + See https://github.com/meta/docusaurus/pull/7952 */} diff --git a/packages/docusaurus/src/client/exports/ErrorBoundary.tsx b/packages/docusaurus/src/client/exports/ErrorBoundary.tsx index c29a33a9ca32..627b9e9af66a 100644 --- a/packages/docusaurus/src/client/exports/ErrorBoundary.tsx +++ b/packages/docusaurus/src/client/exports/ErrorBoundary.tsx @@ -49,7 +49,7 @@ export default class ErrorBoundary extends React.Component { return fallback(fallbackParams); } - // See https://github.com/facebook/docusaurus/issues/6337#issuecomment-1012913647 + // See https://github.com/meta/docusaurus/issues/6337#issuecomment-1012913647 return children ?? null; } } diff --git a/packages/docusaurus/src/client/exports/Interpolate.tsx b/packages/docusaurus/src/client/exports/Interpolate.tsx index 9abdd88e6fe8..e3a9627bf583 100644 --- a/packages/docusaurus/src/client/exports/Interpolate.tsx +++ b/packages/docusaurus/src/client/exports/Interpolate.tsx @@ -14,7 +14,7 @@ import type { /* Minimal implementation of a React interpolate component. We don't ship a markdown parser nor a feature-complete i18n library on purpose. -More details here: https://github.com/facebook/docusaurus/pull/4295 +More details here: https://github.com/meta/docusaurus/pull/4295 */ // If all the values are plain strings, then interpolate returns a simple string diff --git a/packages/docusaurus/src/client/exports/Link.tsx b/packages/docusaurus/src/client/exports/Link.tsx index e53f3b186da0..2dfa311280f7 100644 --- a/packages/docusaurus/src/client/exports/Link.tsx +++ b/packages/docusaurus/src/client/exports/Link.tsx @@ -65,7 +65,7 @@ function Link({ // pathname:// is a special "protocol" we use to tell Docusaurus link // that a link is not "internal" and that we shouldn't use history.push() // this is not ideal but a good enough escape hatch for now - // see https://github.com/facebook/docusaurus/issues/3309 + // see https://github.com/meta/docusaurus/issues/3309 // note: we want baseUrl to be appended (see issue for details) // TODO read routes and automatically detect internal/external links? const targetLinkWithoutPathnameProtocol = targetLinkUnprefixed?.replace( @@ -165,7 +165,7 @@ function Link({ // When using the hash router, we can't use the regular link for anchors // We need to use React Router to navigate to /#/pathname/#anchor // And not /#anchor - // See also https://github.com/facebook/docusaurus/pull/10311 + // See also https://github.com/meta/docusaurus/pull/10311 (isAnchorLink && router !== 'hash'); if (!noBrokenLinkCheck && (isAnchorLink || !isRegularHtmlLink)) { diff --git a/packages/docusaurus/src/client/exports/useBaseUrl.ts b/packages/docusaurus/src/client/exports/useBaseUrl.ts index 609e9c844770..8aa4dafd6087 100644 --- a/packages/docusaurus/src/client/exports/useBaseUrl.ts +++ b/packages/docusaurus/src/client/exports/useBaseUrl.ts @@ -32,7 +32,7 @@ export function addBaseUrl({ // TODO hash router + /baseUrl/ is unlikely to work well in all situations // This will support most cases, but not all - // See https://github.com/facebook/docusaurus/pull/9859 + // See https://github.com/meta/docusaurus/pull/9859 if (router === 'hash') { return url.startsWith('/') ? `.${url}` : `./${url}`; } @@ -42,7 +42,7 @@ export function addBaseUrl({ } // /baseUrl -> /baseUrl/ - // https://github.com/facebook/docusaurus/issues/6315 + // https://github.com/meta/docusaurus/issues/6315 if (url === baseUrl.replace(/\/$/, '')) { return baseUrl; } diff --git a/packages/docusaurus/src/client/hasHydratedDataAttribute.tsx b/packages/docusaurus/src/client/hasHydratedDataAttribute.tsx index 8e43f8a9edb6..fc3771079782 100644 --- a/packages/docusaurus/src/client/hasHydratedDataAttribute.tsx +++ b/packages/docusaurus/src/client/hasHydratedDataAttribute.tsx @@ -9,7 +9,7 @@ import type {ReactNode} from 'react'; import Head from '@docusaurus/Head'; import useIsBrowser from '@docusaurus/useIsBrowser'; -// See https://github.com/facebook/docusaurus/pull/9256 +// See https://github.com/meta/docusaurus/pull/9256 // Docusaurus adds a after hydration export default function HasHydratedDataAttribute(): ReactNode { const isBrowser = useIsBrowser(); diff --git a/packages/docusaurus/src/client/renderToHtml.tsx b/packages/docusaurus/src/client/renderToHtml.tsx index dcfcea16d678..de74a9dd8186 100644 --- a/packages/docusaurus/src/client/renderToHtml.tsx +++ b/packages/docusaurus/src/client/renderToHtml.tsx @@ -11,7 +11,7 @@ import {PassThrough} from 'node:stream'; import {text} from 'node:stream/consumers'; // See also https://github.com/facebook/react/issues/31134 -// See also https://github.com/facebook/docusaurus/issues/9985#issuecomment-2396367797 +// See also https://github.com/meta/docusaurus/issues/9985#issuecomment-2396367797 export async function renderToHtml(app: ReactNode): Promise { return new Promise((resolve, reject) => { const passThrough = new PassThrough(); diff --git a/packages/docusaurus/src/client/theme-fallback/Error/index.tsx b/packages/docusaurus/src/client/theme-fallback/Error/index.tsx index d898b78595b3..345ca0be6bc3 100644 --- a/packages/docusaurus/src/client/theme-fallback/Error/index.tsx +++ b/packages/docusaurus/src/client/theme-fallback/Error/index.tsx @@ -58,7 +58,7 @@ function ErrorBoundaryError({error}: {error: Error}): ReactNode { // A bit hacky: we need to add an artificial RouteContextProvider here // The goal is to be able to render the error inside the theme layout // Without this, our theme classic would crash due to lack of route context -// See also https://github.com/facebook/docusaurus/pull/9852 +// See also https://github.com/meta/docusaurus/pull/9852 function ErrorRouteContextProvider({children}: {children: ReactNode}) { return ( {children}; } diff --git a/packages/docusaurus/src/commands/build/buildLocale.ts b/packages/docusaurus/src/commands/build/buildLocale.ts index fcdce0987c30..f5a6ebd4085d 100644 --- a/packages/docusaurus/src/commands/build/buildLocale.ts +++ b/packages/docusaurus/src/commands/build/buildLocale.ts @@ -47,7 +47,7 @@ export async function buildLocale({ }: BuildLocaleParams): Promise { // Temporary workaround to unlock the ability to translate the site config // We'll remove it if a better official API can be designed - // See https://github.com/facebook/docusaurus/issues/4542 + // See https://github.com/meta/docusaurus/issues/4542 process.env.DOCUSAURUS_CURRENT_LOCALE = locale; logger.info`name=${`[${locale}]`} Creating an optimized production build...`; @@ -97,7 +97,7 @@ export async function buildLocale({ // We also clear website/build dir // returns void, no useful result needed before compilation - // See also https://github.com/facebook/docusaurus/pull/11037 + // See also https://github.com/meta/docusaurus/pull/11037 SkipBundling ? undefined : clearPath(outDir), ]), ); diff --git a/packages/docusaurus/src/commands/cli.ts b/packages/docusaurus/src/commands/cli.ts index fec96c4c8e68..e988063dea74 100755 --- a/packages/docusaurus/src/commands/cli.ts +++ b/packages/docusaurus/src/commands/cli.ts @@ -46,10 +46,10 @@ type CLIArgs = [string, string, ...string[]]; // no way to know the siteDir/config yet. // The individual CLI commands can declare/read siteDir on their own // The env variable is an escape hatch -// See https://github.com/facebook/docusaurus/issues/8903 +// See https://github.com/meta/docusaurus/issues/8903 const DEFAULT_SITE_DIR = process.env.DOCUSAURUS_CLI_SITE_DIR ?? '.'; // Similarly we give an env escape hatch for config -// See https://github.com/facebook/docusaurus/issues/8903 +// See https://github.com/meta/docusaurus/issues/8903 const DEFAULT_CONFIG = process.env.DOCUSAURUS_CLI_CONFIG ?? undefined; export async function runCLI(cliArgs: CLIArgs): Promise { diff --git a/packages/docusaurus/src/commands/deploy.ts b/packages/docusaurus/src/commands/deploy.ts index 54afd2cfa904..a7b3da9c3a31 100644 --- a/packages/docusaurus/src/commands/deploy.ts +++ b/packages/docusaurus/src/commands/deploy.ts @@ -29,7 +29,7 @@ function obfuscateGitPass(str: string) { const debugMode = !!process.env.DOCUSAURUS_DEPLOY_DEBUG; // Log executed commands so that user can figure out mistakes on his own -// for example: https://github.com/facebook/docusaurus/issues/3875 +// for example: https://github.com/meta/docusaurus/issues/3875 async function exec( file: string, args: string[], diff --git a/packages/docusaurus/src/commands/serve.ts b/packages/docusaurus/src/commands/serve.ts index 7e24948adeb2..ee09bf1a8f0f 100644 --- a/packages/docusaurus/src/commands/serve.ts +++ b/packages/docusaurus/src/commands/serve.ts @@ -73,10 +73,10 @@ export async function serve( // We do the redirect ourselves for a good reason // server-handler is annoying and won't include /baseUrl/ in redirects - // See https://github.com/facebook/docusaurus/issues/10078#issuecomment-2084932934 + // See https://github.com/meta/docusaurus/issues/10078#issuecomment-2084932934 if (baseUrl !== '/') { // Not super robust, but should be good enough for our use case - // See https://github.com/facebook/docusaurus/pull/10090 + // See https://github.com/meta/docusaurus/pull/10090 const looksLikeAsset = !!req.url.match(/\.[a-z\d]{1,4}$/i); if (!looksLikeAsset) { const normalizedUrl = applyTrailingSlash(req.url, { @@ -95,7 +95,7 @@ export async function serve( // Note server-handler is really annoying here: // - no easy way to do rewrites such as "/baseUrl/:path" => "/:path" // - no easy way to "reapply" the baseUrl to the redirect "Location" header - // See also https://github.com/facebook/docusaurus/pull/10090 + // See also https://github.com/meta/docusaurus/pull/10090 req.url = req.url.replace(baseUrl, '/'); serveHandler(req, res, { diff --git a/packages/docusaurus/src/commands/start/start.ts b/packages/docusaurus/src/commands/start/start.ts index e98579d63283..e8d3d06aebbe 100644 --- a/packages/docusaurus/src/commands/start/start.ts +++ b/packages/docusaurus/src/commands/start/start.ts @@ -31,7 +31,7 @@ async function doStart( logger.info('Starting the development server...'); // Temporary workaround to unlock the ability to translate the site config // We'll remove it if a better official API can be designed - // See https://github.com/facebook/docusaurus/issues/4542 + // See https://github.com/meta/docusaurus/issues/4542 process.env.DOCUSAURUS_CURRENT_LOCALE = cliOptions.locale; const reloadableSite = await createReloadableSite({siteDirParam, cliOptions}); diff --git a/packages/docusaurus/src/commands/start/utils.ts b/packages/docusaurus/src/commands/start/utils.ts index db755760bedc..50797683675f 100644 --- a/packages/docusaurus/src/commands/start/utils.ts +++ b/packages/docusaurus/src/commands/start/utils.ts @@ -26,7 +26,7 @@ import type {LoadedPlugin, RouterType} from '@docusaurus/types'; // This code was historically in CRA/react-dev-utils (deprecated in 2025) // We internalized it, refactored and removed useless code paths -// See https://github.com/facebook/docusaurus/pull/10956 +// See https://github.com/meta/docusaurus/pull/10956 // See https://github.com/facebook/create-react-app/blob/main/packages/react-dev-utils/WebpackDevServerUtils.js function getOpenUrlOrigin( protocol: string, diff --git a/packages/docusaurus/src/commands/start/webpack.ts b/packages/docusaurus/src/commands/start/webpack.ts index 540787da9fe3..2d6a9f5e3337 100644 --- a/packages/docusaurus/src/commands/start/webpack.ts +++ b/packages/docusaurus/src/commands/start/webpack.ts @@ -92,7 +92,7 @@ function createDevServerConfig({ devMiddleware: { publicPath: siteConfig.future.experimental_router === 'hash' ? 'auto' : baseUrl, - // Reduce log verbosity, see https://github.com/facebook/docusaurus/pull/5420#issuecomment-906613105 + // Reduce log verbosity, see https://github.com/meta/docusaurus/pull/5420#issuecomment-906613105 stats: 'summary', }, static: siteConfig.staticDirectories.map((dir) => ({ diff --git a/packages/docusaurus/src/commands/swizzle/components.ts b/packages/docusaurus/src/commands/swizzle/components.ts index 30ed943f1035..b11b924f2ef4 100644 --- a/packages/docusaurus/src/commands/swizzle/components.ts +++ b/packages/docusaurus/src/commands/swizzle/components.ts @@ -46,7 +46,7 @@ function sortComponentNames(componentNames: string[]): string[] { * Expand a list of components to include and return parent folders. * If a folder is not directly a component (no Folder/index.tsx file), * we still want to be able to swizzle --eject that folder. - * See https://github.com/facebook/docusaurus/pull/7175#issuecomment-1103757218 + * See https://github.com/meta/docusaurus/pull/7175#issuecomment-1103757218 * * @param componentNames the original list of component names */ diff --git a/packages/docusaurus/src/commands/swizzle/tables.ts b/packages/docusaurus/src/commands/swizzle/tables.ts index 73ccf077d865..592c0e848049 100644 --- a/packages/docusaurus/src/commands/swizzle/tables.ts +++ b/packages/docusaurus/src/commands/swizzle/tables.ts @@ -47,7 +47,7 @@ You will have to upgrade your component manually and maintain it over time. ${logger.green( 'Tip', )}: your customization can't be done in a ${tableStatusLabel('safe')} way? -Report it here: https://github.com/facebook/docusaurus/discussions/5468 +Report it here: https://github.com/meta/docusaurus/discussions/5468 `, ], }, diff --git a/packages/docusaurus/src/commands/utils/openBrowser/openBrowser.ts b/packages/docusaurus/src/commands/utils/openBrowser/openBrowser.ts index 84d302bbc47b..5c1329038d3f 100644 --- a/packages/docusaurus/src/commands/utils/openBrowser/openBrowser.ts +++ b/packages/docusaurus/src/commands/utils/openBrowser/openBrowser.ts @@ -7,7 +7,7 @@ // This code was initially in CRA/react-dev-utils (deprecated in 2025) // We copied and refactored it -// See https://github.com/facebook/docusaurus/pull/10956 +// See https://github.com/meta/docusaurus/pull/10956 // See https://github.com/facebook/create-react-app/blob/main/packages/react-dev-utils/openBrowser.js /* eslint-disable */ @@ -73,11 +73,11 @@ async function tryOpenWithAppleScript({ )})$"`; // Promise.try() also catches errors thrown synchronously - // See https://github.com/facebook/docusaurus/issues/11204#issuecomment-3073480330 + // See https://github.com/meta/docusaurus/issues/11204#issuecomment-3073480330 const result = await Promise.try(() => execPromise(command)).catch(() => { // Ignore all errors // In particular grep errors when macOS user has no Chromium-based browser open - // See https://github.com/facebook/docusaurus/issues/11204 + // See https://github.com/meta/docusaurus/issues/11204 }); if (!result) { return []; diff --git a/packages/docusaurus/src/commands/utils/openBrowser/openChrome.applescript b/packages/docusaurus/src/commands/utils/openBrowser/openChrome.applescript index 6d8e9a85ef54..d0e1daa23681 100644 --- a/packages/docusaurus/src/commands/utils/openBrowser/openChrome.applescript +++ b/packages/docusaurus/src/commands/utils/openBrowser/openChrome.applescript @@ -20,7 +20,7 @@ on run argv end if -- Arc: simple open + activate, no tab reuse - -- See https://github.com/facebook/docusaurus/issues/11582 + -- See https://github.com/meta/docusaurus/issues/11582 if theProgram is "Arc" then tell application "Arc" activate diff --git a/packages/docusaurus/src/common.d.ts b/packages/docusaurus/src/common.d.ts index fc5e3b750788..9bfcf57859bd 100644 --- a/packages/docusaurus/src/common.d.ts +++ b/packages/docusaurus/src/common.d.ts @@ -35,7 +35,7 @@ export type PageCollectedMetadata = { }; // This data structure must remain serializable! -// See why: https://github.com/facebook/docusaurus/pull/10826 +// See why: https://github.com/meta/docusaurus/pull/10826 export type PageCollectedMetadataInternal = PageCollectedMetadata & { internal: RouteBuildMetadataInternal; }; @@ -48,7 +48,7 @@ export type PageCollectedDataInternal = { }; // Keep this data structure as small as possible -// See https://github.com/facebook/docusaurus/pull/11162 +// See https://github.com/meta/docusaurus/pull/11162 export type PageCollectedData = { metadata: PageCollectedMetadata; links: string[]; @@ -56,7 +56,7 @@ export type PageCollectedData = { }; // Keep this data structure as small as possible -// See https://github.com/facebook/docusaurus/pull/11162 +// See https://github.com/meta/docusaurus/pull/11162 export type SiteCollectedData = { [pathname: string]: PageCollectedData; }; diff --git a/packages/docusaurus/src/server/brokenLinks.ts b/packages/docusaurus/src/server/brokenLinks.ts index 3cf0d8322c95..b1b3e8ebb11c 100644 --- a/packages/docusaurus/src/server/brokenLinks.ts +++ b/packages/docusaurus/src/server/brokenLinks.ts @@ -39,7 +39,7 @@ type CollectedLinks = { }; // We use efficient data structures for performance reasons -// See https://github.com/facebook/docusaurus/issues/9754 +// See https://github.com/meta/docusaurus/issues/9754 type CollectedLinksNormalized = Map< string, {links: Set; anchors: Set} @@ -77,7 +77,7 @@ function createBrokenLinksHelper({ const validPathnames = new Set(collectedLinks.keys()); // IMPORTANT: this is an optimization - // See https://github.com/facebook/docusaurus/issues/9754 + // See https://github.com/meta/docusaurus/issues/9754 // Matching against the route array can be expensive // If the route is already in the valid pathnames, // we can avoid matching against it @@ -107,7 +107,7 @@ function createBrokenLinksHelper({ function isPathnameMatchingAnyRoute(pathname: string): boolean { if (matchRoutes(remainingRoutes, pathname).length > 0) { // IMPORTANT: this is an optimization - // See https://github.com/facebook/docusaurus/issues/9754 + // See https://github.com/meta/docusaurus/issues/9754 // Large Docusaurus sites have many routes! // We try to minimize calls to a possibly expensive matchRoutes function validPathnames.add(pathname); @@ -136,7 +136,7 @@ function createBrokenLinksHelper({ } // Link has empty hash ("#", "/page#"...): we do not report it as broken // Empty hashes are used for various weird reasons, by us and other users... - // See for example: https://github.com/facebook/docusaurus/pull/6003 + // See for example: https://github.com/meta/docusaurus/pull/6003 if (hash === '') { return false; } @@ -145,7 +145,7 @@ function createBrokenLinksHelper({ collectedLinks.get(safeDecodeURI(pathname)) ?? // The broken link checker should not care about a trailing slash // Those are already covered by the broken pathname checker - // See https://github.com/facebook/docusaurus/issues/10116 + // See https://github.com/meta/docusaurus/issues/10116 collectedLinks.get(addTrailingSlash(pathname)) ?? collectedLinks.get(addTrailingSlash(safeDecodeURI(pathname))) ?? collectedLinks.get(removeTrailingSlash(pathname)) ?? @@ -299,7 +299,7 @@ function createBrokenPathsMessage( /** * If there's a broken link appearing very often, it is probably a broken link * on the layout. Add an additional message in such case to help user figure - * this out. See https://github.com/facebook/docusaurus/issues/3567#issuecomment-706973805 + * this out. See https://github.com/meta/docusaurus/issues/3567#issuecomment-706973805 */ function getLayoutBrokenLinksHelpMessage() { const flatList = Object.entries(brokenPathsMap).flatMap( diff --git a/packages/docusaurus/src/server/codegen/codegenRoutes.ts b/packages/docusaurus/src/server/codegen/codegenRoutes.ts index 9f6a9dc1c0d2..b2fe0f7dd729 100644 --- a/packages/docusaurus/src/server/codegen/codegenRoutes.ts +++ b/packages/docusaurus/src/server/codegen/codegenRoutes.ts @@ -221,7 +221,7 @@ ${JSON.stringify(routeConfig)}`, } // Because 2 routes with the same path could lead to hash collisions - // See https://github.com/facebook/docusaurus/issues/10718#issuecomment-2498516394 + // See https://github.com/meta/docusaurus/issues/10718#issuecomment-2498516394 function generateUniqueRouteKey(): { routeKey: string; routeHash: string; @@ -246,7 +246,7 @@ ${JSON.stringify(routeConfig)}`, throw new Error( `Docusaurus couldn't generate a unique hash for route ${routeConfig.path} (level=${level} - index=${index}). This is a bug, please report it here! -https://github.com/facebook/docusaurus/issues/10718`, +https://github.com/meta/docusaurus/issues/10718`, ); } @@ -358,7 +358,7 @@ type GenerateRouteFilesParams = { }; // The generated filename per route must be unique to avoid conflicts -// See also https://github.com/facebook/docusaurus/issues/10125 +// See also https://github.com/meta/docusaurus/issues/10125 export function generateRoutePropFilename(route: RouteConfig): string { // TODO if possible, we could try to shorten the filename by removing // the plugin routeBasePath prefix from the name diff --git a/packages/docusaurus/src/server/configValidation.ts b/packages/docusaurus/src/server/configValidation.ts index a3b264bc72da..9f0eba8d9935 100644 --- a/packages/docusaurus/src/server/configValidation.ts +++ b/packages/docusaurus/src/server/configValidation.ts @@ -84,7 +84,7 @@ const DEFAULT_MARKDOWN_HOOKS: MarkdownHooks = { const DEFAULT_MARKDOWN_CONFIG: MarkdownConfig = { // TODO Docusaurus v5: change this to "detect"? // we probably need stable CommonMark support first - // see https://github.com/facebook/docusaurus/issues/9092 + // see https://github.com/meta/docusaurus/issues/9092 format: 'mdx', mermaid: false, emoji: true, @@ -428,7 +428,7 @@ export const ConfigSchema = Joi.object< async: Joi.bool(), defer: Joi.bool(), }) - // See https://github.com/facebook/docusaurus/issues/3378 + // See https://github.com/meta/docusaurus/issues/3378 .unknown(), ) .messages({ diff --git a/packages/docusaurus/src/server/i18n.ts b/packages/docusaurus/src/server/i18n.ts index e565453d4b3d..e77b4b0b43d4 100644 --- a/packages/docusaurus/src/server/i18n.ts +++ b/packages/docusaurus/src/server/i18n.ts @@ -96,7 +96,7 @@ export function getDefaultLocaleConfig( htmlLang: htmlLang ?? locale, calendar: getDefaultCalendar(htmlLang ?? locale), // Fot the i18n/, we don't use htmlLang on purpose - // see bug https://github.com/facebook/docusaurus/issues/11952 + // see bug https://github.com/meta/docusaurus/issues/11952 path: locale, }; } catch (e) { diff --git a/packages/docusaurus/src/server/plugins/init.ts b/packages/docusaurus/src/server/plugins/init.ts index f927eeb4c3e3..3343f00acec0 100644 --- a/packages/docusaurus/src/server/plugins/init.ts +++ b/packages/docusaurus/src/server/plugins/init.ts @@ -144,7 +144,7 @@ export async function initPluginsConfigs( // Returning null has been explicitly allowed // It's a way for plugins to self-disable depending on context - // See https://github.com/facebook/docusaurus/pull/10286 + // See https://github.com/meta/docusaurus/pull/10286 if (pluginInstance === null) { return {config: normalizedPluginConfig, plugin: null}; } diff --git a/packages/docusaurus/src/server/site.ts b/packages/docusaurus/src/server/site.ts index 25d95e43c45b..a502f46de0a7 100644 --- a/packages/docusaurus/src/server/site.ts +++ b/packages/docusaurus/src/server/site.ts @@ -133,7 +133,7 @@ export async function loadContext( // The site baseUrl should be 100% decoupled from the file system output shape // We added this logic to restore v3 retro-compatibility, because by default // Docusaurus always wrote to ./build for sites having a baseUrl - // See also https://github.com/facebook/docusaurus/issues/11433 + // See also https://github.com/meta/docusaurus/issues/11433 // This logic assumes the locale baseUrl will start with the site baseUrl // which is the case if an explicit locale baseUrl is not provided // but in practice a custom locale baseUrl could be anything now diff --git a/packages/docusaurus/src/server/siteMetadata.ts b/packages/docusaurus/src/server/siteMetadata.ts index 8946a338192b..d32c03d5ceb9 100644 --- a/packages/docusaurus/src/server/siteMetadata.ts +++ b/packages/docusaurus/src/server/siteMetadata.ts @@ -78,8 +78,8 @@ export async function loadPluginVersion( /** * We want all `@docusaurus/*` packages to have the exact same version! - * @see https://github.com/facebook/docusaurus/issues/3371 - * @see https://github.com/facebook/docusaurus/pull/3386 + * @see https://github.com/meta/docusaurus/issues/3371 + * @see https://github.com/meta/docusaurus/pull/3386 */ function checkDocusaurusPackagesVersion(siteMetadata: SiteMetadata) { const {docusaurusVersion} = siteMetadata; diff --git a/packages/docusaurus/src/ssg/ssgEnv.ts b/packages/docusaurus/src/ssg/ssgEnv.ts index a3fc88ca5465..456765f71aef 100644 --- a/packages/docusaurus/src/ssg/ssgEnv.ts +++ b/packages/docusaurus/src/ssg/ssgEnv.ts @@ -28,8 +28,8 @@ export const SSGWorkerThreadTaskSize: number = process.env : 10; // TODO need fine-tuning // Controls worker thread recycling behavior (maxMemoryLimitBeforeRecycle) -// See https://github.com/facebook/docusaurus/pull/11166 -// See https://github.com/facebook/docusaurus/issues/11161 +// See https://github.com/meta/docusaurus/pull/11166 +// See https://github.com/meta/docusaurus/issues/11161 export const SSGWorkerThreadRecyclerMaxMemory: number | undefined = process.env .DOCUSAURUS_SSG_WORKER_THREAD_RECYCLER_MAX_MEMORY ? parseInt(process.env.DOCUSAURUS_SSG_WORKER_THREAD_RECYCLER_MAX_MEMORY, 10) diff --git a/packages/docusaurus/src/ssg/ssgExecutor.ts b/packages/docusaurus/src/ssg/ssgExecutor.ts index 44a1311fd350..81d4fecc7554 100644 --- a/packages/docusaurus/src/ssg/ssgExecutor.ts +++ b/packages/docusaurus/src/ssg/ssgExecutor.ts @@ -122,8 +122,8 @@ async function createSSGExecutor({ // WORKER MEMORY MANAGEMENT // Allows containing SSG memory leaks with a thread recycling workaround - // See https://github.com/facebook/docusaurus/pull/11166 - // See https://github.com/facebook/docusaurus/issues/11161 + // See https://github.com/meta/docusaurus/pull/11166 + // See https://github.com/meta/docusaurus/issues/11161 maxMemoryLimitBeforeRecycle: SSGWorkerThreadRecyclerMaxMemory, resourceLimits: { // For some reason I can't figure out how to limit memory on a worker diff --git a/packages/docusaurus/src/ssg/ssgGlobalResult.ts b/packages/docusaurus/src/ssg/ssgGlobalResult.ts index cdf671951f31..e9d42649a53e 100644 --- a/packages/docusaurus/src/ssg/ssgGlobalResult.ts +++ b/packages/docusaurus/src/ssg/ssgGlobalResult.ts @@ -19,7 +19,7 @@ export type SSGGlobalResult = { function printSSGWarnings(results: SSGSuccess[]): void { // Escape hatch because SWC is quite aggressive to report errors - // See https://github.com/facebook/docusaurus/pull/10554 + // See https://github.com/meta/docusaurus/pull/10554 // See https://github.com/swc-project/swc/discussions/9616#discussioncomment-10846201 if (process.env.DOCUSAURUS_IGNORE_SSG_WARNINGS === 'true') { return; @@ -39,7 +39,7 @@ function printSSGWarnings(results: SSGSuccess[]): void { resultsWithWarnings.length } path${resultsWithWarnings.length ? 's' : ''} This is non-critical and can be disabled with DOCUSAURUS_IGNORE_SSG_WARNINGS=true -Troubleshooting guide: https://github.com/facebook/docusaurus/discussions/10580 +Troubleshooting guide: https://github.com/meta/docusaurus/discussions/10580 - ${resultsWithWarnings .map( diff --git a/packages/docusaurus/src/ssg/ssgRenderer.ts b/packages/docusaurus/src/ssg/ssgRenderer.ts index d19b32ad9a26..a9f810373335 100644 --- a/packages/docusaurus/src/ssg/ssgRenderer.ts +++ b/packages/docusaurus/src/ssg/ssgRenderer.ts @@ -140,7 +140,7 @@ export async function loadSSGRenderer({ // Some data (modules, metadata.internal) is only useful to create the HTML file // It's not useful to aggregate that collected data in memory // Keep this data structure as small as possible -// See https://github.com/facebook/docusaurus/pull/11162 +// See https://github.com/meta/docusaurus/pull/11162 function reduceCollectedData( pageCollectedData: PageCollectedDataInternal, ): PageCollectedData { diff --git a/packages/docusaurus/src/webpack/aliases/index.ts b/packages/docusaurus/src/webpack/aliases/index.ts index e44c4cdca4fa..51665aa27882 100644 --- a/packages/docusaurus/src/webpack/aliases/index.ts +++ b/packages/docusaurus/src/webpack/aliases/index.ts @@ -29,8 +29,8 @@ const ThemeFallbackDir = path.join(__dirname, '../../client/theme-fallback'); * This ensures `@theme/NavbarItem` alias is after * `@theme/NavbarItem/LocaleDropdown`. * - * @see https://github.com/facebook/docusaurus/pull/3922 - * @see https://github.com/facebook/docusaurus/issues/5382 + * @see https://github.com/meta/docusaurus/pull/3922 + * @see https://github.com/meta/docusaurus/issues/5382 */ export function sortAliases(aliases: ThemeAliases): ThemeAliases { // Alphabetical order by default diff --git a/packages/docusaurus/src/webpack/base.ts b/packages/docusaurus/src/webpack/base.ts index 7d3aedbb2170..3267ca8cc008 100644 --- a/packages/docusaurus/src/webpack/base.ts +++ b/packages/docusaurus/src/webpack/base.ts @@ -197,7 +197,7 @@ export async function createBaseConfig({ devtool: isProd ? undefined : 'eval-cheap-module-source-map', resolve: { extensions: ['.wasm', '.mjs', '.js', '.jsx', '.ts', '.tsx', '.json'], - symlinks: true, // See https://github.com/facebook/docusaurus/issues/3272 + symlinks: true, // See https://github.com/meta/docusaurus/issues/3272 roots: [ // Allow resolution of url("/fonts/xyz.ttf") by webpack // See https://webpack.js.org/configuration/resolve/#resolveroots @@ -234,7 +234,7 @@ export async function createBaseConfig({ // - On the server, it's not useful to run it at all // - On the client, we compared assets/js before/after and see 0 change // `du -sk js-before js-after` => the JS assets have the exact same size - // See also https://github.com/facebook/docusaurus/pull/11176 + // See also https://github.com/meta/docusaurus/pull/11176 mergeDuplicateChunks: false, // Only minimize client bundle in production because server bundle is only @@ -261,7 +261,7 @@ export async function createBaseConfig({ // Only create one CSS file to avoid // problems with code-split CSS loading in different orders // causing inconsistent/non-deterministic styling - // See https://github.com/facebook/docusaurus/issues/2006 + // See https://github.com/meta/docusaurus/issues/2006 styles: { name: 'styles', type: 'css/mini-extract', @@ -279,7 +279,7 @@ export async function createBaseConfig({ // new URL('./img.png', import.meta.url) // Relative URLs are needed for SSR: absolute URLs would otherwise // be resolved against the server bundle file:// URL - // See https://github.com/facebook/docusaurus/pull/12655 + // See https://github.com/meta/docusaurus/pull/12655 url: 'relative', }, }, @@ -308,7 +308,7 @@ export async function createBaseConfig({ use: configureWebpackUtils.getStyleLoaders(isServer, { modules: { // Using the same CSS Module class pattern in dev/prod on purpose - // See https://github.com/facebook/docusaurus/pull/10423 + // See https://github.com/meta/docusaurus/pull/10423 localIdentName: `[local]_[contenthash:base64:4]`, exportOnlyLocals: isServer, // Export CSS module class names compatible with css-loader v6 diff --git a/packages/docusaurus/src/webpack/client.ts b/packages/docusaurus/src/webpack/client.ts index cb835a15d8be..34d4994e2f2d 100644 --- a/packages/docusaurus/src/webpack/client.ts +++ b/packages/docusaurus/src/webpack/client.ts @@ -94,7 +94,7 @@ export async function createStartClientConfig({ poll, }, infrastructureLogging: { - // Reduce log verbosity, see https://github.com/facebook/docusaurus/pull/5420#issuecomment-906613105 + // Reduce log verbosity, see https://github.com/meta/docusaurus/pull/5420#issuecomment-906613105 level: 'warn', }, plugins: [ diff --git a/packages/docusaurus/src/webpack/configure.ts b/packages/docusaurus/src/webpack/configure.ts index ae248e9aa740..e1781719cb14 100644 --- a/packages/docusaurus/src/webpack/configure.ts +++ b/packages/docusaurus/src/webpack/configure.ts @@ -171,7 +171,7 @@ export function executePluginsConfigureWebpack({ // Step2 - For client code, configure PostCSS // The order matters! We want to configure PostCSS on loaders // that were potentially added by configureWebpack - // See https://github.com/facebook/docusaurus/issues/10106 + // See https://github.com/meta/docusaurus/issues/10106 // Note: it's useless to configure postCSS for the server if (!isServer) { config = executePluginsConfigurePostCss({ diff --git a/packages/docusaurus/src/webpack/plugins/BundlerCPUProfilerPlugin.ts b/packages/docusaurus/src/webpack/plugins/BundlerCPUProfilerPlugin.ts index 3ec9a6017773..8a48d91c1ea1 100644 --- a/packages/docusaurus/src/webpack/plugins/BundlerCPUProfilerPlugin.ts +++ b/packages/docusaurus/src/webpack/plugins/BundlerCPUProfilerPlugin.ts @@ -12,7 +12,7 @@ import type {Compiler} from 'webpack'; // Bundle CPU profiling plugin, contributed by the Rspack team // Can be opened in https://www.speedscope.app/ // See also https://github.com/jerrykingxyz/docusaurus/pull/1 -// See also https://github.com/facebook/docusaurus/pull/10985 +// See also https://github.com/meta/docusaurus/pull/10985 export class BundlerCPUProfilerPlugin { output: string; diff --git a/packages/docusaurus/src/webpack/plugins/ChunkAssetPlugin.ts b/packages/docusaurus/src/webpack/plugins/ChunkAssetPlugin.ts index 5fd87c5e1d59..c41e391fdae0 100644 --- a/packages/docusaurus/src/webpack/plugins/ChunkAssetPlugin.ts +++ b/packages/docusaurus/src/webpack/plugins/ChunkAssetPlugin.ts @@ -12,7 +12,7 @@ import type {Compiler} from 'webpack'; // gca = Get Chunk Asset, it converts a chunkName to a JS asset URL // It is called in Core client/docusaurus.ts for chunk preloading/prefetching // Example: gca("814f3328") = "/baseUrl/assets/js/814f3328.03fcc178.js" -// See also: https://github.com/facebook/docusaurus/pull/10485 +// See also: https://github.com/meta/docusaurus/pull/10485 // The name of the custom Docusaurus Webpack runtime function const DocusaurusGetChunkAssetFn = '__webpack_require__.gca'; diff --git a/packages/docusaurus/src/webpack/plugins/StaticDirectoriesCopyPlugin.ts b/packages/docusaurus/src/webpack/plugins/StaticDirectoriesCopyPlugin.ts index 6e7e5c583a3d..62c4ac87948b 100644 --- a/packages/docusaurus/src/webpack/plugins/StaticDirectoriesCopyPlugin.ts +++ b/packages/docusaurus/src/webpack/plugins/StaticDirectoriesCopyPlugin.ts @@ -60,7 +60,7 @@ export async function createStaticDirectoriesCopyPlugin({ to: '.', info: { // Prevents Webpack from minimizing static files (js/css) - // see https://github.com/facebook/docusaurus/pull/10658 + // see https://github.com/meta/docusaurus/pull/10658 // see https://github.com/webpack-contrib/copy-webpack-plugin#skip-running-javascript-files-through-a-minimizer minimized: true, }, diff --git a/packages/docusaurus/src/webpack/server.ts b/packages/docusaurus/src/webpack/server.ts index 0feaa0e1d15e..d3c5f8eea726 100644 --- a/packages/docusaurus/src/webpack/server.ts +++ b/packages/docusaurus/src/webpack/server.ts @@ -56,9 +56,9 @@ export default async function createServerConfig({ // - On the server, it's not useful to run it at all // - On the client, it leads to a ~3% JS assets total size decrease // Let's keep it by default, but large sites may prefer faster builds - // See also https://github.com/facebook/docusaurus/pull/11176 + // See also https://github.com/meta/docusaurus/pull/11176 // Note: we don't want to enable it on the client for "docusaurus start" - // See also https://github.com/facebook/docusaurus/pull/11222 + // See also https://github.com/meta/docusaurus/pull/11222 concatenateModules: false, }, }); diff --git a/packages/stylelint-copyright/src/index.ts b/packages/stylelint-copyright/src/index.ts index fa6e333f376c..ac19b073540d 100644 --- a/packages/stylelint-copyright/src/index.ts +++ b/packages/stylelint-copyright/src/index.ts @@ -56,7 +56,7 @@ const ruleFunction: Rule = ruleFunction.ruleName = ruleName; ruleFunction.messages = messages; ruleFunction.meta = { - url: 'https://github.com/facebook/docusaurus/tree/main/packages/stylelint-copyright', + url: 'https://github.com/meta/docusaurus/tree/main/packages/stylelint-copyright', fixable: true, deprecated: false, }; diff --git a/vitest.config.ts b/vitest.config.ts index c8a03cfcf12b..3bb7b360b761 100644 --- a/vitest.config.ts +++ b/vitest.config.ts @@ -131,7 +131,7 @@ export default defineConfig({ }, }, // Default 5s timeout often fails on Windows runners. - // See https://github.com/facebook/docusaurus/pull/8259 + // See https://github.com/meta/docusaurus/pull/8259 testTimeout: 25000, include: [ // Vitest default diff --git a/website/_dogfooding/_asset-tests/badSyntax.css b/website/_dogfooding/_asset-tests/badSyntax.css index 84dbcfead3cd..5307cbb3ba4c 100644 --- a/website/_dogfooding/_asset-tests/badSyntax.css +++ b/website/_dogfooding/_asset-tests/badSyntax.css @@ -1,6 +1,6 @@ -See https://github.com/facebook/docusaurus/issues/10460 +See https://github.com/meta/docusaurus/issues/10460 Using bad JS syntax on purpose, this file shouldn't be processed and cause build errors, it should just be copied over. diff --git a/website/_dogfooding/_asset-tests/badSyntax.js b/website/_dogfooding/_asset-tests/badSyntax.js index 35e697a040a8..5072b644ea2a 100644 --- a/website/_dogfooding/_asset-tests/badSyntax.js +++ b/website/_dogfooding/_asset-tests/badSyntax.js @@ -3,6 +3,6 @@ Using bad JS syntax on purpose, this file shouldn't be processed and cause build import export with }{>< default switch - See https://github.com/facebook/docusaurus/issues/10460 + See https://github.com/meta/docusaurus/issues/10460 - See https://github.com/facebook/docusaurus/pull/10658 + See https://github.com/meta/docusaurus/pull/10658 diff --git a/website/_dogfooding/_asset-tests/dogfooding/javadoc/index.html b/website/_dogfooding/_asset-tests/dogfooding/javadoc/index.html index 26d0bad01923..b18b5de66faa 100644 --- a/website/_dogfooding/_asset-tests/dogfooding/javadoc/index.html +++ b/website/_dogfooding/_asset-tests/dogfooding/javadoc/index.html @@ -1,6 +1,6 @@ static HTML file used for testing we should be able to link to it with a - markdown link see also https://github.com/facebook/docusaurus/issues/3309 + markdown link see also https://github.com/meta/docusaurus/issues/3309 diff --git a/website/_dogfooding/_blog tests/2021-09-13-dup-title.mdx b/website/_dogfooding/_blog tests/2021-09-13-dup-title.mdx index 71151677dba0..36b5a1224845 100644 --- a/website/_dogfooding/_blog tests/2021-09-13-dup-title.mdx +++ b/website/_dogfooding/_blog tests/2021-09-13-dup-title.mdx @@ -12,4 +12,4 @@ authors: # Post with duplicate title -See https://github.com/facebook/docusaurus/issues/6059. This one and [2021-11-13-dup-title.md](./2021-11-13-dup-title.mdx) should both show up. +See https://github.com/meta/docusaurus/issues/6059. This one and [2021-11-13-dup-title.md](./2021-11-13-dup-title.mdx) should both show up. diff --git a/website/_dogfooding/_blog tests/2023-07-19-a.mdx b/website/_dogfooding/_blog tests/2023-07-19-a.mdx index 16cdfd88d675..db908f04c6a8 100644 --- a/website/_dogfooding/_blog tests/2023-07-19-a.mdx +++ b/website/_dogfooding/_blog tests/2023-07-19-a.mdx @@ -2,7 +2,7 @@ title: 'Test if href in feed resolved correctly' --- -[absolute full url](https://github.com/facebook/docusaurus) +[absolute full url](https://github.com/meta/docusaurus) [absolute url with implicit domain name](/tests/blog/2023/07/19/b) diff --git a/website/_dogfooding/_docs tests/beginner's guide.mdx b/website/_dogfooding/_docs tests/beginner's guide.mdx index ea7a8796f38d..642b4cb9c4fc 100644 --- a/website/_dogfooding/_docs tests/beginner's guide.mdx +++ b/website/_dogfooding/_docs tests/beginner's guide.mdx @@ -1,3 +1,3 @@ # Beginner's guide -[#9160](https://github.com/facebook/docusaurus/pull/9160) +[#9160](https://github.com/meta/docusaurus/pull/9160) diff --git a/website/_dogfooding/_docs tests/tests/admonitions.mdx b/website/_dogfooding/_docs tests/tests/admonitions.mdx index 94aeaa9b3dc7..937eac0b2e7e 100644 --- a/website/_dogfooding/_docs tests/tests/admonitions.mdx +++ b/website/_dogfooding/_docs tests/tests/admonitions.mdx @@ -163,7 +163,7 @@ Multiple classes and ids: `{.shadow #info-4 .blue #info-3}`. ## Indented admonitions -See admonition title v2 compat syntax bug: https://github.com/facebook/docusaurus/issues/9507 +See admonition title v2 compat syntax bug: https://github.com/meta/docusaurus/issues/9507 1. Item 1 diff --git "a/website/_dogfooding/_docs tests/tests/ascii/folder/\303\246\303\270\303\245.mdx" "b/website/_dogfooding/_docs tests/tests/ascii/folder/\303\246\303\270\303\245.mdx" index a74dbb5279d4..a16368784a05 100644 --- "a/website/_dogfooding/_docs tests/tests/ascii/folder/\303\246\303\270\303\245.mdx" +++ "b/website/_dogfooding/_docs tests/tests/ascii/folder/\303\246\303\270\303\245.mdx" @@ -1 +1 @@ -Dogfood test for https://github.com/facebook/docusaurus/pull/8137 +Dogfood test for https://github.com/meta/docusaurus/pull/8137 diff --git "a/website/_dogfooding/_docs tests/tests/ascii/\303\246\303\270\303\245/index.mdx" "b/website/_dogfooding/_docs tests/tests/ascii/\303\246\303\270\303\245/index.mdx" index a74dbb5279d4..a16368784a05 100644 --- "a/website/_dogfooding/_docs tests/tests/ascii/\303\246\303\270\303\245/index.mdx" +++ "b/website/_dogfooding/_docs tests/tests/ascii/\303\246\303\270\303\245/index.mdx" @@ -1 +1 @@ -Dogfood test for https://github.com/facebook/docusaurus/pull/8137 +Dogfood test for https://github.com/meta/docusaurus/pull/8137 diff --git a/website/_dogfooding/_docs tests/tests/import-bad-package.mdx b/website/_dogfooding/_docs tests/tests/import-bad-package.mdx index 45681f4b0d95..1c0b4423f28f 100644 --- a/website/_dogfooding/_docs tests/tests/import-bad-package.mdx +++ b/website/_dogfooding/_docs tests/tests/import-bad-package.mdx @@ -4,7 +4,7 @@ We are importing MDX content from a file that is in a package that has a bad Rea This is expected to work despite the bad version. -See https://github.com/facebook/docusaurus/issues/9027 +See https://github.com/meta/docusaurus/issues/9027 --- diff --git a/website/_dogfooding/_docs tests/tests/links/resolution/index.mdx b/website/_dogfooding/_docs tests/tests/links/resolution/index.mdx index 7b842a7c0277..b700e7282229 100644 --- a/website/_dogfooding/_docs tests/tests/links/resolution/index.mdx +++ b/website/_dogfooding/_docs tests/tests/links/resolution/index.mdx @@ -1,6 +1,6 @@ # Link resolution tests -## Test for issue [#11099](https://github.com/facebook/docusaurus/issues/11099) +## Test for issue [#11099](https://github.com/meta/docusaurus/issues/11099) These links should target the root `index.mdx` file: diff --git a/website/_dogfooding/_docs tests/tests/links/test-markdown-links.mdx b/website/_dogfooding/_docs tests/tests/links/test-markdown-links.mdx index 3e3d03d7e217..23973b64570c 100644 --- a/website/_dogfooding/_docs tests/tests/links/test-markdown-links.mdx +++ b/website/_dogfooding/_docs tests/tests/links/test-markdown-links.mdx @@ -2,7 +2,7 @@ These are dogfood tests showing that Markdown links with md/mdx file references are resolved correctly. -Also proves that [#9048](https://github.com/facebook/docusaurus/issues/9048) linking bugs are solved. +Also proves that [#9048](https://github.com/meta/docusaurus/issues/9048) linking bugs are solved. --- @@ -22,9 +22,9 @@ Also proves that [#9048](https://github.com/facebook/docusaurus/issues/9048) lin ## Complex resolvable links -Some of those are edge cases reported in [#9048](https://github.com/facebook/docusaurus/issues/9048) +Some of those are edge cases reported in [#9048](https://github.com/meta/docusaurus/issues/9048) -{/* prettier-ignore */}```inline triple backticks code block, see https://github.com/facebook/docusaurus/issues/9048#issuecomment-1959199829``` +{/* prettier-ignore */}```inline triple backticks code block, see https://github.com/meta/docusaurus/issues/9048#issuecomment-1959199829```

[./target.mdx](./target.mdx) bolded @@ -45,7 +45,7 @@ lines ## Unresolvable links -[https://github.com/facebook/docusaurus/blob/main/README.md](https://github.com/facebook/docusaurus/blob/main/README.md) +[https://github.com/meta/docusaurus/blob/main/README.md](https://github.com/meta/docusaurus/blob/main/README.md) [ftp:///README.mdx](ftp:///README.mdx) diff --git a/website/_dogfooding/_docs tests/tests/sidebar-frontmatter/dir-with-unique-index/index.mdx b/website/_dogfooding/_docs tests/tests/sidebar-frontmatter/dir-with-unique-index/index.mdx index 5e9c4563c1b5..1adbf1df1607 100644 --- a/website/_dogfooding/_docs tests/tests/sidebar-frontmatter/dir-with-unique-index/index.mdx +++ b/website/_dogfooding/_docs tests/tests/sidebar-frontmatter/dir-with-unique-index/index.mdx @@ -11,4 +11,4 @@ sidebar_custom_props: This doc has `sidebar_class_*` front matter -Dogfood test for bug https://github.com/facebook/docusaurus/issues/11258 +Dogfood test for bug https://github.com/meta/docusaurus/issues/11258 diff --git a/website/_dogfooding/_docs tests/tests/toc-partials/index.mdx b/website/_dogfooding/_docs tests/tests/toc-partials/index.mdx index 8e608d78ed16..4e0da7209dd9 100644 --- a/website/_dogfooding/_docs tests/tests/toc-partials/index.mdx +++ b/website/_dogfooding/_docs tests/tests/toc-partials/index.mdx @@ -6,8 +6,8 @@ This page tests that MDX-imported content appears correctly in the table-of-cont See also: -- https://github.com/facebook/docusaurus/issues/3915 -- https://github.com/facebook/docusaurus/pull/9684 +- https://github.com/meta/docusaurus/issues/3915 +- https://github.com/meta/docusaurus/pull/9684 --- diff --git a/website/_dogfooding/_pages tests/analytics.tsx b/website/_dogfooding/_pages tests/analytics.tsx index 54a0632ff58d..1c18f6254ad1 100644 --- a/website/_dogfooding/_pages tests/analytics.tsx +++ b/website/_dogfooding/_pages tests/analytics.tsx @@ -9,7 +9,7 @@ import type {ReactNode} from 'react'; import Layout from '@theme/Layout'; import Heading from '@theme/Heading'; -// See https://github.com/facebook/docusaurus/issues/6337#issuecomment-1012913647 +// See https://github.com/meta/docusaurus/issues/6337#issuecomment-1012913647 export default function Analytics(): ReactNode { return ( diff --git a/website/_dogfooding/_pages tests/code-block-tests.mdx b/website/_dogfooding/_pages tests/code-block-tests.mdx index 1848b56493d6..8812fa048fe3 100644 --- a/website/_dogfooding/_pages tests/code-block-tests.mdx +++ b/website/_dogfooding/_pages tests/code-block-tests.mdx @@ -23,9 +23,9 @@ class HelloWorld { See: -- https://github.com/facebook/docusaurus/pull/1584 -- https://github.com/facebook/docusaurus/pull/3749 -- https://github.com/facebook/docusaurus/pull/6177 +- https://github.com/meta/docusaurus/pull/1584 +- https://github.com/meta/docusaurus/pull/3749 +- https://github.com/meta/docusaurus/pull/6177 ## Code block prism language tests @@ -60,7 +60,7 @@ echo "Sum: ",$z; See: -- https://github.com/facebook/docusaurus/pull/9183 +- https://github.com/meta/docusaurus/pull/9183 ## `pre` @@ -497,7 +497,7 @@ let main _ = ## HTML - script + style highlighting -See https://github.com/facebook/docusaurus/issues/9517 +See https://github.com/meta/docusaurus/issues/9517 ```html diff --git a/website/_dogfooding/_pages tests/diagrams.mdx b/website/_dogfooding/_pages tests/diagrams.mdx index 2a50e24bf6fa..be27ccab9d24 100644 --- a/website/_dogfooding/_pages tests/diagrams.mdx +++ b/website/_dogfooding/_pages tests/diagrams.mdx @@ -432,7 +432,7 @@ quadrantChart ## Architecture Diagram - See https://mermaid.js.org/syntax/architecture -- See https://github.com/facebook/docusaurus/discussions/10508 +- See https://github.com/meta/docusaurus/discussions/10508 ```mermaid architecture-beta diff --git a/website/_dogfooding/_pages tests/embeds.tsx b/website/_dogfooding/_pages tests/embeds.tsx index e5c982a68c9d..7df8ce908cc1 100644 --- a/website/_dogfooding/_pages tests/embeds.tsx +++ b/website/_dogfooding/_pages tests/embeds.tsx @@ -11,7 +11,7 @@ import Heading from '@theme/Heading'; import IframeWindow from '@site/src/components/BrowserWindow/IframeWindow'; import PagePartial from './_pagePartial.mdx'; -// See https://github.com/facebook/docusaurus/issues/8672 +// See https://github.com/meta/docusaurus/issues/8672 export default function Embeds(): ReactNode { return ( diff --git a/website/_dogfooding/_pages tests/history-tests.tsx b/website/_dogfooding/_pages tests/history-tests.tsx index 7cb8ebfd7248..9f052a6c5d7c 100644 --- a/website/_dogfooding/_pages tests/history-tests.tsx +++ b/website/_dogfooding/_pages tests/history-tests.tsx @@ -9,7 +9,7 @@ import {useHistory} from '@docusaurus/router'; import Layout from '@theme/Layout'; import Heading from '@theme/Heading'; -// Test for https://github.com/facebook/docusaurus/issues/10988 +// Test for https://github.com/meta/docusaurus/issues/10988 function BlockNavigation() { const history = useHistory(); useEffect(() => { diff --git a/website/_dogfooding/_pages tests/hydration-tests.tsx b/website/_dogfooding/_pages tests/hydration-tests.tsx index debfb291bd38..dd6f2ee8ecad 100644 --- a/website/_dogfooding/_pages tests/hydration-tests.tsx +++ b/website/_dogfooding/_pages tests/hydration-tests.tsx @@ -9,7 +9,7 @@ import type {ReactNode} from 'react'; import Link from '@docusaurus/Link'; import Layout from '@theme/Layout'; -// Repro for hydration issue https://github.com/facebook/docusaurus/issues/5617 +// Repro for hydration issue https://github.com/meta/docusaurus/issues/5617 function BuggyText() { return ( diff --git a/website/_dogfooding/_pages tests/layout-no-children.tsx b/website/_dogfooding/_pages tests/layout-no-children.tsx index d359f8e395d6..3b34f6561b37 100644 --- a/website/_dogfooding/_pages tests/layout-no-children.tsx +++ b/website/_dogfooding/_pages tests/layout-no-children.tsx @@ -8,7 +8,7 @@ import type {ReactNode} from 'react'; import Layout from '@theme/Layout'; -// See https://github.com/facebook/docusaurus/issues/6337#issuecomment-1012913647 +// See https://github.com/meta/docusaurus/issues/6337#issuecomment-1012913647 export default function LayoutNoChildren(): ReactNode { return ; } diff --git a/website/_dogfooding/_pages tests/markdown-tests-md.md b/website/_dogfooding/_pages tests/markdown-tests-md.md index f88ba6f2ecea..1f09421176ce 100644 --- a/website/_dogfooding/_pages tests/markdown-tests-md.md +++ b/website/_dogfooding/_pages tests/markdown-tests-md.md @@ -24,7 +24,7 @@ This file should be interpreted in a more CommonMark compliant way :::danger -TODO unsupported (yet), see [issue](https://github.com/facebook/docusaurus/issues/9092) +TODO unsupported (yet), see [issue](https://github.com/meta/docusaurus/issues/9092) ::: @@ -97,7 +97,7 @@ Our custom Details/Summary also works in CommonMark mode :::danger -TODO unsupported (yet), see [issue](https://github.com/facebook/docusaurus/issues/9092) +TODO unsupported (yet), see [issue](https://github.com/meta/docusaurus/issues/9092) ::: @@ -156,7 +156,7 @@ function Clock(props) { :::danger -TODO unsupported (yet), see [issue](https://github.com/facebook/docusaurus/issues/9092) +TODO unsupported (yet), see [issue](https://github.com/meta/docusaurus/issues/9092) ::: diff --git a/website/_dogfooding/_pages tests/markdown-tests-mdx.mdx b/website/_dogfooding/_pages tests/markdown-tests-mdx.mdx index 68956769d8cb..358afd0731ba 100644 --- a/website/_dogfooding/_pages tests/markdown-tests-mdx.mdx +++ b/website/_dogfooding/_pages tests/markdown-tests-mdx.mdx @@ -348,7 +348,7 @@ This is a test page to see if Docusaurus Markdown features are working properly ### Linking to assets -See [#3337](https://github.com/facebook/docusaurus/issues/3337) +See [#3337](https://github.com/meta/docusaurus/issues/3337) - [/someFile.pdf](/someFile.pdf) - [/someFile.xyz](/someFile.xyz) @@ -359,7 +359,7 @@ See [#3337](https://github.com/facebook/docusaurus/issues/3337) ### Linking to non-SPA page hosted within website -See [#3309](https://github.com/facebook/docusaurus/issues/3309) +See [#3309](https://github.com/meta/docusaurus/issues/3309) - [pathname:///dogfooding/javadoc](pathname:///dogfooding/javadoc) - [pathname:///dogfooding/javadoc/index.html](pathname:///dogfooding/javadoc/index.html) @@ -374,7 +374,7 @@ See [#3309](https://github.com/facebook/docusaurus/issues/3309) ### Linking to non-SPA page with Link component -See [#9758](https://github.com/facebook/docusaurus/issues/9758), these external urls should not be reported by the broken links checker: +See [#9758](https://github.com/meta/docusaurus/issues/9758), these external urls should not be reported by the broken links checker: ```mdx-code-block import Link from '@docusaurus/Link'; diff --git a/website/_dogfooding/_pages tests/style-isolation/index.tsx b/website/_dogfooding/_pages tests/style-isolation/index.tsx index 24ee20e907e9..15324c104b26 100644 --- a/website/_dogfooding/_pages tests/style-isolation/index.tsx +++ b/website/_dogfooding/_pages tests/style-isolation/index.tsx @@ -160,7 +160,7 @@ export default function StyleIsolation(): ReactNode { styles. A workaround for{' '} + href="https://github.com/meta/docusaurus/issues/6032"> this issue . diff --git a/website/_dogfooding/_pages tests/svg/index.mdx b/website/_dogfooding/_pages tests/svg/index.mdx index 5c3417fc2ac7..33f3e7f0aaa8 100644 --- a/website/_dogfooding/_pages tests/svg/index.mdx +++ b/website/_dogfooding/_pages tests/svg/index.mdx @@ -6,7 +6,7 @@ import GradientB from './_fixtures/b/gradient.svg'; # Many inline SVGs -Inline SVGs imported as React components share the same HTML document. Their ids (gradients, masks, clip paths...) must not clash with each other. See [#8297](https://github.com/facebook/docusaurus/issues/8297). +Inline SVGs imported as React components share the same HTML document. Their ids (gradients, masks, clip paths...) must not clash with each other. See [#8297](https://github.com/meta/docusaurus/issues/8297). Each inline SVG below must look like the `` reference rendering of the same file. diff --git a/website/_dogfooding/docs-tests-sidebars.js b/website/_dogfooding/docs-tests-sidebars.js index da20f4e6a9b7..8b43d0d1ee28 100644 --- a/website/_dogfooding/docs-tests-sidebars.js +++ b/website/_dogfooding/docs-tests-sidebars.js @@ -119,7 +119,7 @@ const sidebars = { { type: 'link', label: 'External link absolute', - href: 'https://github.com/facebook/docusaurus', + href: 'https://github.com/meta/docusaurus', }, { type: 'link', diff --git a/website/_dogfooding/dogfooding.config.ts b/website/_dogfooding/dogfooding.config.ts index 09f7cfa34402..5fe402d7bdd9 100644 --- a/website/_dogfooding/dogfooding.config.ts +++ b/website/_dogfooding/dogfooding.config.ts @@ -15,7 +15,7 @@ import type {Options as PageOptions} from '@docusaurus/plugin-content-pages'; // By default, we don't want to run "git log" commands on i18n sites // This makes localized sites build much slower on Netlify -// See also https://github.com/facebook/docusaurus/issues/11208 +// See also https://github.com/meta/docusaurus/issues/11208 // TODO duplicated :/ const showLastUpdate = process.env.DOCUSAURUS_CURRENT_LOCALE === 'en'; @@ -44,7 +44,7 @@ export const dogfoodingPluginInstances: PluginConfig[] = [ id: 'docs-tests', routeBasePath: '/tests/docs', sidebarPath: '_dogfooding/docs-tests-sidebars.js', - editUrl: 'https://github.com/facebook/docusaurus/edit/main/website/', + editUrl: 'https://github.com/meta/docusaurus/edit/main/website/', versions: { current: { noIndex: !isArgosBuild, @@ -60,7 +60,7 @@ export const dogfoodingPluginInstances: PluginConfig[] = [ ], ], - // Using a _ prefix to test against an edge case regarding MDX partials: https://github.com/facebook/docusaurus/discussions/5181#discussioncomment-1018079 + // Using a _ prefix to test against an edge case regarding MDX partials: https://github.com/meta/docusaurus/discussions/5181#discussioncomment-1018079 path: '_dogfooding/_docs tests', showLastUpdateTime: showLastUpdate, showLastUpdateAuthor: showLastUpdate, @@ -88,7 +88,7 @@ export const dogfoodingPluginInstances: PluginConfig[] = [ id: 'blog-tests', path: '_dogfooding/_blog tests', routeBasePath: '/tests/blog', - editUrl: 'https://github.com/facebook/docusaurus/edit/main/website/', + editUrl: 'https://github.com/meta/docusaurus/edit/main/website/', postsPerPage: 3, blogSidebarCount: 'ALL', feedOptions: { @@ -124,7 +124,7 @@ export const dogfoodingPluginInstances: PluginConfig[] = [ showLastUpdateTime: showLastUpdate, showLastUpdateAuthor: showLastUpdate, editUrl: ({pagesPath}) => - `https://github.com/facebook/docusaurus/edit/main/website/_dogfooding/_pages tests/${pagesPath}`, + `https://github.com/meta/docusaurus/edit/main/website/_dogfooding/_pages tests/${pagesPath}`, } satisfies PageOptions, ], diff --git a/website/_dogfooding/migrateStorageNamespace.ts b/website/_dogfooding/migrateStorageNamespace.ts index b0d7d81e13e1..450c96892b9d 100644 --- a/website/_dogfooding/migrateStorageNamespace.ts +++ b/website/_dogfooding/migrateStorageNamespace.ts @@ -8,7 +8,7 @@ import ExecutionEnvironment from '@docusaurus/ExecutionEnvironment'; import SiteStorage from '@generated/site-storage'; // The purpose is to test a migration script for storage namespacing -// See also: https://github.com/facebook/docusaurus/pull/10121 +// See also: https://github.com/meta/docusaurus/pull/10121 if (ExecutionEnvironment.canUseDOM) { const migrateStorageKey = (key: string) => { diff --git a/website/community/4-canary.mdx b/website/community/4-canary.mdx index 9c7051188f90..f9ebd8f50219 100644 --- a/website/community/4-canary.mdx +++ b/website/community/4-canary.mdx @@ -118,7 +118,7 @@ To ensure the most recent canary release can install successfully, try the follo ```bash # npm # if it doesn't work, try "npm_config_min_release_age=0" -# see https://github.com/facebook/docusaurus/pull/12437 +# see https://github.com/meta/docusaurus/pull/12437 npm_config_min_release_age_exclude='create-docusaurus,@docusaurus/*' # pnpm diff --git a/website/community/5-release-process.mdx b/website/community/5-release-process.mdx index 95d5d13ffd29..377165731e9a 100644 --- a/website/community/5-release-process.mdx +++ b/website/community/5-release-process.mdx @@ -169,7 +169,7 @@ This system also implicitly creates a very large API surface. To be able to move You may not be able to achieve your site customization through this public API. -In this case, please [report your customization use case](https://github.com/facebook/docusaurus/discussions/5468) and we will figure out how to expand our public API. +In this case, please [report your customization use case](https://github.com/meta/docusaurus/discussions/5468) and we will figure out how to expand our public API. ::: diff --git a/website/docs/api/docusaurus.config.js.mdx b/website/docs/api/docusaurus.config.js.mdx index 91ed098909fe..f2bac77d2ee2 100644 --- a/website/docs/api/docusaurus.config.js.mdx +++ b/website/docs/api/docusaurus.config.js.mdx @@ -20,7 +20,7 @@ Refer to the Getting Started [**Configuration**](../configuration.mdx) for examp :::note -With a [TypeScript](../typescript-support.mdx) Docusaurus codebase your config file may be called `docusaurus.config.ts`. The syntax is broadly identical to the `js` config file with the addition of types. You can see an example on the [Docusaurus Website](https://github.com/facebook/docusaurus/blob/main/website/docusaurus.config.ts) itself. +With a [TypeScript](../typescript-support.mdx) Docusaurus codebase your config file may be called `docusaurus.config.ts`. The syntax is broadly identical to the `js` config file with the addition of types. You can see an example on the [Docusaurus Website](https://github.com/meta/docusaurus/blob/main/website/docusaurus.config.ts) itself. ::: @@ -342,7 +342,7 @@ export default { }; ``` -- `experimental_router`: The router type to use. Possible values are `browser` and `hash`. Defaults to `browser`. The `hash` router is only useful for rare cases where you want to opt-out of static site generation, have a fully client-side app with a single `index.html` entrypoint file. This can be useful to distribute a Docusaurus site as a `.zip` archive that you can [browse locally without running a web server](https://github.com/facebook/docusaurus/issues/3825). +- `experimental_router`: The router type to use. Possible values are `browser` and `hash`. Defaults to `browser`. The `hash` router is only useful for rare cases where you want to opt-out of static site generation, have a fully client-side app with a single `index.html` entrypoint file. This can be useful to distribute a Docusaurus site as a `.zip` archive that you can [browse locally without running a web server](https://github.com/meta/docusaurus/issues/3825). ### `webpack` {/* #webpack */} diff --git a/website/docs/api/plugin-methods/lifecycle-apis.mdx b/website/docs/api/plugin-methods/lifecycle-apis.mdx index 04ad27711342..048825229323 100644 --- a/website/docs/api/plugin-methods/lifecycle-apis.mdx +++ b/website/docs/api/plugin-methods/lifecycle-apis.mdx @@ -98,7 +98,7 @@ export type RouteConfig = { * * Some plugins might use this data to provide additional features. * This is the case of the sitemap plugin to provide support for "lastmod". - * See also: https://github.com/facebook/docusaurus/pull/9954 + * See also: https://github.com/meta/docusaurus/pull/9954 */ export type RouteMetadata = { /** @@ -113,7 +113,7 @@ export type RouteMetadata = { * but can also be provided through other means (usually front matter) * * This has notably been introduced for adding "lastmod" support to the - * sitemap plugin, see https://github.com/facebook/docusaurus/pull/9954 + * sitemap plugin, see https://github.com/meta/docusaurus/pull/9954 */ lastUpdatedAt?: number; }; diff --git a/website/docs/api/plugins/plugin-content-blog.mdx b/website/docs/api/plugins/plugin-content-blog.mdx index b8a325d969ed..b44fba154638 100644 --- a/website/docs/api/plugins/plugin-content-blog.mdx +++ b/website/docs/api/plugins/plugin-content-blog.mdx @@ -187,10 +187,10 @@ Most Docusaurus users configure this plugin through the preset options. const config = { path: 'blog', // Simple use-case: string editUrl - // editUrl: 'https://github.com/facebook/docusaurus/edit/main/website/', + // editUrl: 'https://github.com/meta/docusaurus/edit/main/website/', // Advanced use-case: functional editUrl editUrl: ({locale, blogDirPath, blogPath, permalink}) => - `https://github.com/facebook/docusaurus/edit/main/website/${blogDirPath}/${blogPath}`, + `https://github.com/meta/docusaurus/edit/main/website/${blogDirPath}/${blogPath}`, editLocalizedFiles: false, blogTitle: 'Blog title', blogDescription: 'Blog', diff --git a/website/docs/api/plugins/plugin-content-docs.mdx b/website/docs/api/plugins/plugin-content-docs.mdx index aeb89775a633..d948bc1cfe1e 100644 --- a/website/docs/api/plugins/plugin-content-docs.mdx +++ b/website/docs/api/plugins/plugin-content-docs.mdx @@ -186,10 +186,10 @@ const config = { path: 'docs', breadcrumbs: true, // Simple use-case: string editUrl - // editUrl: 'https://github.com/facebook/docusaurus/edit/main/website/', + // editUrl: 'https://github.com/meta/docusaurus/edit/main/website/', // Advanced use-case: functional editUrl editUrl: ({versionDocsDirPath, docPath}) => - `https://github.com/facebook/docusaurus/edit/main/website/${versionDocsDirPath}/${docPath}`, + `https://github.com/meta/docusaurus/edit/main/website/${versionDocsDirPath}/${docPath}`, editLocalizedFiles: false, editCurrentVersion: false, routeBasePath: 'docs', @@ -321,7 +321,7 @@ hide_table_of_contents: false sidebar_label: Markdown sidebar_position: 3 pagination_label: Markdown features -custom_edit_url: https://github.com/facebook/docusaurus/edit/main/docs/api-doc-markdown.md +custom_edit_url: https://github.com/meta/docusaurus/edit/main/docs/api-doc-markdown.md description: How do I find you when I cannot solve this problem keywords: - docs diff --git a/website/docs/api/plugins/plugin-css-cascade-layers.mdx b/website/docs/api/plugins/plugin-css-cascade-layers.mdx index ab52792abcdb..3165bdb5e9b7 100644 --- a/website/docs/api/plugins/plugin-css-cascade-layers.mdx +++ b/website/docs/api/plugins/plugin-css-cascade-layers.mdx @@ -9,7 +9,7 @@ import APITable from '@site/src/components/APITable'; :::warning Experimental -This plugin is mostly designed to be used internally by the classic preset, although it can also be used as a standalone plugin. Please [let us know here](https://github.com/facebook/docusaurus/pull/11142) if you have a use case for it and help us design an API that makes sense for the future of Docusaurus. +This plugin is mostly designed to be used internally by the classic preset, although it can also be used as a standalone plugin. Please [let us know here](https://github.com/meta/docusaurus/pull/11142) if you have a use case for it and help us design an API that makes sense for the future of Docusaurus. ::: diff --git a/website/docs/api/themes/theme-configuration.mdx b/website/docs/api/themes/theme-configuration.mdx index a3895d1d9060..d61036b5edda 100644 --- a/website/docs/api/themes/theme-configuration.mdx +++ b/website/docs/api/themes/theme-configuration.mdx @@ -325,7 +325,7 @@ export default { position: 'right', }, { - href: 'https://github.com/facebook/docusaurus', + href: 'https://github.com/meta/docusaurus', position: 'right', className: 'header-github-link', 'aria-label': 'GitHub repository', diff --git a/website/docs/cli.mdx b/website/docs/cli.mdx index a56c43171a0c..16b0ed97ceca 100644 --- a/website/docs/cli.mdx +++ b/website/docs/cli.mdx @@ -107,7 +107,7 @@ Compiles your site for production. :::info -CSS bundles are minified with [Lightning CSS](https://lightningcss.dev/), using your site's [Browserslist config](./browser-support.mdx) as targets. **Please [fill out an issue](https://github.com/facebook/docusaurus/issues/new?labels=bug%2C+needs+triage&template=bug.md) if you experience CSS minification bugs.** +CSS bundles are minified with [Lightning CSS](https://lightningcss.dev/), using your site's [Browserslist config](./browser-support.mdx) as targets. **Please [fill out an issue](https://github.com/meta/docusaurus/issues/new?labels=bug%2C+needs+triage&template=bug.md) if you experience CSS minification bugs.** You can skip the HTML minification with the environment variable `SKIP_HTML_MINIFICATION=true`. diff --git a/website/docs/deployment/github-pages.mdx b/website/docs/deployment/github-pages.mdx index 357199ed628a..7ae203577809 100644 --- a/website/docs/deployment/github-pages.mdx +++ b/website/docs/deployment/github-pages.mdx @@ -74,7 +74,7 @@ By default, GitHub Pages runs published files through [Jekyll](https://jekyllrb. | Name | Description | | --- | --- | -| `USE_SSH` | Set to `true` to use SSH instead of the default HTTPS for the connection to the GitHub repo. If the source repo URL is an SSH URL (e.g. `git@github.com:facebook/docusaurus.git`), `USE_SSH` is inferred to be `true`. | +| `USE_SSH` | Set to `true` to use SSH instead of the default HTTPS for the connection to the GitHub repo. If the source repo URL is an SSH URL (e.g. `git@github.com:meta/docusaurus.git`), `USE_SSH` is inferred to be `true`. | | `GIT_USER` | The username for a GitHub account that **has push access to the deployment repo**. For your own repositories, this will usually be your GitHub username. Required if not using SSH, and ignored otherwise. | | `GIT_PASS` | Personal access token of the git user (specified by `GIT_USER`), to facilitate non-interactive deployment (e.g. continuous deployment) | | `CURRENT_BRANCH` | The source branch. Usually, the branch will be `main` or `master`, but it could be any branch except for `gh-pages`. If nothing is set for this variable, then the current branch from which `docusaurus deploy` is invoked will be used. | diff --git a/website/docs/deployment/index.mdx b/website/docs/deployment/index.mdx index 47510ef1aaec..412eb010795b 100644 --- a/website/docs/deployment/index.mdx +++ b/website/docs/deployment/index.mdx @@ -160,6 +160,6 @@ We can only officially document a small subset of hosting providers. However, a Docusaurus site is just static files, and almost any hosting provider able to serve static websites can deploy it. -Check our **[Deployment Platforms](https://github.com/facebook/docusaurus/discussions/categories/deployment-platforms)** GitHub Discussions category: the community shares its experience with other platforms there, and hosting providers are welcome to explain how to deploy Docusaurus on their service. +Check our **[Deployment Platforms](https://github.com/meta/docusaurus/discussions/categories/deployment-platforms)** GitHub Discussions category: the community shares its experience with other platforms there, and hosting providers are welcome to explain how to deploy Docusaurus on their service. ::: diff --git a/website/docs/docusaurus-core.mdx b/website/docs/docusaurus-core.mdx index f5f15b989e89..84c236b5c35b 100644 --- a/website/docs/docusaurus-core.mdx +++ b/website/docs/docusaurus-core.mdx @@ -336,7 +336,7 @@ You can even omit the children prop and specify a translation string in your `co :::info -The `` component supports interpolation. You can also implement [string pluralization](https://github.com/facebook/docusaurus/pull/i18n/i18n-tutorial.mdx#pluralization) through some custom code and the [`translate` imperative API](#translate-imperative). +The `` component supports interpolation. You can also implement [string pluralization](https://github.com/meta/docusaurus/pull/i18n/i18n-tutorial.mdx#pluralization) through some custom code and the [`translate` imperative API](#translate-imperative). ::: diff --git a/website/docs/guides/docs/sidebar/autogenerated.mdx b/website/docs/guides/docs/sidebar/autogenerated.mdx index a65d64fc590b..16853be308e2 100644 --- a/website/docs/guides/docs/sidebar/autogenerated.mdx +++ b/website/docs/guides/docs/sidebar/autogenerated.mdx @@ -458,7 +458,7 @@ export default { :::tip -**Re-use and enhance the default generator** instead of writing a generator from scratch: [the default generator we provide](https://github.com/facebook/docusaurus/blob/main/packages/docusaurus-plugin-content-docs/src/sidebars/generator.ts) is 250 lines long. +**Re-use and enhance the default generator** instead of writing a generator from scratch: [the default generator we provide](https://github.com/meta/docusaurus/blob/main/packages/docusaurus-plugin-content-docs/src/sidebars/generator.ts) is 250 lines long. **Add, update, filter, re-order** the sidebar items according to your use case: diff --git a/website/docs/guides/docs/sidebar/index.mdx b/website/docs/guides/docs/sidebar/index.mdx index b8cbef526025..155d9a655bd1 100644 --- a/website/docs/guides/docs/sidebar/index.mdx +++ b/website/docs/guides/docs/sidebar/index.mdx @@ -207,7 +207,7 @@ Passing a unique `key` attribute can help uniquely identify a sidebar item. Some :::info How is this useful? -Docusaurus only uses the `key` attribute to generate unique i18n translation keys. When a translation key conflict happens ([issue](https://github.com/facebook/docusaurus/issues/10913)), Docusaurus will tell you to apply a `key` to distinguish sidebar items. +Docusaurus only uses the `key` attribute to generate unique i18n translation keys. When a translation key conflict happens ([issue](https://github.com/meta/docusaurus/issues/10913)), Docusaurus will tell you to apply a `key` to distinguish sidebar items. Alternatively, you may have your own reasons for using the `key` attribute that will be passed to the respective sidebar item React components. diff --git a/website/docs/guides/markdown-features/markdown-features-code-blocks.mdx b/website/docs/guides/markdown-features/markdown-features-code-blocks.mdx index 2b9b4f7d3be1..c69485935f5d 100644 --- a/website/docs/guides/markdown-features/markdown-features-code-blocks.mdx +++ b/website/docs/guides/markdown-features/markdown-features-code-blocks.mdx @@ -76,7 +76,7 @@ export default { }; ``` -Because a Prism theme is just a JS object, you can also write your own theme if you are not satisfied with the default. Docusaurus enhances the `github` and `vsDark` themes to provide richer highlight, and you can check our implementations for the [light](https://github.com/facebook/docusaurus/blob/main/website/src/utils/prismLight.ts) and [dark](https://github.com/facebook/docusaurus/blob/main/website/src/utils/prismDark.ts) code block themes. +Because a Prism theme is just a JS object, you can also write your own theme if you are not satisfied with the default. Docusaurus enhances the `github` and `vsDark` themes to provide richer highlight, and you can check our implementations for the [light](https://github.com/meta/docusaurus/blob/main/website/src/utils/prismLight.ts) and [dark](https://github.com/meta/docusaurus/blob/main/website/src/utils/prismDark.ts) code block themes. ### Supported Languages {/* #supported-languages */} diff --git a/website/docs/guides/markdown-features/markdown-features-intro.mdx b/website/docs/guides/markdown-features/markdown-features-intro.mdx index bb76f38c985b..537df1db767b 100644 --- a/website/docs/guides/markdown-features/markdown-features-intro.mdx +++ b/website/docs/guides/markdown-features/markdown-features-intro.mdx @@ -54,7 +54,7 @@ If you plan to use CommonMark, we recommend the [`siteConfig.markdown.format: 'd :::danger Experimental CommonMark support -The CommonMark support is **experimental** and currently has a few [limitations](https://github.com/facebook/docusaurus/issues/9092). +The CommonMark support is **experimental** and currently has a few [limitations](https://github.com/meta/docusaurus/issues/9092). ::: diff --git a/website/docs/guides/markdown-features/markdown-features-plugins.mdx b/website/docs/guides/markdown-features/markdown-features-plugins.mdx index f8068a165174..7dfb0e9d0f3d 100644 --- a/website/docs/guides/markdown-features/markdown-features-plugins.mdx +++ b/website/docs/guides/markdown-features/markdown-features-plugins.mdx @@ -31,7 +31,7 @@ Use plugins to introduce shorter syntax for the most commonly used JSX elements ## Default plugins {/* #default-plugins */} -Docusaurus injects [some default Remark plugins](https://github.com/facebook/docusaurus/tree/main/packages/docusaurus-mdx-loader/src/remark) during Markdown processing. These plugins would: +Docusaurus injects [some default Remark plugins](https://github.com/meta/docusaurus/tree/main/packages/docusaurus-mdx-loader/src/remark) during Markdown processing. These plugins would: - Generate the table of contents; - Add anchor links to each heading; diff --git a/website/docs/guides/markdown-features/markdown-features-react.mdx b/website/docs/guides/markdown-features/markdown-features-react.mdx index d1ffc8ebd13b..13522ba98a19 100644 --- a/website/docs/guides/markdown-features/markdown-features-react.mdx +++ b/website/docs/guides/markdown-features/markdown-features-react.mdx @@ -250,7 +250,7 @@ Docusaurus makes it possible to opt-in for a less strict, standard [CommonMark]( - The `mdx.format: md` front matter - The `.md` file extension combined with the `siteConfig.markdown.format: "detect"` configuration -This feature is **experimental** and currently has a few [limitations](https://github.com/facebook/docusaurus/issues/9092). +This feature is **experimental** and currently has a few [limitations](https://github.com/meta/docusaurus/issues/9092). ::: diff --git a/website/docs/guides/markdown-features/markdown-features-toc.mdx b/website/docs/guides/markdown-features/markdown-features-toc.mdx index 73062d4605a7..d797e71fd0d3 100644 --- a/website/docs/guides/markdown-features/markdown-features-toc.mdx +++ b/website/docs/guides/markdown-features/markdown-features-toc.mdx @@ -206,7 +206,7 @@ Some content... ``` -The ability to ergonomically insert extra headings or ignore certain headings is a work-in-progress. If this feature is important to you, please report your use-case in [this issue](https://github.com/facebook/docusaurus/issues/6201). +The ability to ergonomically insert extra headings or ignore certain headings is a work-in-progress. If this feature is important to you, please report your use-case in [this issue](https://github.com/meta/docusaurus/issues/6201). --- diff --git a/website/docs/i18n/i18n-crowdin.mdx b/website/docs/i18n/i18n-crowdin.mdx index 68aaa218c71d..2176d755e2f5 100644 --- a/website/docs/i18n/i18n-crowdin.mdx +++ b/website/docs/i18n/i18n-crowdin.mdx @@ -22,7 +22,7 @@ Refer to the **[Crowdin documentation](https://support.crowdin.com/)** and **[Cr :::tip -Use this **[community-driven GitHub discussion](https://github.com/facebook/docusaurus/discussions/4052)** to discuss anything related to Docusaurus + Crowdin. +Use this **[community-driven GitHub discussion](https://github.com/meta/docusaurus/discussions/4052)** to discuss anything related to Docusaurus + Crowdin. ::: @@ -473,7 +473,7 @@ export default { return `https://crowdin.com/project/docusaurus-v2/${locale}`; } // Link to GitHub for English docs - return `https://github.com/facebook/docusaurus/edit/main/website/${versionDocsDirPath}/${docPath}`; + return `https://github.com/meta/docusaurus/edit/main/website/${versionDocsDirPath}/${docPath}`; }, // highlight-end }, @@ -483,7 +483,7 @@ export default { if (locale !== DefaultLocale) { return `https://crowdin.com/project/docusaurus-v2/${locale}`; } - return `https://github.com/facebook/docusaurus/edit/main/website/${blogDirPath}/${blogPath}`; + return `https://github.com/meta/docusaurus/edit/main/website/${blogDirPath}/${blogPath}`; }, // highlight-start }, diff --git a/website/docs/i18n/i18n-git.mdx b/website/docs/i18n/i18n-git.mdx index 43994d62f32a..f4107bb93e6f 100644 --- a/website/docs/i18n/i18n-git.mdx +++ b/website/docs/i18n/i18n-git.mdx @@ -27,7 +27,7 @@ Using Git also present some shortcomings: Some **large-scale technical projects** (React, Vue.js, MDN, TypeScript, Nuxt.js, etc.) use Git for translations. -Refer to the [Docusaurus i18n RFC](https://github.com/facebook/docusaurus/issues/3317) for our notes and links studying these systems. +Refer to the [Docusaurus i18n RFC](https://github.com/meta/docusaurus/issues/3317) for our notes and links studying these systems. ::: diff --git a/website/docs/i18n/i18n-introduction.mdx b/website/docs/i18n/i18n-introduction.mdx index b44b8bf63d2f..d0f26c5b4fdf 100644 --- a/website/docs/i18n/i18n-introduction.mdx +++ b/website/docs/i18n/i18n-introduction.mdx @@ -11,7 +11,7 @@ It is **easy to translate a Docusaurus website** with its internationalization ( It is important to understand the **design decisions** behind the Docusaurus i18n support. -For more context, you can read the initial [RFC](https://github.com/facebook/docusaurus/issues/3317) and [PR](https://github.com/facebook/docusaurus/pull/3325). +For more context, you can read the initial [RFC](https://github.com/meta/docusaurus/issues/3317) and [PR](https://github.com/meta/docusaurus/pull/3325). ### i18n goals {/* #i18n-goals */} @@ -28,7 +28,7 @@ The goals of the Docusaurus i18n system are: - **Easy to use with [Crowdin](https://crowdin.com/)**: a lot of Docusaurus v1 sites use Crowdin and should be able to migrate to v2 - **Good SEO defaults**: we set useful SEO headers like [`hreflang`](https://developers.google.com/search/docs/advanced/crawling/localized-versions) for you - **RTL support**: locales reading right-to-left (Arabic, Hebrew, etc.) are supported and easy to implement -- **Default translations**: classic theme labels are translated for you in [many languages](https://github.com/facebook/docusaurus/tree/main/packages/docusaurus-theme-translations/locales) +- **Default translations**: classic theme labels are translated for you in [many languages](https://github.com/meta/docusaurus/tree/main/packages/docusaurus-theme-translations/locales) ### i18n non-goals {/* #i18n-non-goals */} diff --git a/website/docs/i18n/i18n-tutorial.mdx b/website/docs/i18n/i18n-tutorial.mdx index 176df3ec69e6..15be9fab94da 100644 --- a/website/docs/i18n/i18n-tutorial.mdx +++ b/website/docs/i18n/i18n-tutorial.mdx @@ -15,7 +15,7 @@ This tutorial will walk you through the basics of the **Docusaurus i18n system** We will add **French** translations to a **newly initialized English Docusaurus website**. -Initialize a new site (like [this one](https://github.com/facebook/docusaurus/tree/main/examples/classic)): +Initialize a new site (like [this one](https://github.com/meta/docusaurus/tree/main/examples/classic)): ```bash npm2yarn npx create-docusaurus@latest website classic @@ -96,7 +96,7 @@ We haven't provided any translation yet, so the site is mostly untranslated. Docusaurus provides **default translations** for generic theme labels, such as "Next" and "Previous" for the pagination. -Please help us complete those **[default translations](https://github.com/facebook/docusaurus/tree/main/packages/docusaurus-theme-translations/locales)**. +Please help us complete those **[default translations](https://github.com/meta/docusaurus/tree/main/packages/docusaurus-theme-translations/locales)**. ::: diff --git a/website/docs/installation.mdx b/website/docs/installation.mdx index 252c6c895bd3..8d8cf83f802f 100644 --- a/website/docs/installation.mdx +++ b/website/docs/installation.mdx @@ -9,7 +9,7 @@ import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem'; ``` -Docusaurus consists of a set of npm [packages](https://github.com/facebook/docusaurus/tree/main/packages). +Docusaurus consists of a set of npm [packages](https://github.com/meta/docusaurus/tree/main/packages). :::tip @@ -124,7 +124,7 @@ In this case, you should run `npx create-docusaurus` within the `./my-monorepo` If you're using a hosting provider such as Netlify or Vercel, you will need to change the `Base directory` of the site to where your Docusaurus root is. In this case, that would be `./website`. Read more about configuring ignore commands in the [deployment docs](./deployment/netlify.mdx). -Read more about monorepos in the [Yarn documentation](https://yarnpkg.com/features/workspaces) (Yarn is not the only way to set up a monorepo, but it's a common solution), or check out [Docusaurus](https://github.com/facebook/docusaurus) and [Jest](https://github.com/facebook/jest) for some real-world examples. +Read more about monorepos in the [Yarn documentation](https://yarnpkg.com/features/workspaces) (Yarn is not the only way to set up a monorepo, but it's a common solution), or check out [Docusaurus](https://github.com/meta/docusaurus) and [Jest](https://github.com/facebook/jest) for some real-world examples. ## Running the development server {/* #running-the-development-server */} @@ -191,4 +191,4 @@ Use new unreleased features of Docusaurus with the [`@canary` npm dist tag](/com ## Problems? {/* #problems */} -Ask for help on [Stack Overflow](https://stackoverflow.com/questions/tagged/docusaurus), on our [GitHub repository](https://github.com/facebook/docusaurus), our [Discord server](https://discordapp.com/invite/docusaurus), or [X](https://x.com/docusaurus). +Ask for help on [Stack Overflow](https://stackoverflow.com/questions/tagged/docusaurus), on our [GitHub repository](https://github.com/meta/docusaurus), our [Discord server](https://discordapp.com/invite/docusaurus), or [X](https://x.com/docusaurus). diff --git a/website/docs/introduction.mdx b/website/docs/introduction.mdx index 44b2d6681404..377b18c1d567 100644 --- a/website/docs/introduction.mdx +++ b/website/docs/introduction.mdx @@ -164,17 +164,17 @@ In comparison with statically generated HTML and interactivity added using `GitHub and follow us on X ${TwitterSvg}`, + // content: `⭐️ If you like Docusaurus, give it a star on GitHub and follow us on X ${TwitterSvg}`, content: `🎉️ Docusaurus v${announcedVersion} is out! 🥳️`, }, prism: { @@ -651,7 +651,7 @@ export default async function createConfigAsync() { // TODO Docusaurus v4: remove after we drop DocSearch v3 // temporary, for DocSearch v3/v4 conditional Ask AI integration - // see https://github.com/facebook/docusaurus/pull/11327 + // see https://github.com/meta/docusaurus/pull/11327 ...(require('@docsearch/react').version.startsWith('4.') ? { askAi: { @@ -759,13 +759,13 @@ export default async function createConfigAsync() { value: '


', }, { - href: 'https://github.com/facebook/docusaurus/issues/3526', + href: 'https://github.com/meta/docusaurus/issues/3526', label: 'Help Us Translate', }, ], }, { - href: 'https://github.com/facebook/docusaurus', + href: 'https://github.com/meta/docusaurus', position: 'right', className: 'header-github-link', 'aria-label': 'GitHub repository', @@ -830,7 +830,7 @@ export default async function createConfigAsync() { }, { label: 'GitHub', - href: 'https://github.com/facebook/docusaurus', + href: 'https://github.com/meta/docusaurus', }, { label: 'X', diff --git a/website/netlify.toml b/website/netlify.toml index d55c2649c735..a87a14572b7f 100644 --- a/website/netlify.toml +++ b/website/netlify.toml @@ -15,7 +15,7 @@ NODE_OPTIONS = "--max_old_space_size=8192" # Note, we run build:packages and git backfill in parallel to speed up builds # We run "git backfill" here to ensure the full Git history is available fast -# See https://github.com/facebook/docusaurus/pull/11553 +# See https://github.com/meta/docusaurus/pull/11553 # Only git backfill is backgrounded; build:packages runs in the foreground so # && catches its failure, and "wait $!" propagates the backfill's exit code # (bare "wait" always exits 0, which would swallow failures) diff --git a/website/src/components/NavbarItems/CustomDogfoodNavbarItem.tsx b/website/src/components/NavbarItems/CustomDogfoodNavbarItem.tsx index d48ff3656891..bdd07cc064cb 100644 --- a/website/src/components/NavbarItems/CustomDogfoodNavbarItem.tsx +++ b/website/src/components/NavbarItems/CustomDogfoodNavbarItem.tsx @@ -9,7 +9,7 @@ import type {ReactNode} from 'react'; import {useLocation} from '@docusaurus/router'; // used to dogfood custom navbar elements are possible -// see https://github.com/facebook/docusaurus/issues/7227 +// see https://github.com/meta/docusaurus/issues/7227 export default function CustomDogfoodNavbarItem(props: { content: string; mobile?: boolean; diff --git a/website/src/components/Versions.tsx b/website/src/components/Versions.tsx index 07309d22fb81..79458c58ed85 100644 --- a/website/src/components/Versions.tsx +++ b/website/src/components/Versions.tsx @@ -99,7 +99,7 @@ export function StableVersion(): ReactNode { function GitBranchLink({branch}: {branch: string}): ReactNode { return ( - + {branch} ); diff --git a/website/src/data/users.tsx b/website/src/data/users.tsx index 548f2e2bcf8b..1271ea359249 100644 --- a/website/src/data/users.tsx +++ b/website/src/data/users.tsx @@ -13,7 +13,7 @@ import type {Props as IdealImageProps} from '@theme/IdealImage'; * ADD YOUR SITE TO THE DOCUSAURUS SHOWCASE * * Please don't submit a PR yourself: use the Github Discussion instead: - * https://github.com/facebook/docusaurus/discussions/7826 + * https://github.com/meta/docusaurus/discussions/7826 * * Instructions for maintainers: * - Add the site in the json array below @@ -30,7 +30,7 @@ import type {Props as IdealImageProps} from '@theme/IdealImage'; * - Run optimizt manually (see resize image script comment) * - Open a PR and check for reported CI errors * - * Example PR: https://github.com/facebook/docusaurus/pull/7620 + * Example PR: https://github.com/meta/docusaurus/pull/7620 */ // LIST OF AVAILABLE TAGS diff --git a/website/src/pages/showcase/index.tsx b/website/src/pages/showcase/index.tsx index de338e3ca8ae..d25389503e03 100644 --- a/website/src/pages/showcase/index.tsx +++ b/website/src/pages/showcase/index.tsx @@ -20,7 +20,7 @@ const TITLE = translate({message: 'Docusaurus Site Showcase'}); const DESCRIPTION = translate({ message: 'List of websites people are building with Docusaurus', }); -const SUBMIT_URL = 'https://github.com/facebook/docusaurus/discussions/7826'; +const SUBMIT_URL = 'https://github.com/meta/docusaurus/discussions/7826'; function ShowcaseHeader() { return ( diff --git a/website/src/pages/versions.tsx b/website/src/pages/versions.tsx index a54985643cbd..6ad9f5c656ef 100644 --- a/website/src/pages/versions.tsx +++ b/website/src/pages/versions.tsx @@ -52,7 +52,7 @@ export default function Version(): ReactNode { function getReleaseNotesUrl(version: GlobalVersion): string { if (version.name === '2.x') { - return 'https://github.com/facebook/docusaurus/blob/main/CHANGELOG-v2.md'; + return 'https://github.com/meta/docusaurus/blob/main/CHANGELOG-v2.md'; } return `${repoUrl}/releases/tag/v${version.name}`; } diff --git a/website/src/plugins/featureRequests/FeatureRequestsPage.tsx b/website/src/plugins/featureRequests/FeatureRequestsPage.tsx index 8d5ba95aeb3e..33a209ca46eb 100644 --- a/website/src/plugins/featureRequests/FeatureRequestsPage.tsx +++ b/website/src/plugins/featureRequests/FeatureRequestsPage.tsx @@ -18,8 +18,8 @@ const BOARD_TOKEN = '054e0e53-d951-b14c-7e74-9eb8f9ed2f91'; // TODO useColorMode() hook is not reliable on first call // To ensure we always init Canny with the correct theme, we prefer to delay // initialization until we know the theme is correct -// See also https://github.com/facebook/docusaurus/issues/7986 -// See also https://github.com/facebook/docusaurus/pull/11224 +// See also https://github.com/meta/docusaurus/issues/7986 +// See also https://github.com/meta/docusaurus/pull/11224 function useIsColorModeReliable() { const [isColorModeReliable, setIsColorModeReliable] = useState(false); useEffect(() => { diff --git a/website/src/theme/CodeBlock/index.tsx b/website/src/theme/CodeBlock/index.tsx index dc1056c570af..84bf67e140fc 100644 --- a/website/src/theme/CodeBlock/index.tsx +++ b/website/src/theme/CodeBlock/index.tsx @@ -11,7 +11,7 @@ import type {Props} from '@theme/CodeBlock'; // This component does nothing on purpose // Dogfood: wrapping a theme component already enhanced by another theme -// See https://github.com/facebook/docusaurus/pull/5983 +// See https://github.com/meta/docusaurus/pull/5983 export default function CodeBlockWrapper(props: Props): ReactNode { return ; } diff --git a/website/testCSSOrder.mjs b/website/testCSSOrder.mjs index 4407846f0028..d1dcb22e2019 100644 --- a/website/testCSSOrder.mjs +++ b/website/testCSSOrder.mjs @@ -16,8 +16,8 @@ There are multiple ways to provide some CSS to Docusaurus and Docusaurus should guarantee a consistent CSS ordering over time See also -- https://github.com/facebook/docusaurus/issues/3678 -- https://github.com/facebook/docusaurus/pull/5987 +- https://github.com/meta/docusaurus/issues/3678 +- https://github.com/meta/docusaurus/pull/5987 TODO we should probably add a real e2e test in core instead of using our own website? Current solution looks good-enough for now @@ -28,7 +28,7 @@ website? Current solution looks good-enough for now const EXPECTED_CSS_MARKERS = [ // Note, Infima and site classes are optimized/deduplicated and put at the top // We don't agree yet on what should be the order for those classes - // See https://github.com/facebook/docusaurus/pull/6222 + // See https://github.com/meta/docusaurus/pull/6222 '--ifm-color-scheme:light', '.col[class*=col--]', '.padding-vert--xl', @@ -47,7 +47,7 @@ const EXPECTED_CSS_MARKERS = [ '.test-marker-site-index-page', // Lazy-loaded lib - // Looks like order changed during Webpack 5: https://github.com/facebook/docusaurus/pull/10455 + // Looks like order changed during Webpack 5: https://github.com/meta/docusaurus/pull/10455 // Note a big deal though // '.DocSearch-Modal', // '.DocSearch-Hit-content-wrapper', diff --git a/website/tsconfig.skipLibCheck.json b/website/tsconfig.skipLibCheck.json index 909368909d4c..90210b264c29 100644 --- a/website/tsconfig.skipLibCheck.json +++ b/website/tsconfig.skipLibCheck.json @@ -4,7 +4,7 @@ // There is no --skipLibCheck CLI option, so we have to create a config file // Some CI workflows will run the following command: // node node_modules/typescript/bin/tsc --project website/tsconfig.skipLibCheck.json - // See https://github.com/facebook/docusaurus/pull/10486 + // See https://github.com/meta/docusaurus/pull/10486 "skipLibCheck": true } }