Commit Graph

343 Commits

Author SHA1 Message Date
lijianan
a0699ea1a0
type: fix .dumi type error (#44916) 2023-09-17 23:32:14 +08:00
afc163
62e338c775
type: enable type prompt for .dumirc.ts (#44886)
* type: fix .dumi missing types

* Update tsconfig.json

Signed-off-by: lijianan <574980606@qq.com>

* Update tsconfig.json

Signed-off-by: lijianan <574980606@qq.com>

* Update tsconfig.json

Signed-off-by: lijianan <574980606@qq.com>

* chore: clear tsconfig.json

* chore: update dumi version declaration

* type: correct unified plugin types

---------

Signed-off-by: lijianan <574980606@qq.com>
Co-authored-by: lijianan <574980606@qq.com>
Co-authored-by: PeachScript <scdzwyxst@gmail.com>
2023-09-17 21:52:01 +08:00
cwg
5ac472d042
site: add LocalStorage caching for bannerVisible (#44910)
* feat: add LocalStorage caching for banner visible

* feat: add cache expiration time
2023-09-16 23:42:12 +08:00
cwg
2627caebb4
fix: site style conflict (#44899)
* fix: site style conflict

* chore: lint

* feat: optimize code
2023-09-15 22:03:53 +08:00
cwg
4d3814478c
site: optimize banner display (#44894) 2023-09-15 18:48:34 +08:00
cwg
fa61f81144
site: announce yuque welfare program (#44884)
* site: announce yuque welfare program

* chore: lint

* feat: optimize code

---------

Co-authored-by: MadCcc <1075746765@qq.com>
2023-09-15 16:42:01 +08:00
afc163
72da2678aa
site: remove legacy code for hash jump (#44836) 2023-09-13 19:08:52 +08:00
MadCcc
9ec402cfe1
docs: try to fix hydration error (#44797) 2023-09-13 09:31:22 +08:00
afc163
fa5c98311a
docs: fix demo code copy function (#44751) 2023-09-11 11:52:36 +08:00
kiner-tang(文辉)
b9dfb1847d
site: solve display exception when use happy work theme in dark mode (#44720)
* site: solve display exception when use happly work theme in dark mode

* feat: remove log

* feat: optimize code
2023-09-11 11:17:11 +08:00
afc163
4489eec5b1
docs: add banner mouse effect animation (#44711)
* docs: add banner mouse effect animation

* refactor to useRef

* refactor to react way

* refactor to hooks

* type: add type

* fix: fix error

* fix: fix error

* fix: update RTL

---------

Co-authored-by: 栗嘉男 <574980606@qq.com>
2023-09-10 12:27:10 +08:00
红果汁
2cf22e8ed3
docs: add theme toggle animation (#44655)
* docs: add theme toggle animation

* fix: add compatibility judgment

* refactor: optimization code

* fix: server document not found

* fix: animation lag

* fix: transition issue

* fix: scroll bar theme color
2023-09-08 17:42:12 +08:00
期贤
a873471f5a merge 2023-09-07 12:05:16 +08:00
lijianan
7344f5e275
chore: replace useToken with useInternalToken (#44670) 2023-09-07 10:15:58 +08:00
yoyo837
ad46da1697 Merge branch 'master' into feature-merge-master 2023-09-03 00:22:34 +08:00
KuangPengfei
24c7b2ea42
site: optimize site scroll bar dark mode style (#44588)
* style(site): set `prefers-color-scheme` value to optimize the dark mode style of the site scroll bar

* style(site): optimize the value acquisition logic of `prefers-color-scheme`
2023-09-02 12:17:20 +08:00
kiner-tang(文辉)
e23cc690e7
feat: support hide expandIcon (#44554)
* site: hide theme example menu's expandIcon

* feat: optimize code

* feat: optimize code

* feat: update test case
2023-09-01 11:09:48 +08:00
栗嘉男
b12d69cf42 chore: merge master into feature 2023-09-01 00:02:50 +08:00
afc163
ae53a452f2
docs: add help text for token customization (#44540)
* docs: add help text for token customization

* docs: add help text for token customization

* docs: add help text for token customization

* docs: add help text for token customization
2023-08-31 09:48:54 +08:00
afc163
3f148d9112 docs: add help text for token customization 2023-08-30 23:02:35 +08:00
二货爱吃白萝卜
659054ee49
docs: Blog virtual table (#44526)
* docs: virtual table

* docs: fix other blog style

* docs: more
2023-08-30 21:18:09 +08:00
叶枫
7e1e6d8e73
chore: fix overview search (#44523) 2023-08-30 09:53:18 +08:00
lijianan
fae1fef77d
fix: add role="button" props to div (#44494)
* fix: add role="button" props to div

* fix: fix
2023-08-29 15:04:03 +08:00
lijianan
4d1bac4651
site: add code-hide Button for CodePreviewer (#44449)
* site: add code-hide Button for CodePreviewer

* fix: fix style

* add token

* fix: fix css props

* fix

* fix: fix

* fix: fix

* Update .dumi/theme/builtins/Previewer/CodePreviewer.tsx

Co-authored-by: MadCcc <1075746765@qq.com>
Signed-off-by: lijianan <574980606@qq.com>

* fix: fix

---------

Signed-off-by: lijianan <574980606@qq.com>
Co-authored-by: MadCcc <1075746765@qq.com>
2023-08-28 20:10:40 +08:00
afc163
07056fa791
docs: fix theme card style in Firefox (#44473) 2023-08-28 19:48:55 +08:00
二货爱吃白萝卜
50bf708e59
fix: hooks call warning (#44450) 2023-08-27 19:57:19 +08:00
二货爱吃白萝卜
4e9ac02b08
fix: Tour panel token & home support dark mode (#44428)
* docs: update home page

* docs: home support dark mode

* docs: fix mobile

* docs: fix rtl

* docs: update locale
2023-08-25 19:08:52 +08:00
afc163
0295322564
docs: prevent highlight code initially (#44344) 2023-08-22 19:00:06 +08:00
MadCcc
70d9a909c4
docs: fix anchor positioning (#44348) 2023-08-22 17:48:53 +08:00
叶枫
80e1bc87bc
style: remove importOrderSeparation from prettier config (#44336) 2023-08-22 13:11:18 +08:00
MadCcc
da699b11be
docs: add fallback for previewer (#44327)
* docs: add fallback for previewer

* chore: code clean
2023-08-21 23:28:14 +08:00
MadCcc
21a2265efd
docs: show mirror modal on page load (#44291)
* docs: show mirror modal on page load

* chore: code clean

* chore: update

* fix: pathname reg

* chore: escape

* feat: add lang check

* chore: add langcheck

* feat: use src file

* chore: update css

* chore: update link

* Update .dumi/mirror-modal.js

Co-authored-by: lijianan <574980606@qq.com>
Signed-off-by: MadCcc <1075746765@qq.com>

---------

Signed-off-by: MadCcc <1075746765@qq.com>
Co-authored-by: lijianan <574980606@qq.com>
2023-08-21 19:51:47 +08:00
MadCcc
b50928fb88
chore: split previewer (#44310) 2023-08-21 14:38:22 +08:00
iola1999
80bd54f515
chore: redirect with rest url (#44298) 2023-08-18 18:29:44 +08:00
lijianan
3b913cf17b
site: add internationalization for docs (#44263)
* site: add internationalization for docs

* fix

* Update .dumi/theme/common/Color/ColorPaletteTool.tsx

Co-authored-by: MadCcc <1075746765@qq.com>
Signed-off-by: lijianan <574980606@qq.com>

* fix: fix

* fix: fix

* fix: fix

* fix: fix

---------

Signed-off-by: lijianan <574980606@qq.com>
Co-authored-by: MadCcc <1075746765@qq.com>
2023-08-18 10:41:45 +08:00
afc163
7179dc8d4c
docs: update footer links (#44272) 2023-08-17 19:12:34 +08:00
afc163
a92a883b77
docs: render china mirror link before hydration (#44233)
* docs: render china mirror link before hydration

* docs: fix pre render error

* chore: hide first

* chore: show china mirror link always
2023-08-16 18:19:11 +08:00
MadCcc
8a65ad6515
docs: fix font color (#44236) 2023-08-15 19:10:32 +08:00
MadCcc
3f0e74702e
docs: fix theme editor page (#44232) 2023-08-15 15:57:04 +08:00
二货爱吃白萝卜
72b449a1a4
docs: update faq (#44198)
* docs: update faq

* chore: update lint

* chore: update lint

* chore: use returnType
2023-08-14 13:32:57 +08:00
MadCcc
ddfe37a14e
docs: bump theme-editor (#44171)
* chore: fix plugin antd import

* chore: code clean

* chore: fix image test

* chore: fix image test
2023-08-11 19:37:53 +08:00
MadCcc
12efe328ac
docs: optimize site layout (#44111)
* docs: sticky header

* docs: adjust floatbutton zindex

* chore: code clean
2023-08-08 19:48:41 +08:00
MadCcc
3d22c1a26f
docs: add v4 theme guide (#44078)
* docs: add v4 theme guide

* chore: code clean

* chore: code clean

* docs: update docs en
2023-08-07 19:35:32 +08:00
Peach
1273cc9d01
docs: avoid unnecessary re-render when toggle debug (#42255)
* docs: avoid unnecessary re-render when toggle debug

* chore: upgrade dumi

---------

Co-authored-by: afc163 <afc163@gmail.com>
2023-08-07 17:07:25 +08:00
MadCcc
dc065177f9
docs: sandpack block support config (#44072)
* docs: sandpack block support config

* chore: fix lint
2023-08-07 14:24:05 +08:00
afc163
c5cae926ff
docs: improve code previewer style (#44071)
* docs: improve code previewer style

* docs: simplify dom structure
2023-08-07 13:47:28 +08:00
thinkasany
d009fbdd4e
type(Link): LinkProps add style type (#44041) 2023-08-07 11:43:28 +08:00
二货爱吃白萝卜
e8f9f6a88d
docs: Add happy wave package (#44031)
* docs: theme add happy work

* docs: update happy

* fix: lint

* docs: rename
2023-08-07 10:44:04 +08:00
MadCcc
d9c7a0cc82
docs: react docs arrange (#44029)
* docs: react docs arrange

* chore: code clean

* docs: arrange docs en

* docs: update

* docs: update

* docs: update en doc

* docs: update
2023-08-04 19:27:38 +08:00
lijianan
ee61b30f6b
site: fix error Tabs.TabPane is deprecated use items directly (#44028)
* site: fix error Tabs.TabPane is deprecated use `items` directly

* fiux
2023-08-04 17:32:09 +08:00