Compare commits

...

622 Commits

Author SHA1 Message Date
Sébastien Lorber 26e0bd928c
docs(website): Announce v3.2 on website/homepage (#10004) 2024-03-29 19:43:45 +01:00
Sébastien Lorber 70415a4cef
chore: fix codesandbox default privacy (#9993) 2024-03-29 18:30:47 +01:00
Sébastien Lorber a34e3f8f91
chore: update examples to v3.2.0 (#10003) 2024-03-29 18:27:36 +01:00
Sébastien Lorber 7edfe0e2d1
docs: fix 3.2 blog post headings (#10002) 2024-03-29 18:06:33 +01:00
Sébastien Lorber debfc87d34
chore: release Docusaurus v3.2.0 (#10000) 2024-03-29 17:51:27 +01:00
Sébastien Lorber 1a5fe5c412
fix(mdx-loader): Ignore contentTitle coming after Markdown thematicBreak (#9999) 2024-03-29 15:07:53 +01:00
ozaki 821247142e
refactor(utils): remove duplicated function (#9972)
Co-authored-by: sebastien <lorber.sebastien@gmail.com>
2024-03-29 14:45:30 +01:00
Sébastien Lorber efbe474e9c
refactor(core): improve dev perf, fine-grained site reloads - part 3 (#9975) 2024-03-28 12:39:07 +01:00
dependabot[bot] 06e70a4f9a
chore(deps): bump actions/dependency-review-action from 4.1.3 to 4.2.4 (#9981)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-28 11:37:03 +01:00
dependabot[bot] 1430c85a82
chore(deps): bump katex from 0.16.8 to 0.16.10 (#9982)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-28 11:36:54 +01:00
dependabot[bot] 8024d9b858
chore(deps): bump express from 4.18.2 to 4.19.2 (#9983)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-28 11:36:44 +01:00
dependabot[bot] 3877c1254f
chore(deps): bump webpack-dev-middleware from 5.3.3 to 5.3.4 (#9977)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dependabot[bot] <dependabot[bot]@users.noreply.github.com>
2024-03-24 17:26:35 +01:00
Vlad Nestorov 6f17d54938
docs: use official GitHub Action to deploy to GitHub Pages (#9937)
Co-authored-by: ozakione <29860391+OzakIOne@users.noreply.github.com>
2024-03-21 16:01:10 +01:00
Sébastien Lorber 93a09ea086
refactor(core): improve dev perf, fine-grained site reloads - part2 (#9968) 2024-03-21 13:05:19 +01:00
Fafowora Sunkanmi 91f93656d8
docs: replace VuePress by VitePress on tool comparison section (#9971)
Co-authored-by: Sébastien Lorber <slorber@users.noreply.github.com>
2024-03-21 13:05:05 +01:00
Zed Spencer-Milnes 9a47ec0581
refactor(website): organise blog posts by year (#9965) 2024-03-20 18:08:05 +01:00
Sébastien Lorber 9017fb9b1d
feat(sitemap): add support for "lastmod" (#9954) 2024-03-20 11:47:44 +01:00
Sébastien Lorber 465cf4d82c
refactor(docs,blog): last update timestamp should be in milliseconds instead of seconds (#9963) 2024-03-19 09:51:27 +01:00
dependabot[bot] 6c724ed857
chore(deps): bump follow-redirects from 1.15.4 to 1.15.6 (#9958)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-18 16:28:58 +01:00
ozaki c745021b01
feat(blog): add LastUpdateAuthor & LastUpdateTime (#9912)
Co-authored-by: OzakIOne <OzakIOne@users.noreply.github.com>
Co-authored-by: sebastien <lorber.sebastien@gmail.com>
2024-03-15 12:50:06 +01:00
Max Schmitt 7938803747
fix(a11y): move focus algolia-search focus back to search input on Escape (#9945) 2024-03-14 17:26:26 +01:00
ozaki 14bec09670
fix(blog): apply trailing slash to blog feed (#9920)
Co-authored-by: sebastien <lorber.sebastien@gmail.com>
2024-03-14 16:45:00 +01:00
Max Schmitt 032e3b8f4d
fix(theme): improve a11y of DocSidebarItemCategory expand/collapsed button (#9944) 2024-03-14 14:59:36 +01:00
ozaki 6151a41428
docs(website): update wrong translate id (#9946) 2024-03-14 12:54:41 +01:00
Sébastien Lorber 8d115a9e0d
feat(core): add new plugin allContentLoaded lifecycle (#9931) 2024-03-08 19:13:59 +01:00
Sébastien Lorber d02b96f7f5
refactor(core): improve dev perf, fine-grained site reloads - part1 (#9903) 2024-03-08 12:59:11 +01:00
ozaki eb6424cc27
docs(showcase): update link (#9929) 2024-03-07 23:47:28 +01:00
Hallbjörn Magnússon ee53208f9d
feat(theme-translations) Icelandic (is) (#9928)
Co-authored-by: Sébastien Lorber <slorber@users.noreply.github.com>
2024-03-07 19:18:40 +01:00
suenryu 9d89607d4d
fix(theme-translations): complete and modify Japanese translations (#9915) 2024-03-07 18:59:09 +01:00
ozaki 319d73d54f
docs(team): update active docusaurus team member (#9893)
Co-authored-by: Sébastien Lorber <slorber@users.noreply.github.com>
Co-authored-by: OzakIOne <OzakIOne@users.noreply.github.com>
2024-03-06 11:17:28 +01:00
suenryu 2b6d8bd646
fix(theme-translations): add Japanese translations (#9910) 2024-03-06 00:00:57 +01:00
ozaki 6d8108b653
docs: update legacy MDX v1 links to markdown links (#9914) 2024-03-05 23:46:52 +01:00
ozaki 2851c93d0d
feat(blog): allow processing blog posts through a processBlogPosts function (#9886)
Co-authored-by: OzakIOne <OzakIOne@users.noreply.github.com>
Co-authored-by: sebastien <lorber.sebastien@gmail.com>
Co-authored-by: Sébastien Lorber <slorber@users.noreply.github.com>
2024-03-05 22:58:16 +01:00
ozaki 05279dc3d8
docs: update legacy MDX v1 links to markdown links (#9913) 2024-03-05 20:04:12 +01:00
Joshua Chen 324c853da0
docs: emphasize "index slug" convention (#9906) 2024-03-04 12:33:17 +01:00
Sébastien Lorber 2152572a3b
fix(mdx-loader): mdx-code-block should support CRLF (#9897) 2024-02-29 13:20:03 +01:00
dependabot[bot] 0589b1475d
chore(deps): bump actions/dependency-review-action from 4.1.2 to 4.1.3 (#9892)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-02-27 10:05:12 +01:00
Sébastien Lorber f159bb2472
perf: optimize getFileCommitDate, make it async (#9890) 2024-02-24 23:32:18 +01:00
ozaki 0279c329ad
refactor(theme): dates should be formatted on the client-side instead of in nodejs code (#9868)
Co-authored-by: OzakIOne <OzakIOne@users.noreply.github.com>
Co-authored-by: sebastien <lorber.sebastien@gmail.com>
2024-02-23 18:30:05 +01:00
Sébastien Lorber 6bf21d215c
fix(core): fix default i18n calendar used, infer it from locale if possible (#9878) 2024-02-22 17:06:12 +01:00
axel7083 85d74245f8
fix(argos): waiting for images decoding (#9875)
Co-authored-by: Sébastien Lorber <slorber@users.noreply.github.com>
Co-authored-by: sebastien <lorber.sebastien@gmail.com>
2024-02-22 15:02:39 +01:00
Josue [4tro] A 76c0f5c2d9
fix(theme-translations): complete and improve Spanish theme translations (#9872)
Co-authored-by: Sébastien Lorber <slorber@users.noreply.github.com>
2024-02-22 14:35:57 +01:00
dependabot[bot] 7a4826baa8
chore(deps): bump actions/dependency-review-action from 4.0.0 to 4.1.2 (#9869)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-02-22 14:02:19 +01:00
Aolin 06dabc69bd
docs: fix typos in deployment.mdx (#9877) 2024-02-22 10:39:24 +01:00
dependabot[bot] 4ca9b8e508
chore(deps): bump ip from 2.0.0 to 2.0.1 (#9874)
Bumps [ip](https://github.com/indutny/node-ip) from 2.0.0 to 2.0.1.
- [Commits](https://github.com/indutny/node-ip/compare/v2.0.0...v2.0.1)

---
updated-dependencies:
- dependency-name: ip
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-02-20 14:43:21 -05:00
Chris Bateman 6b0f9703a3
chore(website): update @crowdin/crowdin-api-client (#9865) 2024-02-20 19:50:39 +01:00
krinza.eth 0d3ac877d5
docs(showcase): remove supabase (#9856)
Co-authored-by: Sébastien Lorber <slorber@users.noreply.github.com>
2024-02-20 17:54:45 +01:00
ozaki 1bbc68bc30
chore(deps): update npm to yarn from 2.0.0 to 2.2.1 (#9861)
* chore(deps): update npm to yarn from 2.0.0 to 2.2.1

* test: update tests
2024-02-17 16:36:57 -05:00
Нуриль Барадусов 3426f848a3
fix(theme-classic): should use plurals for category items description (#9851)
Co-authored-by: Нуриль Барадусов <nuril.b@ati.su>
Co-authored-by: sebastien <lorber.sebastien@gmail.com>
2024-02-15 20:07:48 +01:00
Sébastien Lorber b26e262981
fix(core): ensure core error boundary is able to render theme layout (#9852) 2024-02-15 17:25:17 +01:00
John Reilly 60d9346965
refactor(theme): use JSON-LD instead of microdata for blog structured data (#9669)
Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
Co-authored-by: sebastien <lorber.sebastien@gmail.com>
2024-02-15 16:25:21 +01:00
翊小久 8abd1899a6
feat(swizzle): ask user preferred language if no language CLI option provided (#9681)
Co-authored-by: sebastien <lorber.sebastien@gmail.com>
2024-02-15 15:08:01 +01:00
Rafael Martins 628752d92a
feat(create-docusaurus): ask user for preferred language when no language CLI option provided (#9442)
Co-authored-by: sebastien <lorber.sebastien@gmail.com>
2024-02-15 13:05:05 +01:00
ozaki 6fd8408a2c
docs: typo (#9845) 2024-02-14 14:39:03 +01:00
ozaki 77723a1121
feat(plugin-vercel-analytics): add new vercel analytics plugin (#9687)
Co-authored-by: sebastien <lorber.sebastien@gmail.com>
2024-02-14 13:25:39 +01:00
Liviu Ionescu 70ba9d2d01
feat(blog): add blog pageBasePath plugin option (#9838)
Co-authored-by: sebastien <lorber.sebastien@gmail.com>
2024-02-13 13:27:23 +01:00
dependabot[bot] cc7f43580c
chore(deps): bump actions/setup-node from 4.0.1 to 4.0.2 (#9843)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-02-13 11:21:17 +01:00
ozaki a296d727b6
docs(blog-only): add warning and improve error log (#9839) 2024-02-09 19:34:32 +01:00
Sébastien Lorber 34297bc56d
refactor(core): internalize, simplify and optimize the SSG logic (#9798) 2024-02-08 18:44:45 +01:00
dependabot[bot] d740be0e9c
chore(deps): bump treosh/lighthouse-ci-action from 10.1.0 to 11.4.0 (#9824)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-02-06 10:28:33 +01:00
dependabot[bot] 506e763c07
chore(deps): bump marocchino/sticky-pull-request-comment from 2.8.0 to 2.9.0 (#9823)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-02-06 10:28:25 +01:00
n4n5 9e5679ff1a
docs: Add docs for Mermaid Component (#9816)
* add docs

* fix: missplace

* Update markdown-features-diagrams.mdx

* yarn format

* fix: correct language

* fix: typo
2024-02-02 17:26:07 +01:00
Vahid Naderi c1ac06768b
fix(i18n): add missing theme translations for fa locale (#9812) 2024-02-01 14:21:36 +01:00
Alberto Vilches 436e20a42a
docs: add "TypeScript support" section in the "Modules using Sass/SCSS" section (#9807)
Co-authored-by: sebastien <lorber.sebastien@gmail.com>
2024-02-01 12:03:53 +01:00
Tatsunori Uchino 09b2005759
docs: backport #9471, #9692, and #9695 changes in v3.1.1 docs (#9804) 2024-02-01 11:46:18 +01:00
Sébastien Lorber 48cab8e3fb
chore: release Docusaurus 3.1.1 examples (#9797) 2024-01-26 14:33:03 +01:00
Sébastien Lorber ed88097f63
chore: release Docusaurus 3.1.1 docs (#9794) 2024-01-26 14:10:57 +01:00
Shamoil Arsiwala 3d8b70e0b3
docs: fix documented path of swizzled component (#9786) 2024-01-25 19:57:42 +01:00
Sébastien Lorber d3142c5ed5
fix(core): broken links optimization behaves differently than non-optimized logic (#9791) 2024-01-25 19:49:45 +01:00
Sébastien Lorber 2f2ed41829
fix(core): links with target "_blank" should no be checked by the broken link checker (#9788) 2024-01-25 18:18:11 +01:00
Emjek Cordover cce1698c60
docs: Note `showLastUpdateTime` requires complete checkout (#9784) 2024-01-25 13:19:55 +01:00
eitsupi 0266549a51
fix(mdx-loader): allow spaces before `mdx-code-block` info string (#9776) 2024-01-24 14:12:54 +01:00
Sébastien Lorber c827b6de2d
perf(core): optimize broken links checker (#9778) 2024-01-24 12:14:26 +01:00
Cole Cecil 8597e5dcdb
docs: update troubleshooting details for v3 migration (#9782) 2024-01-24 12:12:06 +01:00
dawei-wang 4b444d55e5
fix(create-docusaurus): fix typo in init template sample docs (#9783) 2024-01-24 11:57:55 +01:00
dependabot[bot] 333889d38d
chore(deps): bump actions/dependency-review-action from 3.1.5 to 4.0.0 (#9779)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-01-23 10:17:31 +01:00
Anatoly Kopyl 3c982127d7
fix(mdx-loader): the table-of-contents should display toc/headings of imported MDX partials (#9684)
Co-authored-by: Titus <tituswormer@gmail.com>
Co-authored-by: sebastienlorber <lorber.sebastien@gmail.com>
2024-01-19 18:58:11 +01:00
Jack Robson bed11f62bc
fix(core): conditionally include `hostname` parameter when using… (#9407) 2024-01-18 14:03:45 +01:00
Tatsunori Uchino f794559962
docs: add admonition for incompatibility with `*` and `**` in Chinese and Japanese in MDX v2+ (#9692) 2024-01-18 13:50:15 +01:00
Clément Vannicatte 604ccaa89c
docs: update Algolia DocSearch support links (#9755) 2024-01-18 13:31:24 +01:00
Sébastien Lorber 0469590cc4
docs: GitHub actions deployment should use fetch-depth: 0 + actions upgrades (#9759) 2024-01-18 12:01:02 +01:00
Sanjaiyan Parthipan e1899786a4
polish(theme): MDX images should use async decoding (#9470) 2024-01-12 21:25:18 +01:00
Tatsunori Uchino d75f99f9a6
fix(theme-common): fix missing code block MagicComments style in Visual Basic (.NET) 16 (#9727) 2024-01-12 21:13:24 +01:00
Sébastien Lorber 0a2e6e67d3
fix: remove old useless mdx typedefs (#9733) 2024-01-12 19:12:09 +01:00
Sébastien Lorber 4388267c26
fix(core): various broken anchor link fixes (#9732) 2024-01-12 16:09:45 +01:00
dependabot[bot] d94adf6a6c
chore(deps): bump follow-redirects from 1.15.2 to 1.15.4 (#9723)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-01-09 13:24:00 +01:00
dependabot[bot] 21599e22d0
chore(deps): bump actions/dependency-review-action from 3.1.4 to 3.1.5 (#9718)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-01-09 12:58:44 +01:00
Tatsunori Uchino 849608bcab
chore: check MDX even by VS Code cspell extension (#9713) 2024-01-08 15:51:20 +01:00
Sébastien Lorber e19b681e51
chore: Docusaurus v3.1 examples (#9707) 2024-01-05 19:46:02 +01:00
Sébastien Lorber c7e090f13a
chore: Docusaurus v3.1 docs + changelog + blog post (#9706) 2024-01-05 19:31:58 +01:00
Sébastien Lorber 16500436f7
fix(theme): allow empty code blocks and live playgrounds (#9704) 2024-01-05 13:37:48 +01:00
Sébastien Lorber ca09f238f3
docs: replace docLayoutComponent by new Docusaurus v3 options (#9697) 2024-01-04 14:27:51 +01:00
Sébastien Lorber e0052edc4c
fix(create-docusaurus): fix init template code blocks, and little improvements (#9696)
Co-authored-by: Ivan Mar (sOkam!) <7308253+heysokam@users.noreply.github.com>
2024-01-04 14:03:10 +01:00
ozaki fd49301a45
feat(core): make broken link checker detect broken anchors - add `onBrokenAnchors` config (#9528)
Co-authored-by: sebastienlorber <lorber.sebastien@gmail.com>
2024-01-04 12:56:20 +01:00
Tatsunori Uchino 332a466893
docs: add guide to keep title of caution admonitions (#9695) 2024-01-04 11:05:24 +01:00
ayip8 ece3d04d57
docs: Updates the Algolia DocSearch eligibility description to match DocSearch page (#9693) 2024-01-04 01:22:19 +01:00
Shahed Nasser ac5642079d
docs: update CLI command options (#9690) 2024-01-03 12:09:24 +01:00
Greg Bergé 5baa68bea0
docs: add Argos badge (#9685) 2024-01-02 15:45:58 +01:00
Kyle Tsang 5123035333
docs: fix remark-emoji name in 3.0.1 migration guide (#9677) 2024-01-02 15:44:06 +01:00
Simen Bekkhus 3389daefac
fix(pwa-plugin): upgrade workbox (#9668) 2023-12-27 23:32:33 +01:00
Sébastien Lorber bfb882c2f0
feat(mdx-loader): add support for siteConfig.markdown.remarkRehypeOptions (#9674) 2023-12-27 23:19:25 +01:00
Tatsunori Uchino bd7d64f455
feat(theme-common): code block MagicComments support for (Visual) Basic/Batch/Fortran/COBOL/ML (#9671) 2023-12-27 23:02:48 +01:00
Arthur d9d700c54f
docs(math): use list of steps for clearer guidance (#9659)
Co-authored-by: sebastienlorber <lorber.sebastien@gmail.com>
2023-12-22 13:15:25 +01:00
dependabot[bot] a180a3012f
chore(deps): bump actions/setup-node from 4.0.0 to 4.0.1 (#9642)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-21 17:52:25 +01:00
Joshua Chen 60d62d1d65
fix(cli): output help when no conventional config + no subcommand (#9648) 2023-12-21 12:28:37 +01:00
Sébastien Lorber affca7a9a2
feat: siteConfig.markdown.parseFrontMatter hook (#9624) 2023-12-16 02:50:26 +01:00
Nick Partridge 28e7298211
docs: slight improvement to GitHub header link styles (#9634)
Co-authored-by: sebastienlorber <lorber.sebastien@gmail.com>
2023-12-15 12:09:00 +01:00
dependabot[bot] 63d9bf2fbc
chore(deps): bump axios from 1.5.1 to 1.6.2 (#9633)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-14 13:46:50 +01:00
Sébastien Lorber e844c57e89
chore: attempt fo fix Lint Autofix workflow (#9632) 2023-12-14 13:32:00 +01:00
Sébastien Lorber 991429ff8a
fix(live-codeblock): stabilize react-live transformCode callback, fix editor/preview desync (#9631) 2023-12-14 12:56:28 +01:00
domeav 61116e2ad6
docs: Crowdin + MT issue (#9620)
Co-authored-by: Dominique Eav <dominique.eav@blue-mind.net>
2023-12-09 00:01:43 +01:00
ozaki d3752d227b
feat(core): enable port configuration via environment variable (#9610)
Co-authored-by: Sébastien Lorber <slorber@users.noreply.github.com>
2023-12-07 11:46:35 +01:00
Lucas Rosa e00340331d
docs: fix docusaurus-core.mdx typo on useGlobalData (#9616) 2023-12-07 11:31:11 +01:00
Joshua Chen c8c93a3854
fix(utils): Markdown link replacement with <> but no spaces (#9617) 2023-12-07 11:27:28 +01:00
axmmisaka 8dd1e13f2a
fix(type-aliases): add `title` prop for imported inline SVG React components (#9612)
Co-authored-by: Sébastien Lorber <slorber@users.noreply.github.com>
2023-12-05 17:29:38 +01:00
dependabot[bot] 56396f32eb
chore(deps): bump actions/dependency-review-action from 3.1.3 to 3.1.4 (#9613)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-05 16:39:08 +01:00
ozaki 4cc56133f7
fix(content-blog): add baseUrl for author.image_url (#9581) 2023-12-05 16:36:46 +01:00
Sébastien Lorber 7650829e91
chore: add lint autofix CI job (#9604) 2023-12-01 20:09:04 +01:00
Janessa Garrow 209b035399
refactor(theme-common): allow optional desktopBreakpoint param in useWindowSize (#9335)
Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
Co-authored-by: sebastienlorber <lorber.sebastien@gmail.com>
2023-12-01 17:40:27 +01:00
Zwyx b40524fe5f
docs: fix v2 admonitions syntax being replaced in migration guide (#9574) 2023-12-01 16:42:26 +01:00
Sébastien Lorber 452adcf735
docs: add link to onDuplicateRoutes page (#9602) 2023-12-01 16:15:43 +01:00
c0h1b4 bfd2cdbd65
fix(i18n): complete translations for theme-common.json Brazilian Portuguese (pt-BR) (#9477) 2023-12-01 16:15:03 +01:00
Sébastien Lorber 321e674cc6
chore: fix argos workflow (#9601) 2023-12-01 15:58:31 +01:00
Sébastien Lorber 13cd6d4ffd
chore: examples for Docusaurus 3.0.# (#9599) 2023-11-30 20:07:10 +01:00
Sébastien Lorber d59ea067ec
chore: docs for Docusaurus 3.0.1 (#9597) 2023-11-30 19:46:19 +01:00
Sébastien Lorber dc3584c2aa
docs: remove legacy useless readme section (#9595) 2023-11-30 18:38:51 +01:00
Tony 24e5b2c95c
docs: add meilisearch-docsearch to resources (#9594) 2023-11-30 18:18:31 +01:00
洪鈞閔 ( jasper ) 6e8292da4c
docs: update guide to mdx v3 typo (#9585) 2023-11-26 18:50:13 +01:00
Seth Falco 17c93e444e
docs: easyops-cn/docusarus-search-local v3 support (#9583) 2023-11-26 15:21:55 +01:00
Timo Wenz 829fbbdea6
docs: Anchor Tag fixed in README.md Header (#9576) 2023-11-23 22:17:09 +01:00
MCR Studio dcb36facc6
chore(debug-plugin): migrate to a new maintained JSON Viewer (#9566)
Co-authored-by: Joey Clover <joey@popos.local>
2023-11-23 19:53:45 +01:00
Tatsunori Uchino 6cc29fac01
docs: add heads up for Prettier users (#9471)
* docs: add a note on the use of Prettier for MDX

* docs: add guides for Prettier users migrating to v3

* Update website/docs/guides/markdown-features/markdown-features-react.mdx

Co-authored-by: Joshua Chen <sidachen2003@gmail.com>

* docs: Update MDX version

* Update website/docs/migration/v3.mdx

* Update v3.mdx

---------

Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
2023-11-23 13:38:04 -05:00
ozaki 8dc24b6a98
docs: broken link in release 3.0 page (#9573)
fix: typo
2023-11-23 00:28:14 -05:00
Chongyi Zheng bda8f14f89
chore: upgrade prism-react-renderer to 2.3.0 to avoid older clsx (#9572) 2023-11-21 23:37:11 +01:00
Sébastien Lorber 7c32fc341f
fix: add v2 retrocompatible support for quoted admonitions (#9570) 2023-11-21 20:49:34 +01:00
Chongyi Zheng 2c0bf8a3d8
chore: Upgrade clsx to 2.0.0 (#9464)
Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
2023-11-21 19:29:18 +01:00
dependabot[bot] afacb110b5
chore(deps): bump actions/github-script from 7.0.0 to 7.0.1 (#9568)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-21 12:41:10 +01:00
Sébastien Lorber 58f59e7f89
fix(theme): upgrade prism-react-renderer, fix html script and style tag highlighting (#9567) 2023-11-21 12:40:28 +01:00
Nick Gerleman 424ffd2e29
chore(core): replace `wait-on` dependency with custom lighter code (#9547) 2023-11-20 17:45:01 +01:00
dependabot[bot] 7dcad0c632
chore(deps): bump actions/github-script from 6.4.1 to 7.0.0 (#9543)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
2023-11-16 23:52:12 +01:00
Agastya Darma aeca87a202
docs: enhance og image tag description in documentation (#9560) 2023-11-16 11:10:11 -05:00
Shreesh Nautiyal 6f70b27694
fix(theme-classic): fixed wrong cursor on dropdown menu in navbar, when window is small (#9398) 2023-11-15 17:29:12 -05:00
Kacper Choła cf08ec9790
chore: remove CI Score badge (#9542) 2023-11-15 17:27:47 -05:00
dependabot[bot] 5e1587b4d9
chore(deps): bump actions/dependency-review-action from 3.1.1 to 3.1.3 (#9544)
Bumps [actions/dependency-review-action](https://github.com/actions/dependency-review-action) from 3.1.1 to 3.1.3.
- [Release notes](https://github.com/actions/dependency-review-action/releases)
- [Commits](9f45b2463b...7bbfa034e7)

---
updated-dependencies:
- dependency-name: actions/dependency-review-action
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-15 13:28:40 -05:00
Adam Patterson 78606c4d9a
docs: add missing comma (#9555)
* Update v3.mdx Missing comma

* Fix more

---------

Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
2023-11-15 12:37:20 -05:00
Oluwatobi Sofela daf47dfba1
docs: delete duplicate closing div tag (#9545)
* docs: delete duplicate closing div tag

* Fix another

* Fix another

---------

Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
2023-11-15 12:21:16 -05:00
Emma Alexia fed25eed0b
docs: Remove extraneous "hey" from configuration page (#9540)
* fix: Remove extraneous "hey" in Docusaurus configuration docs

* Fix

---------

Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
2023-11-13 11:15:44 -05:00
Sébastien Lorber b464545629
fix: v3 admonitions should support v2 title syntax for nested admonitions (#9535)
Fix admonition title mdx v1 compat option when admonition is nested
2023-11-11 22:23:27 +01:00
reece-white 95d3a65e74
chore: ugrade babel dependencies to v7.23.3 (#9529) 2023-11-10 19:16:36 +01:00
Mikey O'Toole be5b5c660f
docs: versioning docs should show example versioned sidebar files (#9500)
Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
Co-authored-by: sebastienlorber <lorber.sebastien@gmail.com>
2023-11-10 19:03:18 +01:00
Sébastien Lorber e68ef88336
fix(theme): docs html sidebar items should always be visible (#9531) 2023-11-10 18:12:55 +01:00
Sébastien Lorber 328e5f7ddc
fix(theme): fix firefox CSS :has() support bug (#9530) 2023-11-10 17:46:25 +01:00
dependabot[bot] e494f16d3c
chore(deps): bump actions/dependency-review-action from 3.1.0 to 3.1.1 (#9510)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-10 12:22:13 +01:00
Shahed Nasser 9b66f575e7
docs: fix incorrect package name for remark-emoji in migration guide (#9522) 2023-11-09 13:08:49 -05:00
Sébastien Lorber 791da2e4a1
fix(create-docusaurus): fix readme docusaurus 2 ref (#9487) 2023-10-31 23:15:16 +01:00
Mikey O'Toole 9a425bc51b
fix(website): Fix typo in announcement bar (#9484)
Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
2023-10-31 23:00:14 +01:00
Sébastien Lorber b3e16c66f3
chore: update examples for v3.0.0 (#9482) 2023-10-31 22:53:06 +01:00
Sébastien Lorber a456fefca1
docs: Docusaurus v3.0 blog post (#9433)
Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
Co-authored-by: Dmitry Vinnik <dmitryvinn@users.noreply.github.com>
2023-10-31 17:04:44 +01:00
Sébastien Lorber 85e5e552cb
chore: release Docusaurus 3.0.0 (#9478) 2023-10-31 16:39:21 +01:00
Sébastien Lorber 10897416dc
docs: archive v2 docs versions + create 2.x docs (#9472) 2023-10-30 14:06:32 +01:00
Sébastien Lorber 495c7936b6
chore: v3.0.0-rc.1 release (#9453) 2023-10-26 20:10:02 +02:00
Sébastien Lorber 4a0bd92148
docs: v3 upgrade guide should mention MDX v1 compat options (#9452) 2023-10-26 15:58:37 +02:00
Sébastien Lorber 7e456ece3c
feat(mdx-loader): upgrade to MDX v3 + (#9451) 2023-10-26 15:47:11 +02:00
Sébastien Lorber 8d19054d91
fix(theme): fix useWindowSize React hydration issue (#9446) 2023-10-25 18:18:15 +02:00
Sébastien Lorber d07567e411
chore: revert Lighthouse numberOfRuns due to bad/verbose reporting (#9448) 2023-10-25 12:28:49 +02:00
Sébastien Lorber dd03a25a71
chore: Make Lighthouse CI run on local build (#9447) 2023-10-25 11:44:47 +02:00
ozaki c6762a2542
feat(mdx-loader): Remark plugin to report unused MDX / Markdown directives (#9394)
Co-authored-by: sebastienlorber <lorber.sebastien@gmail.com>
2023-10-24 16:15:49 +02:00
Greg Bergé 56cc8e8ffa
chore(ci): fix missing screenshots on Argos (#9445) 2023-10-24 13:04:18 +02:00
Sébastien Lorber f80e1bdb32
refactor(blog-plugin): blog archive reverse ordering of posts (#9438) 2023-10-24 12:24:43 +02:00
dependabot[bot] 911dfb46d7
chore(deps): bump actions/setup-node from 3 to 4 (#9440)
* chore(deps): bump actions/setup-node from 3 to 4

Bumps [actions/setup-node](https://github.com/actions/setup-node) from 3 to 4.
- [Release notes](https://github.com/actions/setup-node/releases)
- [Commits](https://github.com/actions/setup-node/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/setup-node
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

* Update version numbers

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
2023-10-23 16:38:50 -04:00
dependabot[bot] e525794c9e
chore(deps): bump actions/checkout from 4.1.0 to 4.1.1 (#9441)
Bumps [actions/checkout](https://github.com/actions/checkout) from 4.1.0 to 4.1.1.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](8ade135a41...b4ffde65f4)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-23 16:33:21 -04:00
Sébastien Lorber aa958f0cc1
fix(plugin-blog): blog archive should hide unlisted blog posts (#9437) 2023-10-23 15:27:41 +02:00
Greg Bergé 2bb4fd0a65
chore(ci): use new Argos playwright integration (#9419)
Co-authored-by: sebastienlorber <lorber.sebastien@gmail.com>
2023-10-20 17:03:37 +02:00
Maciek Palmowski f674e02320
docs: update Kinsta deployment documentation (#9430)
Co-authored-by: Sébastien Lorber <slorber@users.noreply.github.com>
2023-10-20 14:59:24 +02:00
Sébastien Lorber 7ee2f75ce1
chore: v3.0.0-rc.0 release (#9418) 2023-10-20 11:24:29 +02:00
Sébastien Lorber 4e150d2b82
docs: add Docusaurus v3.0 upgrade guide (#9417) 2023-10-19 19:38:32 +02:00
Chongyi Zheng 45f1a669b5
feat(core): support TypeScript + ESM configuration (#9317)
Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
Co-authored-by: sebastienlorber <lorber.sebastien@gmail.com>
2023-10-14 02:46:03 +02:00
Sébastien Lorber 336a44f3ea
chore: remove docusaurus-migrate (#9400) 2023-10-13 12:37:43 +02:00
Surav Shrestha ae3191654c
docs: fix typos in website/docs/i18n/i18n-git.mdx (#9396) 2023-10-12 18:45:14 +02:00
Surav Shrestha d7890a18d4
docs: fix typos in website/docs/migration/migration-manual.mdx (#9397) 2023-10-12 18:43:34 +02:00
John Reilly 209aae6e57
chore: point lighthouse to blog to reproduce https://github.com/facebook/docusaurus/issues/9379 (#9393)
Co-authored-by: Sébastien Lorber <slorber@users.noreply.github.com>
2023-10-12 13:38:30 +02:00
Sébastien Lorber 4245b3d721
docs: fix algolia crowler config template link for v3 (#9388) 2023-10-09 19:20:56 +02:00
John Reilly 643a7fe5a3
fix(core): log missing errorInfo in React 18 onRecoverableError callback (#9387)
Co-authored-by: sebastienlorber <lorber.sebastien@gmail.com>
2023-10-09 15:28:06 +02:00
Sébastien Lorber d86aa0da5f
fix(mdx-loader): get correct error line numbers, handle front matter + contentTitle with remark (#9386) 2023-10-09 14:55:09 +02:00
Sébastien Lorber 35441b38e4
fix(theme): avoid rendering empty search container if site has no search plugin (#9385) 2023-10-08 20:04:42 +02:00
Sébastien Lorber 77b3b54def
chore: remove deprecated Google UA tracking id (#9384) 2023-10-08 19:28:48 +02:00
Jorens Merenjanu 1319996083
feat(core): throw error when official docusaurus dependencies use different versions (#9381)
Co-authored-by: sebastienlorber <lorber.sebastien@gmail.com>
2023-10-08 18:51:52 +02:00
Chongyi Zheng dceaae41d7
chore: upgrade syntax highlighting dependencies, `prism-react-renderer` to v2, `react-live` to v4 (#9316)
Co-authored-by: sebastienlorber <lorber.sebastien@gmail.com>
2023-10-06 19:15:14 +02:00
Dinh Bao Dang df42d891c2
docs(deployment): add permissions config to github action file in v2.4.3 (#9377) 2023-10-06 12:58:29 +02:00
Zwyx e17784effa
fix(mdx-loader): prevent Open Graph images from being inserted as base64 (#9369)
Co-authored-by: sebastienlorber <lorber.sebastien@gmail.com>
2023-10-05 14:21:27 +02:00
Sébastien Lorber 15647a3abd
chore: disable broken links check for i18n staging (#9375) 2023-10-05 12:49:12 +02:00
Sébastien Lorber 81d30a4712
chore: fix i18n staging deployment error (#9374) 2023-10-05 12:30:27 +02:00
Tatsunori Uchino bca375238f
fix(theme-translations): add Japanese translation for "warning" (#9362) 2023-10-05 09:47:44 +02:00
dependabot[bot] 360b80468f
chore(deps): bump postcss from 8.4.26 to 8.4.31 (#9367)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-05 09:45:09 +02:00
Joshua Chen 683fe37806
chore: do not error on broken links when doing test build (#9363) 2023-10-02 20:00:11 +02:00
Sébastien Lorber 0624007271
refactor(website): change date of v3 preparation blog post + add missing section (#9358) 2023-09-29 19:04:18 +02:00
Dan Roscigno 8ae5264fd4
fix(website): fix typo in v3 preparation blog post (#9357) 2023-09-29 15:41:36 +02:00
Sébastien Lorber e9e4635d76
docs: "Preparing your site for Docusaurus v3" blog post (#9333)
Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
2023-09-29 13:15:20 +02:00
ozaki bde9cfd84d
chore: update node engine version 18 (#9348)
Co-authored-by: Sébastien Lorber <slorber@users.noreply.github.com>
Co-authored-by: sebastienlorber <lorber.sebastien@gmail.com>
2023-09-28 16:45:25 +02:00
初冬 a178654446
fix(theme-translations): add missing zh-Hans messages (#9321) 2023-09-28 10:36:36 +02:00
dependabot[bot] ae4a6f9d94
chore(deps): bump actions/checkout from 4.0.0 to 4.1.0 (#9344) 2023-09-25 18:03:14 -04:00
la55u 519428bce2
fix(theme-translations): complete and fix hungarian translations (#9338) 2023-09-25 14:47:50 +02:00
Sébastien Lorber 46407ecc2d
chore: do not fail the build if a localized site has a broken link (#9339) 2023-09-22 17:50:50 +02:00
Sébastien Lorber 84b165c4f9
docs: "Upgrading frontend dependencies with confidence" blog post (#9330)
Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
2023-09-22 17:07:29 +02:00
Sébastien Lorber 710dd1ab8e
chore: docs versioning typo (#9331) 2023-09-20 19:18:51 +02:00
Sébastien Lorber 6b8c5dfd11
chore: update examples to Docusaurus 2.4.3 (#9329) 2023-09-20 18:08:53 +02:00
Sébastien Lorber bca980aeef
chore: rename 2.4.2 docs/changelog to 2.4.3 after bad publish (#9327) 2023-09-20 17:57:16 +02:00
Sébastien Lorber 68e4ceaaaa
docs: create Docusaurus v2.4.2 release docs + changelog (#9325) 2023-09-20 17:29:52 +02:00
Sébastien Lorber 507d65800d
chore(theme-search-algolia): revert docsearch package range downgrade after bugfix release (#9320) 2023-09-19 11:28:27 +02:00
Sébastien Lorber 52d79c4e0c
chore: v3.0.0-beta.0 release (#9311) 2023-09-15 19:44:35 +02:00
qwerzl 6e8e276e40
fix(cli): disable vertical borders of the update notification (#9309) 2023-09-15 18:55:28 +02:00
Sébastien Lorber 598b32011f
chore(plugin-docs): remove legacy versioned prefix on doc ids and sidebar names in versioned sidebars (#9310) 2023-09-15 18:52:42 +02:00
Sébastien Lorber f5ae537d3e
fix(theme): make warning a first-class admonition, and deprecate caution admonition (#9308) 2023-09-15 10:48:21 +02:00
Sébastien Lorber 58be496da2
feat(theme-mermaid): upgrade Mermaid to v10.4 - handle async rendering (#9305) 2023-09-14 17:23:07 +02:00
Biplav Kumar Mazumdar dc7ae426ac
fix(website): fix showcase search input (#9260)
Co-authored-by: sebastienlorber <lorber.sebastien@gmail.com>
2023-09-14 17:03:29 +02:00
Forresst bd8616a23f
chore(theme-translations): complete French translations (#9304) 2023-09-14 14:49:42 +02:00
Pinaki Bhattacharjee 83d9f228b3
fix(theme): improve docs sidebar category caret aria-label accessibility (#9269)
Co-authored-by: sebastienlorber <lorber.sebastien@gmail.com>
2023-09-14 13:01:02 +02:00
qwerzl 3cad29a0ad
chore(theme-translations): complete zh-Hant translations (#9302)
* Update theme-common.json

* Update packages/docusaurus-theme-translations/locales/zh-Hant/theme-common.json

Co-authored-by: Joshua Chen <sidachen2003@gmail.com>

---------

Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
2023-09-13 23:39:18 -04:00
dependabot[bot] 49bcd291f5
chore(deps): bump actions/dependency-review-action from 3.0.8 to 3.1.0 (#9298)
Bumps [actions/dependency-review-action](https://github.com/actions/dependency-review-action) from 3.0.8 to 3.1.0.
- [Release notes](https://github.com/actions/dependency-review-action/releases)
- [Commits](f6fff72a32...6c5ccdad46)

---
updated-dependencies:
- dependency-name: actions/dependency-review-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-11 17:04:18 -04:00
Andrés Villanueva 3f09fb11a1
fix(theme-translations): add missing Spanish theme translations (#9292) 2023-09-08 19:25:13 +02:00
Forresst 7ce0d87575
docs: fix bad link for create doc (#9288) 2023-09-07 12:31:03 +02:00
dependabot[bot] b9bdad747b
chore(deps): bump actions/checkout from 3 to 4 (#9277)
* chore(deps): bump actions/checkout from 3 to 4

Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

* Apply suggestions from code review

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
2023-09-05 19:14:28 -04:00
Sébastien Lorber 97d5dd094d
fix(theme-common): remove useless useSyncExternalStore shim (#9276) 2023-09-04 16:21:59 +02:00
Sébastien Lorber 6f9f8eeebd
chore: remove useless Argos screenshot css (#9273) 2023-08-31 13:56:07 +02:00
Sébastien Lorber 08f3a1163a
chore: refactor argos stylesheet + hide flaky producthunt badge (#9259) 2023-08-31 12:59:27 +02:00
Max Schmitt bc150d2c85
ci: only install Chromium for Playwright Argos tests (#9264) 2023-08-31 12:57:29 +02:00
Coupy a145205848
docs: fix typo in docs-introduction (#9267) 2023-08-31 12:28:23 +02:00
Sébastien Lorber 9868babf75
fix(mdx-loader): improve mdxJsxTextElementToHtml (#9262) 2023-08-25 19:05:16 +02:00
Sébastien Lorber b3c8f5c929
feat: Docusaurus v3 upgrades and require TypeScript 5 (#9258) 2023-08-25 10:54:58 +02:00
Sébastien Lorber da85e22778
test: fix flaky screenshots, add html data-has-hydrated attribute (#9256) 2023-08-25 08:13:48 +02:00
Hayden Hong 17d3e60e20
chore: bump devcontainer to Ubuntu 22.04 to resolve arm64 incompatibility (#9245) 2023-08-24 16:22:34 +02:00
Colin McDonnell 13a8ba1528
feat: support bun package manager in `create-docusaurus` (#9241) 2023-08-24 14:49:03 +02:00
dependabot[bot] 101e133f74
chore(deps): bump actions/dependency-review-action from 3.0.7 to 3.0.8 (#9251)
* chore(deps): bump actions/dependency-review-action from 3.0.7 to 3.0.8

Bumps [actions/dependency-review-action](https://github.com/actions/dependency-review-action) from 3.0.7 to 3.0.8.
- [Release notes](https://github.com/actions/dependency-review-action/releases)
- [Commits](7d90b4f05f...f6fff72a32)

---
updated-dependencies:
- dependency-name: actions/dependency-review-action
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

* Update .github/workflows/dependency-review.yml

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
2023-08-21 17:20:01 -04:00
dependabot[bot] bc22da956a
chore(deps): bump marocchino/sticky-pull-request-comment from 2.7.0 to 2.8.0 (#9250)
chore(deps): bump marocchino/sticky-pull-request-comment

Bumps [marocchino/sticky-pull-request-comment](https://github.com/marocchino/sticky-pull-request-comment) from 2.7.0 to 2.8.0.
- [Release notes](https://github.com/marocchino/sticky-pull-request-comment/releases)
- [Commits](f6a2580ed5...efaaab3fd4)

---
updated-dependencies:
- dependency-name: marocchino/sticky-pull-request-comment
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-08-21 17:08:43 -04:00
Hidde de Vries 0cb84b831d
docs: Reword comparison between React authoring and CSS authoring (#9247)
This sentence contrasts authoring React with authoring CSS. The previous version did this in a way that makes the React authoring seem like a more advanced activity (“actual (…) code”), and authoring CSS the less advanced (described as “playing with”). The rewording tries to address that.
2023-08-20 13:30:03 -04:00
Sébastien Lorber cf723b74e7
chore: remove QuestDB from showcase (#9244) 2023-08-18 17:45:53 +02:00
Sébastien Lorber ca352686dc
fix(theme-common): ThemedComponent should display something when JS is disabled (#9243) 2023-08-18 17:11:52 +02:00
James Kerrane 67c40069d1
docs: fix grammatical error, rewrite sentence to make clearer (#9223) 2023-08-17 12:24:48 +02:00
dependabot[bot] 24fabd2fa4
chore(deps): bump actions/dependency-review-action from 3.0.6 to 3.0.7 (#9227)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-08-17 11:03:01 +02:00
Biplav Kumar Mazumdar 9da986e626
docs(website): Add a "clearAll" button to site showcase (#9233) 2023-08-16 19:51:51 +02:00
Sébastien Lorber a59aead1e2
chore: attempt to fix Crowdin issues (#9220) 2023-08-12 02:56:54 +02:00
Sébastien Lorber 4aef958a99
test(argos): fix Argos visual tests flakiness, hide docs last-update element (#9219) 2023-08-11 15:30:20 +02:00
yosukekato165 19ee437f64
fix(mdx-loader): ensure heading anchor slugs respect GitHub emoji behavior (#9202)
Co-authored-by: YosukeKato <katouyousuke@YosukeKato.local>
2023-08-10 18:17:07 +02:00
Sujal Gupta 1e40943176
fix(theme): make Prism code block language / additionalLanguages case insensitive (#9183)
Co-authored-by: sebastienlorber <lorber.sebastien@gmail.com>
2023-08-10 17:30:41 +02:00
Sébastien Lorber b96004e77e
fix(create-docusaurus): increase Browserslist support query in dev (#9217) 2023-08-10 16:30:07 +02:00
Gareth Dwyer 577df0346d
fix(theme): fix typo in swizzle component config (#9216) 2023-08-10 15:13:50 +02:00
Jean Humann fa39e8c008
docs(pdf): replace mr-pdf with maintained fork docs-to-pdf (#9212) 2023-08-10 15:09:12 +02:00
Joshua Chen 3e9648e3d6
docs: add the missing import logger statement (#9210) 2023-08-07 17:41:23 -04:00
rsteele6 3c1fe15b17
docs: grammar fixes and minor clarifications (#9150)
* Grammar fixes and minor clarifications

* Apply suggestions from code review

There's still a few pending ones that I posted replies on; I'll send those in a separate commit.

Co-authored-by: Joshua Chen <sidachen2003@gmail.com>

* Update website/docs/deployment.mdx

Co-authored-by: Joshua Chen <sidachen2003@gmail.com>

* Update website/docs/deployment.mdx

* PR 9150: made updates based on comments

* Prettier

---------

Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
Co-authored-by: Sébastien Lorber <slorber@users.noreply.github.com>
2023-08-06 23:28:39 -04:00
VinceCYLiao 109ab0c293
fix(content-blog): links in feed should be absolute (#9151)
Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
Co-authored-by: 政宇 廖 <vince.liao@nextbank.com.tw>
Co-authored-by: Sébastien Lorber <slorber@users.noreply.github.com>
Co-authored-by: sebastienlorber <lorber.sebastien@gmail.com>
2023-08-03 18:36:40 +02:00
Sébastien Lorber 062a0d2eb6
test(blog-plugin): fix ability to generate proper blog website fixture build snapshot (#9195) 2023-08-03 17:57:11 +02:00
John Reilly 4ecc86f89f
feat(blog-plugin): limit option for blog feedOptions (#9189) 2023-08-03 15:53:43 +02:00
thedevwonder e0bb39a40a
fix(theme): change schema.org itemType prop urls from http to https (#9184) 2023-07-28 19:37:05 +02:00
FlorinaPacurar 5e147e8914
feat(theme): add support for meta og locale and alternates (#9152) 2023-07-28 17:16:46 +02:00
Oluwatobi Sofela 983fb2d273
docs: remove 'import type' declaration in javascript snippet (#9180) 2023-07-27 15:07:57 +02:00
Oluwatobi Sofela 2276dfbd3e
docs: improve the opening sentence's clarity (#9177) 2023-07-27 12:39:08 +02:00
dependabot[bot] b7f16b7b2e
chore(deps): bump marocchino/sticky-pull-request-comment from 2.6.2 to 2.7.0 (#9174)
chore(deps): bump marocchino/sticky-pull-request-comment

Bumps [marocchino/sticky-pull-request-comment](https://github.com/marocchino/sticky-pull-request-comment) from 2.6.2 to 2.7.0.
- [Release notes](https://github.com/marocchino/sticky-pull-request-comment/releases)
- [Commits](f61b6cf21e...f6a2580ed5)

---
updated-dependencies:
- dependency-name: marocchino/sticky-pull-request-comment
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-07-25 10:41:49 -04:00
Sébastien Lorber 09ea3bcfab
feat(client-redirects-plugin): support fully qualified urls and querystring/hash in destination/to url (#9171) 2023-07-21 19:54:40 +02:00
Ori Shalom 4ea0a70f93
fix(theme): canonical url should be not change after hydration if url accessed with/without trailing slash (#9130)
Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
Co-authored-by: sebastienlorber <lorber.sebastien@gmail.com>
2023-07-21 19:22:26 +02:00
Joshua Chen cd61c7bddc
fix(core): handle single quotes inside file paths (#9160) 2023-07-21 15:16:10 +02:00
Webber Takken 43d070ec55
docs: improve yarn deps upgrade command (#9149) 2023-07-20 12:08:06 +02:00
ModupeD f295e4fd64
docs: add Flightcontrol as a deployment option (#9139)
Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
Co-authored-by: sebastienlorber <lorber.sebastien@gmail.com>
2023-07-20 11:46:44 +02:00
Joshua Chen ff227283d2
chore: upgrade dependencies (non-major) (#9148)
* chore: upgrade dependencies (non-major)

* Downgrade
2023-07-16 23:44:17 +08:00
Tatsunori Uchino 16a366b5ec
fix(init): change initial site URL to one that is safe for the future (#9133)
RFC 2606 reserves the `.example` domain for illustrative purposes.
2023-07-13 21:59:23 +08:00
Ahmad Shrif 26ae4164d6
feat(cli): deploy command should allow customizing git config user.name / user.email in deployment branch (#9101) (#9102)
Co-authored-by: sebastienlorber <lorber.sebastien@gmail.com>
2023-07-03 09:51:50 +02:00
Sébastien Lorber e8c1312793
fix(debug-plugin): upgrade react-json-view to maintained React-18 compatible fork (#9116) 2023-06-30 19:12:47 +02:00
Sébastien Lorber cde35d0f1f
chore: optimize Argos CI setup (#9115) 2023-06-30 18:12:46 +02:00
thedevwonder 8ea1945f35
fix(core): throw error if build folder already exists on initial clean (#9112)
Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
2023-06-30 17:58:24 +02:00
Mikey O'Toole c8e7ce33f5
fix(theme): only set classname on ul elements if they have an existing class (#9099)
Co-authored-by: Sébastien Lorber <slorber@users.noreply.github.com>
Co-authored-by: sebastienlorber <lorber.sebastien@gmail.com>
2023-06-30 15:39:07 +02:00
TheCatLady 9391a33c41
fix(content-docs): sidebar generator should return customProps for doc items (#9107) 2023-06-29 12:13:48 +02:00
TheCatLady 05156d05b9
feat(theme-classic): add description & keywords microdata to blog posts (#9108) 2023-06-29 12:02:22 +02:00
Sébastien Lorber ae2a09359a
fix(mdx): fix for html multi-line comments (#9100) 2023-06-23 19:33:03 +02:00
Sébastien Lorber cc6d9696f0
feat(mdx): add siteConfig.markdown.format to configure the default content parser (MDX / CommonMark) (#9097) 2023-06-23 18:15:05 +02:00
dependabot[bot] be4e67caa9
chore(deps): bump semver from 7.3.8 to 7.5.2 (#9096)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-06-23 09:18:49 +02:00
Sébastien Lorber 3b85f0713a
fix(theme): support details/summary in CommonMark + add md dogfood test cases (#9093) 2023-06-22 18:33:07 +02:00
Kolja Lampe 7225d80271
docs: fix themeConfig.prism.defaultLanguage table api ref docs (#9082)
Co-authored-by: Sébastien Lorber <slorber@users.noreply.github.com>
2023-06-22 18:30:39 +02:00
Sébastien Lorber 0b3d5cb59e
fix(mdx-loader): loader error message should display stacktrace if no extra MDX details (#9091) 2023-06-22 16:44:01 +02:00
Shun Wakatsuki 48df4f1f0d
docs: fix filenames in docs/swizzling.mdx (#9074) 2023-06-16 17:40:17 +02:00
Sébastien Lorber 7d033cc8c0
chore: v3.0.0-alpha.0 release (#9072) 2023-06-15 17:48:55 +02:00
Sébastien Lorber 9866af7f44
feat(pages): add support for missing SEO front matter + improve SEO docs (#9071)
Co-authored-by: Thad Guidry <thadguidry@gmail.com>
2023-06-15 16:07:00 +02:00
Sujal Gupta 117cbac702
docs: update link for commonly used languages (#9065) 2023-06-14 17:33:23 +02:00
Manuel adebab969c
docs: update outdated links in showcase (#9055) 2023-06-14 17:24:30 +02:00
Marie ae1e49de5e
docs: add @markprompt/docusaurus-theme-search (#9063)
Co-authored-by: Sébastien Lorber <slorber@users.noreply.github.com>
2023-06-14 17:23:25 +02:00
dependabot[bot] d7a9c9f18e
chore(deps): bump github/codeql-action from 2.3.6 to 2.13.4 (#9061)
Bumps [github/codeql-action](https://github.com/github/codeql-action) from 2.3.6 to 2.13.4.
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](83f0fe6c49...cdcdbb5797)

---
updated-dependencies:
- dependency-name: github/codeql-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-06-13 12:01:22 +08:00
Sébastien Lorber 012b285805
feat: create official TypeScript base config @docusaurus/tsconfig (#9050) 2023-06-09 15:21:46 +02:00
Sanjaiyan Parthipan 6102a5a671
feat: use React 18 startTransition for hydration (#9051) 2023-06-09 12:18:25 +02:00
Sébastien Lorber 187e5aa218
feat: React 18 + automatic JSX runtime + build --dev (#8961) 2023-06-08 19:40:15 +02:00
Joshua Chen 76f920359b
fix(utils): better handling of code blocks in link replacement (#9046) 2023-06-08 12:16:56 +02:00
Grégory Heitz dcce8ff3cd
docs: update info for community plugin docusaurus2-graphql-doc-generator (#9033) 2023-06-08 11:45:53 +02:00
Adithya Krishna 9d686bd7c8
docs: fix prism theme broken link in code blocks docs (#9044) 2023-06-08 10:53:33 +02:00
Adam Patterson c6c619e2f6
docs: fix grammar typo in swizzling.mdx (#9043) 2023-06-08 10:50:33 +02:00
dependabot[bot] ee15dec809
chore(deps): bump github/codeql-action from 2.3.5 to 2.3.6 (#9038)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-06-07 17:55:28 +02:00
dependabot[bot] 31da9a96e7
chore(deps): bump actions/dependency-review-action from 3.0.4 to 3.0.6 (#9039)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-06-07 17:55:15 +02:00
Akshay Bhalotia 4ac900da24
fix: typo in the sample site structure (#9042) 2023-06-07 01:57:28 +08:00
Sébastien Lorber 2d35edf911
feat(theme): add ability to inject data attributes from query-string - possibility to create an iframe/embed variant of a page (#9028) 2023-05-31 16:22:25 +02:00
bitpredator 444c1576ca
chore(theme-translations): complete it translations (#9025)
Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
2023-05-31 14:35:15 +02:00
Sébastien Lorber ffcc68d1cf
chore: remove facebook template (#9026) 2023-05-31 12:54:40 +02:00
Wan Sim b4087720cb
fix(core): docusaurus CLI should detect the correct yarn version when suggesting upgrades (#9006)
* fix(core): Correct yarn version detection

Correct yarn version detection by checking `yarnPath` value inside `.yarnrc.yml` file
Add js-yaml in package.json

* Change to use `shelljs` instead of `js-yaml`

* Change echo mode to silent

* Check `yarn.lock` exist, before version checking

* Remove unnecessary optional chaining

Nullish coalescing operator still provides the fallback value

Co-authored-by: Joshua Chen <sidachen2003@gmail.com>

---------

Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
2023-05-31 11:54:44 +02:00
0x24Karthick 6939444c31
docs: remove Meta Data Policy footer link on website (#9024) 2023-05-31 11:37:05 +02:00
Mogyuchi 07d85af144
docs: fix link to rehype (#9018) 2023-05-30 17:17:52 +02:00
Gustav Tonér 8fb6057e31
fix(theme-transalations): fix Swedish translation of "last updated" (#9021) 2023-05-30 17:15:22 +02:00
JJ Style 30a4181290
feat(theme-common): code block MagicComments support for TeX/LaTeX/Matlab (#8982)
Co-authored-by: Sébastien Lorber <slorber@users.noreply.github.com>
2023-05-30 15:28:28 +02:00
Naman Garg 4f3901b932
docs: fix broken link in code blocks docs (#8993) 2023-05-30 15:02:02 +02:00
dependabot[bot] e6533ca2f1
chore(deps): bump github/codeql-action from 2.3.3 to 2.3.5 (#9019) 2023-05-30 14:15:35 +08:00
Sébastien Lorber 9af32ae0d5
chore: update examples to Docusaurus 2.4.1 (#8981) 2023-05-15 15:50:54 +02:00
Sébastien Lorber ec3cb1f67d
docs: create Docusaurus v2.4.1 release docs + changelog (#8980) 2023-05-15 15:40:37 +02:00
Raphaël Barbazza 8b109342c8
docs: update link in md code blocks section (#8975)
Co-authored-by: Sébastien Lorber <slorber@users.noreply.github.com>
2023-05-15 14:38:07 +02:00
Raphaël Barbazza 509189e61f
docs: update broken links theme configuration page (#8976)
Co-authored-by: Sébastien Lorber <slorber@users.noreply.github.com>
2023-05-15 14:37:24 +02:00
Sébastien Lorber d746f689ae
fix: remove useless js-loader in front of mdx-loader (#8972) 2023-05-12 16:31:39 +02:00
Sébastien Lorber 905fe7f4b4
fix(theme): fix collapsible sidebar behavior when prefers-reduced-motion (#8971) 2023-05-12 12:18:34 +02:00
conlacda 3170515c89
docs: fix broken link to Prism includeLangs.js default list of languages (#8904) 2023-05-12 12:15:09 +02:00
Sébastien Lorber 07ad635b69
fix: allow html syntax in MDX v2 with format md (#8960)
* attempt to support html embeds in mdx with format md

* refactor mdx loader + support embedding html in commonmark thanks to rehype-raw

* extract processor code

* refactor processor code

* extract format + unit test

* try to refactor processor

* try to refactor processor

* adjust md page

* do not apply rehype-raw when format is mdx

* fix lint issue
2023-05-12 11:36:42 +02:00
dependabot[bot] af9a4f2a2e
chore(deps): bump github/codeql-action from 2.3.2 to 2.3.3 (#8964)
* chore(deps): bump github/codeql-action from 2.3.2 to 2.3.3

Bumps [github/codeql-action](https://github.com/github/codeql-action) from 2.3.2 to 2.3.3.
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](f3feb00acb...29b1f65c5e)

---
updated-dependencies:
- dependency-name: github/codeql-action
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

* Apply suggestions from code review

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
2023-05-08 20:16:49 -04:00
Thad Guidry fb4a5fb197
docs: mention equivalent config syntaxes (#8951)
Co-authored-by: sebastienlorber <lorber.sebastien@gmail.com>
2023-05-05 12:41:50 +02:00
samatt14 8beeb81c8a
docs(plugin-ideal-image): mention plugin changes type of imported images (#8948)
Co-authored-by: Sébastien Lorber <slorber@users.noreply.github.com>
Co-authored-by: sebastienlorber <lorber.sebastien@gmail.com>
2023-05-03 19:38:05 +02:00
Thad Guidry cf9fa2e78f
docs: bidirectional link between api config and guide config (#8950)
Co-authored-by: Sébastien Lorber <slorber@users.noreply.github.com>
2023-05-03 19:14:41 +02:00
Thad Guidry 2a96ec01de
polish(create-docusaurus): add comment in config to mention different ways to declare config + doc link (#8944)
Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
2023-05-03 18:36:29 +02:00
allyw2002 7e01f36f37
docs: mention blog truncating marker edge case (#8953) 2023-05-03 18:17:27 +02:00
dependabot[bot] 1be4585f49
chore(deps): bump github/codeql-action from 2.3.0 to 2.3.2 (#8955)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-05-03 17:59:23 +02:00
MetuMortis 090316e66d
fix(theme-translations): fix Turkish translation for aria label "Enter key" (#8933) 2023-04-29 19:28:34 +02:00
Sébastien Lorber 44b5b06814
test: add visual regression tests with Argos CI (#8947) 2023-04-28 16:04:22 +02:00
Sébastien Lorber 7e09ae0c57
docs: rewrite some docs for mdx v2 (#8941)
Co-authored-by: Balthasar Hofer <lebalz@outlook.com>
Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
2023-04-28 15:49:41 +02:00
Thad Guidry 2cae24fe5f
docs: mention docusaurus.community site in resources (#8943)
Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
2023-04-28 12:46:55 +02:00
Joshua Chen 9e0b62fe6c
fix(utils): make Markdown link replacement much more rigorous (#8927) 2023-04-27 17:57:11 +02:00
John Cao 41f1c1e3c2
docs: mdx-js is using v2 for next edition (#8920) 2023-04-26 17:57:37 +02:00
Joshua Chen 1279765f75
chore: upgrade TypeScript to v5.0 (#8926) 2023-04-25 03:10:16 -04:00
dependabot[bot] 85b108aed2
chore(deps): bump marocchino/sticky-pull-request-comment from 2.5.0 to 2.6.2 (#8922) 2023-04-24 19:59:03 -04:00
dependabot[bot] a1129167da
chore(deps): bump treosh/lighthouse-ci-action from 9.6.8 to 10.1.0 (#8923) 2023-04-24 19:50:11 -04:00
dependabot[bot] 08f2b6828b
chore(deps): bump github/codeql-action from 2.2.12 to 2.3.0 (#8924) 2023-04-24 19:48:32 -04:00
Sébastien Lorber bf913aea2a
feat: upgrade to MDX v2 (#8288)
Co-authored-by: Armano <armano2@users.noreply.github.com>
2023-04-21 19:48:57 +02:00
Will Ceolin 10f161d578
feat(theme): add queryString option to localeDropdown (#8915)
Co-authored-by: Sébastien Lorber <slorber@users.noreply.github.com>
2023-04-21 12:35:02 +02:00
Sébastien Lorber 4a4a8be062
chore: migrate website config to createConfigAsync (#8911) 2023-04-21 12:00:09 +02:00
Andrew Lyons 41a52161fd
fix(core): Correct yarn upgrade command for yarn 2.x (#8908)
Co-authored-by: sebastienlorber <lorber.sebastien@gmail.com>
2023-04-20 16:54:04 +02:00
Sébastien Lorber d220f481a7
fix(theme): add __ prefix to technical anchors, search crawlers (Algolia) should ignore them (#8909) 2023-04-20 16:39:50 +02:00
Sébastien Lorber f154b2f870
fix(theme-common): fix collapsible component with prefers-reduced-motion (#8906) 2023-04-19 19:07:31 +02:00
Aqueeb 9c7e29a157
docs: changing shopping card to shopping cart (#8898)
* docs: changing shopping card to shopping cart

* docs: changing shoppping card to shoppint cart (retriggering builds)
2023-04-18 22:56:56 -04:00
dependabot[bot] f852ea631f
chore(deps): bump github/codeql-action from 2.2.11 to 2.2.12 (#8899) 2023-04-17 20:50:24 -04:00
dependabot[bot] 4f7ff9448d
chore(deps): bump actions/checkout from 3.5.0 to 3.5.2 (#8900) 2023-04-17 20:50:03 -04:00
Tarun Chauhan b169404efd
feat(theme-common): code block MagicComments support for Lua/Haskell -- and WebAssembly ;; (#8870)
Co-authored-by: Tarun Chauhan <tarun.chauhan@tripjack.com>
Co-authored-by: Sébastien Lorber <slorber@users.noreply.github.com>
2023-04-14 12:01:28 +02:00
Sébastien Lorber 08cfe4e3c9
fix(theme-common): fix confusing theme error message: bad sidebar id suggestions (#8873) 2023-04-13 16:41:29 +02:00
Sébastien Lorber f76fc1bfac
feat(theme): create more generic ThemedComponent util from ThemedImage (#8890) 2023-04-13 16:29:02 +02:00
Sébastien Lorber 14586895ae
docs: improve sidebar items custom props docs (#8888) 2023-04-13 12:24:27 +02:00
Eduardo Mínguez 35183d7d87
docs: add "permissions.content: write" to GH workflow examples (#8877)
Co-authored-by: Sébastien Lorber <slorber@users.noreply.github.com>
2023-04-13 10:04:07 +02:00
Aleksandr Vladykin 2b994262b0
fix(utils): handle Markdown links with spaces to route correctly (#8874) 2023-04-12 19:14:26 +02:00
dependabot[bot] 3d31c55fe7
chore(deps): bump actions/github-script from 6.4.0 to 6.4.1 (#8879)
Bumps [actions/github-script](https://github.com/actions/github-script) from 6.4.0 to 6.4.1.
- [Release notes](https://github.com/actions/github-script/releases)
- [Commits](98814c53be...d7906e4ad0)

---
updated-dependencies:
- dependency-name: actions/github-script
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-04-10 21:22:11 -04:00
dependabot[bot] 54f66c9e4e
chore(deps): bump github/codeql-action from 2.2.9 to 2.2.11 (#8878)
Bumps [github/codeql-action](https://github.com/github/codeql-action) from 2.2.9 to 2.2.11.
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](04df1262e6...d186a2a36c)

---
updated-dependencies:
- dependency-name: github/codeql-action
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-04-10 21:21:55 -04:00
Sébastien Lorber a9a5f89b9f
fix(core): better error logging on SSR/dev failures + log stacktraces and error causes (#8872) 2023-04-07 19:00:59 +02:00
Chua Chee How 46d2aa231d
docs: add description on blog post file/folder naming conventions and date extraction patterns (#8845)
Co-authored-by: Sébastien Lorber <slorber@users.noreply.github.com>
2023-04-06 15:51:01 +02:00
Armano 1d42955d67
refactor(theme): expose copy, success and word-wrap icons as standalone components (#8862) 2023-04-06 15:46:52 +02:00
Tarun Chauhan 59a0b7ae15
fix(theme-translations): remove redundant navigation text in aria label (#8842)
Co-authored-by: Tarun Chauhan <tarun.chauhan@tripjack.com>
2023-04-06 15:05:43 +02:00
Mikey O'Toole 096a7b5f23
fix: add auto theme switch to the Canny widget (#8846)
Co-authored-by: sebastienlorber <lorber.sebastien@gmail.com>
2023-04-06 15:00:27 +02:00
Jordan Manley 829a218a3f
docs: correct small grammar error (#8865)
Co-authored-by: JORDAN MANLEY <jordanmanley@JORDANs-MacBook-Pro.local>
2023-04-06 12:35:03 +02:00
Paul Razvan Berg 22f0101015
docs: link to mermaid config types (#8830) 2023-04-06 12:02:34 +02:00
Sachin Nanayakkara be0ac6c2cd
fix(create): add missing await (#8831) 2023-03-28 12:28:34 -04:00
dependabot[bot] 3f73221286
chore(deps): bump github/codeql-action from 2.2.7 to 2.2.9 (#8836)
Bumps [github/codeql-action](https://github.com/github/codeql-action) from 2.2.7 to 2.2.9.
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](168b99b3c2...04df1262e6)

---
updated-dependencies:
- dependency-name: github/codeql-action
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-27 17:25:51 -04:00
dependabot[bot] 1857d17b9e
chore(deps): bump actions/checkout from 3.4.0 to 3.5.0 (#8837)
Bumps [actions/checkout](https://github.com/actions/checkout) from 3.4.0 to 3.5.0.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](24cb908017...8f4b7f8486)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-27 17:25:14 -04:00
Sébastien Lorber e983f87005
chore: Crowdin download languages pt-BR + ja (#8822) 2023-03-24 16:38:18 +01:00
Sébastien Lorber 7e817a42ac
chore: use Crowdin CLI --language option to filter languages to download (#8820) 2023-03-24 15:10:16 +01:00
Sébastien Lorber b0f9fb2db4
chore: fix production site deployment due to Crowdin (#8818) 2023-03-24 13:26:07 +01:00
Sébastien Lorber c985513280
chore: update examples to Docusaurus 2.4.0 (#8815) 2023-03-23 19:50:19 +01:00
Sébastien Lorber 97caab16d4
docs: create Docusaurus v2.4.0 release docs + changelog + release blog post (#8811) 2023-03-23 19:32:09 +01:00
Sébastien Lorber da9f86409d
chore: fix workbox precaching page link + weird mdx structure breaking Crowdin (#8810) 2023-03-23 16:07:46 +01:00
Vishruta Patil a51ec623df
fix(theme): codeblock buttons should be kept on the right when using RTL locale (#8803)
Co-authored-by: sebastienlorber <lorber.sebastien@gmail.com>
2023-03-22 19:59:59 +01:00
Anton Kastritskii 9c6b79b579
docs: update suggestion for OSS meta projects (#8804) 2023-03-22 19:42:11 +01:00
Joshua Chen 3a73fdb53f
fix(theme): allow tabs children to be falsy (#8801) 2023-03-22 19:15:43 +01:00
dependabot[bot] c04fab3bfb
chore(deps): bump actions/checkout from 3.3.0 to 3.4.0 (#8797)
Bumps [actions/checkout](https://github.com/actions/checkout) from 3.3.0 to 3.4.0.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](ac59398561...24cb908017)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-20 22:24:36 +01:00
dependabot[bot] 2c4d2c1522
chore(deps): bump actions/dependency-review-action from 3.0.3 to 3.0.4 (#8796)
Bumps [actions/dependency-review-action](https://github.com/actions/dependency-review-action) from 3.0.3 to 3.0.4.
- [Release notes](https://github.com/actions/dependency-review-action/releases)
- [Commits](c090f4e553...f46c48ed6d)

---
updated-dependencies:
- dependency-name: actions/dependency-review-action
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-20 22:24:17 +01:00
dependabot[bot] 2106b17688
chore(deps): bump github/codeql-action from 2.2.6 to 2.2.7 (#8795)
Bumps [github/codeql-action](https://github.com/github/codeql-action) from 2.2.6 to 2.2.7.
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](16964e90ba...168b99b3c2)

---
updated-dependencies:
- dependency-name: github/codeql-action
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-20 22:24:01 +01:00
Sébastien Lorber 361dfda2fd
docs: remove problematic mdx2 anchor id docs for MDX 2 migration (#8788) 2023-03-17 18:10:04 +01:00
biplavmz 49b1795c8a
polish(create-docusaurus): the starter template should use a navbar item "docSidebar" instead of "doc" (less fragile on updates) (#8712)
Co-authored-by: sebastienlorber <lorber.sebastien@gmail.com>
2023-03-16 17:18:42 +01:00
Sébastien Lorber 9c920c531b
docs: prepare docs for MDX 2 (#8782) 2023-03-16 17:02:38 +01:00
Sébastien Lorber 07c57a1528
chore: vendor MDX deps for Jest and the MDX 2 upgrade (#8781) 2023-03-16 15:57:46 +01:00
Sébastien Lorber ced57e501a
docs: fix localhost url without link (#8780) 2023-03-16 15:41:17 +01:00
Sébastien Lorber 88b6f5fc68
docs: v2 docs should discourage the usage of a lower-case MDX component (will not work in v3) (#8779) 2023-03-16 15:23:55 +01:00
Davide Donadio 5c271f5622
feat(content-docs): add support for sidebar item category/link descriptions in generated index page (#8236)
Co-authored-by: Davide Donadio <davide.donadio@it.clara.net>
Co-authored-by: sebastienlorber <lorber.sebastien@gmail.com>
2023-03-16 10:14:42 +01:00
Fxpby ca86fab2c9
docs: add description for themeConfig.footer fields copyright (#8761) 2023-03-15 19:11:35 +01:00
dependabot[bot] cff6c01dbf
chore(deps): bump treosh/lighthouse-ci-action from 9.3.1 to 9.6.8 (#8766)
Bumps [treosh/lighthouse-ci-action](https://github.com/treosh/lighthouse-ci-action) from 9.3.1 to 9.6.8.
- [Release notes](https://github.com/treosh/lighthouse-ci-action/releases)
- [Commits](e0fe113967...2e159d989f)

---
updated-dependencies:
- dependency-name: treosh/lighthouse-ci-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-13 22:11:13 +01:00
dependabot[bot] f478e27dc1
chore(deps): bump github/codeql-action from 2.2.5 to 2.2.6 (#8767)
Bumps [github/codeql-action](https://github.com/github/codeql-action) from 2.2.5 to 2.2.6.
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](32dc499307...16964e90ba)

---
updated-dependencies:
- dependency-name: github/codeql-action
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-13 22:11:04 +01:00
Sébastien Lorber 2f75979bc5
fix(search): search page should react to querystring changes + cleanup/refactor (#8757) 2023-03-10 19:13:58 +01:00
Tanner Dolby ea2b13ea94
polish(theme): better error messages on navbar item rendering failures + ErrorCauseBoundary API (#8735)
Co-authored-by: sebastienlorber <lorber.sebastien@gmail.com>
2023-03-09 18:56:21 +01:00
Tanner Dolby 7961c5b8d5
polish(core): better styling for error screens (#8736)
Co-authored-by: sebastienlorber <lorber.sebastien@gmail.com>
2023-03-09 16:13:19 +01:00
Joshua Chen e21591c073
chore: upgrade dependencies (non-major) (#8749)
chore: upgrade dependencies
2023-03-08 21:28:14 -05:00
Sébastien Lorber 4f790c705f
fix(core): baseUrl error banner link anchor case (#8746) 2023-03-08 19:21:22 +01:00
Anas 1a6879218d
fix(theme-translations): fix wrong arabic words (tip/next) (#8744) 2023-03-08 18:40:18 +01:00
dependabot[bot] 9866b7ef90
chore(deps): bump github/codeql-action from 2.2.4 to 2.2.5 (#8739)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-08 17:14:40 +01:00
Sébastien Lorber 0f7552accb
feat(theme): allow to load a Docusaurus page with theme from query-string: ?docusaurus-theme=dark (#8708) 2023-03-03 12:54:35 +01:00
Sébastien Lorber 50b1dc7db3
fix: bad routing for docusaurus.new ts functions (#8724) 2023-03-02 17:37:22 +01:00
Sébastien Lorber 62aba771df
docs: add TypeScript playgrounds to docusaurus.new + Playground page (#8723) 2023-03-02 17:07:29 +01:00
Fredrik Stave e78a6a6610
docs: add dark mode version of BrowserStack logo (#8709)
Co-authored-by: Fredrik Stave <fredrik.stave@schibsted.com>
2023-03-02 16:24:31 +01:00
Armano fabf053def
feat(npm-to-yarn): add support for PnPm and custom converters (#8690)
Co-authored-by: Ben Gubler <nebrelbug@gmail.com>
Co-authored-by: sebastienlorber <lorber.sebastien@gmail.com>
2023-02-24 17:59:15 +01:00
Sébastien Lorber 17781fd5d3
feat(core): add script env variables: NODE_ENV + BABEL_ENV + DOCUSAURUS_CURRENT_LOCALE (temporary i18n workaround) (#8677) 2023-02-24 14:19:39 +01:00
Dewansh Thakur fd021bdf47
fix(theme): improve color toggle when using dark navbar (#8615)
Co-authored-by: sebastienlorber <lorber.sebastien@gmail.com>
2023-02-23 19:24:03 +01:00
Kagan 1293970ebf
fix(theme-classic): fix tab focus bug in dropdown (#8697) (#8699)
Co-authored-by: sebastienlorber <lorber.sebastien@gmail.com>
2023-02-23 16:56:06 +01:00
Sébastien Lorber f8edeb0816
feat(theme-classic): respect `prefers-reduced-motion: reduce` mediaquery, bump Infima to alpha.43 (#8674) 2023-02-17 13:03:38 +01:00
Oleksandr Fediashov d98edcd95c
chore: bump update-notifier (#8660)
Co-authored-by: sebastienlorber <lorber.sebastien@gmail.com>
Fixes https://github.com/facebook/docusaurus/issues/8277
2023-02-17 11:18:15 +01:00
TrueQAP 1b9e2f2d45
feat(theme-translations): add Hungarian theme translations (#8668)
Co-authored-by: Sébastien Lorber <slorber@users.noreply.github.com>
2023-02-16 17:15:34 +01:00
Mysterious_Dev 10a8d1264b
feat(theme): add ability to translate navbar+footer logo alt text (#8616)
Co-authored-by: sebastienlorber <lorber.sebastien@gmail.com>
2023-02-16 17:14:45 +01:00
Moritz Stückler 533777cf2b
feat(theme-common): allow passing a string for details summary (#8656)
Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
2023-02-16 16:14:09 +01:00
Mikey O'Toole 5edd594613
docs: clarify query string behavior (#8642) 2023-02-16 16:07:15 +01:00
Petter Drønnen f40ac082ef
feat(theme-translations): add Norwegian (Bokmål) theme translation (#8631) 2023-02-15 20:00:55 +01:00
dependabot[bot] 1b4808d5d6
chore(deps): bump marocchino/sticky-pull-request-comment from 2.3.1 to 2.5.0 (#8663) 2023-02-13 16:52:24 -05:00
dependabot[bot] 6cb83fb5db
chore(deps): bump github/codeql-action from 2.2.2 to 2.2.4 (#8662) 2023-02-13 16:51:51 -05:00
Mysterious_Dev 6b618bc9e5
docs: normalize README for ideal-image plugin (#8630) 2023-02-08 01:05:14 -05:00
prateekbytes 620d185f13
docs: fix typo in CONTRIBUTING (#8637)
Update CONTRIBUTING.md
2023-02-08 01:00:33 -05:00
dependabot[bot] d23514d84c
chore(deps): bump github/codeql-action from 2.2.1 to 2.2.2 (#8638) 2023-02-06 15:29:30 -05:00
Sébastien Lorber 4a0d18905c
chore: update examples to Docusaurus 2.3.1 (#8629) 2023-02-03 15:04:21 +01:00
Sébastien Lorber ed1628e182
docs: create Docusaurus v2.3.1 release docs + changelog (#8627) 2023-02-03 14:48:39 +01:00
Sébastien Lorber 50d6d1e56b
fix(theme-common): fix issue in tab scroll position restoration on tab click (#8628) 2023-02-03 12:48:58 +01:00
dependabot[bot] faadfad30d
chore(deps): bump http-cache-semantics from 4.1.0 to 4.1.1 (#8624)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-02-03 11:12:43 +01:00
Sébastien Lorber fc64705148
chore: add "pr: dependencies" to lerna changelog labels (#8622) 2023-02-03 10:16:01 +01:00
Sébastien Lorber 32384b761c
feat(gtag-plugin): gtag should support multiple tracking ids, notably for the UA => GA4 transition (#8620) 2023-02-02 18:06:12 +01:00
Sébastien Lorber 5b05c0e73e
fix(theme-common): localStorage utils dispatch too many storage events leading to infinite loop (#8619) 2023-02-02 15:39:40 +01:00
Sébastien Lorber 140f0b1d4c
fix(theme-common): prepare usage of useSyncExternalStore compatibility with React 18 (#8618) 2023-02-02 14:41:33 +01:00
Joshua Chen 1bff83cacc
fix(theme-classic): allow rendering single tab item (#8593) 2023-02-02 12:19:31 +01:00
Sébastien Castiel 2f02beebe2
fix(utils): handle CRLF when parsing MDX imports (#8606) 2023-02-02 09:48:28 +01:00
Joshua Chen ece720b1a7
chore(theme-translations): complete zh translations (#8614) 2023-02-01 18:45:50 +01:00
Joshua Chen 58b3044306
misc: configure dependabot to use the right label (#8611) 2023-02-01 16:41:28 +01:00
Joshua Chen 0425917a50
fix(preset-classic): install the right plugin for googleTagManager (#8597) 2023-02-01 16:35:16 +01:00
dependabot[bot] 847a401669
chore(deps): bump actions/github-script from 6.3.3 to 6.4.0 (#8604)
Bumps [actions/github-script](https://github.com/actions/github-script) from 6.3.3 to 6.4.0.
- [Release notes](https://github.com/actions/github-script/releases)
- [Commits](d556feaca3...98814c53be)

---
updated-dependencies:
- dependency-name: actions/github-script
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-01-31 19:22:42 -05:00
dependabot[bot] dfdd272f10
chore(deps): bump github/codeql-action from 2.1.39 to 2.2.1 (#8605)
Bumps [github/codeql-action](https://github.com/github/codeql-action) from 2.1.39 to 2.2.1.
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](a34ca99b46...3ebbd71c74)

---
updated-dependencies:
- dependency-name: github/codeql-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-01-31 19:22:14 -05:00
dependabot[bot] 0f9edc3c11
chore(deps): bump eta from 1.12.3 to 2.0.0 (#8610)
Bumps [eta](https://github.com/eta-dev/eta) from 1.12.3 to 2.0.0.
- [Release notes](https://github.com/eta-dev/eta/releases)
- [Commits](https://github.com/eta-dev/eta/compare/v1.12.3...v2.0.0)

---
updated-dependencies:
- dependency-name: eta
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-01-31 18:58:38 -05:00
Sébastien Lorber d184e84739
chore: update examples to Docusaurus 2.3.0 (#8590) 2023-01-27 18:20:52 +01:00
Sébastien Lorber de6ec3db18
docs: create Docusaurus v2.3.0 release docs + changelog + release blog post (#8586) 2023-01-27 17:02:28 +01:00
Jiří d8459e5916
fix(theme): add accessible name for the heading hash-link (#8562)
Co-authored-by: sebastienlorber <lorber.sebastien@gmail.com>
Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
closes undefined
2023-01-26 12:00:30 +01:00
Danilo Woznica 58f0327de5
docs(playground): use CodeSandbox cloud sandboxes (#8576) 2023-01-26 11:57:16 +01:00
Sainan a0058f9c5a
docs: fix dead anchor for issue reporting guidelines in template (#8578) 2023-01-25 18:08:10 +01:00
dependabot[bot] b4863934de
chore(deps): bump github/codeql-action from 2.1.38 to 2.1.39 (#8572) 2023-01-24 22:32:14 -05:00
Mikey O'Toole c2352a387e
docs: add link to pluralization docs (#8543)
Co-authored-by: Sébastien Lorber <slorber@users.noreply.github.com>
2023-01-20 15:32:52 +01:00
Matija Sirk c32316eb2b
feat(theme-translations): default translations for Slovenian (sl-SI) (#8541)
Co-authored-by: Matija Sirk <matija.sirk@kopit.si>
Co-authored-by: sebastienlorber <lorber.sebastien@gmail.com>
2023-01-19 18:14:17 +01:00
Devansu Yadav 90e7e321d1
feat(eslint-plugin): new prefer-docusaurus-heading rule (#8384) 2023-01-19 17:08:24 +01:00
Mikey O'Toole a53d4cb2b3
docs: document plugin-content-pages wrapperClassName frontmatter. (#8556) 2023-01-19 14:39:07 +01:00
Joshua Chen 19c1e27b52
fix(algolia): make search footer respect searchPagePath (#8539) 2023-01-19 14:14:12 +01:00
Joshua Chen 00023c24b6
fix(core): avoid hash collision when generating chunk names (#8538) 2023-01-18 19:19:07 +01:00
Mariusz Krzaczkowski 8714a95900
chore(theme-translations): complete pl translations (#8525)
* Update theme-common.json

* Add content from #8520

* Update packages/docusaurus-theme-translations/locales/pl/theme-common.json

Co-authored-by: Bartosz Kaszubowski <gosimek@gmail.com>

* Update packages/docusaurus-theme-translations/locales/pl/theme-common.json

Co-authored-by: Bartosz Kaszubowski <gosimek@gmail.com>

* Update packages/docusaurus-theme-translations/locales/pl/theme-common.json

Co-authored-by: Bartosz Kaszubowski <gosimek@gmail.com>

* Update packages/docusaurus-theme-translations/locales/pl/theme-search-algolia.json

Co-authored-by: Bartosz Kaszubowski <gosimek@gmail.com>

* Update packages/docusaurus-theme-translations/locales/pl/theme-search-algolia.json

Co-authored-by: Bartosz Kaszubowski <gosimek@gmail.com>

* Update packages/docusaurus-theme-translations/locales/pl/theme-search-algolia.json

Co-authored-by: Bartosz Kaszubowski <gosimek@gmail.com>

* Update packages/docusaurus-theme-translations/locales/pl/theme-search-algolia.json

Co-authored-by: Bartosz Kaszubowski <gosimek@gmail.com>

* Update packages/docusaurus-theme-translations/locales/pl/theme-common.json

Co-authored-by: Bartosz Kaszubowski <gosimek@gmail.com>

Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
Co-authored-by: Bartosz Kaszubowski <gosimek@gmail.com>
2023-01-18 11:45:52 -05:00
Eunkwang Shin d1d3585df0
docs: fix typo 'validationOptions' (#8548)
docs(plugin-methods): fix typo 'validationOptions'
2023-01-18 11:44:48 -05:00
dependabot[bot] 6f7ffae11f
chore(deps): bump github/codeql-action from 2.1.37 to 2.1.38 (#8553)
Bumps [github/codeql-action](https://github.com/github/codeql-action) from 2.1.37 to 2.1.38.
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](959cbb7472...515828d974)

---
updated-dependencies:
- dependency-name: github/codeql-action
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-01-17 00:27:20 -05:00
Joshua Chen 3526059214
chore: bump dependencies major versions (#8537) 2023-01-10 15:22:19 -05:00
Joshua Chen e8a07633ba
chore: upgrade dependencies (#8534)
* chore: upgrade dependencies

* FIxes

* Bump again
2023-01-10 13:23:16 -05:00
dependabot[bot] 64c6b5c100
chore(deps): bump actions/checkout from 3.2.0 to 3.3.0 (#8531)
Bumps [actions/checkout](https://github.com/actions/checkout) from 3.2.0 to 3.3.0.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](755da8c3cf...ac59398561)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-01-09 16:05:17 -05:00
dependabot[bot] c0c7d77f14
chore(deps): bump actions/dependency-review-action from 3.0.2 to 3.0.3 (#8532) 2023-01-09 15:53:54 -05:00
dependabot[bot] 2fc475d340
chore(deps): bump actions/setup-node from 3.5.1 to 3.6.0 (#8533) 2023-01-09 15:52:49 -05:00
Sébastien Lorber bc00bda5e9
chore: revert docs(website): use MDX comments instead of HTML comments (#8517) 2023-01-06 17:07:53 +01:00
Sébastien Lorber 9c9d17d6aa
docs(website): use MDX comments instead of HTML comments (#8516) 2023-01-06 16:22:01 +01:00
Sébastien Lorber 5a59378e11
chore: vendor MDX deps for Jest and the MDX 2 upgrade (#8515) 2023-01-06 12:08:15 +01:00
Serenus 773529a3bc
docs(website): fix broken external links wrongly modified to use the .mdx extension (ex: github README.mdx) (#8509)
Co-authored-by: sebastienlorber <lorber.sebastien@gmail.com>
2023-01-05 13:28:30 +01:00
Sébastien Lorber 3adc4ea809
docs: blog + community + dogfood docs should use .mdx extension (#8507) 2023-01-04 19:59:56 +01:00
dependabot[bot] 6eb40e0591
chore(deps): bump json5 from 1.0.1 to 1.0.2 (#8502)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: sebastienlorber <lorber.sebastien@gmail.com>
2023-01-04 18:35:59 +01:00
John Reilly 3038ae793c
docs: blog.johnnyreilly.com moved to johnnyreilly.com - updated showcase (#8492) 2023-01-04 17:32:51 +01:00
dependabot[bot] 795a8468c9
chore(deps): bump jakepartusch/wait-for-netlify-action from 1.3 to 1.4 (#8496)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-01-04 17:12:12 +01:00
Sébastien Lorber 648a5a03df
fix(website): Netlify increase NODE_OPTIONS memory (#8491) 2022-12-30 17:46:33 +01:00
Sébastien Lorber 120b99b1f3
docs(website): use .mdx extension for every docs (#8490) 2022-12-30 15:08:28 +01:00
Lane Goolsby 428af8af5e
feat(plugin-google-tag-manager): add new google-tag-manager plugin + deprecate google-analytics plugin (#8470)
Co-authored-by: Goolsby, Lane <lanegoolsby@rocketmortgage.com>
Co-authored-by: sebastienlorber <lorber.sebastien@gmail.com>
fix https://github.com/facebook/docusaurus/issues/7221
2022-12-29 16:53:54 +01:00
Riccardo e1d6292d46
fix(theme-classic) extract HomeBreadcrumbItem + fix swizzle bugs (#8445)
Co-authored-by: Sébastien Lorber <slorber@users.noreply.github.com>
Co-authored-by: sebastienlorber <lorber.sebastien@gmail.com>
2022-12-29 13:48:25 +01:00
John Reilly 022e00554e
feat(blog): add options.createFeedItems to filter/limit/transform feed items (#8378)
Co-authored-by: sebastienlorber <lorber.sebastien@gmail.com>
2022-12-29 13:31:32 +01:00
mturoci 0985fa0af3
fix(search-algolia): pass custom transformItems function to SearchBar (#8462)
Co-authored-by: sebastienlorber <lorber.sebastien@gmail.com>
closes undefined
Closes https://github.com/facebook/docusaurus/pull/8462
Closes https://github.com/facebook/docusaurus/issues/8461
2022-12-29 13:29:00 +01:00
Sébastien Lorber 9c860ce419
fix(theme): refactor Tabs, make groupId + queryString work fine together (#8486) 2022-12-29 12:41:53 +01:00
Bei Chu 949158d35b
docs: `plugin-content-sitemap` -> `plugin-sitemap` (#8484) 2022-12-28 11:56:31 +01:00
Thomas.CA 0371d579d9
fix(core): explicitly define CopyWebpackPlugin toType: 'dir' (#8481)
closes undefined
2022-12-27 19:20:42 +01:00
Dongjoon Lee c0102bda68
fix(theme-classic): content container grow to take all the available space (#8463)
fix https://github.com/facebook/docusaurus/issues/8369
fix https://github.com/facebook/docusaurus/pull/8426
2022-12-22 19:20:54 +01:00
Anders Bech Mellson 19ba0ff49d
feat(theme-algolia): add option.replaceSearchResultPathname to process/replaceAll search result urls (#8428)
Co-authored-by: sebastienlorber <lorber.sebastien@gmail.com>
2022-12-22 18:24:28 +01:00
Marco Stroppel 024474a7b9
docs: fix link to docs only mode (#8453)
Co-authored-by: Sébastien Lorber <slorber@users.noreply.github.com>
Co-authored-by: sebastienlorber <lorber.sebastien@gmail.com>
2022-12-22 15:33:55 +01:00
dawei-wang ba1afbf060
docs: fix front page video link label (#8466)
Co-authored-by: Sébastien Lorber <slorber@users.noreply.github.com>
closes undefined
2022-12-22 12:19:12 +01:00
Shashank Kumar b7efbd2cea
fix(docs): Update link for tooljet website(broken) (#8454) 2022-12-22 11:59:50 +01:00
Gabriel Csapo b064311ebc
docs: fix example plugin implementation (#8455)
chore: fix bug in the docs implementation
2022-12-21 13:25:29 -05:00
dependabot[bot] f22da5ac12
chore(deps): bump actions/dependency-review-action from 3.0.1 to 3.0.2 (#8464)
Bumps [actions/dependency-review-action](https://github.com/actions/dependency-review-action) from 3.0.1 to 3.0.2.
- [Release notes](https://github.com/actions/dependency-review-action/releases)
- [Commits](11310527b4...0ff3da6f81)

---
updated-dependencies:
- dependency-name: actions/dependency-review-action
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-12-19 15:24:23 -05:00
Craigory Coppola b4fc9d3caa
chore: update lerna to v6.2.0 (#8447) 2022-12-16 15:29:54 +01:00
Nguyễn Thành Nam f54b6e77cd
fix(theme-translations): complete Vietnamese theme translations (#8450)
Co-authored-by: Sébastien Lorber <slorber@users.noreply.github.com>
2022-12-16 13:24:06 +01:00
Abhinandan Wadhwa 45f3e87356
docs: fix website home testimonials broken image URLs (#8443)
Co-authored-by: Sébastien Lorber <slorber@users.noreply.github.com>
closes undefined
2022-12-15 12:49:38 +01:00
Dan Dascalescu 1c40d6c821
docs: add hyperlink to swizzling in Search page (#8438)
Co-authored-by: sebastienlorber <lorber.sebastien@gmail.com>
2022-12-14 18:35:15 +01:00
Viktor Malmedal 4a448773b6
feat: add eslint plugin no-html-links (#8156)
Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
Co-authored-by: Viktor Malmedal <viktor.malmedal@eniro.com>
Co-authored-by: sebastienlorber <lorber.sebastien@gmail.com>
Co-authored-by: Sébastien Lorber <slorber@users.noreply.github.com>
2022-12-14 18:28:29 +01:00
宋锦丰 81f30dd495
fix(translations): complete Chinese theme translations (#8423)
Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
Co-authored-by: Sébastien Lorber <slorber@users.noreply.github.com>
2022-12-14 15:32:44 +01:00
dependabot[bot] 258465e199
chore(deps): bump github/codeql-action from 2.1.36 to 2.1.37 (#8440)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-12-14 15:23:12 +01:00
dependabot[bot] 33dd55e925
chore(deps): bump github/codeql-action from 2.1.35 to 2.1.36 (#8435)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-12-14 15:17:48 +01:00
dependabot[bot] 9b226f692f
chore(deps): bump actions/checkout from 3.1.0 to 3.2.0 (#8434)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-12-14 15:17:24 +01:00
Mikey O'Toole 5ed43c08d3
docs: add diagrams page to 2.2.0 sidebar (#8431)
Adds the diagrams page to the sidebar for 2.2.0.
2022-12-12 12:31:04 -05:00
Martin Adamko f3563ca23c
fix(theme-classic): polish admonition details, render title-only admonitions (#8150)
Co-authored-by: sebastienlorber <lorber.sebastien@gmail.com>
2022-12-09 20:02:06 +01:00
Mikey O'Toole 32dc1eddba
docs: clarify additionalLanguages with custom language definitions. (#8307)
Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
Co-authored-by: sebastienlorber <lorber.sebastien@gmail.com>
2022-12-09 18:47:22 +01:00
mturoci 5c09dbfc3d
feat(theme-classic): store selected tab in query string. (#8225)
Co-authored-by: sebastienlorber <lorber.sebastien@gmail.com>
Closes https://github.com/facebook/docusaurus/issues/7008
2022-12-09 17:46:09 +01:00
Sébastien Lorber eb710af1b8
fix(translations): typo in lastUpdatedAtBy Vietnamese translation (#8424) 2022-12-09 11:04:18 +01:00
Dongjoon Lee e553ce7e59
fix(docusaurus-utils-validation): baseUrl + routeBasePath: allow empty string, normalized as "/" (#8258)
Co-authored-by: sebastienlorber <lorber.sebastien@gmail.com>
fix https://github.com/facebook/docusaurus/issues/8254
2022-12-08 16:54:32 +01:00
Lachlan Heywood 85d0b5674f
feat(eslint-plugin): add plugin to exported configs (#8281)
Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
closes undefined
Closes https://github.com/facebook/docusaurus/issues/8280
2022-12-07 19:05:34 +01:00
Ryosuke Igarashi aa74b38209
docs: changed actions/checkout version from 2 to 3 (#8390)
Co-authored-by: sebastienlorber <lorber.sebastien@gmail.com>
2022-12-07 18:12:46 +01:00
Sébastien Lorber 59fac0b1d1
docs: document siteConfig.markdown + better mdx-loader retrocompat (#8419) 2022-12-07 17:59:51 +01:00
Marco Kuper 681e6d3ea4
docs: fix links to external plugin description (#8262) 2022-12-07 17:58:01 +01:00
Maciek Palmowski ea40482410
docs: add Kinsta to deployment page (#8375)
Co-authored-by: sebastienlorber <lorber.sebastien@gmail.com>
2022-12-07 16:28:54 +01:00
Sadegh Karimi 8b6fc47cb2
fix(translations): complete farsi theme translations (#8406) 2022-12-07 15:47:54 +01:00
dependabot[bot] 05681d5135
chore(deps): bump decode-uri-component from 0.2.0 to 0.2.2 (#8404)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-12-07 15:22:14 +01:00
dependabot[bot] ca39f75680
chore(deps): bump github/codeql-action from 2.1.32 to 2.1.35 (#8412)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-12-07 15:09:37 +01:00
Mikey O'Toole b7cbc967ce
docs: document theme-mermaid in API sidebar (#8417) 2022-12-06 23:45:57 -05:00
Robert Lawrence eecfdebf08
fix(theme): add missing aria-labels to the main and sidebar navs (#8366)
Fix https://github.com/facebook/docusaurus/issues/8308
2022-11-30 13:57:32 +01:00
John Reilly 79214670a9
fix(content-blog): blog Atom feed id + RSS feed guid should be fully qualified urls (#8381)
Closes https://github.com/facebook/docusaurus/issues/8380
2022-11-30 13:56:21 +01:00
mcallisto 97ca090223
docs: add i18n guide doc should link to i18n core config doc (#8392) 2022-11-30 13:43:28 +01:00
Dan Dascalescu f4bad43552
docs: point to where commit types are listed (#8388) 2022-11-30 13:08:01 +01:00
Frieder Bluemle c9c1fac1ab
feat(core): deploy CLI - add support for git url "insteadOf": use 'remote get-url' to determine source repo url (#8397) 2022-11-30 12:33:35 +01:00
dependabot[bot] 1a9274db08
chore(deps): bump marocchino/sticky-pull-request-comment from 2.3.0 to 2.3.1 (#8385)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-11-30 12:13:58 +01:00
Danny Kim 1bf058979e
fix(theme): preserve sidebar height on collapse (#8328) 2022-11-24 14:49:28 +01:00
Waldir Pimenta 6be3beb8c9
docs: actually demo the zero-width space workaround in MDX (#8352) 2022-11-24 11:00:39 +01:00
Balthasar Hofer b016686c22
fix(mdx-loader): support nested admonitions (#8303)
Co-authored-by: sebastienlorber <lorber.sebastien@gmail.com>
closes undefined
2022-11-23 21:19:29 +01:00
Denis Al-Khelali a4d935a6f1
fix(content-docs): add trailing slash to contentDirs, before passing it to isMDXPartial (#8275) 2022-11-23 18:37:59 +01:00
Alex 412d2db011
docs: fix unclosed admonition code block (#8363) 2022-11-23 18:21:04 +01:00
Anna 4b11c57f7e
docs: autogenerated page comment does not matching dirName in examples (#8364) 2022-11-23 17:37:22 +01:00
dependabot[bot] d45083f93a
chore(deps): bump actions/dependency-review-action from 3.0.0 to 3.0.1 (#8360)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-11-23 17:15:31 +01:00
Alex bc98cba3a7
docs: fix anchor link `#customFields` (#8359) 2022-11-23 17:15:00 +01:00
Dan Dascalescu ca3dba5e5e
docs: fix typo 'internalization' (#8323)
Co-authored-by: Dan Dascalescu <dan@semi.technology>
2022-11-17 12:08:21 +01:00
John Reilly 0309a6dab2
docs: remove blog.johnnyreilly.com Google Analytics tag from docs part 2 (#8320) 2022-11-17 11:45:53 +01:00
Josh Goldberg ac81765024
fix(utils): allow partially backticked markdown h1 contentTitles (#8314) 2022-11-17 11:38:10 +01:00
Muhammad Hammad 53aa9a2416
fix(core): normalize input for poll option (#8342)
Fixes https://github.com/facebook/docusaurus/issues/8306
2022-11-17 11:22:12 +01:00
Josh Goldberg e756d734e3
fix(theme): forward className prop in theme-classic's Heading (#8350)
Fixes https://github.com/facebook/docusaurus/issues/8327
2022-11-16 17:52:49 +01:00
Mysterious_Dev 57c632becb
docs: use Mermaid diagram for routing page (#8335) 2022-11-16 17:48:32 +01:00
dependabot[bot] 571f497df1
chore(deps): bump github/codeql-action from 2.1.31 to 2.1.32 (#8341)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-11-16 14:49:25 +01:00
dependabot[bot] b841da44e4
chore(deps): bump actions/dependency-review-action from 2.5.1 to 3.0.0 (#8340)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-11-16 14:48:50 +01:00
dependabot[bot] dd5d8dc9c2
chore(deps): bump treosh/lighthouse-ci-action from 9.3.0 to 9.3.1 (#8339)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-11-16 14:48:35 +01:00
dependabot[bot] 5c0ab64af7
chore(deps): bump loader-utils from 2.0.3 to 2.0.4 (#8345)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-11-16 13:13:19 +01:00
Sébastien Lorber d8c72fb32d
fix(docs,theme): auto-generated category index should not display unlisted content (#8319) 2022-11-10 18:31:01 +01:00
Sébastien Lorber 1d5afbaaa5
fix(mermaid): fix Mermaid integration for v9.2 release (#8282) 2022-11-10 16:07:18 +01:00
Stefan Norberg 04eb04cb49
fix(theme-translations): complete Swedish theme translations (#8312)
Co-authored-by: stnor <stefan@selessia.com>
2022-11-10 12:59:20 +01:00
John Reilly dce4a68e03
docs: link to migration guide from Blogger to Docusaurus / remove blog.johnnyreilly.com Google Analytics tag from docs (#8313) 2022-11-10 12:05:15 +01:00
Mikey O'Toole 7ffa9f7689
docs: document tag types for insertHtmlContent (#8292)
Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
2022-11-09 18:29:53 +01:00
AHMET BAYHAN BAYRAMOGLU 8f6dde5544
fix(theme-translations): complete Turkish theme translations (#8289) 2022-11-09 18:27:29 +01:00
dependabot[bot] 401c76ee7c
chore(deps): bump loader-utils from 2.0.2 to 2.0.3 (#8305)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-11-09 15:24:45 +01:00
dependabot[bot] b4c04f28f7
chore(deps): bump github/codeql-action from 2.1.29 to 2.1.31 (#8295)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-11-09 15:18:09 +01:00
Sébastien Lorber 004ada7cf2
fix(website): fix website social card location (#8287) 2022-11-03 17:01:32 +01:00
Jody Heavener 683ba3d2a0
feat(docs,blog,pages): add support for "unlisted" front matter - hide md content in production (#8004)
Co-authored-by: sebastienlorber <lorber.sebastien@gmail.com>
2022-11-03 14:31:41 +01:00
Sébastien Lorber 7a023a2c41
fix(create-docusaurus): improve init template misleading doc + add Docuaurus social card (#8279) 2022-11-02 17:03:00 +01:00
Nathaniel Tucker 7387aabbdc
docs: fix mermaid theme options typo (#8272)
Co-authored-by: sebastienlorber <lorber.sebastien@gmail.com>
2022-11-02 14:31:53 +01:00
dependabot[bot] 96eab89c52
chore(deps): bump github/codeql-action from 2.1.28 to 2.1.29 (#8271)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-11-02 14:31:09 +01:00
dependabot[bot] 8bee1a61cf
chore(deps): bump marocchino/sticky-pull-request-comment from 2.2.1 to 2.3.0 (#8270)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-11-02 14:30:55 +01:00
Sébastien Lorber 3c15aaff49
chore: update examples to Docusaurus 2.2.0 (#8266) 2022-10-29 16:41:13 +02:00
Sébastien Lorber 41c981aa9f
docs: create Docusaurus v2.2.0 release docs + changelog + release blog post (#8265) 2022-10-29 12:59:20 +02:00
Sébastien Lorber 9f4d2e7136
chore: fix flaky tests (#8259) 2022-10-28 11:46:54 +02:00
Alexey Pyltsyn 5baa56b4bf
chore(theme-translations): complete ru translations (#8253) 2022-10-27 11:03:34 +02:00
Alexey Pyltsyn 258ecf71f1
fix(ideal-image): do not pass down `img` prop (#8250) 2022-10-26 13:59:35 -04:00
Joshua Chen e301523138
fix(mdx-loader): properly unwrap mdxAdmonitionTitle placeholder (#8246) 2022-10-26 12:52:29 -04:00
Alexey Pyltsyn 1077d8ad39
docs: fix anchor link (#8249) 2022-10-26 12:45:48 -04:00
Sébastien Lorber 368bfbb153
chore: fix tree-node-cli license (#8248) 2022-10-26 15:04:18 +02:00
Shanmughapriyan S 91b92fcd08
fix(plugin-content-docs): fix error message context (error cause) when doc processing fails (#8234)
Co-authored-by: sebastienlorber <lorber.sebastien@gmail.com>
2022-10-26 14:48:25 +02:00
Forresst 327158b085
chore(theme-translations): complete French translations (#8243) 2022-10-26 13:09:24 +02:00
David J. Felix 006d44094c
docs: fix incorrect grammar and improve clarity (#8237)
- The sentence lacked a subject
- Changed the description of the problem slightly for clarity
2022-10-25 15:03:17 -04:00
dependabot[bot] aa308a4c35
chore(deps): bump actions/dependency-review-action from 2.5.0 to 2.5.1 (#8240)
Bumps [actions/dependency-review-action](https://github.com/actions/dependency-review-action) from 2.5.0 to 2.5.1.
- [Release notes](https://github.com/actions/dependency-review-action/releases)
- [Commits](fd675ced9c...0efb1d1d84)

---
updated-dependencies:
- dependency-name: actions/dependency-review-action
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-10-25 15:02:37 -04:00
dependabot[bot] ac6f698287
chore(deps): bump github/codeql-action from 2.1.27 to 2.1.28 (#8241)
Bumps [github/codeql-action](https://github.com/github/codeql-action) from 2.1.27 to 2.1.28.
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](807578363a...cc7986c02b)

---
updated-dependencies:
- dependency-name: github/codeql-action
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-10-25 15:02:19 -04:00
Lane Goolsby e41133245c
refactor(plugin-gtag): update gtag plugin to modern SPA recommendations (#8143)
Co-authored-by: Lane Goolsby <lanegoolsby@rocketmortgage.com>
Co-authored-by: Sébastien Lorber <slorber@users.noreply.github.com>
Co-authored-by: sebastienlorber <lorber.sebastien@gmail.com>
2022-10-21 14:59:12 +02:00
Xabier Lahuerta Vazquez 5ddcbf47a8
feat(plugin-client-redirects): keep the query string + hash (#8227)
Co-authored-by: sebastienlorber <lorber.sebastien@gmail.com>
2022-10-20 18:01:18 +02:00
evan 7b3ebb7729
feat(core): add --config param to swizzle command (#8210) 2022-10-20 16:11:39 +02:00
Abinash Satapathy 308b5390b5
docs: fix invalid link references & style the doc (#8229)
* docs: fix invalid link references & styled the doc

Remove redundant links and fix grammar

* Update CONTRIBUTING.md

* Reverted blockquote content

Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
2022-10-19 18:53:13 -04:00
Jeferson S. Brito f668b3ba50
fix(theme-classic): hamburger menu control navigation by keyboard (#8207) 2022-10-19 19:56:04 +02:00
mturoci aa4fa66794
fix(theme-classic): fix SkipToContent without JS , refactor, make it public theming API (#8204)
Co-authored-by: sebastienlorber <lorber.sebastien@gmail.com>
2022-10-19 18:27:08 +02:00
dependabot[bot] 22c90cb7c7
chore(deps): bump marocchino/sticky-pull-request-comment from 2.2.0 to 2.2.1 (#8221)
chore(deps): bump marocchino/sticky-pull-request-comment

Bumps [marocchino/sticky-pull-request-comment](https://github.com/marocchino/sticky-pull-request-comment) from 2.2.0 to 2.2.1.
- [Release notes](https://github.com/marocchino/sticky-pull-request-comment/releases)
- [Commits](39c5b5dc77...97bddef64d)

---
updated-dependencies:
- dependency-name: marocchino/sticky-pull-request-comment
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-10-17 21:45:52 -04:00
dependabot[bot] 71b67a3ba4
chore(deps): bump actions/dependency-review-action from 2.4.0 to 2.5.0 (#8220)
Bumps [actions/dependency-review-action](https://github.com/actions/dependency-review-action) from 2.4.0 to 2.5.0.
- [Release notes](https://github.com/actions/dependency-review-action/releases)
- [Commits](375c537008...fd675ced9c)

---
updated-dependencies:
- dependency-name: actions/dependency-review-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-10-17 21:45:37 -04:00
dependabot[bot] 5b6b173d9d
chore(deps): bump actions/github-script from 6.3.1 to 6.3.3 (#8219)
Bumps [actions/github-script](https://github.com/actions/github-script) from 6.3.1 to 6.3.3.
- [Release notes](https://github.com/actions/github-script/releases)
- [Commits](7dff1a8764...d556feaca3)

---
updated-dependencies:
- dependency-name: actions/github-script
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-10-17 21:45:23 -04:00
dependabot[bot] daf0dd026f
chore(deps): bump actions/setup-node from 3.5.0 to 3.5.1 (#8222)
Bumps [actions/setup-node](https://github.com/actions/setup-node) from 3.5.0 to 3.5.1.
- [Release notes](https://github.com/actions/setup-node/releases)
- [Commits](969bd26639...8c91899e58)

---
updated-dependencies:
- dependency-name: actions/setup-node
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-10-17 21:45:06 -04:00
Sam Wall 9c92a79d23
feat: support mermaid code blocks in Markdown (#7490)
Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
Co-authored-by: sebastienlorber <lorber.sebastien@gmail.com>
2022-10-14 18:07:20 +02:00
Shahriar d2fdd981f7
docs: removing community resource docusaurus-plugin-relative-paths (#8209) 2022-10-14 14:21:32 +02:00
Rashid 79b3f65a17
fix(live-codeblock): add error boundary to live code preview (#8015)
Co-authored-by: sebastienlorber <lorber.sebastien@gmail.com>
2022-10-13 17:49:27 +02:00
Sanjaiyan Parthipan 80064b2eb9
perf(core): move scripts to document head + defer (#8081)
Co-authored-by: Sébastien Lorber <slorber@users.noreply.github.com>
2022-10-13 16:00:44 +02:00
forgeRW 2372335532
fix(core): throw error for invalid URL in config file (#8192) 2022-10-13 11:39:57 +02:00
Silvestar Bistrović 84e6dd2473
fix(website): mobile scroll on homepage announcement (#8193) 2022-10-12 18:24:36 +02:00
Joshua Chen aa7d81d7bf
fix(theme): add more tag names to inline element set (#8190) 2022-10-12 18:03:35 +02:00
John Reilly 1ca4fb50fe
feat(core): siteConfig.headTags API to render extra tags in document head (#8151)
Co-authored-by: Sébastien Lorber <slorber@users.noreply.github.com>
2022-10-12 17:45:56 +02:00
dependabot[bot] 3558a091c6
chore(deps): bump github/codeql-action from 2.1.26 to 2.1.27 (#8200)
Bumps [github/codeql-action](https://github.com/github/codeql-action) from 2.1.26 to 2.1.27.
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](e0e5ded33c...807578363a)

---
updated-dependencies:
- dependency-name: github/codeql-action
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-10-10 16:35:25 -04:00
dependabot[bot] 6cf103a8a9
chore(deps): bump actions/checkout from 3.0.2 to 3.1.0 (#8199)
Bumps [actions/checkout](https://github.com/actions/checkout) from 3.0.2 to 3.1.0.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](2541b1294d...93ea575cb5)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-10-10 16:35:09 -04:00
Johan Fagerberg 6c8af03f51
fix(utils): remove non-ASCII limitation for path normalization (#8137) 2022-10-07 13:35:12 +02:00
Pranav Joglekar efbd0cbd40
fix(content-blog): make RSS feed generation work with slugs with .html extension (#8158)
Co-authored-by: sebastienlorber <lorber.sebastien@gmail.com>
2022-10-06 16:19:05 +02:00
Adnan Hashmi c325f87fd8
fix(theme): mobile navbar & skipToContent should cover announcementBar (#8163)
Co-authored-by: sebastienlorber <lorber.sebastien@gmail.com>
2022-10-06 15:20:18 +02:00
dependabot[bot] 66816c3dc1
chore(deps): bump github/codeql-action from 2.1.22 to 2.1.26 (#8169)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-10-05 19:55:55 +02:00
dependabot[bot] 35fe1553d6
chore(deps): bump actions/setup-node from 3.4.1 to 3.5.0 (#8170)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-10-05 19:54:28 +02:00
dependabot[bot] 53626aafd1
chore(deps): bump actions/github-script from 6.2.0 to 6.3.1 (#8167)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-10-05 19:43:49 +02:00
mturoci b0d431af3b
fix(theme): do not show tab content when tabbing over it; show after selection only (#8161) 2022-10-05 19:10:08 +02:00
mturoci 44af538153
fix(theme): announce theme switches when using screen reader. #7667 (#8174)
Co-authored-by: sebastienlorber <lorber.sebastien@gmail.com>
2022-10-05 18:49:01 +02:00
dependabot[bot] 982187977d
chore(deps): bump actions/dependency-review-action from 2.1.0 to 2.4.0 (#8168)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-10-05 18:33:41 +02:00
Tamal Chowdhury 10cddd47bc
docs(showcase): Adds tamalweb.com to showcase Pr/tamalweb.com (#8152) 2022-10-05 17:19:40 +02:00
forgeRW 53dbbe36f2
fix(core): throw error for invalid URL in config file (#8159)
* fix: throw error for invalid URL in Docusaurus config file

* Also add unit test to check error is thrown

* fix: perform error check for invalid URL to configValidation.ts

* Throw error for invalid URL in Docusaurus config file
* Perform error check in configValidation.ts
* Undo error check in createSitemap.ts

* Better message

Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
2022-10-02 11:31:14 -04:00
SADIK KUZU eabca78c38
docs: fix typo (#8162)
* fix(website): Fix typo

website/docs/api/misc/logger/logger.md:32:45

* Replace all

Signed-off-by: Joshua Chen <sidachen2003@gmail.com>

Signed-off-by: Joshua Chen <sidachen2003@gmail.com>
Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
2022-10-02 11:00:22 -04:00
Sébastien Lorber c6f5cf9ac7
docs(content-docs): add api doc for displayed_sidebar front matter (#8146) 2022-09-29 16:45:51 +02:00
Masahiko Hara 883e4684ab
fix(theme-translation): complete Japanese theme default translation (#8075) 2022-09-29 12:28:13 +02:00
Ramazan SANCAR 292d728c49
fix(theme-translations): complete turkish theme default translations (#8105) 2022-09-28 19:30:28 +02:00
sykp241095 d44c1d8cd7
docs: update showcase/ossinsight screenshot (#8100) 2022-09-28 18:31:01 +02:00
Billy Chan e34371ce2d
docs(showcase): add SeaQL sites to showcase (#8107) 2022-09-28 14:18:04 +02:00
Sanjaiyan Parthipan f7c3af9102
feat(core): prefetch on mobile touchstart (#8109) 2022-09-28 12:59:08 +02:00
Sunghyun Cho 029893fea2
docs: fix Sunghyun Cho showcase info (#8097)
Fix typo in my name
2022-09-22 15:27:17 -04:00
Joshua Chen 6514f0784b
docs: add caveat about using Translate in string contexts (#8115) 2022-09-19 10:59:15 -04:00
Joshua Chen 70b53c4ac7
docs: backport doc edits from future branch (#8114) 2022-09-19 10:40:37 -04:00
Nguyễn Thành Nam 2e66e1cbba
fix(theme-translations): remove extra vi translations (#8087)
chore(theme-translations): vi translations

chore(theme-translations): complete vi translations

Edit theme.blog.post.readingTime.plurals theme.blog.post.plurals theme.docs.tagDocListPageTitle.nDocsTagged
2022-09-12 16:00:02 -04:00
Sanjaiyan Parthipan 0a87116a1c
perf(create): run async tasks concurrently (#8080)
* Adding incremental support for React 18 🚀

* parallel

* revert react 18

* revert lint

* end line

* Update packages/create-docusaurus/src/index.ts

Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
2022-09-10 23:06:34 -04:00
Mikey O'Toole a0ab2b0065
refactor(theme): remove hard-coded tag border-radius (#8062) 2022-09-08 17:25:26 +02:00
Joshua Chen bcae7503ff
fix(core): normalize slashes for url/baseUrl instead of throwing (#8066) 2022-09-08 17:18:26 +02:00
Joshua Chen 73d0ede21a
fix(redirect): tolerate trailing slash difference if config is undefined (#8067) 2022-09-08 17:15:52 +02:00
LittleboyHarry 710c0c58f0
fix(theme): preserve line breaks when copying code with showLineNumbers in Firefox (#8068)
Fix CodeBlock no line breaks copied in Firefox bug
2022-09-08 09:42:05 -04:00
Joshua Chen 275f509d13
chore: upgrade dependencies (#7993)
* chore: upgrade dependencies

* Fix lint

* Bump more

* Fix lint
2022-09-08 01:31:53 -04:00
Joshua Chen 38dd7cfa04
chore: bump react-medium-image-zoom (#8064) 2022-09-08 00:36:00 -04:00
Sébastien Lorber a492025cbf
fix(theme): preserve url ?search#hash on navbar version/locale dropdowns navigations (#8059) 2022-09-07 19:36:04 +02:00
Sébastien Lorber 67c692326b
fix(website): add website admonitions extendDefaults: true (#8060) 2022-09-07 19:07:53 +02:00
Sébastien Lorber 6f63ffe0a3
refactor(theme): split admonitions, make swizzle easier, better retrocompatibility (#7945)
Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
2022-09-07 17:49:44 +02:00
Debbie O'Brien f1415525c0
docs: fix broken image (#8054) 2022-09-07 13:36:37 +02:00
Alexander Nguyen bf080d172a
docs(content-docs): updates typo in lifecycle-apis.md (#8055) 2022-09-07 13:23:45 +02:00
Mikey O'Toole e507628f4a
docs: document usage of docs `frontMatter.custom_edit_url: null` (#8053) 2022-09-07 13:21:13 +02:00
dependabot[bot] d74f6e594a
chore(deps): bump github/codeql-action from 2.1.21 to 2.1.22 (#8051)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-09-07 13:17:34 +02:00
Joshua Chen 36db64ed1d
docs: improve alt messages (#8047) 2022-09-04 01:33:25 -04:00
Tom Mrazauskas 1f1f898d73
docs: delete extra semicolon in MDX and React page (#8046) 2022-09-03 14:39:06 -04:00
Joshua Chen 46d705a487
refactor(core): detect if codegen should quote property without using eval() (#8045)
refactor(core): detect if should quote property when codegen without using eval()
2022-09-02 19:52:29 -04:00
Sébastien Lorber 29703da188
fix(website): fix blog post social card (#8042) 2022-09-02 14:43:20 +02:00
Sébastien Lorber 54986a3b21
chore: Update examples after release of Docusaurus v2.1.0 (#8041) 2022-09-02 13:05:04 +02:00
Sébastien Lorber 56feb41445
docs: create Docusaurus v2.1.0 release docs + changelog + release blog post (#8036) 2022-09-02 12:39:32 +02:00
Sébastien Lorber 55de3ea04b
fix(create-docusaurus): tutorial and init template improvements (#8032) 2022-09-01 13:10:50 +02:00
Francesco Ciulla 294625a6b5
docs(showcase): fix daily.dev site name (#8031)
Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
2022-08-31 19:46:44 +02:00
Morgane Dubus c4f808aba8
fix(preset-classic): broken link in "unrecognized keys" error message (#8029) 2022-08-31 16:45:45 +02:00
Alex 830153ddd4
chore(ci): GitHub Workflows security hardening (#8030) 2022-08-31 16:45:17 +02:00
Sébastien Lorber 97c9710ce3
docs(showcase): add 74 new showcase sites (#8010) 2022-08-31 14:28:02 +02:00
dependabot[bot] ab73d86cb4
chore(deps): bump actions/github-script from 6.1.1 to 6.2.0 (#8019)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-08-31 13:40:53 +02:00
dependabot[bot] ae989a60ce
chore(deps): bump github/codeql-action from 2.1.20 to 2.1.21 (#8020)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-08-31 13:40:33 +02:00
Ahmed Mustafa Malik fd0cf3f64c
docs: fix typo in swizzling.md (#8025) 2022-08-30 18:53:46 -04:00
Sébastien Lorber c811d6249e
feat(theme): ability to use <DocCardList> without items prop, on any doc page (#8008) 2022-08-26 17:42:59 +02:00
Naffy Dharni ff8ef774d6
fix(create): bad grammar in template docs (#7978) 2022-08-25 08:24:50 -04:00
adventure-yunfei 75dc4a47e2
fix(core): preload should support encoded page links (#7977)
Co-authored-by: Sébastien Lorber <slorber@users.noreply.github.com>
Co-authored-by: sebastienlorber <lorber.sebastien@gmail.com>
2022-08-25 13:47:46 +02:00
Yoni Chechik c2ce8a02e7
fix(theme): add aria-label to skip to content link region (#7982)
Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
2022-08-24 17:19:39 +02:00
Sébastien Lorber cee1b4b971
fix(core): CLI command write-translations should extract translations from @docu… (#7996) 2022-08-24 12:45:57 +02:00
dependabot[bot] bd9f29a469
chore(deps): bump actions/dependency-review-action from 2.0.4 to 2.1.0 (#7988)
Bumps [actions/dependency-review-action](https://github.com/actions/dependency-review-action) from 2.0.4 to 2.1.0.
- [Release notes](https://github.com/actions/dependency-review-action/releases)
- [Commits](94145f3150...23d1ffffb6)

---
updated-dependencies:
- dependency-name: actions/dependency-review-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-08-22 16:22:42 -04:00
dependabot[bot] 0bcd31b6c5
chore(deps): bump github/codeql-action from 2.1.18 to 2.1.20 (#7987)
Bumps [github/codeql-action](https://github.com/github/codeql-action) from 2.1.18 to 2.1.20.
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](2ca79b6fa8...7fee4ca032)

---
updated-dependencies:
- dependency-name: github/codeql-action
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-08-22 16:22:34 -04:00
Sébastien Lorber 94067ce930
fix(core): allow overriding ssr/dev template meta tags (#7952) 2022-08-19 16:47:28 +02:00
Jesper c706b23666
fix(core): make webpack HMR always listen to current location (#7951)
Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
2022-08-18 19:45:33 +02:00
Juan Picado fd41f46176
test: improve e2e verdaccio configuration (#7967)
Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
2022-08-18 19:08:23 +02:00
Sébastien Lorber 3b9b497d13
fix(plugin-docs,theme): refactor docs plugin routes and component tree (#7966) 2022-08-18 17:55:05 +02:00
Jan Peer Stöcklmair c29218ea1d
chore(plugin-docs): expose all lib files through exports (#7962)
chore(plugin-docs): expose lib in package.json (closes #7961)

Co-authored-by: Jan Peer Stoecklmair <jan.peer.stoecklmair@dynatrace.com>
2022-08-18 14:25:51 +08:00
2010 changed files with 220477 additions and 92858 deletions

View File

@ -28,10 +28,15 @@
"__snapshots__",
"website/src/data/users.tsx",
"website/src/data/tweets.tsx",
"website/docusaurus.config.localized.json",
"website/_dogfooding/_pages tests/diagrams.mdx",
"*.xyz",
"*.docx",
"*.gitignore",
"versioned_docs",
"*.min.*"
"*.min.*",
"jest/vendor"
],
"ignoreRegExpList": ["Email", "Urls", "#[\\w-]*"]
"ignoreRegExpList": ["Email", "Urls", "#[\\w-]*"],
"enableFiletypes": ["mdx"]
}

View File

@ -1,5 +1,5 @@
{
"image": "mcr.microsoft.com/vscode/devcontainers/base:ubuntu-20.04",
"image": "mcr.microsoft.com/devcontainers/base:ubuntu-22.04",
"settings": {
"[typescript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode",

View File

@ -8,6 +8,7 @@ build
coverage
jest.config.js
jest.transform.js
jest/vendor
examples/
packages/lqip-loader/lib/

29
.eslintrc.js vendored
View File

@ -66,6 +66,8 @@ module.exports = {
'@docusaurus',
],
rules: {
'react/jsx-uses-react': OFF, // JSX runtime: automatic
'react/react-in-jsx-scope': OFF, // JSX runtime: automatic
'array-callback-return': WARNING,
camelcase: WARNING,
'class-methods-use-this': OFF, // It's a way of allowing private variables.
@ -83,13 +85,14 @@ module.exports = {
ignorePattern: '(eslint-disable|@)',
},
],
'arrow-body-style': OFF,
'no-await-in-loop': OFF,
'no-case-declarations': WARNING,
'no-console': OFF,
'no-constant-binary-expression': ERROR,
'no-continue': OFF,
'no-control-regex': WARNING,
'no-else-return': [WARNING, {allowElseIf: true}],
'no-else-return': OFF,
'no-empty': [WARNING, {allowEmptyCatch: true}],
'no-lonely-if': WARNING,
'no-nested-ternary': WARNING,
@ -201,7 +204,10 @@ module.exports = {
})),
],
'no-template-curly-in-string': WARNING,
'no-unused-expressions': [WARNING, {allowTaggedTemplates: true}],
'no-unused-expressions': [
WARNING,
{allowTaggedTemplates: true, allowShortCircuit: true},
],
'no-useless-escape': WARNING,
'no-void': [ERROR, {allowAsStatement: true}],
'prefer-destructuring': WARNING,
@ -259,6 +265,9 @@ module.exports = {
},
{pattern: '@jest/globals', group: 'builtin', position: 'before'},
{pattern: 'react', group: 'builtin', position: 'before'},
{pattern: 'react-dom', group: 'builtin', position: 'before'},
{pattern: 'react-dom/**', group: 'builtin', position: 'before'},
{pattern: 'stream', group: 'builtin', position: 'before'},
{pattern: 'fs-extra', group: 'builtin'},
{pattern: 'lodash', group: 'external', position: 'before'},
{pattern: 'clsx', group: 'external', position: 'before'},
@ -339,10 +348,7 @@ module.exports = {
ERROR,
{'ts-expect-error': 'allow-with-description'},
],
'@typescript-eslint/consistent-indexed-object-style': [
WARNING,
'index-signature',
],
'@typescript-eslint/consistent-indexed-object-style': OFF,
'@typescript-eslint/consistent-type-imports': [
WARNING,
{disallowTypeAnnotations: false},
@ -374,6 +380,8 @@ module.exports = {
// locals must be justified with a disable comment.
'@typescript-eslint/no-unused-vars': [ERROR, {ignoreRestSiblings: true}],
'@typescript-eslint/prefer-optional-chain': ERROR,
'@docusaurus/no-html-links': ERROR,
'@docusaurus/prefer-docusaurus-heading': ERROR,
'@docusaurus/no-untranslated-text': [
WARNING,
{
@ -494,5 +502,14 @@ module.exports = {
files: ['packages/eslint-plugin/**/*.{js,ts}'],
extends: ['plugin:eslint-plugin/recommended'],
},
{
files: [
'packages/docusaurus-plugin-debug/**',
'packages/docusaurus/src/**',
],
rules: {
'@docusaurus/prefer-docusaurus-heading': OFF,
},
},
],
};

View File

@ -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#reporting-new-issues).
- label: I have read the [Contributing Guidelines on issues](https://github.com/facebook/docusaurus/blob/main/CONTRIBUTING.md#issues).
required: true
- type: checkboxes

View File

@ -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#reporting-new-issues).
- label: I have read the [Contributing Guidelines on issues](https://github.com/facebook/docusaurus/blob/main/CONTRIBUTING.md#issues).
required: true
- type: textarea

View File

@ -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#reporting-new-issues).
- label: I have read the [Contributing Guidelines on issues](https://github.com/facebook/docusaurus/blob/main/CONTRIBUTING.md#issues).
required: true
- type: textarea

View File

@ -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#reporting-new-issues).
- label: I have read the [Contributing Guidelines on issues](https://github.com/facebook/docusaurus/blob/main/CONTRIBUTING.md#issues).
required: true
- type: textarea

View File

@ -7,3 +7,12 @@ updates:
open-pull-requests-limit: 99
labels:
- 'pr: dependencies'
- package-ecosystem: 'npm'
directory: '/'
schedule:
interval: 'daily'
# Disable version updates for npm dependencies
# https://docs.github.com/en/code-security/dependabot/dependabot-security-updates/configuring-dependabot-security-updates#overriding-the-default-behavior-with-a-configuration-file
open-pull-requests-limit: 0
labels:
- 'pr: dependencies'

47
.github/workflows/argos.yml vendored Normal file
View File

@ -0,0 +1,47 @@
name: Argos CI
on:
push:
branches: [main]
pull_request:
branches: [main]
types:
# Those 3 are the default PR workflow activity types,
# see https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#pull_request
- opened
- synchronize
- reopened
# We want trigger workflow on labeled too!
- labeled
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
take-screenshots:
# Argos is heavy to run
# We only want to trigger Argos on PRs with the 'Argos' label
# See https://stackoverflow.com/questions/62325286/run-github-actions-when-pull-requests-have-a-specific-label
if: ${{ (github.event_name != 'pull_request' && github.ref_name == 'main') || (github.event_name == 'pull_request' && contains(github.event.pull_request.labels.*.name, 'Argos')) }}
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: Use Node.js
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
with:
node-version: 18
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Install Playwright browsers
run: npx playwright install --with-deps chromium
- name: Build website fast
run: yarn build:website:fast
- name: Take Argos screenshots
run: yarn argos:screenshot

View File

@ -22,11 +22,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # v3
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: Set up Node
uses: actions/setup-node@2fddd8803e2f5c9604345a0b591c3020ee971a93 # v3
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
with:
node-version: '16'
node-version: '18'
cache: yarn
- name: Installation
run: yarn

View File

@ -36,11 +36,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # v3
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: Set up Node
uses: actions/setup-node@2fddd8803e2f5c9604345a0b591c3020ee971a93 # v3
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
with:
node-version: '16'
node-version: '18'
cache: yarn
- name: Track build size changes
uses: preactjs/compressed-size-action@8119d3d31b6e57b167e09c81dfa877eada3bcb35 # v2
@ -57,8 +57,10 @@ jobs:
timeout-minutes: 30
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # v3
- uses: actions/setup-node@2fddd8803e2f5c9604345a0b591c3020ee971a93 # v3
- name: Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: Set up Node
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
with:
cache: yarn
- name: Installation

View File

@ -17,13 +17,13 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # v3
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
fetch-depth: 0 # Needed to get the commit number with "git rev-list --count HEAD"
- name: Set up Node
uses: actions/setup-node@2fddd8803e2f5c9604345a0b591c3020ee971a93 # v3
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
with:
node-version: '16'
node-version: '18'
cache: yarn
- name: Prepare git
run: |

View File

@ -33,12 +33,12 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # v3
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: Initialize CodeQL
uses: github/codeql-action/init@2ca79b6fa8d3ec278944088b4aa5f46912db5d63 # v2
uses: github/codeql-action/init@cdcdbb579706841c47f7063dda365e292e5cad7a # 2.13.4
with:
languages: ${{ matrix.language }}
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@2ca79b6fa8d3ec278944088b4aa5f46912db5d63 # v2
uses: github/codeql-action/analyze@cdcdbb579706841c47f7063dda365e292e5cad7a # 2.13.4

View File

@ -13,6 +13,6 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b #v3
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: Dependency Review
uses: actions/dependency-review-action@94145f3150bfabdc97540cbd5f7e926306ea7744 # v2
uses: actions/dependency-review-action@733dd5d4a5203f238c33806593ec0f5fc5343d8c # 4.2.4

View File

@ -6,38 +6,53 @@ on:
- main
- docusaurus-v**
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
lighthouse-report:
permissions:
pull-requests: write # for marocchino/sticky-pull-request-comment
name: Lighthouse Report
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # v3
- name: Wait for the Netlify Preview
uses: jakepartusch/wait-for-netlify-action@7ccf91c9ba3d64aa4389c0d3adcba0a6e77e5421 # v1
id: netlify
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: Use Node.js
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
with:
site_name: docusaurus-2
max_timeout: 600
node-version: 18
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Build website fast
run: yarn build:website:fast
- name: Audit URLs using Lighthouse
id: lighthouse_audit
uses: treosh/lighthouse-ci-action@b4dfae3eb959c5226e2c5c6afd563d493188bfaf # 9.3.0
uses: treosh/lighthouse-ci-action@1b0e7c33270fbba31a18a0fbb1de7cc5256b6d39 # 11.4.0
with:
urls: |
https://deploy-preview-$PR_NUMBER--docusaurus-2.netlify.app/
https://deploy-preview-$PR_NUMBER--docusaurus-2.netlify.app/docs/installation
http://localhost:3000
http://localhost:3000/docs/installation
http://localhost:3000/docs/category/getting-started
http://localhost:3000/blog
http://localhost:3000/blog/preparing-your-site-for-docusaurus-v3
http://localhost:3000/blog/tags/release
http://localhost:3000/blog/tags
configPath: ./.github/workflows/lighthouserc.json
uploadArtifacts: true
temporaryPublicStorage: true
env:
PR_NUMBER: ${{ github.event.pull_request.number}}
- name: Format lighthouse score
id: format_lighthouse_score
uses: actions/github-script@d50f485531ba88479582bc2da03ff424389af5c1 # v6
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # 7.0.1
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
@ -49,7 +64,7 @@ jobs:
- name: Add Lighthouse stats as comment
id: comment_to_pr
uses: marocchino/sticky-pull-request-comment@39c5b5dc7717447d0cba270cd115037d32d28443 # v2.2.0
uses: marocchino/sticky-pull-request-comment@331f8f5b4215f0445d3c07b4967662a32a2d3e31 # 2.9.0
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
number: ${{ github.event.pull_request.number }}

View File

@ -1,6 +1,12 @@
{
"ci": {
"collect": {
"startServerCommand": "yarn serve:website",
"startServerReadyPattern": "Serving",
"startServerReadyTimeout": 10000,
"numberOfRuns": 1,
"settings": {
"skipAudits": [
"robots-txt",

44
.github/workflows/lint-autofix.yml vendored Normal file
View File

@ -0,0 +1,44 @@
name: Lint AutoFix
on:
pull_request:
branches:
- main
- docusaurus-v**
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
lint-autofix:
name: Lint AutoFix
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
with:
repository: ${{ github.event.pull_request.head.repo.full_name }}
ref: ${{ github.head_ref }}
- name: Installation
run: yarn
- name: AutoFix Format
run: yarn format
- name: AutoFix JS
run: yarn lint:js:fix
- name: AutoFix Style
run: yarn lint:style:fix
- name: AutoFix Spelling
run: yarn lint:spelling:fix
- uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: 'refactor: apply lint autofix'

View File

@ -20,11 +20,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # v3
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: Set up Node
uses: actions/setup-node@2fddd8803e2f5c9604345a0b591c3020ee971a93 # v3
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
with:
node-version: '16'
node-version: '18'
cache: yarn
- name: Installation
run: yarn

View File

@ -22,11 +22,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # v3
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: Set up Node
uses: actions/setup-node@2fddd8803e2f5c9604345a0b591c3020ee971a93 # v3
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
with:
node-version: '16'
node-version: '20'
cache: yarn
- name: Installation
run: yarn

View File

@ -21,6 +21,7 @@ on:
- jest.config.mjs
- packages/**
- tsconfig.json
- admin/verdaccio.yaml
- .github/workflows/tests-e2e.yml
concurrency:
@ -37,12 +38,12 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node: ['16.14', '16', '18']
node: ['18.0', '18', '20']
steps:
- name: Checkout
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # v3
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: Use Node.js ${{ matrix.node }}
uses: actions/setup-node@2fddd8803e2f5c9604345a0b591c3020ee971a93 # v3
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
with:
node-version: ${{ matrix.node }}
cache: yarn
@ -74,11 +75,11 @@ jobs:
variant: [-s, -st]
steps:
- name: Checkout
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # v3
- name: Use Node.js 16
uses: actions/setup-node@2fddd8803e2f5c9604345a0b591c3020ee971a93 # v3
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: Use Node.js 18
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
with:
node-version: '16'
node-version: '18'
cache: yarn
- name: Installation
run: yarn
@ -128,11 +129,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # v3
- name: Use Node.js 16
uses: actions/setup-node@2fddd8803e2f5c9604345a0b591c3020ee971a93 # v3
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: Use Node.js 18
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
with:
node-version: '16'
node-version: '18'
cache: yarn
- name: Installation
run: yarn
@ -158,11 +159,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # v3
- name: Use Node.js 16
uses: actions/setup-node@2fddd8803e2f5c9604345a0b591c3020ee971a93 # v3
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: Use Node.js 18
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
with:
node-version: '16'
node-version: '18'
cache: yarn
- name: Installation
run: yarn

View File

@ -26,11 +26,11 @@ jobs:
variant: ['js', 'ts']
steps:
- name: Checkout
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # v3
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: Set up Node
uses: actions/setup-node@2fddd8803e2f5c9604345a0b591c3020ee971a93 # v3
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
with:
node-version: '16'
node-version: '18'
cache: yarn
- name: Installation
run: yarn

View File

@ -26,14 +26,14 @@ jobs:
runs-on: windows-latest
strategy:
matrix:
node: ['16.14', '16', '18']
node: ['18.0', '18', '20']
steps:
- name: Support longpaths
run: git config --system core.longpaths true
- name: Checkout
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # v3
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: Use Node.js ${{ matrix.node }}
uses: actions/setup-node@2fddd8803e2f5c9604345a0b591c3020ee971a93 # v3
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
with:
node-version: ${{ matrix.node }}
- name: Installation

View File

@ -26,12 +26,12 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node: ['16.14', '16', '18']
node: ['18.0', '18', '20']
steps:
- name: Checkout
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # v3
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: Use Node.js ${{ matrix.node }}
uses: actions/setup-node@2fddd8803e2f5c9604345a0b591c3020ee971a93 # v3
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
with:
node-version: ${{ matrix.node }}
cache: yarn

2
.gitignore vendored
View File

@ -36,6 +36,8 @@ website/changelog
website/_dogfooding/_swizzle_theme_tests
CrowdinTranslations_*.zip
website/i18n/**/*
#!website/i18n/fr
#!website/i18n/fr/**/*

View File

@ -1,8 +1,5 @@
{
"*.{js,jsx,ts,tsx,mjs}": ["eslint --fix"],
"*.css": ["stylelint --allow-empty-input --fix"],
"*": [
"prettier --ignore-unknown --write",
"cspell --no-must-find-files --no-progress"
]
"*": ["prettier --ignore-unknown --write"]
}

View File

@ -4,6 +4,9 @@ node_modules
build
coverage
.docusaurus
jest/vendor
packages/lqip-loader/lib/
packages/docusaurus/lib/
packages/docusaurus-*/lib/*
@ -21,5 +24,5 @@ website/versioned_sidebars/*.json
examples/
website/static/katex/katex.min.css
website/changelog/_swizzle_theme_tests
website/changelog
website/_dogfooding/_swizzle_theme_tests

View File

@ -13,3 +13,5 @@ packages/docusaurus-*/lib/*
packages/create-docusaurus/lib/*
packages/create-docusaurus/templates/
website/static/katex/katex.min.css
jest/vendor

File diff suppressed because it is too large Load Diff

View File

@ -1,13 +1,13 @@
# Contributing to Docusaurus
[Docusaurus](https://docusaurus.io) is our way to hopefully help to create open source documentation easier. We currently have [multiple open source projects using it](https://docusaurus.io/showcase), with many more planned. If you're interested in contributing to Docusaurus, hopefully, this document makes the process for contributing clear.
[Docusaurus](https://docusaurus.io) is our way to hopefully help make open source documentation easier. We currently have [multiple open source projects using it](https://docusaurus.io/showcase), with many more planned. If you're interested in contributing to Docusaurus, hopefully, this document makes the process for contributing clear.
The [Open Source Guides](https://opensource.guide/) website has a collection of resources for individuals, communities, and companies who want to learn how to run and contribute to an open source project. Contributors and people new to open source alike will find the following guides especially useful:
- [How to Contribute to Open Source](https://opensource.guide/how-to-contribute/)
- [Building Welcoming Communities](https://opensource.guide/building-community/)
## [Code of Conduct](https://code.fb.com/codeofconduct)
## Code of Conduct
Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read [the full text](https://code.fb.com/codeofconduct) so that you can understand what actions will and will not be tolerated.
@ -15,9 +15,9 @@ Facebook has adopted a Code of Conduct that we expect project participants to ad
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](#reporting-new-issues).
- 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](#your-first-pull-request). Issues tagged as [_Good first issue_](https://github.com/facebook/docusaurus/labels/Good%20first%20issue) are a good place to get started.
- 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.
- 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.
@ -25,7 +25,7 @@ Contributions are very welcome. If you think you need help planning your contrib
### Join our Discord Channel
We have the [`#contributors`](https://discord.gg/6g6ASPA) channel on [Discord](https://discord.gg/docusaurus) to discuss all things about Docusaurus development. You can also be of great help by helping other users in the help channel.
We have the [`#contributors`](https://discord.gg/6g6ASPA) channel on [Discord](https://discord.gg/docusaurus) to discuss all things about Docusaurus development. You can also be of great help by helping other users in the [`#help-and-questions`](https://discord.gg/fwbcrQ3dHR) channel.
### Triaging Issues and Pull Requests
@ -166,7 +166,7 @@ feat(core): allow overriding of webpack config
| |
| +-> The package(s) that this change affected.
|
+-------> Type: see below for the list we use.
+-------> Type: see above for the list we use.
```
### Versioned Docs
@ -182,7 +182,7 @@ Do not edit the auto-generated files within `versioned_docs/` or `versioned_side
A good test plan has the exact commands you ran and their output and provides screenshots or videos if the pull request changes UI. If you've changed APIs, update the documentation.
Tests are integrated into our continuous integration system, so you don't always need to run local tests. However, for significant code changes, it's saves both your and the maintainers' time if you can do exhaustive tests locally first to make sure your PR is in good shape. There are many types of tests:
Tests are integrated into our continuous integration system, so you don't always need to run local tests. However, for significant code changes, it saves both your and the maintainers' time if you can do exhaustive tests locally first to make sure your PR is in good shape. There are many types of tests:
- **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 [Jest](https://jestjs.io/) for unit tests of API endpoints' behavior. You can run `yarn test` in the root directory to run all tests, or `yarn test path/to/your/file.test.ts` to run a specific test.
@ -229,4 +229,4 @@ When adding a new breaking change, follow this template in your pull request:
### What Happens Next?
The core Docusaurus team will be monitoring for pull requests. Do help us by keeping pull requests consistent by following the guidelines above.
The core Docusaurus team will be monitoring pull requests. Do help us by keeping pull requests consistent by following the guidelines above.

View File

@ -1,7 +1,13 @@
<h1 align="center">
<p align="center">Docusaurus</p>
<a href="https://docusaurus.io"><img src="https://docusaurus.io/img/slash-introducing.svg" alt="Docusaurus"></a>
</h1>
<div align="center">
<h1 align="center">
Docusaurus
<br />
<br />
<a href="https://docusaurus.io">
<img src="https://docusaurus.io/img/slash-introducing.svg" alt="Docusaurus">
</a>
</h1>
</div>
<p align="center">
<a href="https://twitter.com/docusaurus"><img src="https://img.shields.io/twitter/follow/docusaurus.svg?style=social" align="right" alt="Twitter Follow" /></a>
@ -14,17 +20,13 @@
<a href= "https://github.com/prettier/prettier"><img alt="code style: prettier" src="https://img.shields.io/badge/code_style-prettier-ff69b4.svg"></a>
<a href="#license"><img src="https://img.shields.io/github/license/sourcerer-io/hall-of-fame.svg?colorB=ff0000"></a>
<a href="https://github.com/facebook/jest"><img src="https://img.shields.io/badge/tested_with-jest-99424f.svg" alt="Tested with Jest"></a>
<a href="https://argos-ci.com" target="_blank" rel="noreferrer noopener" aria-label="Covered by Argos"><img src="https://argos-ci.com/badge.svg" alt="Covered by Argos" width="133" height="20" /></a>
<a href="https://gitpod.io/#https://github.com/facebook/docusaurus"><img src="https://img.shields.io/badge/Gitpod-Ready--to--Code-blue?logo=gitpod" alt="Gitpod Ready-to-Code"/></a>
<a href="https://app.netlify.com/sites/docusaurus-2/deploys"><img src="https://api.netlify.com/api/v1/badges/9e1ff559-4405-4ebe-8718-5e21c0774bc8/deploy-status" alt="Netlify Status"></a>
<a href="https://meercode.io/facebook/docusaurus"><img src="https://meercode.io/badge/facebook/docusaurus?type=ci-score" alt="CI Score"></a>
<a href="https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2Ffacebook%2Fdocusaurus%2Ftree%2Fmain%2Fexamples%2Fclassic&project-name=my-docusaurus-site&repo-name=my-docusaurus-site"><img src="https://vercel.com/button" alt="Deploy with Vercel"/></a>
<a href="https://app.netlify.com/start/deploy?repository=https://github.com/slorber/docusaurus-starter"><img src="https://www.netlify.com/img/deploy/button.svg" alt="Deploy to Netlify"></a>
</p>
> **We are working hard on Docusaurus v2. If you are new to Docusaurus, try using the new version instead of v1. See the [Docusaurus v2 website](https://docusaurus.io/) for more details.**
> Docusaurus v1 doc is available at [v1.docusaurus.io](https://v1.docusaurus.io) and code is available on branch [docusaurus-v1](https://github.com/facebook/docusaurus/tree/docusaurus-v1)
## Introduction
Docusaurus is a project for building, deploying, and maintaining open source project websites easily.
@ -105,7 +107,14 @@ The Docusaurus documentation (e.g., `.md` files in the `/docs` folder) is [Creat
## Special thanks
[![BrowserStack logo](./admin/img/browserstack-logo.png)](http://www.browserstack.com/)
<p>
<a href="http://www.browserstack.com/" target="_blank">
<picture>
<source media="(prefers-color-scheme: dark)" srcset="./admin/img/browserstack-dark-mode-logo.svg#gh-dark-mode-only">
<img alt="BrowserStack logo" src="./admin/img/browserstack-light-mode-logo.svg#gh-light-mode-only" height="50px" />
</picture>
</a>
</p>
[BrowserStack](http://www.browserstack.com/) supports us with [free access for open source](https://www.browserstack.com/open-source).

View File

@ -0,0 +1,38 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg width="180px" height="32px" viewBox="0 0 180 32" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<g transform="translate(-40.000000, -16.000000)">
<g transform="translate(40.000000, 16.000000)">
<g>
<g>
<path d="M31.0344828,15.5172414 C31.0344828,24.0874296 24.0874296,31.0344828 15.5172414,31.0344828 C6.94734717,31.0344828 0,24.0874296 0,15.5172414 C0,6.94734717 6.94734717,0 15.5172414,0 C24.0874296,0 31.0344828,6.94734717 31.0344828,15.5172414" id="Fill-1" fill="#ECB360"></path>
<path d="M26.8965517,13.9655172 C26.8965517,21.6784019 20.8752148,27.9310345 13.4482759,27.9310345 C6.02105363,27.9310345 0,21.6784019 0,13.9655172 C0,6.25263261 6.02105363,0 13.4482759,0 C20.8752148,0 26.8965517,6.25263261 26.8965517,13.9655172" id="Fill-2" fill="#D76835"></path>
<path d="M27.9310345,12.4136422 C27.9310345,19.2697074 22.6047339,24.8275862 16.034049,24.8275862 C9.4642316,24.8275862 4.13793103,19.2697074 4.13793103,12.4136422 C4.13793103,5.55787885 9.4642316,0 16.034049,0 C22.6047339,0 27.9310345,5.55787885 27.9310345,12.4136422" id="Fill-3" fill="#D33A41"></path>
<path d="M26.8965517,13.4484262 C26.8965517,19.7327316 22.0332814,24.8275862 16.0343393,24.8275862 C10.0353971,24.8275862 5.17241379,19.7327316 5.17241379,13.4484262 C5.17241379,7.16351943 10.0353971,2.06896552 16.0343393,2.06896552 C22.0332814,2.06896552 26.8965517,7.16351943 26.8965517,13.4484262" id="Fill-4" fill="#B6CB46"></path>
<path d="M25.862069,14.4826111 C25.862069,20.1959217 21.2304045,24.8275862 15.5170939,24.8275862 C9.80407825,24.8275862 5.17241379,20.1959217 5.17241379,14.4826111 C5.17241379,8.76930045 9.80407825,4.13793103 15.5170939,4.13793103 C21.2304045,4.13793103 25.862069,8.76930045 25.862069,14.4826111" id="Fill-5" fill="#66AD4A"></path>
<path d="M21.7241379,12.4137931 C21.7241379,16.9844178 18.0189006,20.6896552 13.4482759,20.6896552 C8.87737075,20.6896552 5.17241379,16.9844178 5.17241379,12.4137931 C5.17241379,7.84316841 8.87737075,4.13793103 13.4482759,4.13793103 C18.0189006,4.13793103 21.7241379,7.84316841 21.7241379,12.4137931" id="Fill-6" fill="#AED7DC"></path>
<path d="M22.7586207,11.3793103 C22.7586207,15.3784867 19.5166452,18.6206897 15.5170948,18.6206897 C11.5175443,18.6206897 8.27586207,15.3784867 8.27586207,11.3793103 C8.27586207,7.37984085 11.5175443,4.13793103 15.5170948,4.13793103 C19.5166452,4.13793103 22.7586207,7.37984085 22.7586207,11.3793103" id="Fill-7" fill="#5BB1CF"></path>
<path d="M22.7586207,11.8963967 C22.7586207,15.6100389 19.9797805,18.6206897 16.5517241,18.6206897 C13.1236677,18.6206897 10.3448276,15.6100389 10.3448276,11.8963967 C10.3448276,8.18306453 13.1236677,5.17241379 16.5517241,5.17241379 C19.9797805,5.17241379 22.7586207,8.18306453 22.7586207,11.8963967" id="Fill-8" fill="#25A8C3"></path>
<path d="M20.6896552,12.9308813 C20.6896552,16.0732337 18.3737862,18.6206897 15.5171021,18.6206897 C12.6606966,18.6206897 10.3448276,16.0732337 10.3448276,12.9308813 C10.3448276,9.78852889 12.6606966,7.24137931 15.5171021,7.24137931 C18.3737862,7.24137931 20.6896552,9.78852889 20.6896552,12.9308813" id="Fill-9"></path>
<path d="M15.5171021,18.6206897 C12.6606966,18.6206897 10.3448276,16.0732337 10.3448276,12.9308813 C10.3448276,9.78852889 12.6606966,7.24137931 15.5171021,7.24137931 C18.3737862,7.24137931 20.6896552,9.78852889 20.6896552,12.9308813 C20.6896552,16.0732337 18.3737862,18.6206897 15.5171021,18.6206897 Z" id="Fill-11" fill="#1B1A18"></path>
<path d="M18.3395432,11.2904163 C17.8474621,12.1136138 16.8799806,12.5897073 16.1782532,12.3530843 C15.4765258,12.116746 15.3066858,11.2573859 15.7983878,10.4339036 C16.2904689,9.61042129 17.2579504,9.13461253 17.9596778,9.37095081 C18.6614052,9.60728909 18.8312452,10.4666492 18.3395432,11.2904163" id="Fill-12" fill="#FFFFFE"></path>
</g>
<g transform="translate(40.344828, 7.241379)" fill="#FFFFFF">
<path d="M117.326492,14.0927618 C117.079145,13.39893 116.955659,12.5196449 116.955659,11.3399025 C116.955659,10.16016 117.079145,9.28125569 117.326492,8.58704314 C118.018463,6.59770338 119.848911,5.51049721 122.247091,5.51049721 C124.027467,5.51049721 125.43701,6.18109969 126.376328,7.24545739 C126.450871,7.33799367 126.475343,7.47698851 126.351857,7.56952479 L124.793981,8.84142273 C124.670496,8.93395901 124.546634,8.91111055 124.447996,8.79534499 C123.854663,8.17082025 123.236482,7.82390438 122.247091,7.82390438 C121.183911,7.82390438 120.367701,8.30981509 120.021339,9.28125569 C119.823687,9.83647341 119.774368,10.4842274 119.774368,11.3399025 C119.774368,12.1959583 119.823687,12.8669416 120.021339,13.4221593 C120.367701,14.3703706 121.183911,14.8562814 122.247091,14.8562814 C123.236482,14.8562814 123.854663,14.5093655 124.447996,13.8848407 C124.546634,13.7690752 124.670496,13.7690752 124.793981,13.8616115 L126.351857,15.1338902 C126.475343,15.2264265 126.450871,15.3421921 126.376328,15.4575768 C125.43701,16.4987052 124.027467,17.1696885 122.247091,17.1696885 C119.848911,17.1696885 118.018463,16.0824824 117.326492,14.0927618" id="Fill-23"></path>
<path d="M136.031168,16.9153089 C135.858364,16.9153089 135.734502,16.8460019 135.635487,16.6837778 L132.61875,12.0108857 L131.011555,13.7458459 L131.011555,16.6837778 C131.011555,16.8227726 130.912917,16.9153089 130.764584,16.9153089 L128.489136,16.9153089 C128.341179,16.9153089 128.242165,16.8227726 128.242165,16.6837778 L128.242165,1.41567133 C128.242165,1.2770573 128.341179,1.18452102 128.489136,1.18452102 L130.764584,1.18452102 C130.912917,1.18452102 131.011555,1.2770573 131.011555,1.41567133 L131.011555,10.4842274 L135.09185,5.99640792 C135.239806,5.83418381 135.363668,5.7648768 135.561321,5.7648768 L138.083739,5.7648768 C138.232073,5.7648768 138.281392,5.90349083 138.182377,5.99640792 L134.399126,10.0676237 L138.751239,16.6837778 C138.825782,16.7763141 138.776087,16.9153089 138.627754,16.9153089 L136.031168,16.9153089" id="Fill-25"></path>
<path d="M3.44757063,14.5093655 L6.95900335,14.5093655 C8.5910459,14.5093655 9.50589328,13.6300804 9.50589328,12.3117239 C9.50589328,11.0162159 8.5910459,10.1373115 6.95900335,10.1373115 L3.44757063,10.1373115 C3.34893277,10.1373115 3.29923736,10.1833893 3.29923736,10.2759256 L3.29923736,14.3703706 C3.29923736,14.4629069 3.34893277,14.5093655 3.44757063,14.5093655 Z M6.81067007,7.73136809 C8.29437934,7.73136809 9.20922672,6.89854151 9.20922672,5.67234051 C9.20922672,4.42329105 8.29437934,3.59046447 6.81067007,3.59046447 L3.44757063,3.59046447 C3.34893277,3.59046447 3.29923736,3.63654221 3.29923736,3.7290785 L3.29923736,7.59237326 C3.29923736,7.68490955 3.34893277,7.73136809 3.44757063,7.73136809 L6.81067007,7.73136809 Z M0.381514233,1.41567133 C0.381514233,1.2770573 0.480528579,1.18452102 0.628485378,1.18452102 L6.88483671,1.18452102 C10.4455884,1.18452102 12.1269498,2.85017418 12.1269498,5.37150238 C12.1269498,7.1529211 11.2369502,8.17082025 10.173393,8.7028087 L10.173393,8.74926725 C11.2121025,9.11903159 12.4236164,10.3684619 12.4236164,12.2884946 C12.4236164,15.4114991 10.3217263,16.9153089 6.63748909,16.9153089 L0.628485378,16.9153089 C0.480528579,16.9153089 0.381514233,16.8227726 0.381514233,16.6837778 L0.381514233,1.41567133 Z" id="Fill-13"></path>
<path d="M14.4750581,16.9153089 C14.3263484,16.9153089 14.227334,16.8227726 14.227334,16.6837778 L14.227334,5.99640792 C14.227334,5.85741309 14.3263484,5.7648768 14.4750581,5.7648768 L16.7497527,5.7648768 C16.898086,5.7648768 16.9971003,5.85741309 16.9971003,5.99640792 L16.9971003,6.94461925 L17.021948,6.94461925 C17.5904334,6.08894421 18.6042952,5.51049721 20.1128521,5.51049721 C21.0521708,5.51049721 21.9918658,5.85741309 22.6100467,6.43586008 C22.7339087,6.55124483 22.7587564,6.64416193 22.6593656,6.75954668 L21.3488373,8.30981509 C21.2501994,8.42519984 21.1263374,8.44842911 21.0028518,8.35589283 C20.4588376,8.03182542 19.8899758,7.82390438 19.2473237,7.82390438 C17.6894478,7.82390438 16.9971003,8.864652 16.9971003,10.6460707 L16.9971003,16.6837778 C16.9971003,16.8227726 16.898086,16.9153089 16.7497527,16.9153089 L14.4750581,16.9153089" id="Fill-14"></path>
<path d="M30.2623873,13.39893 C30.460416,12.820483 30.509735,12.2884946 30.509735,11.3399025 C30.509735,10.3916911 30.460416,9.88255115 30.2623873,9.28125569 C29.9160254,8.35589283 29.1498877,7.82390438 28.0370117,7.82390438 C26.9241356,7.82390438 26.1327738,8.35589283 25.7867883,9.28125569 C25.5891361,9.88255115 25.5394407,10.3916911 25.5394407,11.3399025 C25.5394407,12.2884946 25.5891361,12.820483 25.7867883,13.39893 C26.1327738,14.3242929 26.9241356,14.8562814 28.0370117,14.8562814 C29.1498877,14.8562814 29.9160254,14.3242929 30.2623873,13.39893 Z M23.1164128,14.0927618 C22.8442175,13.3063938 22.7207319,12.5661035 22.7207319,11.3399025 C22.7207319,10.1140823 22.8442175,9.37379198 23.1164128,8.58704314 C23.7839126,6.64416193 25.6136073,5.51049721 28.0370117,5.51049721 C30.4355683,5.51049721 32.2652631,6.64416193 32.9331393,8.58704314 C33.2049582,9.37379198 33.3288202,10.1140823 33.3288202,11.3399025 C33.3288202,12.5661035 33.2049582,13.3063938 32.9331393,14.0927618 C32.2652631,16.0360238 30.4355683,17.1696885 28.0370117,17.1696885 C25.6136073,17.1696885 23.7839126,16.0360238 23.1164128,14.0927618 Z" id="Fill-15"></path>
<path d="M45.3234858,16.9153089 C45.1747761,16.9153089 45.0761382,16.8227726 45.0264428,16.6837778 L42.7269005,9.55886455 L42.6775816,9.55886455 L40.3531916,16.6837778 C40.3034962,16.8227726 40.2048583,16.9153089 40.0561485,16.9153089 L38.0288016,16.9153089 C37.8800918,16.9153089 37.7814539,16.8227726 37.732135,16.6837778 L33.9733547,5.99640792 C33.9236592,5.85741309 33.9982024,5.7648768 34.1465356,5.7648768 L36.5202446,5.7648768 C36.6934256,5.7648768 36.7924399,5.83418381 36.8417589,5.99640792 L39.1413012,13.3528523 L39.1909966,13.3528523 L41.4656912,5.99640792 C41.5153866,5.85741309 41.6388721,5.7648768 41.7872054,5.7648768 L43.5675812,5.7648768 C43.7159145,5.7648768 43.8397766,5.85741309 43.8890955,5.99640792 L46.3124999,13.3528523 L46.3618188,13.3528523 L48.5378755,5.99640792 C48.5871945,5.83418381 48.6862088,5.7648768 48.8593898,5.7648768 L51.2330987,5.7648768 C51.381432,5.7648768 51.4555987,5.85741309 51.4062797,5.99640792 L47.6474994,16.6837778 C47.5981804,16.8227726 47.4991661,16.9153089 47.3508328,16.9153089 L45.3234858,16.9153089" id="Fill-16"></path>
<path d="M51.8938218,15.4114991 C51.795184,15.3189628 51.795184,15.1803488 51.8938218,15.0878125 L53.3033645,13.6997682 C53.4023788,13.6072319 53.5507121,13.6072319 53.6497264,13.6997682 C54.5152549,14.4400585 55.8999498,14.9720469 57.1363115,14.9720469 C58.595173,14.9720469 59.3368394,14.4168292 59.3368394,13.6533096 C59.3368394,12.9823263 58.9166873,12.5661035 57.3588114,12.4271086 L56.0727543,12.3117239 C53.6497264,12.0801928 52.4129883,10.9236796 52.4129883,9.0264953 C52.4129883,6.87531224 54.0698786,5.51049721 57.0372971,5.51049721 C58.8918396,5.51049721 60.4497155,6.08894421 61.5128961,6.87531224 C61.6367582,6.96784853 61.6367582,7.10646255 61.5625915,7.19899884 L60.3507011,8.56419467 C60.2520633,8.67957943 60.1282012,8.67957943 60.0047156,8.61027241 C59.2626728,8.12436171 58.0760065,7.68490955 56.8889638,7.68490955 C55.7019211,7.68490955 55.0837403,8.17082025 55.0837403,8.84142273 C55.0837403,9.48955754 55.5042689,9.88255115 57.0372971,10.021546 L58.3229777,10.1373115 C60.8205487,10.3684619 62.0075914,11.5714336 62.0075914,13.39893 C62.0075914,15.6198009 60.2765345,17.1696885 57.0124494,17.1696885 C54.5645738,17.1696885 52.8832123,16.2675549 51.8938218,15.4114991" id="Fill-17"></path>
<path d="M71.0995931,9.14226086 C70.7780788,8.24012727 69.8877027,7.70813882 68.7752031,7.70813882 C67.6378558,7.70813882 66.7474797,8.24012727 66.4263419,9.14226086 C66.326951,9.41986972 66.2776321,9.69747858 66.2776321,10.090853 C66.2776321,10.1833893 66.326951,10.2298478 66.4263419,10.2298478 L71.0995931,10.2298478 C71.1986075,10.2298478 71.2479264,10.1833893 71.2479264,10.090853 C71.2479264,9.69747858 71.1986075,9.41986972 71.0995931,9.14226086 Z M63.9039232,14.0695325 C63.6565755,13.3528523 63.4833946,12.4967965 63.4833946,11.3399025 C63.4833946,10.1833893 63.6321043,9.30448497 63.8790755,8.58704314 C64.5465752,6.64416193 66.37627,5.51049721 68.7503554,5.51049721 C71.1986075,5.51049721 72.9789833,6.69023967 73.646483,8.58704314 C73.9186784,9.37379198 74.0421639,10.1373115 74.0421639,11.9415787 C74.0421639,12.0801928 73.9431496,12.172729 73.7703451,12.172729 L66.4263419,12.172729 C66.326951,12.172729 66.2776321,12.2191876 66.2776321,12.3117239 C66.2776321,12.6354105 66.3517988,12.9130193 66.4508131,13.1673989 C66.846494,14.2549859 67.7861891,14.8562814 69.1211886,14.8562814 C70.4565646,14.8562814 71.3224695,14.3935999 71.9154261,13.7923045 C72.0392882,13.6765389 72.1627738,13.6533096 72.2862593,13.7458459 L73.7454974,14.9488176 C73.868983,15.0413539 73.868983,15.1571195 73.7703451,15.272885 C72.7564834,16.3829397 71.0747454,17.1696885 68.8742175,17.1696885 C66.3517988,17.1696885 64.5714229,16.0131753 63.9039232,14.0695325 Z" id="Fill-18"></path>
<path d="M76.0928527,16.9153089 C75.9448959,16.9153089 75.8458816,16.8227726 75.8458816,16.6837778 L75.8458816,5.99640792 C75.8458816,5.85741309 75.9448959,5.7648768 76.0928527,5.7648768 L78.3679238,5.7648768 C78.5166335,5.7648768 78.6152714,5.85741309 78.6152714,5.99640792 L78.6152714,6.94461925 L78.6401191,6.94461925 C79.2086045,6.08894421 80.2224662,5.51049721 81.7310232,5.51049721 C82.6707183,5.51049721 83.6100369,5.85741309 84.2282177,6.43586008 C84.3520798,6.55124483 84.376551,6.64416193 84.2779131,6.75954668 L82.9673849,8.30981509 C82.868747,8.42519984 82.7448849,8.44842911 82.6210229,8.35589283 C82.0773852,8.03182542 81.5085233,7.82390438 80.8658712,7.82390438 C79.3079953,7.82390438 78.6152714,8.864652 78.6152714,10.6460707 L78.6152714,16.6837778 C78.6152714,16.8227726 78.5166335,16.9153089 78.3679238,16.9153089 L76.0928527,16.9153089" id="Fill-19"></path>
<path d="M84.704089,15.0878125 C84.6050746,14.9952762 84.5557557,14.8562814 84.65477,14.7405158 L86.1877982,13.0748626 C86.2868126,12.9594779 86.4351458,12.9594779 86.5337837,13.0520142 C87.6221886,13.8616115 89.2293834,14.7172865 91.1083971,14.7172865 C93.1112728,14.7172865 94.2734678,13.7690752 94.2734678,12.4507187 C94.2734678,11.317054 93.5318014,10.5767637 91.2074114,10.2759256 L90.3170353,10.16016 C87.0781744,9.74393713 85.2481031,8.28620501 85.2481031,5.67234051 C85.2481031,2.8269449 87.4734788,0.930141431 90.9352161,0.930141431 C93.0371062,0.930141431 95.0399819,1.55466616 96.3753579,2.5028775 C96.49922,2.59579459 96.5240677,2.68833088 96.4250533,2.8269449 L95.2380106,4.5386758 C95.1393728,4.65444136 95.0155107,4.67767064 94.8916487,4.60836362 C93.5318014,3.77553704 92.2705921,3.38216262 90.8614259,3.38216262 C89.1548403,3.38216262 88.2155217,4.26144775 88.2155217,5.48726794 C88.2155217,6.57447411 89.0313547,7.3147644 91.3064258,7.61560253 L92.1968019,7.73136809 C95.4356628,8.14759098 97.2160387,9.58171302 97.2160387,12.2884946 C97.2160387,15.0878125 95.0648296,17.1696885 90.8858972,17.1696885 C88.4135504,17.1696885 86.0146172,16.2443257 84.704089,15.0878125" id="Fill-20"></path>
<path d="M102.339937,17.1118057 C99.9413803,17.1118057 99.0265329,16.0245996 99.0265329,13.8498064 L99.0265329,7.97432345 C99.0265329,7.88178716 98.9768375,7.83532861 98.8778232,7.83532861 L98.0864614,7.83532861 C97.9385046,7.83532861 97.8394902,7.74279233 97.8394902,7.60379749 L97.8394902,6.05390989 C97.8394902,5.91529587 97.9385046,5.82275958 98.0864614,5.82275958 L98.8778232,5.82275958 C98.9768375,5.82275958 99.0265329,5.77630103 99.0265329,5.68376475 L99.0265329,2.63006729 C99.0265329,2.49145326 99.1255473,2.39891698 99.2735041,2.39891698 L101.548575,2.39891698 C101.696908,2.39891698 101.795923,2.49145326 101.795923,2.63006729 L101.795923,5.68376475 C101.795923,5.77630103 101.845242,5.82275958 101.944256,5.82275958 L103.52698,5.82275958 C103.674936,5.82275958 103.773951,5.91529587 103.773951,6.05390989 L103.773951,7.60379749 C103.773951,7.74279233 103.674936,7.83532861 103.52698,7.83532861 L101.944256,7.83532861 C101.845242,7.83532861 101.795923,7.88178716 101.795923,7.97432345 L101.795923,13.757651 C101.795923,14.544019 102.142285,14.7983986 102.908799,14.7983986 L103.52698,14.7983986 C103.674936,14.7983986 103.773951,14.8909349 103.773951,15.0299297 L103.773951,16.8802746 C103.773951,17.0192695 103.674936,17.1118057 103.52698,17.1118057 L102.339937,17.1118057" id="Fill-21"></path>
<path d="M112.530885,13.1673989 L112.530885,12.3117239 C112.530885,12.2191876 112.48119,12.172729 112.382175,12.172729 L110.404147,12.172729 C108.623771,12.172729 107.83241,12.6354105 107.83241,13.6765389 C107.83241,14.6019018 108.549228,15.0645832 109.884604,15.0645832 C111.59119,15.0645832 112.530885,14.4400585 112.530885,13.1673989 Z M112.827175,16.9153089 C112.678842,16.9153089 112.580204,16.8227726 112.580204,16.6837778 L112.580204,15.8741805 L112.555356,15.8741805 C111.986494,16.6377001 110.873618,17.1696885 109.192633,17.1696885 C107.016577,17.1696885 105.186505,16.1057116 105.186505,13.7690752 C105.186505,11.3399025 107.016577,10.2298478 109.958771,10.2298478 L112.382175,10.2298478 C112.48119,10.2298478 112.530885,10.1833893 112.530885,10.090853 L112.530885,9.55886455 C112.530885,8.28620501 111.88748,7.70813882 109.884604,7.70813882 C108.549228,7.70813882 107.733395,8.05505469 107.164533,8.47165839 C107.041048,8.56419467 106.892714,8.5409654 106.818548,8.42519984 L105.9037,6.89854151 C105.829534,6.78277595 105.854382,6.66701039 105.953019,6.59770338 C106.917562,5.94994937 108.22809,5.51049721 110.181647,5.51049721 C113.816566,5.51049721 115.151942,6.66701039 115.151942,9.39702125 L115.151942,16.6837778 C115.151942,16.8227726 115.052551,16.9153089 114.904594,16.9153089 L112.827175,16.9153089 Z" id="Fill-22"></path>
</g>
</g>
</g>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 18 KiB

View File

@ -0,0 +1,38 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg width="180px" height="32px" viewBox="0 0 180 32" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<g transform="translate(-40.000000, -16.000000)">
<g transform="translate(40.000000, 16.000000)">
<g>
<g>
<path d="M31.0344828,15.5172414 C31.0344828,24.0874296 24.0874296,31.0344828 15.5172414,31.0344828 C6.94734717,31.0344828 0,24.0874296 0,15.5172414 C0,6.94734717 6.94734717,0 15.5172414,0 C24.0874296,0 31.0344828,6.94734717 31.0344828,15.5172414" id="Fill-1" fill="#ECB360"></path>
<path d="M26.8965517,13.9655172 C26.8965517,21.6784019 20.8752148,27.9310345 13.4482759,27.9310345 C6.02105363,27.9310345 0,21.6784019 0,13.9655172 C0,6.25263261 6.02105363,0 13.4482759,0 C20.8752148,0 26.8965517,6.25263261 26.8965517,13.9655172" id="Fill-2" fill="#D76835"></path>
<path d="M27.9310345,12.4136422 C27.9310345,19.2697074 22.6047339,24.8275862 16.034049,24.8275862 C9.4642316,24.8275862 4.13793103,19.2697074 4.13793103,12.4136422 C4.13793103,5.55787885 9.4642316,0 16.034049,0 C22.6047339,0 27.9310345,5.55787885 27.9310345,12.4136422" id="Fill-3" fill="#D33A41"></path>
<path d="M26.8965517,13.4484262 C26.8965517,19.7327316 22.0332814,24.8275862 16.0343393,24.8275862 C10.0353971,24.8275862 5.17241379,19.7327316 5.17241379,13.4484262 C5.17241379,7.16351943 10.0353971,2.06896552 16.0343393,2.06896552 C22.0332814,2.06896552 26.8965517,7.16351943 26.8965517,13.4484262" id="Fill-4" fill="#B6CB46"></path>
<path d="M25.862069,14.4826111 C25.862069,20.1959217 21.2304045,24.8275862 15.5170939,24.8275862 C9.80407825,24.8275862 5.17241379,20.1959217 5.17241379,14.4826111 C5.17241379,8.76930045 9.80407825,4.13793103 15.5170939,4.13793103 C21.2304045,4.13793103 25.862069,8.76930045 25.862069,14.4826111" id="Fill-5" fill="#66AD4A"></path>
<path d="M21.7241379,12.4137931 C21.7241379,16.9844178 18.0189006,20.6896552 13.4482759,20.6896552 C8.87737075,20.6896552 5.17241379,16.9844178 5.17241379,12.4137931 C5.17241379,7.84316841 8.87737075,4.13793103 13.4482759,4.13793103 C18.0189006,4.13793103 21.7241379,7.84316841 21.7241379,12.4137931" id="Fill-6" fill="#AED7DC"></path>
<path d="M22.7586207,11.3793103 C22.7586207,15.3784867 19.5166452,18.6206897 15.5170948,18.6206897 C11.5175443,18.6206897 8.27586207,15.3784867 8.27586207,11.3793103 C8.27586207,7.37984085 11.5175443,4.13793103 15.5170948,4.13793103 C19.5166452,4.13793103 22.7586207,7.37984085 22.7586207,11.3793103" id="Fill-7" fill="#5BB1CF"></path>
<path d="M22.7586207,11.8963967 C22.7586207,15.6100389 19.9797805,18.6206897 16.5517241,18.6206897 C13.1236677,18.6206897 10.3448276,15.6100389 10.3448276,11.8963967 C10.3448276,8.18306453 13.1236677,5.17241379 16.5517241,5.17241379 C19.9797805,5.17241379 22.7586207,8.18306453 22.7586207,11.8963967" id="Fill-8" fill="#25A8C3"></path>
<path d="M20.6896552,12.9308813 C20.6896552,16.0732337 18.3737862,18.6206897 15.5171021,18.6206897 C12.6606966,18.6206897 10.3448276,16.0732337 10.3448276,12.9308813 C10.3448276,9.78852889 12.6606966,7.24137931 15.5171021,7.24137931 C18.3737862,7.24137931 20.6896552,9.78852889 20.6896552,12.9308813" id="Fill-9"></path>
<path d="M15.5171021,18.6206897 C12.6606966,18.6206897 10.3448276,16.0732337 10.3448276,12.9308813 C10.3448276,9.78852889 12.6606966,7.24137931 15.5171021,7.24137931 C18.3737862,7.24137931 20.6896552,9.78852889 20.6896552,12.9308813 C20.6896552,16.0732337 18.3737862,18.6206897 15.5171021,18.6206897 Z" id="Fill-11" fill="#1B1A18"></path>
<path d="M18.3395432,11.2904163 C17.8474621,12.1136138 16.8799806,12.5897073 16.1782532,12.3530843 C15.4765258,12.116746 15.3066858,11.2573859 15.7983878,10.4339036 C16.2904689,9.61042129 17.2579504,9.13461253 17.9596778,9.37095081 C18.6614052,9.60728909 18.8312452,10.4666492 18.3395432,11.2904163" id="Fill-12" fill="#FFFFFE"></path>
</g>
<g transform="translate(40.344828, 7.241379)" fill="#202020">
<path d="M117.326492,14.0927618 C117.079145,13.39893 116.955659,12.5196449 116.955659,11.3399025 C116.955659,10.16016 117.079145,9.28125569 117.326492,8.58704314 C118.018463,6.59770338 119.848911,5.51049721 122.247091,5.51049721 C124.027467,5.51049721 125.43701,6.18109969 126.376328,7.24545739 C126.450871,7.33799367 126.475343,7.47698851 126.351857,7.56952479 L124.793981,8.84142273 C124.670496,8.93395901 124.546634,8.91111055 124.447996,8.79534499 C123.854663,8.17082025 123.236482,7.82390438 122.247091,7.82390438 C121.183911,7.82390438 120.367701,8.30981509 120.021339,9.28125569 C119.823687,9.83647341 119.774368,10.4842274 119.774368,11.3399025 C119.774368,12.1959583 119.823687,12.8669416 120.021339,13.4221593 C120.367701,14.3703706 121.183911,14.8562814 122.247091,14.8562814 C123.236482,14.8562814 123.854663,14.5093655 124.447996,13.8848407 C124.546634,13.7690752 124.670496,13.7690752 124.793981,13.8616115 L126.351857,15.1338902 C126.475343,15.2264265 126.450871,15.3421921 126.376328,15.4575768 C125.43701,16.4987052 124.027467,17.1696885 122.247091,17.1696885 C119.848911,17.1696885 118.018463,16.0824824 117.326492,14.0927618" id="Fill-23"></path>
<path d="M136.031168,16.9153089 C135.858364,16.9153089 135.734502,16.8460019 135.635487,16.6837778 L132.61875,12.0108857 L131.011555,13.7458459 L131.011555,16.6837778 C131.011555,16.8227726 130.912917,16.9153089 130.764584,16.9153089 L128.489136,16.9153089 C128.341179,16.9153089 128.242165,16.8227726 128.242165,16.6837778 L128.242165,1.41567133 C128.242165,1.2770573 128.341179,1.18452102 128.489136,1.18452102 L130.764584,1.18452102 C130.912917,1.18452102 131.011555,1.2770573 131.011555,1.41567133 L131.011555,10.4842274 L135.09185,5.99640792 C135.239806,5.83418381 135.363668,5.7648768 135.561321,5.7648768 L138.083739,5.7648768 C138.232073,5.7648768 138.281392,5.90349083 138.182377,5.99640792 L134.399126,10.0676237 L138.751239,16.6837778 C138.825782,16.7763141 138.776087,16.9153089 138.627754,16.9153089 L136.031168,16.9153089" id="Fill-25"></path>
<path d="M3.44757063,14.5093655 L6.95900335,14.5093655 C8.5910459,14.5093655 9.50589328,13.6300804 9.50589328,12.3117239 C9.50589328,11.0162159 8.5910459,10.1373115 6.95900335,10.1373115 L3.44757063,10.1373115 C3.34893277,10.1373115 3.29923736,10.1833893 3.29923736,10.2759256 L3.29923736,14.3703706 C3.29923736,14.4629069 3.34893277,14.5093655 3.44757063,14.5093655 Z M6.81067007,7.73136809 C8.29437934,7.73136809 9.20922672,6.89854151 9.20922672,5.67234051 C9.20922672,4.42329105 8.29437934,3.59046447 6.81067007,3.59046447 L3.44757063,3.59046447 C3.34893277,3.59046447 3.29923736,3.63654221 3.29923736,3.7290785 L3.29923736,7.59237326 C3.29923736,7.68490955 3.34893277,7.73136809 3.44757063,7.73136809 L6.81067007,7.73136809 Z M0.381514233,1.41567133 C0.381514233,1.2770573 0.480528579,1.18452102 0.628485378,1.18452102 L6.88483671,1.18452102 C10.4455884,1.18452102 12.1269498,2.85017418 12.1269498,5.37150238 C12.1269498,7.1529211 11.2369502,8.17082025 10.173393,8.7028087 L10.173393,8.74926725 C11.2121025,9.11903159 12.4236164,10.3684619 12.4236164,12.2884946 C12.4236164,15.4114991 10.3217263,16.9153089 6.63748909,16.9153089 L0.628485378,16.9153089 C0.480528579,16.9153089 0.381514233,16.8227726 0.381514233,16.6837778 L0.381514233,1.41567133 Z" id="Fill-13"></path>
<path d="M14.4750581,16.9153089 C14.3263484,16.9153089 14.227334,16.8227726 14.227334,16.6837778 L14.227334,5.99640792 C14.227334,5.85741309 14.3263484,5.7648768 14.4750581,5.7648768 L16.7497527,5.7648768 C16.898086,5.7648768 16.9971003,5.85741309 16.9971003,5.99640792 L16.9971003,6.94461925 L17.021948,6.94461925 C17.5904334,6.08894421 18.6042952,5.51049721 20.1128521,5.51049721 C21.0521708,5.51049721 21.9918658,5.85741309 22.6100467,6.43586008 C22.7339087,6.55124483 22.7587564,6.64416193 22.6593656,6.75954668 L21.3488373,8.30981509 C21.2501994,8.42519984 21.1263374,8.44842911 21.0028518,8.35589283 C20.4588376,8.03182542 19.8899758,7.82390438 19.2473237,7.82390438 C17.6894478,7.82390438 16.9971003,8.864652 16.9971003,10.6460707 L16.9971003,16.6837778 C16.9971003,16.8227726 16.898086,16.9153089 16.7497527,16.9153089 L14.4750581,16.9153089" id="Fill-14"></path>
<path d="M30.2623873,13.39893 C30.460416,12.820483 30.509735,12.2884946 30.509735,11.3399025 C30.509735,10.3916911 30.460416,9.88255115 30.2623873,9.28125569 C29.9160254,8.35589283 29.1498877,7.82390438 28.0370117,7.82390438 C26.9241356,7.82390438 26.1327738,8.35589283 25.7867883,9.28125569 C25.5891361,9.88255115 25.5394407,10.3916911 25.5394407,11.3399025 C25.5394407,12.2884946 25.5891361,12.820483 25.7867883,13.39893 C26.1327738,14.3242929 26.9241356,14.8562814 28.0370117,14.8562814 C29.1498877,14.8562814 29.9160254,14.3242929 30.2623873,13.39893 Z M23.1164128,14.0927618 C22.8442175,13.3063938 22.7207319,12.5661035 22.7207319,11.3399025 C22.7207319,10.1140823 22.8442175,9.37379198 23.1164128,8.58704314 C23.7839126,6.64416193 25.6136073,5.51049721 28.0370117,5.51049721 C30.4355683,5.51049721 32.2652631,6.64416193 32.9331393,8.58704314 C33.2049582,9.37379198 33.3288202,10.1140823 33.3288202,11.3399025 C33.3288202,12.5661035 33.2049582,13.3063938 32.9331393,14.0927618 C32.2652631,16.0360238 30.4355683,17.1696885 28.0370117,17.1696885 C25.6136073,17.1696885 23.7839126,16.0360238 23.1164128,14.0927618 Z" id="Fill-15"></path>
<path d="M45.3234858,16.9153089 C45.1747761,16.9153089 45.0761382,16.8227726 45.0264428,16.6837778 L42.7269005,9.55886455 L42.6775816,9.55886455 L40.3531916,16.6837778 C40.3034962,16.8227726 40.2048583,16.9153089 40.0561485,16.9153089 L38.0288016,16.9153089 C37.8800918,16.9153089 37.7814539,16.8227726 37.732135,16.6837778 L33.9733547,5.99640792 C33.9236592,5.85741309 33.9982024,5.7648768 34.1465356,5.7648768 L36.5202446,5.7648768 C36.6934256,5.7648768 36.7924399,5.83418381 36.8417589,5.99640792 L39.1413012,13.3528523 L39.1909966,13.3528523 L41.4656912,5.99640792 C41.5153866,5.85741309 41.6388721,5.7648768 41.7872054,5.7648768 L43.5675812,5.7648768 C43.7159145,5.7648768 43.8397766,5.85741309 43.8890955,5.99640792 L46.3124999,13.3528523 L46.3618188,13.3528523 L48.5378755,5.99640792 C48.5871945,5.83418381 48.6862088,5.7648768 48.8593898,5.7648768 L51.2330987,5.7648768 C51.381432,5.7648768 51.4555987,5.85741309 51.4062797,5.99640792 L47.6474994,16.6837778 C47.5981804,16.8227726 47.4991661,16.9153089 47.3508328,16.9153089 L45.3234858,16.9153089" id="Fill-16"></path>
<path d="M51.8938218,15.4114991 C51.795184,15.3189628 51.795184,15.1803488 51.8938218,15.0878125 L53.3033645,13.6997682 C53.4023788,13.6072319 53.5507121,13.6072319 53.6497264,13.6997682 C54.5152549,14.4400585 55.8999498,14.9720469 57.1363115,14.9720469 C58.595173,14.9720469 59.3368394,14.4168292 59.3368394,13.6533096 C59.3368394,12.9823263 58.9166873,12.5661035 57.3588114,12.4271086 L56.0727543,12.3117239 C53.6497264,12.0801928 52.4129883,10.9236796 52.4129883,9.0264953 C52.4129883,6.87531224 54.0698786,5.51049721 57.0372971,5.51049721 C58.8918396,5.51049721 60.4497155,6.08894421 61.5128961,6.87531224 C61.6367582,6.96784853 61.6367582,7.10646255 61.5625915,7.19899884 L60.3507011,8.56419467 C60.2520633,8.67957943 60.1282012,8.67957943 60.0047156,8.61027241 C59.2626728,8.12436171 58.0760065,7.68490955 56.8889638,7.68490955 C55.7019211,7.68490955 55.0837403,8.17082025 55.0837403,8.84142273 C55.0837403,9.48955754 55.5042689,9.88255115 57.0372971,10.021546 L58.3229777,10.1373115 C60.8205487,10.3684619 62.0075914,11.5714336 62.0075914,13.39893 C62.0075914,15.6198009 60.2765345,17.1696885 57.0124494,17.1696885 C54.5645738,17.1696885 52.8832123,16.2675549 51.8938218,15.4114991" id="Fill-17"></path>
<path d="M71.0995931,9.14226086 C70.7780788,8.24012727 69.8877027,7.70813882 68.7752031,7.70813882 C67.6378558,7.70813882 66.7474797,8.24012727 66.4263419,9.14226086 C66.326951,9.41986972 66.2776321,9.69747858 66.2776321,10.090853 C66.2776321,10.1833893 66.326951,10.2298478 66.4263419,10.2298478 L71.0995931,10.2298478 C71.1986075,10.2298478 71.2479264,10.1833893 71.2479264,10.090853 C71.2479264,9.69747858 71.1986075,9.41986972 71.0995931,9.14226086 Z M63.9039232,14.0695325 C63.6565755,13.3528523 63.4833946,12.4967965 63.4833946,11.3399025 C63.4833946,10.1833893 63.6321043,9.30448497 63.8790755,8.58704314 C64.5465752,6.64416193 66.37627,5.51049721 68.7503554,5.51049721 C71.1986075,5.51049721 72.9789833,6.69023967 73.646483,8.58704314 C73.9186784,9.37379198 74.0421639,10.1373115 74.0421639,11.9415787 C74.0421639,12.0801928 73.9431496,12.172729 73.7703451,12.172729 L66.4263419,12.172729 C66.326951,12.172729 66.2776321,12.2191876 66.2776321,12.3117239 C66.2776321,12.6354105 66.3517988,12.9130193 66.4508131,13.1673989 C66.846494,14.2549859 67.7861891,14.8562814 69.1211886,14.8562814 C70.4565646,14.8562814 71.3224695,14.3935999 71.9154261,13.7923045 C72.0392882,13.6765389 72.1627738,13.6533096 72.2862593,13.7458459 L73.7454974,14.9488176 C73.868983,15.0413539 73.868983,15.1571195 73.7703451,15.272885 C72.7564834,16.3829397 71.0747454,17.1696885 68.8742175,17.1696885 C66.3517988,17.1696885 64.5714229,16.0131753 63.9039232,14.0695325 Z" id="Fill-18"></path>
<path d="M76.0928527,16.9153089 C75.9448959,16.9153089 75.8458816,16.8227726 75.8458816,16.6837778 L75.8458816,5.99640792 C75.8458816,5.85741309 75.9448959,5.7648768 76.0928527,5.7648768 L78.3679238,5.7648768 C78.5166335,5.7648768 78.6152714,5.85741309 78.6152714,5.99640792 L78.6152714,6.94461925 L78.6401191,6.94461925 C79.2086045,6.08894421 80.2224662,5.51049721 81.7310232,5.51049721 C82.6707183,5.51049721 83.6100369,5.85741309 84.2282177,6.43586008 C84.3520798,6.55124483 84.376551,6.64416193 84.2779131,6.75954668 L82.9673849,8.30981509 C82.868747,8.42519984 82.7448849,8.44842911 82.6210229,8.35589283 C82.0773852,8.03182542 81.5085233,7.82390438 80.8658712,7.82390438 C79.3079953,7.82390438 78.6152714,8.864652 78.6152714,10.6460707 L78.6152714,16.6837778 C78.6152714,16.8227726 78.5166335,16.9153089 78.3679238,16.9153089 L76.0928527,16.9153089" id="Fill-19"></path>
<path d="M84.704089,15.0878125 C84.6050746,14.9952762 84.5557557,14.8562814 84.65477,14.7405158 L86.1877982,13.0748626 C86.2868126,12.9594779 86.4351458,12.9594779 86.5337837,13.0520142 C87.6221886,13.8616115 89.2293834,14.7172865 91.1083971,14.7172865 C93.1112728,14.7172865 94.2734678,13.7690752 94.2734678,12.4507187 C94.2734678,11.317054 93.5318014,10.5767637 91.2074114,10.2759256 L90.3170353,10.16016 C87.0781744,9.74393713 85.2481031,8.28620501 85.2481031,5.67234051 C85.2481031,2.8269449 87.4734788,0.930141431 90.9352161,0.930141431 C93.0371062,0.930141431 95.0399819,1.55466616 96.3753579,2.5028775 C96.49922,2.59579459 96.5240677,2.68833088 96.4250533,2.8269449 L95.2380106,4.5386758 C95.1393728,4.65444136 95.0155107,4.67767064 94.8916487,4.60836362 C93.5318014,3.77553704 92.2705921,3.38216262 90.8614259,3.38216262 C89.1548403,3.38216262 88.2155217,4.26144775 88.2155217,5.48726794 C88.2155217,6.57447411 89.0313547,7.3147644 91.3064258,7.61560253 L92.1968019,7.73136809 C95.4356628,8.14759098 97.2160387,9.58171302 97.2160387,12.2884946 C97.2160387,15.0878125 95.0648296,17.1696885 90.8858972,17.1696885 C88.4135504,17.1696885 86.0146172,16.2443257 84.704089,15.0878125" id="Fill-20"></path>
<path d="M102.339937,17.1118057 C99.9413803,17.1118057 99.0265329,16.0245996 99.0265329,13.8498064 L99.0265329,7.97432345 C99.0265329,7.88178716 98.9768375,7.83532861 98.8778232,7.83532861 L98.0864614,7.83532861 C97.9385046,7.83532861 97.8394902,7.74279233 97.8394902,7.60379749 L97.8394902,6.05390989 C97.8394902,5.91529587 97.9385046,5.82275958 98.0864614,5.82275958 L98.8778232,5.82275958 C98.9768375,5.82275958 99.0265329,5.77630103 99.0265329,5.68376475 L99.0265329,2.63006729 C99.0265329,2.49145326 99.1255473,2.39891698 99.2735041,2.39891698 L101.548575,2.39891698 C101.696908,2.39891698 101.795923,2.49145326 101.795923,2.63006729 L101.795923,5.68376475 C101.795923,5.77630103 101.845242,5.82275958 101.944256,5.82275958 L103.52698,5.82275958 C103.674936,5.82275958 103.773951,5.91529587 103.773951,6.05390989 L103.773951,7.60379749 C103.773951,7.74279233 103.674936,7.83532861 103.52698,7.83532861 L101.944256,7.83532861 C101.845242,7.83532861 101.795923,7.88178716 101.795923,7.97432345 L101.795923,13.757651 C101.795923,14.544019 102.142285,14.7983986 102.908799,14.7983986 L103.52698,14.7983986 C103.674936,14.7983986 103.773951,14.8909349 103.773951,15.0299297 L103.773951,16.8802746 C103.773951,17.0192695 103.674936,17.1118057 103.52698,17.1118057 L102.339937,17.1118057" id="Fill-21"></path>
<path d="M112.530885,13.1673989 L112.530885,12.3117239 C112.530885,12.2191876 112.48119,12.172729 112.382175,12.172729 L110.404147,12.172729 C108.623771,12.172729 107.83241,12.6354105 107.83241,13.6765389 C107.83241,14.6019018 108.549228,15.0645832 109.884604,15.0645832 C111.59119,15.0645832 112.530885,14.4400585 112.530885,13.1673989 Z M112.827175,16.9153089 C112.678842,16.9153089 112.580204,16.8227726 112.580204,16.6837778 L112.580204,15.8741805 L112.555356,15.8741805 C111.986494,16.6377001 110.873618,17.1696885 109.192633,17.1696885 C107.016577,17.1696885 105.186505,16.1057116 105.186505,13.7690752 C105.186505,11.3399025 107.016577,10.2298478 109.958771,10.2298478 L112.382175,10.2298478 C112.48119,10.2298478 112.530885,10.1833893 112.530885,10.090853 L112.530885,9.55886455 C112.530885,8.28620501 111.88748,7.70813882 109.884604,7.70813882 C108.549228,7.70813882 107.733395,8.05505469 107.164533,8.47165839 C107.041048,8.56419467 106.892714,8.5409654 106.818548,8.42519984 L105.9037,6.89854151 C105.829534,6.78277595 105.854382,6.66701039 105.953019,6.59770338 C106.917562,5.94994937 108.22809,5.51049721 110.181647,5.51049721 C113.816566,5.51049721 115.151942,6.66701039 115.151942,9.39702125 L115.151942,16.6837778 C115.151942,16.8227726 115.052551,16.9153089 114.904594,16.9153089 L112.827175,16.9153089 Z" id="Fill-22"></path>
</g>
</g>
</g>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

View File

@ -10,18 +10,17 @@ import type {HandlerEvent, HandlerResponse} from '@netlify/functions';
const CookieName = 'DocusaurusPlaygroundName';
const PlaygroundConfigs = {
// Do not use this one, see
// https://github.com/codesandbox/codesandbox-client/issues/5683#issuecomment-1023252459
// codesandbox: 'https://codesandbox.io/s/docusaurus',
codesandbox:
'https://codesandbox.io/s/github/facebook/docusaurus/tree/main/examples/classic',
'https://codesandbox.io/p/sandbox/github/facebook/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',
// Not updated
// stackblitz: 'https://stackblitz.com/fork/docusaurus',
// Slow to load
// stackblitz: 'https://stackblitz.com/github/facebook/docusaurus/tree/main/examples/classic',
// Dedicated branch: faster load
stackblitz: 'https://stackblitz.com/github/facebook/docusaurus/tree/starter',
'stackblitz-ts':
'https://stackblitz.com/github/facebook/docusaurus/tree/main/examples/classic-typescript',
};
const PlaygroundDocumentationUrl = 'https://docusaurus.io/docs/playground';

View File

@ -0,0 +1,12 @@
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import {createPlaygroundResponse} from '../functionUtils/playgroundUtils';
import type {Handler} from '@netlify/functions';
export const handler: Handler = () =>
Promise.resolve(createPlaygroundResponse('codesandbox-ts'));

View File

@ -0,0 +1,12 @@
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import {createPlaygroundResponse} from '../functionUtils/playgroundUtils';
import type {Handler} from '@netlify/functions';
export const handler: Handler = () =>
Promise.resolve(createPlaygroundResponse('stackblitz-ts'));

View File

@ -13,11 +13,21 @@ to = "/.netlify/functions/codesandbox"
status = 200
[[redirects]]
from = "/codesandbox-ts"
to = "/.netlify/functions/codesandbox-ts"
status = 200
[[redirects]]
from = "/stackblitz"
to = "/.netlify/functions/stackblitz"
status = 200
[[redirects]]
from = "/stackblitz-ts"
to = "/.netlify/functions/stackblitz-ts"
status = 200
[[redirects]]
from = "/*"
to = "/.netlify/functions/index"
status = 200

View File

@ -1,11 +1,11 @@
{
"name": "new.docusaurus.io",
"version": "3.0.0-alpha.0",
"version": "3.2.0",
"private": true,
"scripts": {
"start": "npx --package netlify-cli netlify dev"
},
"dependencies": {
"@netlify/functions": "^1.0.0"
"@netlify/functions": "^1.6.0"
}
}

View File

@ -27,6 +27,18 @@ const scoreEntry = (rawScore) => {
};
/**
* @param {string} url
* @returns {module:url.URL}
*/
function createURL(url) {
try {
return new URL(url);
} catch (e) {
throw new Error(`Can't create URL for string=${url}`, {cause: e});
}
}
/**
* @param {Object} param0
* @param {string} param0.url
* @param {LighthouseSummary} param0.summary
@ -34,7 +46,7 @@ const scoreEntry = (rawScore) => {
*/
const createMarkdownTableRow = ({url, summary, reportUrl}) =>
[
`| [${new URL(url).pathname}](${url})`,
`| [${createURL(url).pathname}](${url})`,
.../** @type {(keyof LighthouseSummary)[]} */ (
Object.keys(summaryKeys)
).map((k) => scoreEntry(summary[k])),

View File

@ -10,16 +10,6 @@
import fs from 'fs-extra';
import shell from 'shelljs';
const NODE_MAJOR_VERSION = parseInt(
/** @type {string} */ (process.versions.node.split('.')[0]),
10,
);
if (NODE_MAJOR_VERSION < 16) {
throw new Error(
'This generateExamples Docusaurus script requires at least Node.js 16 and npm 7. See why here: https://github.com/facebook/docusaurus/pull/5722#issuecomment-948847891',
);
}
/**
* Generate one example per init template
* We use those generated examples as CodeSandbox projects
@ -35,7 +25,8 @@ async function generateTemplateExample(template) {
// Run the docusaurus script to create the template in the examples folder
const command = template.endsWith('-typescript')
? template.replace('-typescript', ' -- --typescript')
: template;
: `${template} -- --javascript`;
shell.exec(
// We use the published init script on purpose, because the local init is
// too new and could generate upcoming/unavailable config options.
@ -78,9 +69,9 @@ async function generateTemplateExample(template) {
hardReloadOnChange: true,
view: 'browser',
template: 'docusaurus',
node: '16',
node: '18',
container: {
node: '16',
node: '18',
},
};
await fs.writeFile(
@ -182,7 +173,6 @@ console.log(`-------
`);
await fs.rm('./examples/classic', {recursive: true, force: true});
await fs.rm('./examples/classic-typescript', {recursive: true, force: true});
await fs.rm('./examples/facebook', {recursive: true, force: true});
// Get the list of all available templates
console.log(`

View File

@ -52,7 +52,7 @@ git diff --name-only -- '*.json' | sed 's, ,\\&,g' | xargs git checkout --
cd ..
# Build skeleton website with new version
npm_config_registry="$CUSTOM_REGISTRY_URL" npx create-docusaurus@"$NEW_VERSION" test-website classic $EXTRA_OPTS
npm_config_registry="$CUSTOM_REGISTRY_URL" npx create-docusaurus@"$NEW_VERSION" test-website classic --javascript $EXTRA_OPTS
# Stop Docker container
if [[ -z "${KEEP_CONTAINER:-true}" ]] && ( $(docker container inspect "$CONTAINER_NAME" > /dev/null 2>&1) ); then

View File

@ -13,11 +13,30 @@
storage: ../storage
# Verdaccio does not allow to publish packages when the client is offline, to avoid
# errors on publish
# https://verdaccio.org/docs/configuration#offline-publish
publish:
allow_offline: false
# A list of other known repositories we can talk to
uplinks:
npmjs:
url: https://registry.npmjs.org/
packages:
# Forked packages need to be fetched from npm
'@docusaurus/react-loadable':
access: $all
publish: $all
proxy: npmjs
# Group and isolate all local packages, avoid being proxy from outside
'@docusaurus/*':
access: $all
publish: $all
'@*/*':
access: $all
publish: $authenticated
proxy: npmjs
'**':
# Allow all users (including non-authenticated users) to read and
# publish all packages

5
argos/.gitignore vendored Normal file
View File

@ -0,0 +1,5 @@
/screenshots/
/test-results/
/playwright-report/
/playwright/.cache/

21
argos/README.md Normal file
View File

@ -0,0 +1,21 @@
# Argos visual regression tests
We use [Argos CI](https://argos-ci.com) to detect visual regressions on Docusaurus.
This workspace can be run manually, but is generally run through the [Argos GitHub Action](../.github/workflows/argos.yml).
The workflow execute those following steps:
- Build the website locally with `yarn build:website:fast`
- Start the website server with `yarn serve:website` on [http://localhost:3000](http://localhost:3000)
- Take screenshots of all pages found in `sitemap.xml` with Playwright
- Upload all screenshots to [Argos CI](https://argos-ci.com)
This workflow runs for `main` and PR branches, and add a commit status to each PR with a visual diff that we can easily inspect.
---
Some additional capabilities:
- Use [./tests/screenshot.spec.ts](./tests/screenshot.spec.ts) to customize the screenshots we take, eventually filter out some useless sitemap pages like versioned docs
- Use [./tests/screenshot.css](./tests/screenshot.css) to hide flaky CSS elements: iframe, video, gif...

17
argos/package.json Normal file
View File

@ -0,0 +1,17 @@
{
"name": "argos",
"version": "3.2.0",
"description": "Argos visual diff tests",
"license": "MIT",
"private": true,
"scripts": {
"screenshot": "playwright test",
"upload": "npx @argos-ci/cli upload ./screenshots",
"report": "playwright show-report"
},
"dependencies": {
"@argos-ci/playwright": "^1.9.3",
"@playwright/test": "^1.41.2",
"cheerio": "^1.0.0-rc.12"
}
}

View File

@ -0,0 +1,40 @@
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import {devices} from '@playwright/test';
import type {PlaywrightTestConfig} from '@playwright/test';
/**
* See https://playwright.dev/docs/test-configuration.
*/
const config: PlaywrightTestConfig = {
testDir: './tests',
timeout: 60000,
reporter: [['list'], ['@argos-ci/playwright/reporter']],
// Run website production built
// Need to run "yarn website:build:fast" before
webServer: {
cwd: '..',
port: 3000,
command: 'yarn serve:website',
},
// Browsers: only Chrome for now
projects: [
{
name: 'chromium',
use: {
...devices['Desktop Chrome'],
},
},
],
};
export default config;

View File

@ -0,0 +1,54 @@
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
/*
We need to hide some elements in Argos/Playwright screenshots
Those elements are source of flakiness due to nondeterministic rendering
They don't consistently render exactly the same across CI runs
*/
/******* DOCUSAURUS GLOBAL / THEME *******/
/* Iframes can load lazily */
iframe,
/* Avatar images can be flaky due to using external sources: GitHub/Unavatar */
.avatar__photo,
/* Gifs load lazily and are animated */
img[src$='.gif'],
/* Algolia Keyboard shortcuts appear with a little delay */
.DocSearch-Button-Keys > kbd,
/* The live playground preview can often display dates/counters */
[class*='playgroundPreview'] {
visibility: hidden;
}
/*
Different docs last-update dates can alter layout
"visibility: hidden" is not enough
*/
.theme-last-updated {
display: none;
}
/*
Mermaid diagrams are rendered client-side and produce layout shifts
*/
.docusaurus-mermaid-container {
display: none;
}
/******* DOCUSAURUS WEBSITE SPECIFIC *******/
/* ProductHunt vote counter can increment at any time */
.producthunt-badge-widget {
visibility: hidden;
}
/* YouTube player lite can load video lazily */
article.yt-lite {
visibility: hidden;
}

View File

@ -0,0 +1,108 @@
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import * as fs from 'fs';
import {test} from '@playwright/test';
import {argosScreenshot} from '@argos-ci/playwright';
import * as cheerio from 'cheerio';
const siteUrl = 'http://localhost:3000';
const sitemapPath = '../website/build/sitemap.xml';
const stylesheetPath = './tests/screenshot.css';
// Use ONLY_PATH="/docs/installation" to debug a specific page
const onlyPath: string | undefined = process.env.ONLY_PATH;
// eslint-disable-next-line no-restricted-properties
const sitemap = fs.readFileSync(sitemapPath).toString();
// eslint-disable-next-line no-restricted-properties
const stylesheet = fs.readFileSync(stylesheetPath).toString();
function extractSitemapUrls() {
const $ = cheerio.load(sitemap, {xmlMode: true});
const urls: string[] = [];
$('loc').each(function handleLoc() {
urls.push($(this).text());
});
return urls;
}
function isBlacklisted(pathname: string) {
if (onlyPath && onlyPath !== pathname) {
return true;
}
// Some paths explicitly blacklisted
const BlacklistedPathnames: string[] = [
// Flaky because of Canny widget
'/feature-requests',
// Flaky because of dynamic canary version fetched from npm
'/community/canary',
// Long blog post with many image carousels, often timeouts
'/blog/2022/08/01/announcing-docusaurus-2.0',
];
return (
// changelog docs
pathname.startsWith('/changelog') ||
// versioned docs
pathname.match(/^\/docs\/((\d\.\d\.\d)|(next))\//) ||
// manually excluded urls
BlacklistedPathnames.includes(pathname)
);
}
function getPathnames(): string[] {
const urls = extractSitemapUrls();
const pathnamesUnfiltered = urls.map((url) => new URL(url).pathname);
const pathnames = pathnamesUnfiltered.filter(
(pathname) => !isBlacklisted(pathname),
);
pathnames.sort();
console.log('Pathnames:\n', JSON.stringify(pathnames, null, 2));
console.log('Pathnames before filtering', pathnamesUnfiltered.length);
console.log('Pathnames after filtering', pathnames.length);
return pathnames;
}
function pathnameToArgosName(pathname: string): string {
function removeTrailingSlash(str: string): string {
return str.endsWith('/') ? str.slice(0, -1) : str;
}
function removeLeadingSlash(str: string): string {
return str.startsWith('/') ? str.slice(1) : str;
}
pathname = removeTrailingSlash(pathname);
pathname = removeLeadingSlash(pathname);
if (pathname === '') {
return 'index';
}
return pathname;
}
// See https://github.com/facebook/docusaurus/pull/9256
// Docusaurus adds a <html data-has-hydrated="true">
function waitForDocusaurusHydration() {
return document.documentElement.dataset.hasHydrated === 'true';
}
function createPathnameTest(pathname: string) {
test(`pathname ${pathname}`, async ({page}) => {
const url = siteUrl + pathname;
await page.goto(url);
await page.waitForFunction(waitForDocusaurusHydration);
await page.addStyleTag({content: stylesheet});
// await expect(page).toHaveScreenshot({ fullPage: true, ...options });
await argosScreenshot(page, pathnameToArgosName(pathname));
});
}
test.describe('Docusaurus site screenshots', () => {
const pathnames = getPathnames();
pathnames.forEach(createPathnameTest);
});

1
examples/README.md generated
View File

@ -10,7 +10,6 @@ You can run them in CodeSandbox:
- [classic](https://codesandbox.io/s/github/facebook/docusaurus/tree/main/examples/classic)
- [classic-typescript](https://codesandbox.io/s/github/facebook/docusaurus/tree/main/examples/classic-typescript)
- [facebook](https://codesandbox.io/s/github/facebook/docusaurus/tree/main/examples/facebook)
**Tip**: use the [new.docusaurus.io](https://new.docusaurus.io) shortcut.

View File

@ -1,6 +1,6 @@
# Website
This website is built using [Docusaurus 2](https://docusaurus.io/), a modern static website generator.
This website is built using [Docusaurus](https://docusaurus.io/), a modern static website generator.
### Installation

View File

@ -14,7 +14,7 @@ Or **try Docusaurus immediately** with **[docusaurus.new](https://docusaurus.new
### What you'll need
- [Node.js](https://nodejs.org/en/download/) version 16.14 or above:
- [Node.js](https://nodejs.org/en/download/) version 18.0 or above:
- When installing Node.js, you are recommended to check all checkboxes related to dependencies.
## Generate a new site

View File

@ -14,7 +14,9 @@ Anything **unclear** or **buggy** in this tutorial? [Please report it!](https://
## What's next?
- Read the [official documentation](https://docusaurus.io/).
- Read the [official documentation](https://docusaurus.io/)
- Modify your site configuration with [`docusaurus.config.js`](https://docusaurus.io/docs/api/docusaurus-config)
- Add navbar and footer items with [`themeConfig`](https://docusaurus.io/docs/api/themes/configuration)
- Add a custom [Design and Layout](https://docusaurus.io/docs/styling-layout)
- Add a [search bar](https://docusaurus.io/docs/search)
- Find inspirations in the [Docusaurus showcase](https://docusaurus.io/showcase)

View File

@ -28,7 +28,7 @@ tags: [greetings]
Congratulations, you have made your first post!
Feel free to play around and edit this post as much you like.
Feel free to play around and edit this post as much as you like.
```
A new blog post is now available at [http://localhost:3000/blog/greetings](http://localhost:3000/blog/greetings).

View File

@ -42,13 +42,15 @@ This is my **first Docusaurus document**!
It is also possible to create your sidebar explicitly in `sidebars.js`:
```js title="sidebars.js"
module.exports = {
export default {
tutorialSidebar: [
'intro',
// highlight-next-line
'hello',
{
type: 'category',
label: 'Tutorial',
// highlight-next-line
items: ['hello'],
items: ['tutorial-basics/create-a-document'],
},
],
};

View File

@ -51,19 +51,23 @@ You can use absolute paths to reference images in the static directory (`static/
![Docusaurus logo](/img/docusaurus.png)
You can reference images relative to the current file as well, as shown in [the extra guides](../tutorial-extras/manage-docs-versions.md).
You can reference images relative to the current file as well. This is particularly useful to colocate images close to the Markdown files using them:
```md
![Docusaurus logo](./img/docusaurus.png)
```
## Code Blocks
Markdown code blocks are supported with Syntax highlighting.
```jsx title="src/components/HelloDocusaurus.js"
function HelloDocusaurus() {
return (
<h1>Hello, Docusaurus!</h1>
)
}
```
````md
```jsx title="src/components/HelloDocusaurus.js"
function HelloDocusaurus() {
return <h1>Hello, Docusaurus!</h1>;
}
```
````
```jsx title="src/components/HelloDocusaurus.js"
function HelloDocusaurus() {
@ -75,17 +79,19 @@ function HelloDocusaurus() {
Docusaurus has a special syntax to create admonitions and callouts:
:::tip My tip
```md
:::tip My tip
Use this awesome feature option
Use this awesome feature option
:::
:::
:::danger Take care
:::danger Take care
This action is dangerous
This action is dangerous
:::
:::
```
:::tip My tip

View File

@ -28,7 +28,7 @@ To navigate seamlessly across versions, add a version dropdown.
Modify the `docusaurus.config.js` file:
```js title="docusaurus.config.js"
module.exports = {
export default {
themeConfig: {
navbar: {
items: [

View File

@ -11,7 +11,7 @@ Let's translate `docs/intro.md` to French.
Modify `docusaurus.config.js` to add support for the `fr` locale:
```js title="docusaurus.config.js"
module.exports = {
export default {
i18n: {
defaultLocale: 'en',
locales: ['en', 'fr'],
@ -43,7 +43,7 @@ Your localized site is accessible at [http://localhost:3000/fr/](http://localhos
:::caution
In development, you can only use one locale at a same time.
In development, you can only use one locale at a time.
:::
@ -54,7 +54,7 @@ To navigate seamlessly across languages, add a locale dropdown.
Modify the `docusaurus.config.js` file:
```js title="docusaurus.config.js"
module.exports = {
export default {
themeConfig: {
navbar: {
items: [

View File

@ -1,132 +0,0 @@
// @ts-check
// Note: type annotations allow type checking and IDEs autocompletion
const lightCodeTheme = require('prism-react-renderer/themes/github');
const darkCodeTheme = require('prism-react-renderer/themes/dracula');
/** @type {import('@docusaurus/types').Config} */
const config = {
title: 'My Site',
tagline: 'Dinosaurs are cool',
url: 'https://your-docusaurus-test-site.com',
baseUrl: '/',
onBrokenLinks: 'throw',
onBrokenMarkdownLinks: 'warn',
favicon: 'img/favicon.ico',
// GitHub pages deployment config.
// If you aren't using GitHub pages, you don't need these.
organizationName: 'facebook', // Usually your GitHub org/user name.
projectName: 'docusaurus', // Usually your repo name.
// Even if you don't use internalization, you can use this field to set useful
// metadata like html lang. For example, if your site is Chinese, you may want
// to replace "en" with "zh-Hans".
i18n: {
defaultLocale: 'en',
locales: ['en'],
},
presets: [
[
'classic',
/** @type {import('@docusaurus/preset-classic').Options} */
({
docs: {
sidebarPath: require.resolve('./sidebars.js'),
// Please change this to your repo.
// Remove this to remove the "edit this page" links.
editUrl:
'https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/',
},
blog: {
showReadingTime: true,
// 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/',
},
theme: {
customCss: require.resolve('./src/css/custom.css'),
},
}),
],
],
themeConfig:
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
({
navbar: {
title: 'My Site',
logo: {
alt: 'My Site Logo',
src: 'img/logo.svg',
},
items: [
{
type: 'doc',
docId: 'intro',
position: 'left',
label: 'Tutorial',
},
{to: '/blog', label: 'Blog', position: 'left'},
{
href: 'https://github.com/facebook/docusaurus',
label: 'GitHub',
position: 'right',
},
],
},
footer: {
style: 'dark',
links: [
{
title: 'Docs',
items: [
{
label: 'Tutorial',
to: '/docs/intro',
},
],
},
{
title: 'Community',
items: [
{
label: 'Stack Overflow',
href: 'https://stackoverflow.com/questions/tagged/docusaurus',
},
{
label: 'Discord',
href: 'https://discordapp.com/invite/docusaurus',
},
{
label: 'Twitter',
href: 'https://twitter.com/docusaurus',
},
],
},
{
title: 'More',
items: [
{
label: 'Blog',
to: '/blog',
},
{
label: 'GitHub',
href: 'https://github.com/facebook/docusaurus',
},
],
},
],
copyright: `Copyright © ${new Date().getFullYear()} My Project, Inc. Built with Docusaurus.`,
},
prism: {
theme: lightCodeTheme,
darkTheme: darkCodeTheme,
},
}),
};
module.exports = config;

View File

@ -0,0 +1,133 @@
import {themes as prismThemes} from 'prism-react-renderer';
import type {Config} from '@docusaurus/types';
import type * as Preset from '@docusaurus/preset-classic';
const config: Config = {
title: 'My Site',
tagline: 'Dinosaurs are cool',
favicon: 'img/favicon.ico',
// Set the production url of your site here
url: 'https://your-docusaurus-site.example.com',
// Set the /<baseUrl>/ pathname under which your site is served
// For GitHub pages deployment, it is often '/<projectName>/'
baseUrl: '/',
// GitHub pages deployment config.
// If you aren't using GitHub pages, you don't need these.
organizationName: 'facebook', // Usually your GitHub org/user name.
projectName: 'docusaurus', // Usually your repo name.
onBrokenLinks: 'throw',
onBrokenMarkdownLinks: 'warn',
// Even if you don't use internationalization, you can use this field to set
// useful metadata like html lang. For example, if your site is Chinese, you
// may want to replace "en" with "zh-Hans".
i18n: {
defaultLocale: 'en',
locales: ['en'],
},
presets: [
[
'classic',
{
docs: {
sidebarPath: './sidebars.ts',
// Please change this to your repo.
// Remove this to remove the "edit this page" links.
editUrl:
'https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/',
},
blog: {
showReadingTime: true,
// 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/',
},
theme: {
customCss: './src/css/custom.css',
},
} satisfies Preset.Options,
],
],
themeConfig: {
// Replace with your project's social card
image: 'img/docusaurus-social-card.jpg',
navbar: {
title: 'My Site',
logo: {
alt: 'My Site Logo',
src: 'img/logo.svg',
},
items: [
{
type: 'docSidebar',
sidebarId: 'tutorialSidebar',
position: 'left',
label: 'Tutorial',
},
{to: '/blog', label: 'Blog', position: 'left'},
{
href: 'https://github.com/facebook/docusaurus',
label: 'GitHub',
position: 'right',
},
],
},
footer: {
style: 'dark',
links: [
{
title: 'Docs',
items: [
{
label: 'Tutorial',
to: '/docs/intro',
},
],
},
{
title: 'Community',
items: [
{
label: 'Stack Overflow',
href: 'https://stackoverflow.com/questions/tagged/docusaurus',
},
{
label: 'Discord',
href: 'https://discordapp.com/invite/docusaurus',
},
{
label: 'Twitter',
href: 'https://twitter.com/docusaurus',
},
],
},
{
title: 'More',
items: [
{
label: 'Blog',
to: '/blog',
},
{
label: 'GitHub',
href: 'https://github.com/facebook/docusaurus',
},
],
},
],
copyright: `Copyright © ${new Date().getFullYear()} My Project, Inc. Built with Docusaurus.`,
},
prism: {
theme: prismThemes.github,
darkTheme: prismThemes.dracula,
},
} satisfies Preset.ThemeConfig,
};
export default config;

View File

@ -16,18 +16,19 @@
"dev": "docusaurus start"
},
"dependencies": {
"@docusaurus/core": "2.0.1",
"@docusaurus/preset-classic": "2.0.1",
"@mdx-js/react": "^1.6.22",
"clsx": "^1.2.1",
"prism-react-renderer": "^1.3.5",
"react": "^17.0.2",
"react-dom": "^17.0.2"
"@docusaurus/core": "3.2.0",
"@docusaurus/preset-classic": "3.2.0",
"@mdx-js/react": "^3.0.0",
"clsx": "^2.0.0",
"prism-react-renderer": "^2.3.0",
"react": "^18.0.0",
"react-dom": "^18.0.0"
},
"devDependencies": {
"@docusaurus/module-type-aliases": "2.0.1",
"@tsconfig/docusaurus": "^1.0.5",
"typescript": "^4.7.4"
"@docusaurus/module-type-aliases": "3.2.0",
"@docusaurus/tsconfig": "3.2.0",
"@docusaurus/types": "3.2.0",
"typescript": "~5.2.2"
},
"browserslist": {
"production": [
@ -36,13 +37,13 @@
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
"last 3 chrome version",
"last 3 firefox version",
"last 5 safari version"
]
},
"engines": {
"node": ">=16.14"
"node": ">=18.0"
},
"description": "Docusaurus example project (classic-typescript template)"
}

View File

@ -3,8 +3,8 @@
"hardReloadOnChange": true,
"view": "browser",
"template": "docusaurus",
"node": "16",
"node": "18",
"container": {
"node": "16"
"node": "18"
}
}

View File

@ -1,31 +0,0 @@
/**
* Creating a sidebar enables you to:
- create an ordered group of docs
- render a sidebar for each doc of that group
- provide next/previous navigation
The sidebars can be generated from the filesystem, or explicitly defined here.
Create as many sidebars as you want.
*/
// @ts-check
/** @type {import('@docusaurus/plugin-content-docs').SidebarsConfig} */
const sidebars = {
// By default, Docusaurus generates a sidebar from the docs folder structure
tutorialSidebar: [{type: 'autogenerated', dirName: '.'}],
// But you can create a sidebar manually
/*
tutorialSidebar: [
{
type: 'category',
label: 'Tutorial',
items: ['hello'],
},
],
*/
};
module.exports = sidebars;

31
examples/classic-typescript/sidebars.ts generated Normal file
View File

@ -0,0 +1,31 @@
import type {SidebarsConfig} from '@docusaurus/plugin-content-docs';
/**
* Creating a sidebar enables you to:
- create an ordered group of docs
- render a sidebar for each doc of that group
- provide next/previous navigation
The sidebars can be generated from the filesystem, or explicitly defined here.
Create as many sidebars as you want.
*/
const sidebars: SidebarsConfig = {
// By default, Docusaurus generates a sidebar from the docs folder structure
tutorialSidebar: [{type: 'autogenerated', dirName: '.'}],
// But you can create a sidebar manually
/*
tutorialSidebar: [
'intro',
'hello',
{
type: 'category',
label: 'Tutorial',
items: ['tutorial-basics/create-a-document'],
},
],
*/
};
export default sidebars;

View File

@ -1,5 +1,5 @@
import React from 'react';
import clsx from 'clsx';
import Heading from '@theme/Heading';
import styles from './styles.module.css';
type FeatureItem = {
@ -48,7 +48,7 @@ function Feature({title, Svg, description}: FeatureItem) {
<Svg className={styles.featureSvg} role="img" />
</div>
<div className="text--center padding-horiz--md">
<h3>{title}</h3>
<Heading as="h3">{title}</Heading>
<p>{description}</p>
</div>
</div>

View File

@ -1,9 +1,9 @@
import React from 'react';
import clsx from 'clsx';
import Link from '@docusaurus/Link';
import useDocusaurusContext from '@docusaurus/useDocusaurusContext';
import Layout from '@theme/Layout';
import HomepageFeatures from '@site/src/components/HomepageFeatures';
import Heading from '@theme/Heading';
import styles from './index.module.css';
@ -12,7 +12,9 @@ function HomepageHeader() {
return (
<header className={clsx('hero hero--primary', styles.heroBanner)}>
<div className="container">
<h1 className="hero__title">{siteConfig.title}</h1>
<Heading as="h1" className="hero__title">
{siteConfig.title}
</Heading>
<p className="hero__subtitle">{siteConfig.tagline}</p>
<div className={styles.buttons}>
<Link

Binary file not shown.

After

Width:  |  Height:  |  Size: 54 KiB

View File

@ -1,6 +1,6 @@
{
// This file is not used in compilation. It is here just for a nice editor experience.
"extends": "@tsconfig/docusaurus/tsconfig.json",
"extends": "@docusaurus/tsconfig",
"compilerOptions": {
"baseUrl": "."
}

File diff suppressed because it is too large Load Diff

View File

@ -1,6 +1,6 @@
# Website
This website is built using [Docusaurus 2](https://docusaurus.io/), a modern static website generator.
This website is built using [Docusaurus](https://docusaurus.io/), a modern static website generator.
### Installation

View File

@ -14,7 +14,7 @@ Or **try Docusaurus immediately** with **[docusaurus.new](https://docusaurus.new
### What you'll need
- [Node.js](https://nodejs.org/en/download/) version 16.14 or above:
- [Node.js](https://nodejs.org/en/download/) version 18.0 or above:
- When installing Node.js, you are recommended to check all checkboxes related to dependencies.
## Generate a new site

View File

@ -14,7 +14,9 @@ Anything **unclear** or **buggy** in this tutorial? [Please report it!](https://
## What's next?
- Read the [official documentation](https://docusaurus.io/).
- Read the [official documentation](https://docusaurus.io/)
- Modify your site configuration with [`docusaurus.config.js`](https://docusaurus.io/docs/api/docusaurus-config)
- Add navbar and footer items with [`themeConfig`](https://docusaurus.io/docs/api/themes/configuration)
- Add a custom [Design and Layout](https://docusaurus.io/docs/styling-layout)
- Add a [search bar](https://docusaurus.io/docs/search)
- Find inspirations in the [Docusaurus showcase](https://docusaurus.io/showcase)

View File

@ -28,7 +28,7 @@ tags: [greetings]
Congratulations, you have made your first post!
Feel free to play around and edit this post as much you like.
Feel free to play around and edit this post as much as you like.
```
A new blog post is now available at [http://localhost:3000/blog/greetings](http://localhost:3000/blog/greetings).

View File

@ -42,13 +42,15 @@ This is my **first Docusaurus document**!
It is also possible to create your sidebar explicitly in `sidebars.js`:
```js title="sidebars.js"
module.exports = {
export default {
tutorialSidebar: [
'intro',
// highlight-next-line
'hello',
{
type: 'category',
label: 'Tutorial',
// highlight-next-line
items: ['hello'],
items: ['tutorial-basics/create-a-document'],
},
],
};

View File

@ -51,19 +51,23 @@ You can use absolute paths to reference images in the static directory (`static/
![Docusaurus logo](/img/docusaurus.png)
You can reference images relative to the current file as well, as shown in [the extra guides](../tutorial-extras/manage-docs-versions.md).
You can reference images relative to the current file as well. This is particularly useful to colocate images close to the Markdown files using them:
```md
![Docusaurus logo](./img/docusaurus.png)
```
## Code Blocks
Markdown code blocks are supported with Syntax highlighting.
```jsx title="src/components/HelloDocusaurus.js"
function HelloDocusaurus() {
return (
<h1>Hello, Docusaurus!</h1>
)
}
```
````md
```jsx title="src/components/HelloDocusaurus.js"
function HelloDocusaurus() {
return <h1>Hello, Docusaurus!</h1>;
}
```
````
```jsx title="src/components/HelloDocusaurus.js"
function HelloDocusaurus() {
@ -75,17 +79,19 @@ function HelloDocusaurus() {
Docusaurus has a special syntax to create admonitions and callouts:
:::tip My tip
```md
:::tip My tip
Use this awesome feature option
Use this awesome feature option
:::
:::
:::danger Take care
:::danger Take care
This action is dangerous
This action is dangerous
:::
:::
```
:::tip My tip

View File

@ -28,7 +28,7 @@ To navigate seamlessly across versions, add a version dropdown.
Modify the `docusaurus.config.js` file:
```js title="docusaurus.config.js"
module.exports = {
export default {
themeConfig: {
navbar: {
items: [

View File

@ -11,7 +11,7 @@ Let's translate `docs/intro.md` to French.
Modify `docusaurus.config.js` to add support for the `fr` locale:
```js title="docusaurus.config.js"
module.exports = {
export default {
i18n: {
defaultLocale: 'en',
locales: ['en', 'fr'],
@ -43,7 +43,7 @@ Your localized site is accessible at [http://localhost:3000/fr/](http://localhos
:::caution
In development, you can only use one locale at a same time.
In development, you can only use one locale at a time.
:::
@ -54,7 +54,7 @@ To navigate seamlessly across languages, add a locale dropdown.
Modify the `docusaurus.config.js` file:
```js title="docusaurus.config.js"
module.exports = {
export default {
themeConfig: {
navbar: {
items: [

View File

@ -1,27 +1,34 @@
// @ts-check
// Note: type annotations allow type checking and IDEs autocompletion
// `@type` JSDoc annotations allow editor autocompletion and type checking
// (when paired with `@ts-check`).
// There are various equivalent ways to declare your Docusaurus config.
// See: https://docusaurus.io/docs/api/docusaurus-config
const lightCodeTheme = require('prism-react-renderer/themes/github');
const darkCodeTheme = require('prism-react-renderer/themes/dracula');
import {themes as prismThemes} from 'prism-react-renderer';
/** @type {import('@docusaurus/types').Config} */
const config = {
title: 'My Site',
tagline: 'Dinosaurs are cool',
url: 'https://your-docusaurus-test-site.com',
baseUrl: '/',
onBrokenLinks: 'throw',
onBrokenMarkdownLinks: 'warn',
favicon: 'img/favicon.ico',
// Set the production url of your site here
url: 'https://your-docusaurus-site.example.com',
// Set the /<baseUrl>/ pathname under which your site is served
// For GitHub pages deployment, it is often '/<projectName>/'
baseUrl: '/',
// GitHub pages deployment config.
// If you aren't using GitHub pages, you don't need these.
organizationName: 'facebook', // Usually your GitHub org/user name.
projectName: 'docusaurus', // Usually your repo name.
// Even if you don't use internalization, you can use this field to set useful
// metadata like html lang. For example, if your site is Chinese, you may want
// to replace "en" with "zh-Hans".
onBrokenLinks: 'throw',
onBrokenMarkdownLinks: 'warn',
// Even if you don't use internationalization, you can use this field to set
// useful metadata like html lang. For example, if your site is Chinese, you
// may want to replace "en" with "zh-Hans".
i18n: {
defaultLocale: 'en',
locales: ['en'],
@ -33,7 +40,7 @@ const config = {
/** @type {import('@docusaurus/preset-classic').Options} */
({
docs: {
sidebarPath: require.resolve('./sidebars.js'),
sidebarPath: './sidebars.js',
// Please change this to your repo.
// Remove this to remove the "edit this page" links.
editUrl:
@ -47,7 +54,7 @@ const config = {
'https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/',
},
theme: {
customCss: require.resolve('./src/css/custom.css'),
customCss: './src/css/custom.css',
},
}),
],
@ -56,6 +63,8 @@ const config = {
themeConfig:
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
({
// Replace with your project's social card
image: 'img/docusaurus-social-card.jpg',
navbar: {
title: 'My Site',
logo: {
@ -64,8 +73,8 @@ const config = {
},
items: [
{
type: 'doc',
docId: 'intro',
type: 'docSidebar',
sidebarId: 'tutorialSidebar',
position: 'left',
label: 'Tutorial',
},
@ -123,10 +132,10 @@ const config = {
copyright: `Copyright © ${new Date().getFullYear()} My Project, Inc. Built with Docusaurus.`,
},
prism: {
theme: lightCodeTheme,
darkTheme: darkCodeTheme,
theme: prismThemes.github,
darkTheme: prismThemes.dracula,
},
}),
};
module.exports = config;
export default config;

View File

@ -15,16 +15,17 @@
"dev": "docusaurus start"
},
"dependencies": {
"@docusaurus/core": "2.0.1",
"@docusaurus/preset-classic": "2.0.1",
"@mdx-js/react": "^1.6.22",
"clsx": "^1.2.1",
"prism-react-renderer": "^1.3.5",
"react": "^17.0.2",
"react-dom": "^17.0.2"
"@docusaurus/core": "3.2.0",
"@docusaurus/preset-classic": "3.2.0",
"@mdx-js/react": "^3.0.0",
"clsx": "^2.0.0",
"prism-react-renderer": "^2.3.0",
"react": "^18.0.0",
"react-dom": "^18.0.0"
},
"devDependencies": {
"@docusaurus/module-type-aliases": "2.0.1"
"@docusaurus/module-type-aliases": "3.2.0",
"@docusaurus/types": "3.2.0"
},
"browserslist": {
"production": [
@ -33,13 +34,13 @@
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
"last 3 chrome version",
"last 3 firefox version",
"last 5 safari version"
]
},
"engines": {
"node": ">=16.14"
"node": ">=18.0"
},
"description": "Docusaurus example project"
}

View File

@ -3,8 +3,8 @@
"hardReloadOnChange": true,
"view": "browser",
"template": "docusaurus",
"node": "16",
"node": "18",
"container": {
"node": "16"
"node": "18"
}
}

View File

@ -19,13 +19,15 @@ const sidebars = {
// But you can create a sidebar manually
/*
tutorialSidebar: [
'intro',
'hello',
{
type: 'category',
label: 'Tutorial',
items: ['hello'],
items: ['tutorial-basics/create-a-document'],
},
],
*/
};
module.exports = sidebars;
export default sidebars;

View File

@ -1,5 +1,5 @@
import React from 'react';
import clsx from 'clsx';
import Heading from '@theme/Heading';
import styles from './styles.module.css';
const FeatureList = [
@ -42,7 +42,7 @@ function Feature({Svg, title, description}) {
<Svg className={styles.featureSvg} role="img" />
</div>
<div className="text--center padding-horiz--md">
<h3>{title}</h3>
<Heading as="h3">{title}</Heading>
<p>{description}</p>
</div>
</div>

View File

@ -1,10 +1,10 @@
import React from 'react';
import clsx from 'clsx';
import Link from '@docusaurus/Link';
import useDocusaurusContext from '@docusaurus/useDocusaurusContext';
import Layout from '@theme/Layout';
import HomepageFeatures from '@site/src/components/HomepageFeatures';
import Heading from '@theme/Heading';
import styles from './index.module.css';
function HomepageHeader() {
@ -12,7 +12,9 @@ function HomepageHeader() {
return (
<header className={clsx('hero hero--primary', styles.heroBanner)}>
<div className="container">
<h1 className="hero__title">{siteConfig.title}</h1>
<Heading as="h1" className="hero__title">
{siteConfig.title}
</Heading>
<p className="hero__subtitle">{siteConfig.tagline}</p>
<div className={styles.buttons}>
<Link

Binary file not shown.

After

Width:  |  Height:  |  Size: 54 KiB

File diff suppressed because it is too large Load Diff

66
examples/facebook/.eslintrc.js generated vendored
View File

@ -1,66 +0,0 @@
/**
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @format
*/
const OFF = 0;
const WARNING = 1;
const ERROR = 2;
module.exports = {
root: true,
env: {
browser: true,
commonjs: true,
jest: true,
node: true,
},
parser: '@babel/eslint-parser',
parserOptions: {
allowImportExportEverywhere: true,
},
extends: ['airbnb', 'prettier'],
plugins: ['react-hooks', 'header'],
rules: {
// Ignore certain webpack alias because it can't be resolved
'import/no-unresolved': [
ERROR,
{ignore: ['^@theme', '^@docusaurus', '^@generated']},
],
'import/extensions': OFF,
'header/header': [
ERROR,
'block',
[
'*',
' * Copyright (c) Meta Platforms, Inc. and affiliates.',
' *',
' * This source code is licensed under the MIT license found in the',
' * LICENSE file in the root directory of this source tree.',
' *',
// Unfortunately eslint-plugin-header doesn't support optional lines.
// If you want to enforce your website JS files to have @flow or @format,
// modify these lines accordingly.
{
pattern: '.* @format',
},
' ',
],
],
'react/jsx-filename-extension': OFF,
'react-hooks/rules-of-hooks': ERROR,
'react/prop-types': OFF, // PropTypes aren't used much these days.
'react/function-component-definition': [
WARNING,
{
namedComponents: 'function-declaration',
unnamedComponents: 'arrow-function',
},
],
},
};

23
examples/facebook/.gitignore generated vendored
View File

@ -1,23 +0,0 @@
# Dependencies
/node_modules
# Production
/build
# Generated files
.docusaurus
.cache-loader
# Misc
.DS_Store
.env.local
.env.development.local
.env.test.local
.env.production.local
npm-debug.log*
yarn-debug.log*
yarn-error.log*
# ESLint
.eslintcache

View File

@ -1,3 +0,0 @@
node_modules
build
.docusaurus

View File

@ -1,9 +0,0 @@
{
"arrowParens": "always",
"bracketSameLine": true,
"bracketSpacing": false,
"printWidth": 80,
"proseWrap": "never",
"singleQuote": true,
"trailingComma": "all"
}

View File

@ -1,4 +0,0 @@
{
"installDependencies": true,
"startCommand": "npm start"
}

13
examples/facebook/.stylelintrc.js generated vendored
View File

@ -1,13 +0,0 @@
/**
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
module.exports = {
plugins: ['stylelint-copyright'],
rules: {
'docusaurus/copyright-header': true,
},
};

View File

@ -1,49 +0,0 @@
# Website
This website is built using [Docusaurus 2](https://docusaurus.io/), a modern static website generator.
### Installation
```
$ yarn
```
### Local Development
```
$ yarn start
```
This command starts a local development server and opens up a browser window. Most changes are reflected live without having to restart the server.
### Build
```
$ yarn build
```
This command generates static content into the `build` directory and can be served using any static contents hosting service.
### Deployment
Using SSH:
```
$ USE_SSH=true yarn deploy
```
Not using SSH:
```
$ GIT_USER=<Your GitHub username> yarn deploy
```
If you are using GitHub pages for hosting, this command is a convenient way to build the website and push to the `gh-pages` branch.
### Continuous Integration
Some common defaults for linting/formatting have been set for you. If you integrate your project with an open source Continuous Integration system (e.g. Travis CI, CircleCI), you may check for issues using the following command.
```
$ yarn ci
```

View File

@ -1,12 +0,0 @@
/**
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @format
*/
module.exports = {
presets: [require.resolve('@docusaurus/core/lib/babel/preset')],
};

View File

@ -1,12 +0,0 @@
---
slug: first-blog-post
title: First Blog Post
authors:
name: Gao Wei
title: Docusaurus Core Team
url: https://github.com/wgao19
image_url: https://github.com/wgao19.png
tags: [hola, docusaurus]
---
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque elementum dignissim ultricies. Fusce rhoncus ipsum tempor eros aliquam consequat. Lorem ipsum dolor sit amet

View File

@ -1,44 +0,0 @@
---
slug: long-blog-post
title: Long Blog Post
authors: endi
tags: [hello, docusaurus]
---
This is the summary of a very long blog post,
Use a `<!--` `truncate` `-->` comment to limit blog post size in the list view.
<!--truncate-->
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque elementum dignissim ultricies. Fusce rhoncus ipsum tempor eros aliquam consequat. Lorem ipsum dolor sit amet
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque elementum dignissim ultricies. Fusce rhoncus ipsum tempor eros aliquam consequat. Lorem ipsum dolor sit amet
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque elementum dignissim ultricies. Fusce rhoncus ipsum tempor eros aliquam consequat. Lorem ipsum dolor sit amet
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque elementum dignissim ultricies. Fusce rhoncus ipsum tempor eros aliquam consequat. Lorem ipsum dolor sit amet
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque elementum dignissim ultricies. Fusce rhoncus ipsum tempor eros aliquam consequat. Lorem ipsum dolor sit amet
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque elementum dignissim ultricies. Fusce rhoncus ipsum tempor eros aliquam consequat. Lorem ipsum dolor sit amet
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque elementum dignissim ultricies. Fusce rhoncus ipsum tempor eros aliquam consequat. Lorem ipsum dolor sit amet
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque elementum dignissim ultricies. Fusce rhoncus ipsum tempor eros aliquam consequat. Lorem ipsum dolor sit amet
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque elementum dignissim ultricies. Fusce rhoncus ipsum tempor eros aliquam consequat. Lorem ipsum dolor sit amet
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque elementum dignissim ultricies. Fusce rhoncus ipsum tempor eros aliquam consequat. Lorem ipsum dolor sit amet
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque elementum dignissim ultricies. Fusce rhoncus ipsum tempor eros aliquam consequat. Lorem ipsum dolor sit amet
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque elementum dignissim ultricies. Fusce rhoncus ipsum tempor eros aliquam consequat. Lorem ipsum dolor sit amet
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque elementum dignissim ultricies. Fusce rhoncus ipsum tempor eros aliquam consequat. Lorem ipsum dolor sit amet
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque elementum dignissim ultricies. Fusce rhoncus ipsum tempor eros aliquam consequat. Lorem ipsum dolor sit amet
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque elementum dignissim ultricies. Fusce rhoncus ipsum tempor eros aliquam consequat. Lorem ipsum dolor sit amet
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque elementum dignissim ultricies. Fusce rhoncus ipsum tempor eros aliquam consequat. Lorem ipsum dolor sit amet

View File

@ -1,20 +0,0 @@
---
slug: mdx-blog-post
title: MDX Blog Post
authors: [slorber]
tags: [docusaurus]
---
Blog posts support [Docusaurus Markdown features](https://docusaurus.io/docs/markdown-features), such as [MDX](https://mdxjs.com/).
:::tip
Use the power of React to create interactive blog posts.
```js
<button onClick={() => alert('button clicked!')}>Click me!</button>
```
<button onClick={() => alert('button clicked!')}>Click me!</button>
:::

Binary file not shown.

Before

Width:  |  Height:  |  Size: 94 KiB

View File

@ -1,25 +0,0 @@
---
slug: welcome
title: Welcome
authors: [slorber, yangshun]
tags: [facebook, hello, docusaurus]
---
[Docusaurus blogging features](https://docusaurus.io/docs/blog) are powered by the [blog plugin](https://docusaurus.io/docs/api/plugins/@docusaurus/plugin-content-blog).
Simply add Markdown files (or folders) to the `blog` directory.
Regular blog authors can be added to `authors.yml`.
The blog post date can be extracted from filenames, such as:
- `2019-05-30-welcome.md`
- `2019-05-30-welcome/index.md`
A blog post folder can be convenient to co-locate blog post images:
![Docusaurus Plushie](./docusaurus-plushie-banner.jpeg)
The blog supports tags as well!
**And if you don't want a blog**: just delete this directory, and use `blog: false` in your Docusaurus config.

View File

@ -1,17 +0,0 @@
endi:
name: Endilie Yacop Sucipto
title: Maintainer of Docusaurus
url: https://github.com/endiliey
image_url: https://github.com/endiliey.png
yangshun:
name: Yangshun Tay
title: Front End Engineer @ Facebook
url: https://github.com/yangshun
image_url: https://github.com/yangshun.png
slorber:
name: Sébastien Lorber
title: Docusaurus maintainer
url: https://sebastienlorber.com
image_url: https://github.com/slorber.png

View File

@ -1,47 +0,0 @@
---
sidebar_position: 1
---
# Tutorial Intro
Let's discover **Docusaurus in less than 5 minutes**.
## Getting Started
Get started by **creating a new site**.
Or **try Docusaurus immediately** with **[docusaurus.new](https://docusaurus.new)**.
### What you'll need
- [Node.js](https://nodejs.org/en/download/) version 16.14 or above:
- When installing Node.js, you are recommended to check all checkboxes related to dependencies.
## Generate a new site
Generate a new Docusaurus site using the **classic template**.
The classic template will automatically be added to your project after you run the command:
```bash
npm init docusaurus@latest my-website classic
```
You can type this command into Command Prompt, Powershell, Terminal, or any other integrated terminal of your code editor.
The command also installs all necessary dependencies you need to run Docusaurus.
## Start your site
Run the development server:
```bash
cd my-website
npm run start
```
The `cd` command changes the directory you're working with. In order to work with your newly created Docusaurus site, you'll need to navigate the terminal there.
The `npm run start` command builds your website locally and serves it through a development server, ready for you to view at http://localhost:3000/.
Open `docs/intro.md` (this page) and edit some lines: the site **reloads automatically** and displays your changes.

Some files were not shown because too many files have changed in this diff Show More