Commit graph

2606 commits

Author SHA1 Message Date
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
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
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
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
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
MetuMortis
090316e66d
fix(theme-translations): fix Turkish translation for aria label "Enter key" (#8933) 2023-04-29 19:28:34 +02:00
Joshua Chen
9e0b62fe6c
fix(utils): make Markdown link replacement much more rigorous (#8927) 2023-04-27 17:57:11 +02:00
Joshua Chen
1279765f75
chore: upgrade TypeScript to v5.0 (#8926) 2023-04-25 03:10:16 -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
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
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
Aleksandr Vladykin
2b994262b0
fix(utils): handle Markdown links with spaces to route correctly (#8874) 2023-04-12 19:14:26 +02: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
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
Sachin Nanayakkara
be0ac6c2cd
fix(create): add missing await (#8831) 2023-03-28 12:28:34 -04: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
Joshua Chen
3a73fdb53f
fix(theme): allow tabs children to be falsy (#8801) 2023-03-22 19:15:43 +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
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
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
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
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
Petter Drønnen
f40ac082ef
feat(theme-translations): add Norwegian (Bokmål) theme translation (#8631) 2023-02-15 20:00:55 +01:00
Mysterious_Dev
6b618bc9e5
docs: normalize README for ideal-image plugin (#8630) 2023-02-08 01:05:14 -05: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