Evan You
a6b18a8b9a
feat(theme): add animation to mobile page outline dropdown
2 years ago
Evan You
81ae1c79cd
fix(theme): improve Chinese font handling
...
close #2036
2 years ago
Evan You
2ad668cd54
feat: defineClientComponent helper
2 years ago
Evan You
52b04f324c
fix: handle async enhanceApp when extending themes
2 years ago
Evan You
b0160bc261
fix(theme): move doc-footer-before slot into the footer
...
close #2082
2 years ago
Evan You
5f3aac95c5
a11y: add hover underscore for main text links
2 years ago
Evan You
7b0f28915f
fix: fix optional component imports from default theme
2 years ago
Evan You
da1691d77e
feat(theme): support extending default theme without importing fonts
2 years ago
Evan You
24735dbcde
perf(theme): preload font
2 years ago
Evan You
32dfaf5adc
fix(types): allow void return in transformHead hook
2 years ago
Evan You
2bf8df4bae
BREAKING CHANGE: markdown.headers is now disabled by default
2 years ago
Evan You
468c049ccd
feat: expose page and assets on build hooks TransformContext
2 years ago
Evan You
b86988333b
fix DocOutlineDropdown visible range
2 years ago
Alija Sabic
3aea38991c
Add symbol for header anchor as CSS variable and rule using :before
2 years ago
Alija Sabic
3355fcc1df
Provide accessible markdown-it-anchor configuration using ZeroWidthSpace (HTML Entity) and custom renderAttrs
2 years ago
Alija Sabic
9a315d8855
Revert "Provide accessible markdown-it-anchor configuration"
...
This reverts commit f8d81e377c
.
2 years ago
Alija Sabic
a100f88993
Revert "Update theme-default style for accessible header-anchors"
...
This reverts commit 7b941cd1b0
.
2 years ago
Alija Sabic
03e9e4206a
Update theme-default style for accessible header-anchors
2 years ago
Alija Sabic
86259682c8
Provide accessible markdown-it-anchor configuration
2 years ago
Evan You
7182c4231f
feat(theme): page outline for mobile
2 years ago
Evan You
15a2dd2eb9
adjust custom container bg contrast
2 years ago
Evan You
3b6a6d1abd
feat(theme): a11y improvements
2 years ago
Evan You
6ca34c4236
feat(theme): aria-label for social links
2 years ago
Evan You
2f26693a1d
fix: do not include head tags in inlined site data
2 years ago
Evan You
9aafc88d59
fix: fix scroll to hash on new tab during dev
...
close #653
2 years ago
Evan You
470ce3d3f3
fix: gracefully handle config update with syntax error
...
close #2041
2 years ago
Evan You
d64a76eb36
perf: kickoff main chunk fetch earlier in browsers without modulepreload support
2 years ago
Evan You
22ace7b075
perf: inline site data on page
...
Previously the site data is bundled in JavaScript, and when it changes,
it invalidates the chunk hash of the framework chunk, and in turn
invlidates the chunk hash of **every page**.
With this change, the site data is now inlined in each page as a JSON
string, similar to the page chunk hash data. This ensures that config
changes will no longer affect JavaScript chunk hashes.
2 years ago
Evan You
bed202dbcc
fix: fix chunking logic that causes breakage
...
follow up of 905f58b
fix #2072
fix #2073
fix #2074
fix #2075
2 years ago
Evan You
d2838e3755
feat: createContentLoader
2 years ago
Evan You
905f58b2a8
fix: avoid circular dependency between siteData virtual module and useData()
...
close #2072
close #2073
close #2074
2 years ago
Guillaume Chau
192708de67
feat(theme): editLink can accept function ( #2058 )
2 years ago
Divyansh Singh
9ceff1d587
fix: trim spaces from outline headers
2 years ago
Evan You
8ab36d05fa
fix: properly serialize header in outline
...
BREAKING CHANGE: default theme config option `outlineBadge` has been
removed. Badges in headers are now always excluded when generating
outline text.
2 years ago
Evan You
9bd940f22c
fix: remove @vue/devtools from force include
2 years ago
Evan You
9708510cbd
fix: fix line higlighting for empty lines
2 years ago
Evan You
6ce88da3ba
fix: fix rewrites with non ascii chars
...
close #2017
2 years ago
Evan You
e05a3f2b5a
fix: fix same page hash links with encoded chars
...
close #1749
2 years ago
Evan You
868a9ff81e
feat: allow disabling markdown.headers
2 years ago
Evan You
63f33d2895
fix: respect user vue alias
...
close #1065
2 years ago
Evan You
657a7d38df
fix(theme): re-support dynamic headers
2 years ago
Evan You
f6cb4c0d44
perf: improve default theme chunking
2 years ago
Evan You
5c00bd3db4
chore(theme): improve light mode base text contrast
2 years ago
Divyansh Singh
8b5181446d
chore: bump deps
2 years ago
Divyansh Singh
41987b6a88
feat(theme): add not-found layout slot ( #2054 )
2 years ago
Evan You
747a04d341
fix(theme): remove log in VPContent
2 years ago
Evan You
3690714a32
update domain + redirect
2 years ago
Alija
322c633fd0
perf(a11y): add aria-label to language button ( #2025 )
...
Co-authored-by: Divyansh Singh <40380293+brc-dd@users.noreply.github.com>
2 years ago
CHOYSEN
bed31d0c21
refactor: only compile rewrite rules once ( #2018 )
2 years ago
CHOYSEN
27e3adf8ed
fix(theme): align number to code line ( #2044 )
2 years ago
Evan You
76097048f3
feat: export loadEnv from vite
2 years ago
Evan You
4673bb1879
feat(data-loader): defineLoader() type helper
2 years ago
Evan You
e29b6a051e
feat(data-loader): pass watched files into load()
2 years ago
Evan You
de84c01b72
docs: revise custom theme and default theme extending
2 years ago
Evan You
f39b6a98d6
feat: support Theme.extends
2 years ago
Evan You
868a58670e
feat: deprecate Theme.setup
2 years ago
Evan You
74caccda43
feat: expose isNotFound on PageData, deperecate Theme.NotFound
2 years ago
Evan You
3158115afc
fix(theme): make tip box text color darker
2 years ago
Evan You
66f94fd7a0
feat: expose params at top level in useData()
2 years ago
Evan You
a4ac055dbf
feat: support $params in page components
2 years ago
Evan You
580a8e1a55
fix: extract all headers by default
2 years ago
Evan You
1457681484
fix: ensure HMR works properly for page outline
...
The client-side based implementation in #1281 makes HMR update for the
outlines flaky and unreliable.
The headers payload for each page chunk is relatively cheap in return
for the correctness, since they are inlined as a JSON string.
2 years ago
Evan You
0c0b6cc5a3
fix: avoid deprecation warning when using --force
2 years ago
Evan You
22047f3363
fix: respect command line minify and outDir options
2 years ago
Evan You
49bcc254dc
docs: rewrite getting started + init tips
2 years ago
Evan You
7158932e27
docs: update home page
2 years ago
Evan You
38bbdaddb7
feat: vitepress init command ( #2020 )
...
close #1252
2 years ago
Robert Kowalski
254e15beb9
feat(theme): add `as` prop to `Content` ( #2011 )
2 years ago
gaaming
996a5f47e9
feat(theme): add `home-hero-info` slot ( #1807 )
2 years ago
maomao
2a1abbe45e
fix(theme): prevent text wrapping in nav dropdown menu
2 years ago
Evan You
8e8fcd9caa
fix: normalize all paths in config
2 years ago
Evan You
8c9833ceba
test: fix dynamic routes test for build
2 years ago
Evan You
c5f37188a1
warn missing paths export
2 years ago
Evan You
ef6ae56c95
feat: cache dynamic path loaders
2 years ago
Evan You
b075ee5be6
fix: dyamic routes w/ srcDir + relative imports
2 years ago
Evan You
24fa862c39
feat: dynamic routes
...
This commit completes the feature by adding HMR for dependencies of
path loader files.
Based on previous commits:
2582058, dea831f, 99693c6, c70ab70, bc99e5d
2 years ago
Evan You
5913ebc34f
fix: hmr on deps change of data loaders
2 years ago
Evan You
bccce98c62
fix: update route configs on file add / delete
2 years ago
Evan You
34b149ba25
wip: rewrites for dynamic routes
2 years ago
Evan You
24507105b1
fix: disable fuzzy link recognition by default
...
this is a bit aggressive and can conflict with Vue template expressions
2 years ago
Evan You
80fb3b0e98
wip: prod build for dynamic routes
2 years ago
Evan You
d6952f37b7
wip: hmr for dynamic routes on add/delete
2 years ago
Evan You
08df389db8
wip: basic hmr for dynamic routes
2 years ago
Evan You
9c4c2117a6
wip: dynamic routes
2 years ago
Kia King Ishii
c2de4caa34
fix(theme): "copy code" button not readable on hover state ( #819 ) ( #1892 ) ( #1998 )
...
fix #819
fix #1892
Co-authored-by: Divyansh Singh <40380293+brc-dd@users.noreply.github.com>
2 years ago
Kia King Ishii
d9a2e6e897
fix(theme): tip custom container has wrong bg color for `<code>` block
2 years ago
Kia King Ishii
472b6ecf5e
feat(theme): enhance readability of custom containers ( #1824 ) ( #1989 )
...
close #1824
2 years ago
Juan Martín Seery
5a6d384952
feat(build): add support for custom languages ( #1837 )
...
Co-authored-by: Divyansh Singh <40380293+brc-dd@users.noreply.github.com>
2 years ago
Divyansh Singh
e2d4edf45b
feat(theme): support custom target and rel in navbar links ( #1993 )
...
Co-authored-by: Kev1nzh37 <kev1nzh37@gmail.com>
2 years ago
meedfine
8e6e8d9af5
fix(theme): show external link icon in navbar ( #1881 )
...
fixes #1948
2 years ago
Divyansh Singh
6218b108bc
fix(theme): show external link icon on same line ( #1880 )
2 years ago
Markus
b56351c778
fix(theme): allow empty details in home feature ( #1936 ) ( #1963 )
...
Co-authored-by: Divyansh Singh <40380293+brc-dd@users.noreply.github.com>
2 years ago
Markus
b8a5e8e5b2
feat(theme): make prev/next links changeable ( #1972 )
...
Co-authored-by: Divyansh Singh <40380293+brc-dd@users.noreply.github.com>
2 years ago
Markus
803d5b6d66
fix(theme): add height constraints to hero image ( #1983 )
2 years ago
gittig11
fd995906f6
fix(compat): remove use of array.at
...
Co-authored-by: Divyansh Singh <40380293+brc-dd@users.noreply.github.com>
2 years ago
Evan You
191ac86a85
docs: adjust the use of configs -> config
2 years ago
Divyansh Singh
c4d8d7225c
fix(build): show error stack in logs ( #1960 )
2 years ago
Divyansh Singh
5c9b75e325
fix(types): augment vite user config ( #1946 )
2 years ago
Alexey Iskhakov
bcb8cbf3c8
fix: custom titles of code snippets inside code groups ( #1834 )
...
Co-authored-by: Divyansh Singh <40380293+brc-dd@users.noreply.github.com>
2 years ago
CHOYSEN
a00bb62143
feat(build): use vite logger ( #1899 )
...
Co-authored-by: Divyansh Singh <40380293+brc-dd@users.noreply.github.com>
2 years ago