Commit graph

4821 commits

Author SHA1 Message Date
Joshua Chen
c7c0ee4e7c
chore: upgrade dependencies (#7101) 2022-04-02 08:32:26 +08:00
Joshua Chen
898611d4ad
refactor(core): code cleanup (#7084) 2022-04-01 13:41:39 +08:00
Joshua Chen
ff96606865
docs: fix some casing inconsistencies (#7081) 2022-03-31 20:23:44 +08:00
Joshua Chen
24c205a835
refactor: replace non-prop interface with type; allow plugin lifecycles to have sync type (#7080)
* refactor: replace non-prop interface with type; allow plugin lifecycles to have sync type

* fix
2022-03-31 19:16:07 +08:00
Joshua Chen
ce2b631455
fix(create): install types for JS template as well (#7078) 2022-03-31 15:49:07 +08:00
Lenz Weber-Tronic
949a72e6a5
perf(mdx-loader): cache mdx/remark compiler instances (#4997)
* (mdx-loader) only create mdx compiler once per webpack config

* type fixes

* fix path

* remove assertion

* docs: add missing Tab/TabItem imports

* fixup

Co-authored-by: slorber <lorber.sebastien@gmail.com>
Co-authored-by: Josh-Cena <sidachen2003@gmail.com>
2022-03-31 15:42:57 +08:00
Joshua Chen
bb55586c20
fix(website): lazy-load YT iframe (#6746) 2022-03-30 22:50:16 +08:00
Joshua Chen
04affa60b6
refactor(core): add comments for react-loadable logic (#7075)
* refactor(core): add comments for react-loadable logic

* fix test
2022-03-30 22:01:16 +08:00
Joshua Chen
13e7de853e
refactor(theme-classic): extract doc-related navbar items' logic to theme-common (#7067) 2022-03-30 14:50:04 +08:00
Joshua Chen
fd24bd180d
fix(core): all plugin lifecycles should receive translated content (#7066) 2022-03-30 11:57:13 +08:00
Joshua Chen
3f33e90704
chore: upgrade dependencies (#7065)
* chore: upgrade dependencies

* fix project words
2022-03-30 11:05:50 +08:00
Joshua Chen
2e79597f83
feat(theme-classic): show blog sidebar on mobile (#7012)
* feat(theme-classic): show blog sidebar on mobile

* fix

* oops

* docs

* add a little margin

* Update display.tsx

* Update content.tsx

* reformat
2022-03-30 09:15:54 +08:00
Chau Tran
1f77fc93bb
docs: add docusaurus-plugin-typedoc to resources (#7061) 2022-03-29 22:52:25 +08:00
Joshua Chen
177e8d7c02
docs: add firelordjs to showcase (#7059)
* docs: add firelordjs to showcase

 docs: add firelordjs to showcase

fixes

kick CI

Delete firelordjs.png

Add files via upload

* kick CI

Co-authored-by: Acid Coder <5227509+tylim88@users.noreply.github.com>
2022-03-29 19:09:01 +08:00
Joshua Chen
4e45e14fdd
fix(theme-common): use native scrolling when smooth behavior set in CSS (#7057)
* fix(theme-common): use native scrolling when smooth behavior set in CSS

* fix

* fix again

* fix again
2022-03-29 18:02:09 +08:00
Joshua Chen
77662260f8
refactor(core): refactor routes generation logic (#7054)
* refactor(core): refactor routes generation logic

* fixes
2022-03-29 16:37:29 +08:00
Kayce Basques
e31e91ef47
docs: add import React statement in JSX file example (#7050) 2022-03-29 09:30:35 +08:00
duanwilliam
b5fc9a6b6d
fix(theme): add bash style to Markdown comment styles (#7049)
* docs: fix code block line highlighting in md syntax highlighting

* properly fix

Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
2022-03-29 09:23:03 +08:00
Alexey Pyltsyn
37a5dfaccc
fix(theme-classic): add caret for dropdown on mobile (#7048) 2022-03-29 01:40:41 +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