Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update source vuejs/docs:main #262

Merged
merged 447 commits into from
Jan 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
447 commits
Select commit Hold shift + click to select a range
961fffd
update aircode url
yyx990803 May 6, 2023
cb28e00
update text ad
yyx990803 May 6, 2023
fc10afd
update text ad
yyx990803 May 10, 2023
615cb39
update tighten email
yyx990803 May 10, 2023
b778c75
docs: change the outdated option for end-to-end testing (#2351)
andrewvasilchuk May 11, 2023
3b2469f
fix: non-case sensitive filtering (#2362)
PMolnes May 11, 2023
9c081ac
3.3: update sfc macro external type limitation
yyx990803 May 1, 2023
fc83501
3.3: jsx changes
yyx990803 May 1, 2023
4d31a88
3.3: generic components
yyx990803 May 1, 2023
9146302
move type-based usage of defineProps & defineEmits to the same section
yyx990803 May 1, 2023
a5c179b
3.3: defineEmits alt syntax
yyx990803 May 1, 2023
b4d1e02
3.3: defineOptions
yyx990803 May 1, 2023
f633357
3.3: defineSlots & slots option
yyx990803 May 1, 2023
3011e40
3.3: toRef
yyx990803 May 1, 2023
8bcbf1a
3.3: toValue
yyx990803 May 1, 2023
da8c449
3.3: app.runWithContext
yyx990803 May 1, 2023
4e26585
3.3: utility types
yyx990803 May 2, 2023
544f2d6
3.3: remove syntax limitations
yyx990803 May 7, 2023
53a69eb
3.3: more specific info on type -> runtime limitation
yyx990803 May 8, 2023
32239ef
3.3: defineslots update
yyx990803 May 8, 2023
5b045c2
update banner
yyx990803 May 12, 2023
941fd1b
Update introduction.md (#2367)
jnroder May 15, 2023
30cb9d9
use onBeforeUnmount in useEventListener (#2356)
bnabriss May 15, 2023
67067a1
docs: use semantically correct tag for date (#2353)
andrewvasilchuk May 15, 2023
f618a3a
Update project initialization steps in quick-start.md file (#2365)
Peddinti-Sriram-Bharadwaj May 17, 2023
1a50977
fix: can not stop calling the 'update' method when elapsed > duration…
wangzhilongh May 19, 2023
4a07ffb
remove banner
yyx990803 May 24, 2023
e5671d2
remove text ad
yyx990803 May 29, 2023
02d0f70
docs: Fix broken URL for restricted list of globals (#2388) (#2389)
yoshi-pi May 30, 2023
173d507
add missing anchor (#2373)
wxsms May 31, 2023
6671688
fix: removed anchor (#2374)
jay-es May 31, 2023
376e895
Update misplaced comma and correct article usage in class-and-style.m…
sourabh504 May 31, 2023
0da496c
fix:the flyout menu height when it's overflowed (#2380)
Jinjiang May 31, 2023
608e9bd
Update testing.md (#2386)
lijinliangyihao May 31, 2023
1d107b6
Update rendering-mechanism.md (#2387)
donghoon-song May 31, 2023
0da5428
feat: update composition-api-faq.md (#2370)
ikxin Jun 1, 2023
dd1ce23
update composable guide to use toValue()
yyx990803 Jun 3, 2023
226d98c
update embed restriction headers
yyx990803 Jun 8, 2023
4e81585
minor tweaks
yyx990803 Jun 8, 2023
2c9ba2d
bump deps
yyx990803 Jun 9, 2023
7eb5984
ignore missing dep
yyx990803 Jun 9, 2023
cdd928d
Rewrite reactivity fundamentals CAPI to start with refs (#2396)
yyx990803 Jun 10, 2023
58c73db
focus filter box when visiting api index
yyx990803 Jun 10, 2023
303cd6d
fix headers
yyx990803 Jun 10, 2023
4251f13
chore: bump repl
yyx990803 Jun 11, 2023
9df7e58
API style switch enhancements (#2399)
yyx990803 Jun 12, 2023
9849d63
Typo in reactivity-fundamentals.md (#2402)
selira Jun 12, 2023
3bd47dd
docs(script-setup): updated outdated tip (#2398)
wenfangdu Jun 12, 2023
cf2a663
Add a glossary (#2199)
skirtles-code Jun 12, 2023
5a9b52d
clarify restrictions on where composables can be invoked (#2170)
scvnc Jun 12, 2023
dd41c35
Correct boolean prop casting details when mixed with string type (#1…
TheJaredWilcurt Jun 12, 2023
1e0960d
Add WebdriverIO as alternative testing solution (#2114)
christian-bromann Jun 12, 2023
2308a4d
Improve description of "disconnected" property caveat to reactive obj…
sgpinkus Jun 12, 2023
028254c
Clarify Composition API FAQ question (#2233) (#2234)
jonkri Jun 12, 2023
e7561df
Replace the variable `p` with `pElementRef` (#2284)
peterhauke Jun 12, 2023
9f057d2
fix: missing \ before second star (#2405)
edimitchel Jun 13, 2023
b5deee9
add a note about extends and composition api
yyx990803 Jun 13, 2023
47b61fc
add missing extends
yyx990803 Jun 13, 2023
202b311
consistent heading styles for API docs (baesd on #1995)
yyx990803 Jun 13, 2023
3f4e35c
Improve boolean casting example (#2273)
YuhuiM Jun 13, 2023
e602b1d
Update provide-inject.md (#2317)
davidkrijgsman Jun 13, 2023
79b448d
update inject api docs for factory usage
yyx990803 Jun 13, 2023
1f28a6b
docs: update docs to use defineOptions over requesting a second scrip…
VividLemon Jun 13, 2023
d4d437f
use async await for nextTick (#2366)
DespertaWeb Jun 13, 2023
870ac43
Update composition-api-lifecycle.md (#2372)
vhoyer Jun 13, 2023
6a0a845
Example for new defineEmit with types syntax.md (#2382)
PMolnes Jun 13, 2023
d0feec9
add guide to typecheck web components written with vue #2314 (#2377)
adrienZ Jun 13, 2023
0976439
Update component-basics.md (#2391)
denniskoenig Jun 13, 2023
aa8ae47
add base url support on api index page (#2401)
podsvirov Jun 13, 2023
3bf5bb5
chore: use defineProps type syntax (#2403)
Alfred-Skyblue Jun 13, 2023
e9f320a
chore: Use third person singular for "Vue performs" (#2406)
MaxVanDeursen Jun 13, 2023
add509a
update quick start for api styles change
yyx990803 Jun 14, 2023
35bffdc
add example for multiple v-model with modifiers (#2257)
liuseen-l Jun 14, 2023
dbc89dd
Add example for typing functional components (#2352)
louiss0 Jun 14, 2023
0f29a14
chore: bump repl
yyx990803 Jun 14, 2023
e2f92e0
chore: fix links in glossary (#2410)
jay-es Jun 14, 2023
ff263e7
Link to Microsoft Edge extension page (#2408)
MaxVanDeursen Jun 14, 2023
8c2e852
additional allow embed headers
yyx990803 Jun 20, 2023
fe15ed8
docs: onBeforeUnmount to onUnmounted for consistency (#2413)
lioumens Jun 21, 2023
b1d7a68
Bump vitepress from 1.0.0-beta.1 to 1.0.0-beta.3 (#2421)
dependabot[bot] Jun 27, 2023
f9e5233
docs: remove duplicate defineOptions script setup example (#2422)
hwkr Jun 27, 2023
0c5a612
Update forms.md (#2420)
Jun 27, 2023
9b06c2f
remove unnecessary space (#2419)
Seung-wan Jun 27, 2023
9c34f13
examples (todomvc): change `@vnode-mounted` to `@vue:mounted` (#2418)
jynxio Jun 27, 2023
0530fc5
Update composition-api-dependency-injection.md (#2415)
igorbabko Jun 27, 2023
ca5f159
link to drop-reactivity-transform
yyx990803 Jun 29, 2023
d22496b
docs(faq): remove outdated information about considering to use vue 2…
arashsheyda Jul 16, 2023
5cef088
Bump vitepress from 1.0.0-beta.3 to 1.0.0-beta.5 (#2430)
dependabot[bot] Jul 16, 2023
a2e950b
docs: update vitepress link (#2435)
donaldxdonald Jul 16, 2023
4ba12e4
docs: change @vnode-mounted to @vue:mounted (#2436)
ChaominRuan Jul 16, 2023
966a00c
Update reactivity-fundamentals.md (#2442)
draqist Jul 21, 2023
b4ddd44
docs: transition hook add comment (#2441)
btea Jul 21, 2023
99bda99
Update reactivity-fundamentals.md (#2439)
yinjg1997 Jul 21, 2023
70b4d5d
docs: fix removed anchor (#2456)
jay-es Aug 1, 2023
5c3fd4b
docs: use `npm create` instead of `npm init` (#2455)
haoqunjiang Aug 1, 2023
2c18562
docs: fixed typo in quick-start.md (#2452)
srdjanpazin Aug 1, 2023
75ed0d4
Add translation link to ko.vuejs.org and pt.vuejs.org (#2448)
Jinjiang Aug 2, 2023
2178439
bump deps
yyx990803 Aug 2, 2023
bb0e51b
fix lockfile
yyx990803 Aug 3, 2023
6ce6bc4
chore: update team member (#2458)
ErickPetru Aug 5, 2023
61e4f23
fix: update monterail link (#2481)
edimitchel Aug 16, 2023
2daf2ae
Update render-function.md (#2475)
vinsonw2 Aug 16, 2023
b017bc4
feat: update SponsorsGroup.vue (#2469)
martcpp Aug 16, 2023
d22a0c2
Update reactivity-fundamentals.md (#2447)
Jerffersonferreira Aug 22, 2023
7231b0b
docs: update IDE support page as WebStorm now supports Volar (#2459)
niklas-wortmann Aug 22, 2023
074d70a
Update slots.md (#2489)
Jannchie Sep 5, 2023
7fe90c5
remove jump24
yyx990803 Sep 6, 2023
eba914e
feat: add vuetoronto23 banner (#2506)
jillztom Sep 18, 2023
1ab68f6
Add translation link for bn.vuejs.org (#2508)
mahmudunnabikajal Sep 19, 2023
369bc0e
docs: consist usage of in-DOM template (#2487)
wxsms Sep 19, 2023
6d12f2c
perf: remove `resize` event listener when `unmounted` (#2495)
Alfred-Skyblue Sep 19, 2023
644416a
Update class-and-style.md (#2496)
leoelz Sep 19, 2023
7f299d9
Update v-model.md naming convention (#2504)
leochoo Sep 19, 2023
6d40f50
docs: In-DOM Root Component Template does not support <script setup> …
baiwusanyu-c Sep 20, 2023
e5ae32b
Update forms.md (#2425)
AliG1000 Sep 20, 2023
4370b44
Update render-function.md (#2427)
modelair Sep 20, 2023
dc398f5
Update plugins.md (#2451)
BatlethTech Sep 20, 2023
ead027b
add DOM interface info to Typing Template Refs (#2463)
albertlast Sep 20, 2023
ced311c
Update composables.md (#2473)
spaden Sep 20, 2023
643f9cd
Fix scroll performance link (#2513)
ovarn Sep 24, 2023
42a313b
remove vuetoronto23 banner
yyx990803 Sep 25, 2023
85fc0ef
Curotec Partner update (#2525)
aliasimag Oct 5, 2023
a6fa35f
Italian translation ready to launch (#2533)
phox081 Oct 12, 2023
71ecfd5
Add Vue Toronto banner - schedule 2 (#2536)
jillztom Oct 16, 2023
7d93d28
Update built-in-components.md rename <teleport> to <Teleport> (#2497)
FreshHead Oct 17, 2023
620fe6c
Update composable guide reset values (#2511)
devloos Oct 17, 2023
6e3fac2
Add information about canary releases (#2518)
haoqunjiang Oct 17, 2023
b949158
docs: consist usage of in-DOM template (#2521)
jay-es Oct 17, 2023
0a32566
Update rules-strongly-recommended.md (#2522)
altrusl Oct 17, 2023
c9c25da
fix: update dead link (#2539)
AloisSeckar Oct 18, 2023
4013ced
chore(deps): bump vue from 3.3.4 to 3.3.6 (#2542)
dependabot[bot] Oct 20, 2023
009cb99
docs: remove broken link to focus indicator extension (closes #2530)
abfahimb Oct 24, 2023
ea76103
docs: update url for vue-tsc in overview.md (#2546)
mingpepe Oct 25, 2023
ca0ece7
chore(deps): bump vue from 3.3.6 to 3.3.7 (#2549)
dependabot[bot] Oct 26, 2023
1a8b6f6
Revert "Add Vue Toronto banner - schedule 2 (#2536)" (#2553)
yyx990803 Oct 29, 2023
666561e
Remove the app constant name from the method name (#2523)
leoelz Oct 30, 2023
575a6a7
Update rules-recommended.md (#2540)
JeremieLitzler Oct 30, 2023
626a4bf
Update events.md - Diff between Options API and Composition API text …
leoelz Oct 30, 2023
47b7a2f
Add missing ':' on duration property (#2556)
cabbageshop Oct 31, 2023
a6c8282
docs: consistent colons in input labels (#2557)
andrewvasilchuk Oct 31, 2023
9e0d774
docs: use useByRole in example and fix typos (#2559)
yakirgot Nov 2, 2023
0fe5b3d
chore(deps): bump @vue/theme from 2.2.4 to 2.2.5 (#2555)
dependabot[bot] Nov 2, 2023
c979157
Fix `watch` examples (#2537)
jay-es Nov 2, 2023
7b9eb9c
imported and changed twitter icon to new logo (#2548)
stevenks17 Nov 3, 2023
49aaa80
Vuemastery free weekend banner nov 2023 (#2561)
i5dr0id Nov 6, 2023
8c16348
chore: temporarily remove vueschool script
yyx990803 Nov 6, 2023
d3169e6
chore(deps): bump vue from 3.3.7 to 3.3.8 (#2563)
dependabot[bot] Nov 7, 2023
def9358
Revert "chore: temporarily remove vueschool script"
yyx990803 Nov 8, 2023
8087e30
fix(tutorial): race condition on step-10 (#2567)
ubugeeei Nov 14, 2023
67f4d3a
fix: ref example (#2570)
jacekkarczmarczyk Nov 14, 2023
74970a9
special handling for priority platinum sponsor
yyx990803 Nov 14, 2023
07cac45
fix aside special max height
yyx990803 Nov 14, 2023
4485782
fix: aside style error caused by banner (#2572)
heygsc Nov 15, 2023
0806e26
Revert "Vuemastery free weekend banner nov 2023 (#2561)"
yyx990803 Nov 17, 2023
c81e315
docs: fix link to vue tsc package (#2574)
thevrus Nov 18, 2023
20730b6
fix : undefined function retry (#2578)
heygsc Nov 24, 2023
70dfbd1
Add Persian to WIP languages (#2579)
amiria703 Nov 28, 2023
9370f37
docs: update forms.md (#2582)
Perlover Nov 29, 2023
2fbe449
docs: updated introduction.md (#2483)
anamayfield Nov 29, 2023
80bb429
chore(deps): bump vue, vitepress, @vue/repl and theme
yyx990803 Nov 30, 2023
8dc0a33
docs: add composition api to style-guide (#2585)
Shinigami92 Nov 30, 2023
b2bca55
fix syntax highlight for vitepress rc.31 shijiki migration
yyx990803 Dec 1, 2023
662c7da
add vue 2 nes banner (#2581)
leonibr Dec 1, 2023
0517a16
feat: add hasInjectionContext API
NataliaTepluhina Dec 1, 2023
95ec9ea
fix: temporary fix escaped expressions
NataliaTepluhina Dec 1, 2023
05a2590
fix: removed outdated test libraries
NataliaTepluhina Dec 1, 2023
48ea900
docs: added events as props and typing with object based emits (#2583)
pikax Dec 1, 2023
e88e878
fix: bump vue and fix syntax highlighting for interpolations
yyx990803 Dec 4, 2023
1350d08
fix: initial value of template refs in Options API (#2587)
jay-es Dec 4, 2023
6f67576
style: fix Special Sponsor loading (#2590)
the-pesar Dec 6, 2023
32c0a6a
Note that verbatimModuleSyntax meets the suggested criteria for `isol…
bmulholland Dec 6, 2023
a509248
remove partner
yyx990803 Dec 6, 2023
56949a8
bump recommended minimum Node.js version
yyx990803 Dec 6, 2023
f9823d9
add ui components link
yyx990803 Dec 8, 2023
51ccfee
chore: remove outdated warning for reactive provide (#2601)
TheAlexLichter Dec 11, 2023
4151f82
docs: fix minor grammatical mistake (#2602)
magbello157 Dec 12, 2023
f51e4b4
sync with contributor-covenant attribution (#2593)
the-pesar Dec 13, 2023
9400e01
fix: replace TestingApiSwitcher with VTCodeGroup (#2595)
the-pesar Dec 13, 2023
629dc65
docs: replaces 'Not available' with 'search' (#2604)
kenji-webdev Dec 13, 2023
c0f3490
Fix terminology and grammar (#2603)
omar-saleem Dec 13, 2023
7d08ac3
use 3.4 beta
yyx990803 Dec 14, 2023
4cbc64e
Update docs on usage of external types in defineProps (#2600)
franklin-tina Dec 14, 2023
c394c62
docs: fix line break (#2610)
KiritaniAyaka Dec 15, 2023
e9cdaff
feat: add vuemastery banner (#2591)
i5dr0id Dec 18, 2023
10c8163
chore: fix backticks (#2612)
jay-es Dec 18, 2023
3a32866
fix: remove unnecessary paragraph
NataliaTepluhina Dec 18, 2023
09d541a
fix: change redirection link (#2614)
i5dr0id Dec 19, 2023
a0b4a90
List transition example fix (#2611)
AloisSeckar Dec 19, 2023
c15a06f
chore(deps): bump vue from 3.4.0-beta.1 to 3.4.0-beta.2 (#2609)
dependabot[bot] Dec 19, 2023
bcc313c
feat: add pnpm, yarn and bun support in quick-start (#2605)
the-pesar Dec 19, 2023
048a3be
bump vue
yyx990803 Dec 20, 2023
0475ae0
update monterail image
yyx990803 Dec 20, 2023
c345f04
chore(deps): bump @vue/repl from 3.0.0 to 3.0.1 (#2616)
dependabot[bot] Dec 20, 2023
f7555f2
fix: Update broken link in accessibility.md (#2618)
megancoyle Dec 21, 2023
4514929
chore(deps): bump vue from 3.4.0-beta.4 to 3.4.0-rc.1 (#2624)
dependabot[bot] Dec 26, 2023
6dea6b8
chore(deps): bump @vue/repl from 3.0.1 to 3.1.0 (#2619)
dependabot[bot] Dec 26, 2023
0067173
chore: use 3.4 rc2
yyx990803 Dec 26, 2023
35e1aed
Update tauri domain (#2626)
6-78 Dec 26, 2023
810409f
bump to 3.4 rc3
yyx990803 Dec 27, 2023
7e75936
fix: delete meaningless paragraphs (#2632)
heygsc Dec 28, 2023
14d762c
unify "See also" links (#2628)
AloisSeckar Dec 28, 2023
658ed80
fix: og preview (#2633)
himself65 Dec 28, 2023
e33afac
feat: production error codes
yyx990803 Dec 26, 2023
89b94d7
feat: add defineModel in sfc-script-setup.md
sxzz Nov 13, 2023
9d7f313
feat: component v-model update to use defineModel + defineModel modif…
yyx990803 Dec 26, 2023
2c721b7
small tweaks to defineModel
yyx990803 Dec 27, 2023
d69ec67
v-bind same-name shorthand
yyx990803 Dec 27, 2023
5e486e4
computed stability optimization
yyx990803 Dec 27, 2023
4b4e0b9
watch() once option
yyx990803 Dec 27, 2023
76f14f7
prop validator receives full props as 2nd argument
yyx990803 Dec 27, 2023
0d6371e
jsxImportSource
yyx990803 Dec 27, 2023
60f19d3
mark reactivity transform removed
yyx990803 Dec 27, 2023
5fd82f2
add compile-time flags reference
yyx990803 Dec 27, 2023
b079b1d
add a note
yyx990803 Dec 27, 2023
904e851
remove unnecessary booleans
yyx990803 Dec 28, 2023
37c2fa3
deps: use 3.4 proper
yyx990803 Dec 29, 2023
2d8272b
Revert "feat: add vuemastery banner (#2591)"
yyx990803 Dec 29, 2023
5cbf0bf
remove unnecessary import from example (#2635)
imddc Dec 29, 2023
7bfcc8a
Correct template ref grammar (#2636)
damms005 Dec 29, 2023
b621c6d
fix: removed events-as-props
NataliaTepluhina Dec 29, 2023
9f8e5b1
fix: add missing anchors on new titles (#2638)
edimitchel Dec 31, 2023
e19c6be
update vue 2 mention on intro page
yyx990803 Dec 31, 2023
051d9a8
remove partner
yyx990803 Jan 1, 2024
c598a04
chore(deps): bump vue from 3.4.0 to 3.4.3 (#2640)
dependabot[bot] Jan 1, 2024
3c3add3
chore(deps): bump vue from 3.4.3 to 3.4.4 (#2646)
dependabot[bot] Jan 3, 2024
6f19ed7
chore(deps): bump @vue/repl from 3.1.0 to 3.2.0 (#2645)
dependabot[bot] Jan 3, 2024
6d91d77
chore(deps): bump vue from 3.4.4 to 3.4.5 (#2647)
dependabot[bot] Jan 4, 2024
8f5dde5
docs: recommend tres instead of trois (#2651)
alvarosabu Jan 8, 2024
6d79dc9
chore(deps): bump vue from 3.4.5 to 3.4.6 (#2652)
dependabot[bot] Jan 9, 2024
fc57f69
Update members-core.json (#2653)
Jinjiang Jan 9, 2024
7cf1733
chore(deps): bump vue from 3.4.6 to 3.4.7 (#2654)
dependabot[bot] Jan 9, 2024
7fc9606
chore(deps): bump vue from 3.4.7 to 3.4.8 (#2655)
dependabot[bot] Jan 10, 2024
2b3c219
docs(template-syntax.md): add closing tag (#2656)
leanhvu21042001 Jan 11, 2024
f2f4d13
docs: side note about HTML-mode in tutorial (#2641)
AloisSeckar Jan 12, 2024
5f463b8
chore(deps): bump @vue/repl from 3.2.0 to 3.3.0 (#2658)
dependabot[bot] Jan 12, 2024
d3e6c66
chore(deps): bump vue from 3.4.8 to 3.4.10 (#2657)
dependabot[bot] Jan 12, 2024
14d039b
chore(deps): bump vue from 3.4.10 to 3.4.11 (#2661)
dependabot[bot] Jan 12, 2024
98628dd
feat: Add Czech to WIP languages (#2663)
AloisSeckar Jan 13, 2024
d20200f
chore: add vercel config for translations (#2664)
Jinjiang Jan 14, 2024
95d5e5d
chore: move shikiji workaround (#2666)
antfu Jan 15, 2024
c2e0d8e
feat: Add Arabic to WIP languages (#2667)
Abdelaziz18003 Jan 15, 2024
cf1b024
chore(deps): bump vue from 3.4.11 to 3.4.14 (#2669)
dependabot[bot] Jan 17, 2024
4f8a885
fix: change redirection link (#2615)
jiannanxiboy Jan 17, 2024
209f6a2
fix(composables): useFetch() playground example (#2659)
mostafa-nematpour Jan 17, 2024
0a3f144
docs: add explanation for scoped slots with render functions (#2670)
dbzx10299 Jan 17, 2024
80e2128
add more details for watcher flush timing
yyx990803 Jan 18, 2024
076aa55
chore(deps): bump vue from 3.4.14 to 3.4.15 (#2674)
dependabot[bot] Jan 18, 2024
124899e
refactor удалил окончания .html в ссылках
Jan 21, 2024
121ddf4
feat Обновление исходников от vuejs/docs:main
Jan 21, 2024
38c733e
refactor Убрал дубляж перевода
Jan 21, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions .github/contributing/writing-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@ Writing documentation is an exercise in empathy. We're not describing an objecti
- Cognitive capacity is **depleted more slowly** when we help them feel consistently smart, powerful, and curious. Breaking things down into digestible pieces and minding the flow of the document can help keep them in this state.
- **Always try to see from the user's perspective.** When we understand something thoroughly, it becomes obvious to us. This is called _the curse of knowledge_. In order to write good documentation, try to remember what you first needed to know when learning this concept. What jargon did you need to learn? What did you misunderstand? What took a long time to really grasp? Good documentation meets users where they are. It can be helpful to practice explaining the concept to people in person before.
- **Describe the _problem_ first, then the solution.** Before showing how a feature works, it's important to explain why it exists. Otherwise, users won't have the context to know if this information is important to them (is it a problem they experience?) or what prior knowledge/experience to connect it to.
- **While writing, don't be afraid to ask questions**, _especially_ if you're afraid they might be "dumb". Being vulnerable is hard, but it's the only way for us to more fully understand what we need to explain.
- **Be involved in feature discussions.** The best APIs come from documentation-driven development, where we build features that are easy to explain, rather than trying to figure out how to explain them later. Asking questions (especially "dumb" questions) earlier often helps reveal confusions, inconsistencies, and problematic behavior before a breaking change would be required to fix them.
- **While writing, don't be afraid to ask questions**, _especially_ if you're afraid that your questions might be "foolish". Being vulnerable is hard, but it's the only way for us to more fully understand what we need to explain.
- **Be involved in feature discussions.** The best APIs come from documentation-driven development, where we build features that are easy to explain, rather than trying to figure out how to explain them later. Asking questions (especially "foolish" questions) earlier often helps reveal confusions, inconsistencies, and problematic behavior before a breaking change would be required to fix them.

## Organization

- **Installation/Integration**: Provide a thorough overview of how to integrate the software into as many different kinds of projects as necessary.
- **Introduction/Getting Started**:
- Provide a less than 10 minute overview of the problems the project solves and why it exists.
- Provide a less than 30 minute overview of the problems the project solves and how, including when and why to use the project and some simple code examples. At the end, link to both to Installation page and the beginning of the Essentials Guide.
- Provide a less than 30 minute overview of the problems the project solves and how, including when and why to use the project and some simple code examples. At the end, link to both the Installation page and the beginning of the Essentials Guide.
- **Guide**: Make users feel smart, powerful, and curious, then maintain this state so that users maintain the motivation and cognitive capacity to keep learning more. Guide pages are meant to be read sequentially, so should generally be ordered from the highest to lowest power/effort ratio.
- **Essentials**: It should take no longer than 5 hours to read the Essentials, though shorter is better. Its goal is to provide the 20% of knowledge that will help users handle 80% of use cases. Essentials can link to more advanced guides and the API, though, in most cases, you should avoid such links. When they are provided, you need also provide a context so users are aware if they should follow this link on their first reading. Otherwise, many users end up exhausting their cognitive capacity link-hopping, trying to fully learn every aspect of a feature before moving on, and as a result, never finish that first read-through of the Essentials. Remember that a smooth read is more important than being thorough. We want to give people the information they need to avoid a frustrating experience, but they can always come back and read further, or Google a less common problem when they encounter it.
- **Advanced**: While the Essentials helps people handle ~80% of use cases, subsequent guides help get users to 95% of use cases, plus more detailed information on non-essential features (e.g. transitions, animations), more complex convenience features (e.g. mixins, custom directives), and dev experience improvements (e.g. JSX, plugins). The final 5% of use cases that are more niche, complex, and/or prone to abuse will be left to the cookbook and API reference, which can be linked to from these advanced guides.
Expand Down Expand Up @@ -59,9 +59,9 @@ Writing documentation is an exercise in empathy. We're not describing an objecti
- **When referencing a directly following example, use a colon (`:`) to end a sentence**, rather than a period (`.`).
- **Use the Oxford comma** (e.g. "a, b, and c" instead of "a, b and c"). ![Why the Oxford comma is important](./oxford-comma.jpg)
- Source: [The Serial (Oxford) Comma: When and Why To Use It](https://www.inkonhand.com/2015/10/the-serial-oxford-comma-when-and-why-to-use-it/)
- **When referencing the name of a project, use the name that project refers to itself as.** For example, "webpack" and "npm" should both use lowercase as that's how their documentation refers to them.
- **When referencing the name of a project, use the name that the project refers to itself as.** For example, "webpack" and "npm" should both use lowercase as that's how their documentation refers to them.
- **Use Title Case for headings** - at least for now, since it's what we use through the rest of the docs. There's research suggesting that sentence case (only first word of the heading starts with a capital) is actually superior for legibility and also reduces the cognitive overhead for documentation writers, since they don't have to try to remember whether to capitalize words like "and", "with", and "about".
- **Don't use emojis (except in discussions).** Emojis are cute and friendly, but they can be a distraction in documentation and some emoji even convey different meanings in different cultures.
- **Don't use emojis (except in discussions).** Emojis are cute and friendly, but they can be a distraction in documentation and some emojis even convey different meanings in different cultures.

## Iteration & Communication

Expand All @@ -85,11 +85,11 @@ Writing documentation is an exercise in empathy. We're not describing an objecti

### Tips, Callouts, Alerts, and Line Highlights

We have some dedicated styles to denote something that's worth highlighting in a particular way. These are captured [on this page](https://vitepress.vuejs.org/guide/markdown.html#custom-containers). **They are to be used sparingly.**
We have some dedicated styles to denote something that's worth highlighting in a particular way. These are captured [on this page](https://vitepress.dev/guide/markdown#custom-containers). **They are to be used sparingly.**

There is a certain temptation to abuse these styles, as one can simply add a change inside a callout. However, this breaks up the flow of reading for the user, and thus, should only be used in special circumstances. Wherever possible, we should attempt to create a narrative and flow within the page to respect the readers cognitive load.
There is a certain temptation to abuse these styles, as one can simply add a change inside a callout. However, this breaks up the flow of reading for the user and should only be used in special circumstances. Wherever possible, we should attempt to create a narrative and flow within the page to respect the reader's cognitive load.

Under no circumstances should 2 alerts be used next to one another, it's a sign that we're not able to explain context well enough.
Under no circumstances should two alerts be used next to one another, it's a sign that we're not able to explain context well enough.

### Contributing

Expand Down
88 changes: 68 additions & 20 deletions .vitepress/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { defineConfigWithTheme } from 'vitepress'
import type { Config as ThemeConfig } from '@vue/theme'
import baseConfig from '@vue/theme/config'
import { headerPlugin } from './headerMdPlugin'
import { jobsPlugin } from './jobsMdPlugin'
// import { textAdPlugin } from './textAdMdPlugin'

const nav: ThemeConfig['nav'] = [
{
Expand All @@ -16,6 +16,8 @@ const nav: ThemeConfig['nav'] = [
{ text: 'Примеры', link: '/examples/' },
{ text: 'Быстрый старт', link: '/guide/quick-start' },
// { text: 'Style Guide', link: '/style-guide/' },
{ text: 'Glossary', link: '/glossary/' },
{ text: 'Error Reference', link: '/error-reference/' },
{
text: 'Документация для Vue 2',
link: 'https://ru.vuejs.org/'
Expand All @@ -33,7 +35,7 @@ const nav: ThemeConfig['nav'] = [
},
{
text: 'Песочница',
link: 'https://sfc.vuejs.org'
link: 'https://play.vuejs.org'
},
{
text: 'Экосистема',
Expand All @@ -44,6 +46,11 @@ const nav: ThemeConfig['nav'] = [
items: [
{ text: 'Партнёры', link: '/partners/' },
{ text: 'Темы', link: '/ecosystem/themes' },
{ text: 'UI компоненты', link: 'https://ui-libs.vercel.app/' },
{
text: 'Сертификация',
link: 'https://certification.vuejs.org/?ref=vuejs-nav'
},
{ text: 'Вакансии', link: 'https://vuejobs.com/?ref=vuejs' },
{ text: 'Магазин футболок', link: 'https://vue.threadless.com/' }
]
Expand Down Expand Up @@ -88,8 +95,8 @@ const nav: ThemeConfig['nav'] = [
items: [
{ text: 'Блог', link: 'https://blog.vuejs.org/' },
{ text: 'Twitter', link: 'https://twitter.com/vuejs' },
{ text: 'Рассылка', link: 'https://news.vuejs.org/' },
{ text: 'События', link: 'https://events.vuejs.org/' }
{ text: 'События', link: 'https://events.vuejs.org/' },
{ text: 'Рассылка', link: '/ecosystem/newsletters' }
]
}
]
Expand Down Expand Up @@ -189,6 +196,7 @@ export const sidebar: ThemeConfig['sidebar'] = {
},
{ text: 'Входные параметры', link: '/guide/components/props' },
{ text: 'События', link: '/guide/components/events' },
{ text: 'Component v-model', link: '/guide/components/v-model' },
{
text: 'Передача обычных атрибутов',
link: '/guide/components/attrs'
Expand Down Expand Up @@ -313,16 +321,11 @@ export const sidebar: ThemeConfig['sidebar'] = {
{
text: 'Техники анимации',
link: '/guide/extras/animation'
},
{
text: 'Трансформация реактивности',
link: '/guide/extras/reactivity-transform'
}
// {
// text: 'Building a Library for Vue',
// link: '/guide/extras/building-a-library'
// },
// { text: 'Custom Renderers', link: '/guide/extras/custom-renderer' },
// {
// text: 'Vue for React Devs',
// link: '/guide/extras/vue-for-react-devs'
Expand Down Expand Up @@ -416,7 +419,8 @@ export const sidebar: ThemeConfig['sidebar'] = {
{ text: 'Render-функция', link: '/api/render-function' },
{ text: 'Отрисовка на стороне сервера', link: '/api/ssr' },
{ text: 'Вспомогательные типы TypeScript', link: '/api/utility-types' },
{ text: 'Пользовательский рендерер', link: '/api/custom-renderer' }
{ text: 'Пользовательский рендерер', link: '/api/custom-renderer' },
{ text: 'Compile-Time Flags', link: '/api/compile-time-flags' }
]
}
],
Expand Down Expand Up @@ -595,19 +599,28 @@ export default defineConfigWithTheme<ThemeConfig>({
description: 'Vue.js - Прогрессивный JavaScript-фреймворк',
srcDir: 'src',
srcExclude: ['tutorial/**/description.md'],
scrollOffset: 'header',

head: [
['meta', { name: 'theme-color', content: '#3c8772' }],
['meta', { name: 'twitter:site', content: '@vuejs' }],
['meta', { name: 'twitter:card', content: 'summary' }],
['meta', { property: 'og:url', content: 'https://vuejs.org/' }],
['meta', { property: 'og:type', content: 'website' }],
['meta', { property: 'og:title', content: 'Vue.js' }],
[
'meta',
{
property: 'og:description',
content: 'Vue.js - The Progressive JavaScript Framework'
}
],
[
'meta',
{
name: 'twitter:image',
property: 'og:image',
content: 'https://vuejs.org/images/logo.png'
}
],
['meta', { name: 'twitter:site', content: '@vuejs' }],
['meta', { name: 'twitter:card', content: 'summary' }],
[
'link',
{
Expand All @@ -631,6 +644,13 @@ export default defineConfigWithTheme<ThemeConfig>({
// 'data-spa': 'auto',
// defer: ''
// }
// ],
// [
// 'script',
// {
// src: 'https://vueschool.io/banner.js?affiliate=vuejs&type=top',
// async: 'true'
// }
// ]
],

Expand All @@ -650,9 +670,39 @@ export default defineConfigWithTheme<ThemeConfig>({
text: '日本語',
repo: 'https://github.com/vuejs-translations/docs-ja'
},
{
link: 'https://ua.vuejs.org',
text: 'Українська',
repo: 'https://github.com/vuejs-translations/docs-uk'
},
{
link: 'https://fr.vuejs.org',
text: 'Français',
repo: 'https://github.com/vuejs-translations/docs-fr'
},
{
link: 'https://ko.vuejs.org',
text: '한국어',
repo: 'https://github.com/vuejs-translations/docs-ko'
},
{
link: 'https://pt.vuejs.org',
text: 'Português',
repo: 'https://github.com/vuejs-translations/docs-pt'
},
{
link: 'https://bn.vuejs.org',
text: 'বাংলা',
repo: 'https://github.com/vuejs-translations/docs-bn'
},
{
link: 'https://it.vuejs.org',
text: 'Italiano',
repo: 'https://github.com/vuejs-translations/docs-it'
},
{
link: '/translations/',
text: 'Переводы',
text: 'Help Us Translate!',
isTranslationsDesc: true
}
],
Expand Down Expand Up @@ -692,8 +742,10 @@ export default defineConfigWithTheme<ThemeConfig>({
},

markdown: {
theme: 'github-dark',
config(md) {
md.use(headerPlugin).use(jobsPlugin)
md.use(headerPlugin)
// .use(textAdPlugin)
}
},

Expand Down Expand Up @@ -723,9 +775,5 @@ export default defineConfigWithTheme<ThemeConfig>({
json: {
stringify: true
}
},

vue: {
reactivityTransform: true
}
})
4 changes: 2 additions & 2 deletions .vitepress/inlined-scripts/restorePreference.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
document.documentElement.classList.add(cls)
}
}
restore('vue-docs-prefer-composition', 'prefer-composition')
restore('vue-docs-prefer-composition', 'prefer-composition', true)
restore('vue-docs-prefer-sfc', 'prefer-sfc', true)

// window.__VUE_BANNER_ID__ = ''
// window.__VUE_BANNER_ID__ = 'herodevs-vue2-nes'
// restore(`vue-docs-banner-${__VUE_BANNER_ID__}`, 'banner-dismissed')
})()
26 changes: 13 additions & 13 deletions .vitepress/jobsMdPlugin.ts → .vitepress/textAdMdPlugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@ import MarkdownIt from 'markdown-it'

const excludedPages = [
'guide/introduction.md',
'guide/quick-start.md',
'guide/essentials/computed.md',
'guide/essentials/conditional.md',
'guide/essentials/list.md',
'guide/essentials/event-handling.md',
'guide/essentials/forms.md',
'guide/components/registration.md',
'guide/components/props.md',
'guide/components/events.md',
'guide/components/slots.md',
'guide/built-ins/teleport.md',
// 'guide/quick-start.md',
// 'guide/essentials/computed.md',
// 'guide/essentials/conditional.md',
// 'guide/essentials/list.md',
// 'guide/essentials/event-handling.md',
// 'guide/essentials/forms.md',
// 'guide/components/registration.md',
// 'guide/components/props.md',
// 'guide/components/events.md',
// 'guide/components/slots.md',
// 'guide/built-ins/teleport.md',
'about/faq.md',
'about/team.md',
'about/releases.md',
Expand All @@ -22,13 +22,13 @@ const excludedPages = [
'translations/index.md'
]

export const jobsPlugin = (md: MarkdownIt) => {
export const textAdPlugin = (md: MarkdownIt) => {
md.renderer.rules.heading_close = (tokens, i, options, env, self) => {
const relativePath = env.relativePath
const renderedContent = self.renderToken(tokens, i, options)

return excludedPages.includes(relativePath)
? renderedContent
: renderedContent.replace(/<\/h1>/, '</h1><VueJobs/>')
: renderedContent.replace(/<\/h1>/, '</h1><TextAd/>')
}
}
Loading