Commit graph

4806 commits

Author SHA1 Message Date
Alexey Pyltsyn
2bc3b28cec Merge branch 'main' of github.com:facebook/docusaurus into lex111/filter-sidebar 2022-03-28 21:53:22 +03:00
deployn
118ca63c72
chore(theme-translations): complete German translations (#7031)
* Update German locales

* Update German locales

* Update German locales

* update locales
2022-03-28 22:12:34 +08:00
Joshua Chen
4f4f503633
fix(utils): parse Markdown headings with CRLF line break (#7043) 2022-03-28 21:59:29 +08:00
Joshua Chen
5fb09a2946
refactor(core): reorganize files (#7042)
* refactor(core): reorganize files

* fix types
2022-03-28 21:49:37 +08:00
Joshua Chen
85a79fd9b9
refactor(core): reorganize functions (#7037) 2022-03-28 17:12:36 +08:00
Joshua Chen
c81d21a641
refactor: minor type improvements (#7035) 2022-03-28 11:15:37 +08:00
Joshua Chen
755b03861c
fix(theme): only parse HTML- and JSX-style comments in MD code (#7033) 2022-03-28 09:57:04 +08:00
Alexey Pyltsyn
57f7881a3d
fix: expand doc main container to full width on mobiles (#7030) 2022-03-27 18:44:38 +03:00
Alexey Pyltsyn
2b58485c83
refactor: console output improvements (#7029) 2022-03-27 19:04:59 +08:00
Alexey Pyltsyn
39486682ba
fix: make docs page wrapper take full height (#7025)
* fix: make page wrapper take full height

* Better solution
2022-03-27 16:20:49 +08:00
Andrei Canta
0b3b642cfb
docs: add Easypanel to showcase (#7022)
* Add Easypanel site to showcase page

* Upload easypanel.png

* fixes

Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
2022-03-27 15:01:48 +08:00
Alexey Pyltsyn
a307da0b9f
feat(logger): new "url" format, add double quotes around paths (#7019)
* refactor(logger): add double quotes around paths

* Introduce url formatter

* Fix
2022-03-27 14:59:20 +08:00
Joshua Chen
2bcac29cd4
refactor(content-docs): deduplicate types, JSDoc for some APIs (#7027)
* refactor(content-docs): deduplicate types, JSDoc for some APIs

* little refactor
2022-03-27 12:57:15 +08:00
Leedom
b842197ac6
docs: consistently use sidebars.js filename (#7016)
* modify sidebar.js to sidebars.js in installation.md

* modify sidebar.js to sidebars.js

Co-authored-by: leedom <leedom@jinlanzuan.com>
2022-03-27 09:55:12 +08:00
Viktor Chernodub
50e38ec4c9
fix(theme-classic): adjust shadow on code block (#7013)
* fix(theme-classic): adjust shadow on code block

* More refactoring

Co-authored-by: Alexey Pyltsyn <lex61rus@gmail.com>
2022-03-27 01:38:34 +03:00
Joshua Chen
4957ec947b
refactor: fix a few places of path handling (#7023) 2022-03-26 22:49:50 +08:00
Martin Blom
e6838dd7a6
docs: add Divine WSF and Ghostly to showcase (#7020)
* Added Divine WSF and Ghostly showcases.

* optimize images

Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
2022-03-26 22:11:41 +08:00
Joshua Chen
cb03764ce5
refactor(theme): extract plumbing code of BTT button into theme-common (#7021)
* refactor(theme): extract plumbing code of BTT button into theme-common

* oops
2022-03-26 21:05:48 +08:00
Alexey Pyltsyn
45b7a1b7c8
refactor: remove copyright comment from swizzled components (#7017)
* refactor: remove copyright comment from swizzled components

* Update packages/docusaurus/src/commands/swizzle/actions.ts

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

Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
2022-03-26 17:51:54 +08:00
Joshua Chen
3683f25637
fix(theme-classic): do not add caret for non-collapsible categories (#7015) 2022-03-26 16:45:19 +08:00
sulu5890
72f005e852
fix(types): declare history and react-loadable as dependencies (#7014)
* fix(types): declare history and react-loadable as dependencies

* fix(types): downgrade history to 4.9.0 to match react-router

* add @docusaurus/react-loadable such that it can be correctly resolved
2022-03-26 14:28:49 +08:00
Sébastien Lorber
1b974e8b1b
refactor: split and cleanup theme/DocPage (#7006) 2022-03-25 19:58:28 +01:00
Sébastien Lorber
2964e6f65d
refactor: split DocSidebarItem by item type (#7005) 2022-03-25 18:59:31 +01:00
Indermohan Singh
2dea99b5c8
docs: remove unnecessary semicolon (#7000)
* docs: remove unnecessary semicolon

The semicolon after the TOCInline component is unnecessary and actually gets rendered on screen.

* ignore prettier

Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
2022-03-25 23:59:13 +08:00
Sébastien Lorber
e97f2529d6
chore: regen examples for 2.0 beta.18 (#7002) 2022-03-25 16:45:55 +01:00
Sébastien Lorber
73deaa8bf6
chore: prepare v2.0.0-beta.18 release (#7001) 2022-03-25 16:16:38 +01:00
Joshua Chen
b5ceead3b2
feat(content-docs): autogenerate category with linked doc metadata as fallback (#6859) 2022-03-25 15:23:11 +01:00
Joshua Chen
f1bcdbff63
fix(validation): improve error messages for a few schemas (#6997)
* fix(validation): improve error messages for a few schemas

* kick CI

* fix test
2022-03-25 21:50:37 +08:00
Alexey Pyltsyn
d879cdca96
refactor: improve a11y of dropdown menu (#6971)
Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
Co-authored-by: sebastienlorber <lorber.sebastien@gmail.com>
2022-03-25 13:02:24 +01:00
Alexey Pyltsyn
c2ac22ec15
refactor(theme-classic): cleanup of code blocks (#6987) 2022-03-25 12:56:00 +01:00
Alexey Pyltsyn
78ecff907a
refactor(theme-classic): clean up CSS of doc cards (#6950)
Co-authored-by: sebastienlorber <lorber.sebastien@gmail.com>
Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
2022-03-25 12:17:42 +01:00
Alexey Pyltsyn
e606e62a6a
refactor: better external link icon positioning (#6994) 2022-03-25 11:06:47 +01:00
Joshua Chen
87592bca03
refactor: ensure all types are using index signature instead of Record (#6995)
* refactor: ensure all types are using index signature instead of Record

* kick CI
2022-03-25 18:06:30 +08:00
Joshua Chen
e8800b9d49
fix(core): prevent useBaseUrl returning /base/base when on /base (#6993) 2022-03-25 09:40:56 +01:00
Sébastien Lorber
dc95cb86ca
feat: lazy-load external images + ability to customize image display (#6990) 2022-03-25 09:12:17 +01:00
Joshua Chen
fa50d09d3b
chore: upgrade dependencies (#6991)
* chore: upgrade dependencies

* fix
2022-03-25 10:47:08 +08:00
Joshua Chen
d3065b8ad2
refactor(lqip-loader): remove unused palette option (#6992) 2022-03-25 10:23:42 +08:00
Kayce Basques
395136a731
docs: fix example admonition syntax (#6988)
* Fix example admonition syntax

There was a space between `::: info` should be `:::info` or else Docusaurus does not render it as an admonition.

* kick CI

Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
2022-03-25 08:54:27 +08:00
Sébastien Lorber
c42f22b9bd
refactor: extract MDX components (#6989) 2022-03-24 19:23:44 +01:00
Alexey Pyltsyn
4c0914c035
refactor(theme-classic): remove span wrappers from layout links (#6985) 2022-03-24 17:03:59 +01:00
Joshua Chen
21ff25eebb
fix(theme-classic): minor code copy button improvements (#6986) 2022-03-24 16:52:45 +01:00
Sébastien Lorber
c3e7ecca17
chore: update static-site-generator-webpack-plugin (#6975) 2022-03-24 16:09:28 +01:00
Sébastien Lorber
22c031c071
fix(search): bump Infima, fix Docusaurus search issue due to broken CSS selector (#6983) 2022-03-24 15:33:21 +01:00
Joshua Chen
2eeb0e46a2
feat(utils): JSDoc for all APIs (#6980)
* feat(utils): JSDoc for all APIs

* fix tests
2022-03-24 21:34:31 +08:00
Alexey Pyltsyn
b8d2a4e84d
refactor: replace text-based copy code button with icons (#6964) 2022-03-24 10:47:56 +01:00
Jadon N
19d2a18817
docs: npm run tsc -> npx tsc (#6978)
* Correct npm run tsc to npm run typecheck

According to this page, you should run `npm run tsc` to run `tsc` and do a type check. However, in the package.json file for Docusaurus version 2.0.0-beta.17 the command is actually `npm run typecheck`, which runs `tsc`.

This update only replaces `tsc` with `typecheck` so the npm script will run correctly.

* Recommend npx tsc for type-checking

Based on feedback for the original change to replace `npm run tsc` with `npm run typecheck`, a better solution that was suggested was to use npx to run tsc instead of an npm script. `npx tsc` should work regardless of the template/presets you installed when you installed Docusaurus.
2022-03-24 11:14:09 +08:00
Alois Klink
4d2ab826b8
fix(validation): allow non-object params to remark/rehype plugins (#6977)
Remark and Rehype plugins allow having options as a non-object type,
such as a string.

For instance, the official MDX docs even have an example of this:
See https://mdxjs.com/docs/extending-mdx/#using-plugins

The official plugin `remarkjs/remark-frontmatter` allows passing
a string, e.g. `"toml"` as the options arg, instead of an object.
2022-03-24 09:19:06 +08:00
Felipe Santos
4b3f568b78
fix(content-docs): suppress git error on multiple occurrences (#6973) 2022-03-23 16:35:26 +01:00
Joshua Chen
b456a64f61
feat(theme-common): JSDoc for all APIs (#6974)
* feat(theme-common): JSDoc for all APIs

* fix tests
2022-03-23 21:39:19 +08:00
Sébastien Lorber
4103fef11e
chore: publish stylelint-copyright again (#6967) 2022-03-23 11:57:02 +01:00