Sébastien Lorber
4ab5a93262
chore: backport retro compatible commits for the Docusaurus v2.4.2 release ( #9324 )
...
Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
Co-authored-by: sebastienlorber <lorber.sebastien@gmail.com>
Co-authored-by: Sébastien Lorber <slorber@users.noreply.github.com>
Co-authored-by: Ori Shalom <ori-shalom@users.noreply.github.com>
Co-authored-by: Mikey O'Toole <mikey@homotechsual.dev>
Co-authored-by: TheCatLady <52870424+TheCatLady@users.noreply.github.com>
fix flaky screenshots, add html data-has-hydrated attribute (#9256 )
fix(theme-common): ThemedComponent should display something when JS is disabled (#9243 )
fix(theme): canonical url should be not change after hydration if url accessed with/without trailing slash (#9130 )
fix(theme): only set classname on ul elements if they have an existing class (#9099 )
fix(content-docs): sidebar generator should return customProps for doc items (#9107 )
2023-09-20 17:29:41 +02:00
Sébastien Lorber
4a2200ace4
chore: backport retro compatible commits for the Docusaurus v2.4.1 release ( #8979 )
...
Co-authored-by: Tarun Chauhan <tarun.chauhan@tripjack.com>
Co-authored-by: sebastienlorber <lorber.sebastien@gmail.com>
Co-authored-by: Sachin Nanayakkara <sachinnanayakkara21@gmail.com>
Co-authored-by: Tarun Chauhan <tarunrajput1337@gmail.com>
Co-authored-by: Armano <armano2@users.noreply.github.com>
Co-authored-by: Aleksandr Vladykin <morsko1@yandex.ru>
Co-authored-by: Andrew Lyons <andrew@nicols.co.uk>
Co-authored-by: MetuMortis <78408599+LiberaTeMetuMortis@users.noreply.github.com>
fix(create): add missing await (#8831 )
fix(theme-translations): remove redundant navigation text in aria label (#8842 )
fix(utils): handle Markdown links with spaces to route correctly (#8874 )
fix(theme-common): fix confusing theme error message: bad sidebar id suggestions (#8873 )
fix(theme-common): fix collapsible component with prefers-reduced-motion (#8906 )
fix(theme): add __ prefix to technical anchors, search crawlers (Algolia) should ignore them (#8909 )
fix(core): Correct yarn upgrade command for yarn 2.x (#8908 )
fix(theme-translations): fix Turkish translation for aria label "Enter key" (#8933 )
fix(theme): fix collapsible sidebar behavior when prefers-reduced-motion (#8971 )
2023-05-15 15:41:07 +02:00
Sébastien Lorber
4fb67ef11b
chore: backport retro compatible commits for the Docusaurus v2.4 release ( #8809 )
...
Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
Co-authored-by: sebastienlorber <lorber.sebastien@gmail.com>
Co-authored-by: Sébastien Lorber <slorber@users.noreply.github.com>
Co-authored-by: Ben Gubler <nebrelbug@gmail.com>
Co-authored-by: Davide Donadio <davide.donadio@it.clara.net>
Co-authored-by: Petter Drønnen <36735557+dr0nn1@users.noreply.github.com>
Co-authored-by: Moritz Stückler <moritz@bitbetter.de>
Co-authored-by: Mysterious_Dev <40738104+Mysterious-Dev@users.noreply.github.com>
Co-authored-by: TrueQAP <32407751+trueqap@users.noreply.github.com>
Co-authored-by: Kagan <34136752+kagankan@users.noreply.github.com>
Co-authored-by: Dewansh Thakur <71703033+dewanshDT@users.noreply.github.com>
Co-authored-by: Armano <armano2@users.noreply.github.com>
Co-authored-by: Anas <60762285+Anasqx@users.noreply.github.com>
Co-authored-by: Tanner Dolby <tannercdolby@gmail.com>
Co-authored-by: Davide Donadio <davide.donadio94@gmail.com>
Co-authored-by: biplavmz <68702055+biplavmz@users.noreply.github.com>
Co-authored-by: Vishruta Patil <72292532+Vishruta-Patil@users.noreply.github.com>
fix(theme-classic): fix tab focus bug in dropdown (#8697 ) (#8699 )
fix(theme): improve color toggle when using dark navbar (#8615 )
fix(theme-translations): fix wrong arabic words (tip/next) (#8744 )
fix(core): baseUrl error banner link anchor case (#8746 )
fix(search): search page should react to querystring changes + cleanup/refactor (#8757 )
fix(theme): allow tabs children to be falsy (#8801 )
fix(theme): codeblock buttons should be kept on the right when using RTL locale (#8803 )
2023-03-24 09:23:58 +01:00
Sébastien Lorber
985a64ad22
fix(theme-classic): fix docs layout issue ( #8707 )
...
fix issue reported in https://github.com/facebook/docusaurus/issues/8369#issuecomment-1426838764
2023-02-24 15:20:30 +01:00
Sébastien Lorber
c60387dbe8
chore: backport retro compatible commits for the Docusaurus v2.3.1 release ( #8621 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
Co-authored-by: Sébastien Castiel <sebastien@castiel.me>
2023-02-03 15:04:03 +01:00
Sébastien Lorber
c84d779627
chore: backport retro compatible commits for the Docusaurus v2.3 release ( #8585 )
...
Co-authored-by: stnor <stefan@selessia.com>
Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
Co-authored-by: sebastienlorber <lorber.sebastien@gmail.com>
Co-authored-by: Sébastien Lorber <slorber@users.noreply.github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Matija Sirk <matija.sirk@kopit.si>
Co-authored-by: AHMET BAYHAN BAYRAMOGLU <49499275+ABB65@users.noreply.github.com>
Co-authored-by: Stefan Norberg <stefan@norberg.org>
Co-authored-by: Josh Goldberg <git@joshuakgoldberg.com>
Co-authored-by: Muhammad Hammad <33136628+mhnaeem@users.noreply.github.com>
Co-authored-by: Denis Al-Khelali <denis.al-khelali@itechart-group.com>
Co-authored-by: Balthasar Hofer <lebalz@outlook.com>
Co-authored-by: Danny Kim <0916dhkim@gmail.com>
Co-authored-by: Frieder Bluemle <frieder.bluemle@gmail.com>
Co-authored-by: John Reilly <johnny_reilly@hotmail.com>
Co-authored-by: Robert Lawrence <62929526+r-lawrence@users.noreply.github.com>
Co-authored-by: Sadegh Karimi <sadegh.krmi@gmail.com>
Co-authored-by: Lachlan Heywood <lachieh@users.noreply.github.com>
Co-authored-by: mturoci <64769322+mturoci@users.noreply.github.com>
Co-authored-by: 宋锦丰 <36468758+SJFCS@users.noreply.github.com>
Co-authored-by: Nguyễn Thành Nam <namnguyenthanh.work@gmail.com>
Co-authored-by: Dongjoon Lee <djunnni@gmail.com>
Co-authored-by: Thomas.CA <44041651+Thomascogez@users.noreply.github.com>
Co-authored-by: Riccardo <riccardo.odone@gmail.com>
Co-authored-by: Lane Goolsby <lanegoolsby@yahoo.com>
Co-authored-by: Mariusz Krzaczkowski <m.krzaczkowski@yetiforce.com>
Co-authored-by: Matija Sirk <sirkmatija@gmail.com>
Co-authored-by: Jiří <zmrhal.j@gmail.com>
2023-01-27 17:02:15 +01:00
Sébastien Lorber
de972142a8
chore: backport retro compatible commits for the Docusaurus v2.2 release ( #8264 )
...
Co-authored-by: Jan Peer Stoecklmair <jan.peer.stoecklmair@dynatrace.com>
Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
Co-authored-by: sebastienlorber <lorber.sebastien@gmail.com>
Co-authored-by: Sébastien Lorber <slorber@users.noreply.github.com>
Co-authored-by: LittleboyHarry <littleboyharry@qq.com>
Co-authored-by: Mikey O'Toole <mikey@homotechsual.dev>
Co-authored-by: Jan Peer Stöcklmair <jan.oster94@gmail.com>
Co-authored-by: Nguyễn Thành Nam <namnguyenthanh.work@gmail.com>
Co-authored-by: Sanjaiyan Parthipan <parthipankalayini@gmail.com>
Co-authored-by: Ramazan SANCAR <ramazansancar4545@gmail.com>
Co-authored-by: mturoci <64769322+mturoci@users.noreply.github.com>
Co-authored-by: Adnan Hashmi <56730784+adnanhashmi09@users.noreply.github.com>
Co-authored-by: Pranav Joglekar <pranav2000joglekar@gmail.com>
Co-authored-by: forgeRW <20483211+forgeRW@users.noreply.github.com>
Co-authored-by: Masahiko Hara <pasora@sfc.wide.ad.jp>
Co-authored-by: Johan Fagerberg <johanringmann@gmail.com>
Co-authored-by: John Reilly <johnny_reilly@hotmail.com>
Co-authored-by: Sam Wall <oss@samuelwall.co.uk>
Co-authored-by: Jeferson S. Brito <30840709+jeferson-sb@users.noreply.github.com>
Co-authored-by: evan <evanmccarthy@outlook.com>
Co-authored-by: Xabier Lahuerta Vazquez <xlahuerta@protonmail.com>
Co-authored-by: Forresst <forresst17@gmail.com>
Co-authored-by: Shanmughapriyan S <priyanshan03@gmail.com>
Co-authored-by: Alexey Pyltsyn <lex61rus@gmail.com>
2022-10-29 15:13:42 +02:00
Sébastien Lorber
26d2b9a018
chore: backport retro compatible commits for the Docusaurus v2.1 release ( #8033 )
...
Co-authored-by: sebastienlorber <lorber.sebastien@gmail.com>
Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
Co-authored-by: Sébastien Lorber <slorber@users.noreply.github.com>
Co-authored-by: whiteand <andrewbeletskiy@gmail.com>
Co-authored-by: yzhe819 <68207314+yzhe819@users.noreply.github.com>
Co-authored-by: Ngô Quốc Đạt <56961917+datlechin@users.noreply.github.com>
Co-authored-by: Kevin Østerkilde <kevin@oesterkilde.dk>
Co-authored-by: Bagdasar Ovsepyan <66012777+b-ovsepian@users.noreply.github.com>
Co-authored-by: Yoni Chechik <chechik.yoni@gmail.com>
Co-authored-by: adventure-yunfei <adventure.yunfei@gmail.com>
Co-authored-by: Morgane Dubus <30866152+mdubus@users.noreply.github.com>
2022-09-02 12:20:33 +02:00
Sébastien Lorber
9788944df4
refactor(theme): fix duplicate page metadata usage ( #7777 )
2022-07-14 14:44:45 +02:00
Joshua Chen
cba8be01a3
fix(theme-classic): validate options properly ( #7755 )
...
* fix(theme-classic): validate options properly
* improve normalization
* fix doc
2022-07-11 19:24:46 +08:00
LichLord91
cd7da6113e
fix(theme-classic): fix Layout theme height CSS ( #7752 )
...
* fix(theme-classic): fix Layout theme css height
This fixes html and body tags height from bug report
https://github.com/facebook/docusaurus/issues/7746
* Update styles.module.css
Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
2022-07-10 00:32:48 +08:00
Sébastien Lorber
d3d22d3a72
refactor(theme): nest theme icons under subfolder @theme/Icon/* ( #7740 )
2022-07-08 16:56:53 +02:00
Sébastien Lorber
c3ff131110
refactor(theme): split BlogPostItem into smaller theme subcomponents ( #7716 )
2022-07-08 13:28:53 +02:00
Sunghyun Cho
a25e18ce32
fix(theme): show blog post edit link even when no tag & not truncated ( #7727 )
...
Show edit link even when no tag & not truncated.
2022-07-06 18:46:49 +02:00
Sébastien Lorber
bc0538f6fa
refactor(theme-common): move useDocsPreferredVersion() to public api ( #7729 )
2022-07-06 17:58:18 +02:00
Sébastien Lorber
cebe4840aa
misc: add IDE language annotation comments ( #7678 )
...
add IDE language annotations
2022-06-25 09:55:28 +08:00
Sébastien Lorber
afc08eef4f
refactor(theme): move LayoutProviders to Layout/Provider; composeProviders util ( #7676 )
...
Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
2022-06-24 18:36:27 +02:00
Sébastien Lorber
90a8ca387e
chore: prevent importing theme components with relative paths ( #7674 )
2022-06-24 17:22:44 +02:00
Sébastien Lorber
9473508c33
refactor(theme-common): split package into public/internal API entrypoints ( #7660 )
...
* add theme-common/internal export
* Split @docusaurus/theme-common into public/internal apis
* fixes
* public <-> private
* public <-> private
* public <-> private
* fix
* add "removeThemeInternalReexport" CI script
* :s windows CI check not working: not that useful
* remove bad import
* refactors
* reorder
* make useBackToTopButton internal
Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
2022-06-24 11:21:27 +02:00
Sébastien Lorber
42ab07f62f
feat(theme-classic): themeConfig navbar/footer logos accept className/style + update Meta Open-Source Logo ( #7643 )
2022-06-23 11:22:27 +02:00
Ben Myers
3990404419
fix(theme-classic): expose empty string alt text in navbar logos ( #7659 )
...
* fix: Expose empty string alt text in brand logos via nullish coalescing
* fix: Update boolean logic for fallbacks
* fix: Dogfood fix on Docusaurus brand logo
* refactor: Un-inline alt logic, and reduce chance of duplication in fallback
2022-06-23 11:42:52 +08:00
Sébastien Lorber
fd87afd249
refactor(docs,theme): split DocItem comp, useDoc hook ( #7644 )
...
Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
2022-06-22 14:27:23 +02:00
Matthias Koch
5fe33bef06
fix(content-pages): add article wrapper around MDXContent ( #7595 )
2022-06-16 14:00:22 +02:00
Joshua Chen
b4d93b9bd0
chore: upgrade to TS 4.7, compile with NodeNext ( #7586 )
...
Co-authored-by: sebastienlorber <lorber.sebastien@gmail.com>
2022-06-15 19:15:11 +02:00
Joshua Chen
ec8230b7ba
chore: upgrade dependencies ( #7596 )
2022-06-11 11:51:09 +08:00
Joshua Chen
7869e74fd7
refactor(pwa): simplify registerSW code, fix ESLint errors ( #7579 )
2022-06-07 21:42:17 +08:00
Le Thi Van
5444a230cf
feat: allow specifying custom target for FooterLogo ( #7557 )
...
Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
2022-06-03 17:28:27 +02:00
Sébastien Lorber
9d0bf2e090
feat: add admonition type title translations ( #7556 )
...
Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
2022-06-03 16:40:02 +02:00
Alexey Pyltsyn
5746c58f41
refactor: handle all admonitions via JSX component ( #7152 )
...
Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
Co-authored-by: sebastienlorber <lorber.sebastien@gmail.com>
2022-06-03 14:26:33 +02:00
Joshua Chen
9023b7740c
refactor: remove sub-eslintrc, fix more lint errors ( #7530 )
2022-05-30 14:49:51 +08:00
Joshua Chen
f443e992b9
refactor: mark toc in loaded MDX as non-optional ( #7524 )
2022-05-29 22:36:41 +08:00
Joshua Chen
9cf2bf1199
fix(core): always treat error boundary fallback as a callback ( #7492 )
...
Co-authored-by: sebastienlorber <lorber.sebastien@gmail.com>
2022-05-26 13:05:03 +02:00
Joshua Chen
e955ae472d
fix(theme-classic): allow nested task lists to preserve the indent ( #7438 )
...
* fix(theme-classic): allow nested task lists to preserve the indent
* add Ul back
2022-05-26 12:41:23 +02:00
Joshua Chen
f609acab4f
fix(theme-classic): consistently apply the right active class name for all navbar items ( #7430 )
2022-05-25 19:01:29 +02:00
Jan Peer Stöcklmair
5fcb742aa1
feat(theme-classic): allow className as option for type: "search" ( #7357 )
...
* feat(theme-classic): allow className as option for type: "search"
* fixup! feat(theme-classic): allow className as option for type: "search"
* refactor
Co-authored-by: Jan Peer Stoecklmair <jan.peer.stoecklmair@dynatrace.com>
Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
2022-05-25 18:41:05 +08:00
Joshua Chen
d50fe3b670
test: fix ALL type errors in tests ( #7487 )
2022-05-25 14:01:10 +08:00
Joshua Chen
e2e40b8f5f
test: fix some type errors in test files ( #7486 )
2022-05-25 11:46:10 +08:00
Joshua Chen
624735bd92
refactor: fix more type-aware linting errors ( #7479 )
2022-05-24 19:19:24 +08:00
Joshua Chen
bf1513a3e3
refactor: fix a lot of errors in type-aware linting ( #7477 )
2022-05-24 15:40:26 +08:00
Joshua Chen
3666a2ede5
refactor: remove a lot of implicit anys ( #7468 )
2022-05-23 15:40:53 +08:00
Joshua Chen
89b0fff128
refactor: reduce number of leaked anys ( #7465 )
2022-05-23 00:30:32 +08:00
Joshua Chen
b31220032b
refactor(theme-classic): migrate to tsc for build ( #7447 )
...
* refactor(theme-classic): migrate to tsc for build
* fix
2022-05-18 20:08:09 +08:00
Joshua Chen
0838884f67
chore: enable import/order rule ( #7418 )
2022-05-14 23:39:50 +08:00
Joshua Chen
c17d745533
refactor(theme-classic): always collocate stylesheets with components in one folder ( #7415 )
2022-05-14 14:08:10 +08:00
Pranab Das
3f110a36bd
fix(theme-classic): autocollapse sidebar categories when navigating with paginator ( #7411 )
...
* fix: autocollapse sidebar categories
Auto collapse sidebar categories when navigating via paginator.
* Add autoCollapseCategories in dependency array
* restore collapse button behavior
* simplify
Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
* hopefully a better fix
* refactor
* try this
Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
2022-05-14 13:37:59 +08:00
Joshua Chen
c0bd145a29
fix(theme-classic): resolve customCss from site dir ( #7363 )
2022-05-07 18:57:35 +08:00
Joshua Chen
49a9f0345c
fix(theme-classic): properly highlight code block line numbers ( #7341 )
2022-05-05 18:07:46 +08:00
Alexey Pyltsyn
7944fdd9a2
refactor: minor improvements for breadcrumbs ( #7299 )
...
* refactor: minor improvements for breadcrumbs
* Apply suggestions from code review
* Update packages/docusaurus-theme-translations/locales/fr/theme-common.json
Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
Co-authored-by: Sébastien Lorber <slorber@users.noreply.github.com>
2022-05-04 17:54:47 +03:00
Joshua Chen
b3feb01009
fix(theme-classic): remove breadcrumb items without href from microdata ( #7304 )
2022-05-04 16:54:24 +02:00
Alexey Pyltsyn
be0dc6b0c9
chore: upgrade Infima to alpha.39 ( #7306 )
2022-05-04 16:06:54 +02:00