Commit graph

2644 commits

Author SHA1 Message Date
Sébastien Lorber
97d5dd094d
fix(theme-common): remove useless useSyncExternalStore shim (#9276) 2023-09-04 16:21:59 +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
Colin McDonnell
13a8ba1528
feat: support bun package manager in create-docusaurus (#9241) 2023-08-24 14:49:03 +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
Sébastien Lorber
a59aead1e2
chore: attempt to fix Crowdin issues (#9220) 2023-08-12 02:56:54 +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
Joshua Chen
3e9648e3d6
docs: add the missing import logger statement (#9210) 2023-08-07 17:41:23 -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
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
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
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
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
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
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
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
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