Commit Graph

370 Commits

Author SHA1 Message Date
afc163
9dd9db079b
chore: fix banner style in safari (#45485) 2023-10-23 15:02:51 +08:00
afc163
fb0297f7bf
chore: load home page component lazily (#45467)
* chore: load home page component lazily

* chore: improve home page blur style in Chrome
2023-10-21 16:39:59 +08:00
afc163
cd03c11727
docs: improve home page banner style (#45459) 2023-10-20 23:05:04 +08:00
afc163
29551aaaba
chore: fix overview page search outline style (#45458) 2023-10-20 23:04:50 +08:00
MadCcc
984977177a
docs: bump theme editor (#45369) 2023-10-16 20:37:05 +08:00
MadCcc
04cc086fb5
chore: fix tsc (#45352) 2023-10-15 19:17:32 +08:00
kiner-tang(文辉)
c727bed0e8
chore: solve the eslint error about null (#45328) 2023-10-13 18:18:07 +08:00
二货爱吃白萝卜
70ce748d57
fix: options missing id (#45287) 2023-10-12 09:43:35 +08:00
72fc3b6f3c
chore(site): anchor jump don't work (#45243)
* chore: fix typo error

* chore: fix anchor jump failure

* Revert "chore: fix anchor jump failure"

This reverts commit 9a1127353d.

* chore: fix

* Revert "chore: fix"

This reverts commit 9dc69f1164.

* Revert "site: remove legacy code for hash jump (#44836)"

This reverts commit 72da2678aa.

* chore: remove

* Update .dumi/theme/layouts/DocLayout/index.tsx

Co-authored-by: afc163 <afc163@gmail.com>
Signed-off-by: 红 <wxh16144@qq.com>

* chore: update

---------

Signed-off-by: 红 <wxh16144@qq.com>
Co-authored-by: afc163 <afc163@gmail.com>
2023-10-10 17:30:46 +08:00
叶枫
604948e6a9
e 2023-10-09 11:12:51 +08:00
叶枫
75611b7db8
chore: scroll to the top of the page when the search box value changes (#45211) 2023-10-08 15:41:50 +08:00
afc163
f03a4de272
chore: improve switch theme perf in home page (#45210) 2023-10-08 15:29:45 +08:00
MadCcc
d5d9e723f8
chore: fix overview link (#45206)
* chore: fix overview link

* chore: update
2023-10-08 13:44:02 +08:00
Ricky
24ed2cf364
docs: fix site document title flash during page loading (#44631)
* fix: site document title rerender after dumi prerender

* fix: comment & index page listener render

* fix: define seperate layour for index page & seperate Helmet title + desc definition

---------

Co-authored-by: afc163 <afc163@gmail.com>
2023-10-07 14:23:52 +08:00
afc163
abba072bd5
docs: fix API Table styling (#45001)
Signed-off-by: afc163 <afc163@gmail.com>
2023-10-07 12:13:20 +08:00
131a17d099
chore: improve demo dependency logic (#45142) 2023-10-07 09:45:27 +08:00
kiner-tang(文辉)
af38d9f9ee
docs: API table style optimize (#45185) 2023-10-06 09:23:53 +08:00
afc163
07eb5ba82d
docs: move copy button into code previewer (#45099) 2023-09-26 16:41:41 +08:00
MadCcc
e43686da70
docs: fix site issue (#45063)
* docs: fix site issue

* chore: code clean
2023-09-25 16:08:42 +08:00
MadCcc
dcfd1aea66
chore: do not show mirror modal in preview (#45011) 2023-09-22 11:38:56 +08:00
a9d6422722
docs: improve display of color block in docs (#44790)
* chore: update blog style

* Revert "chore: update blog style"

This reverts commit afc0a1d927.

* Revert "site: update docs styles (#39348)"

This reverts commit 4a803962eb.

# Conflicts:
#	.dumi/theme/builtins/ColorChunk/index.tsx
#	.dumi/theme/builtins/TokenTable/index.tsx
#	docs/react/customize-theme.en-US.md
#	docs/react/customize-theme.zh-CN.md

* chore: revert

* chore:revert

* chore: rename props

* chore: update

* chore(deps): add `dumi-plugin-color-chunk` plugin

* chore: update docs

* chore: update

* Update package.json

Co-authored-by: afc163 <afc163@gmail.com>
Signed-off-by: 红 <wxh16144@qq.com>

* docs: pick #44945

Co-authored-by: RedJue <RedJue@users.noreply.github.com>

---------

Signed-off-by: 红 <wxh16144@qq.com>
Signed-off-by: 红 <wxh1220@gmail.com>
Co-authored-by: MadCcc <1075746765@qq.com>
Co-authored-by: afc163 <afc163@gmail.com>
Co-authored-by: RedJue <RedJue@users.noreply.github.com>
2023-09-20 16:59:56 +08:00
MadCcc
e41026ab59
docs: fix site issues (#44970) 2023-09-20 16:50:55 +08:00
afc163
5c99a5ee49
type: fix type errors of React.Key (#44938)
* type: fix .dumi typing error

* type: fix React.Key type error

* type: fix React.Key type error

* type: fix React.Key type error

* type: fix React.Key type error

* Apply suggestions from code review

Signed-off-by: afc163 <afc163@gmail.com>

* fix: test case

* fix: test case

* chore: use @types/react latest version

* Apply suggestions from code review

Signed-off-by: afc163 <afc163@gmail.com>

* chore: update form def

* chore: more ts

* chore: revert demo ts

* chore: bump ver

* chore: fix more

* chore: fix demo

* chore: back of ci

* chore: fix ts

* chore: fix ts

* chore: part of it

* chore: fix ts

* chore: bump ver

* chore: fix lint

* chore: fix

* test: update test

---------

Signed-off-by: afc163 <afc163@gmail.com>
Co-authored-by: 二货机器人 <smith3816@gmail.com>
2023-09-20 11:01:49 +08:00
MadCcc
6939a2fcdf
docs: fix hydration (#44952) 2023-09-19 21:01:07 +08:00
afc163
9455ebec44
docs: update 5.9.2 changelog and lock @types/react (#44943)
* docs: update 5.9.2 changelog and lock @types/react

* docs: update 5.9.2 changelog and lock @types/react
2023-09-19 12:35:37 +08:00
红果汁
49846b8799
docs: fix yuque banner style issue (#44940) 2023-09-19 11:18:46 +08:00
二货爱吃白萝卜
dfe6c2c490
docs: Part of update (#44930)
* chore: fix changelog parser

* chore: clean up

* chore: fix site image style

* chore: bug version

* chore: clean up
2023-09-18 15:30:30 +08:00
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