Skip to content

Commit

Permalink
docs(ts): 抄写 TypeScript 类型章节内容
Browse files Browse the repository at this point in the history
  • Loading branch information
FuckDoctors committed Aug 12, 2024
1 parent 88db93e commit f5d654c
Show file tree
Hide file tree
Showing 9 changed files with 676 additions and 15 deletions.
1 change: 1 addition & 0 deletions .markdownlint.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"img",
"sup",
"em",
"mark",
"Badge",
"script",
"IconDisplay",
Expand Down
4 changes: 4 additions & 0 deletions docs/.vuepress/theme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,10 @@ export const themeOptions: ThemeOptions = {
},
transformers: [transformerTwoslash()],
},

copyCode: {
ignoreSelector: ['.vp-copy-ignore'],
},
},
}

Expand Down
2 changes: 1 addition & 1 deletion docs/.vuepress/theme/components/hanzi/Hanzi.vue
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ function handleRead() {
<div class="hanzi-main-container">
<div class="hanzi-main">
<div class="hanzi-main__left">
<div ref="printRef" class="hanzi print" />
<div ref="printRef" class="print hanzi" />
<div ref="aniRef" class="hanzi animation" />
<div ref="writingRef" class="hanzi writing" />
<div class="hanzi-controls">
Expand Down
2 changes: 1 addition & 1 deletion docs/.vuepress/theme/components/hanzi/Hanzi2.vue
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ function handleRead() {
:height="32"
/>
<div class="hanzi-container">
<div ref="printRef" class="print hanzi-card" />
<div ref="printRef" class="hanzi-card print" />
<div ref="aniRef" class="hanzi-card animation" />
<div class="hanzi-controls">
<button class="btn-voice btn" title="发音" @click="handleVoice" />
Expand Down
4 changes: 4 additions & 0 deletions docs/.vuepress/theme/components/twoslash/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,10 @@
background-color: var(--twoslash-popup-bg);
}

.twoslash-floating .twoslash-popup-code code {
background-color: var(--twoslash-popup-bg);
}

.twoslash-floating .twoslash-popup-docs,
.twoslash-floating .twoslash-popup-error {
padding: 12px !important;
Expand Down
2 changes: 2 additions & 0 deletions docs/notes/frontend/ts/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,5 @@ tag:
# TypeScript 笔记

TypeScript 学习笔记

<Catalog />
20 changes: 20 additions & 0 deletions docs/notes/frontend/ts/handbook/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
index: false
dir:
order: 10
icon: typescript
category:
- 笔记
- frontend
tag:
- ts
- typescript
---

# Handbook

[The TypeScript Handbook](https://www.typescriptlang.org/docs/handbook/intro.html)

[Source Code](https://github.com/microsoft/TypeScript-Website/tree/v2/packages/documentation/copy/en/handbook-v2)

<Catalog />
Loading

0 comments on commit f5d654c

Please sign in to comment.