Commit graph

1235 commits

Author SHA1 Message Date
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
Joshua Chen
aa7d81d7bf
fix(theme): add more tag names to inline element set (#8190) 2022-10-12 18:03:35 +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
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
Mikey O'Toole
a0ab2b0065
refactor(theme): remove hard-coded tag border-radius (#8062) 2022-09-08 17:25:26 +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
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
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
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
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
3b9b497d13
fix(plugin-docs,theme): refactor docs plugin routes and component tree (#7966) 2022-08-18 17:55:05 +02:00
Sébastien Lorber
eac3239757
feat(docs): allow to configure noIndex per doc version (#7963) 2022-08-17 16:55:49 +02:00
Sébastien Lorber
de526e1ab2
feat(plugin-docs): docs sidebar item link: support "autoAddBaseUrl" attribute (#7949) 2022-08-12 12:50:12 +02:00
Sébastien Lorber
53bb0307dd
refactor(theme-classic): split AnnouncementBar, increase z-index, use shadow (#7940) 2022-08-12 12:34:54 +02:00
Sébastien Lorber
ad15605545
feat(theme-classic): use lang attribute in navbar locale dropdown items (#7942) 2022-08-12 12:33:53 +02:00
Kevin Østerkilde
221b114b2c
refactor(theme-classic): make tag text visually certered (#7876) 2022-08-09 20:00:43 +02:00
Joshua Chen
308d3e1f89
docs: remove mention of beta (#7905)
Co-authored-by: sebastienlorber <lorber.sebastien@gmail.com>
2022-08-09 19:26:23 +02:00
Sébastien Lorber
b7ea00a917
chore: bump main to 3.0.0-alpha.0 (#7923) 2022-08-08 19:13:49 +02:00
yzhe819
d938ff7430
fix(theme-classic): code block line number display with line wrapping (#7910)
* fix: line numbers display issue of code block

* test: add dogfooding test page

* chore: lint

* test: move to code-block-tests
2022-08-07 23:01:31 +08:00
Markshawn
f6835898bc
chore: fix CSS import order ESLint rule (#7852)
* enhance: added ESLint ruler for CSS import

* chore: added ruler for default import of css, and fixed all exsting files

* chore: reverted changes on css header rulers
2022-08-01 00:05:00 +08:00
whiteand
cf134a5308
fix: collapse siblings when first category is selected (#7786)
fix: not collapsing when first category is selected
2022-07-15 16:54:09 +08:00
Sébastien Lorber
965a01e589
chore: port-2.0.0-rc.1 (#7782) 2022-07-14 19:30:17 +02:00
Sébastien Lorber
9788944df4
refactor(theme): fix duplicate page metadata usage (#7777) 2022-07-14 14:44:45 +02:00
Sébastien Lorber
665c3117af
chore: bump Infima to 0.2.0-alpha.42, fix a:hover link bug (#7771) 2022-07-13 13:57:35 +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
Joshua Chen
07641ae53d
chore: upgrade dependencies (#7754) 2022-07-10 00:32:32 +08:00
Sébastien Lorber
f0f97f29f9
chore: prepare v2.0.0-beta.22 release (#7741) 2022-07-08 18:34:05 +02: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
Joshua Chen
fa22927250
chore: upgrade dependencies (#7684)
* chore: upgrade dependencies

* fix

* reupgrade

* downgrade
2022-07-04 19:36:43 +08: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
Sébastien Lorber
a989a1d17e
chore: upgrade Infima to alpha.40 (#7664) 2022-06-23 16:50:19 +08: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