Commit Graph

990 Commits (unmerged-prs-triage)

Author SHA1 Message Date
烽宁 b31933fbdd
fix(build): uniform handling of windows slash in localSearchPlugin (#2358)
3 years ago
Joaquín Sánchez 2f482afaab
feat(theme): add focus trap to local search dialog (#2324)
3 years ago
JD Solanki 35f8b89637
fix(theme): don't update opacity on hover (#2326)
3 years ago
Vinicius Teixeira Dias c20bd28331
feat(theme): open search box on pressing slash too (#2328)
3 years ago
Divyansh Singh 2afb1477be
style: don't wrap social links
3 years ago
Divyansh Singh f07587af8a fix(theme): hide local nav on home page
3 years ago
Christian Georgi b24acc6991
feat: add `filePath` to `PageData` (#2140)
3 years ago
Divyansh Singh d0f0012aea
feat(theme): support light shiki themes (#2319)
3 years ago
zRains 69c7646daf
fix(theme): vitepress data not properly injected in app when use localSearch (#2299)
3 years ago
Liberty f7443643a4
feat: allow using html in member description (#2269)
3 years ago
烽宁 2f0f2d5ac6
feat(search): support custom `disableQueryPersistence` in local search (#2273)
3 years ago
烽宁 25b9111222
feat(theme): mobile view show outline button after removing sidebar (#2274)
3 years ago
烽宁 6a195b68c0
chore: remove css file about nprogress (#2275)
3 years ago
lchzh3473 f3d3332fff
fix(router): scroll back to the hash anchor even if it is already selected (#2265)
3 years ago
Divyansh Singh 1f4920c60d fix(search): fix highlighting in detailed view
3 years ago
btea 1f5798e437
feat: outline link add title attribute (#2261)
3 years ago
Divyansh Singh 1769d329cc refactor: directly use first child instead of querying
3 years ago
烽宁 09be057ffb
fix(search): local search showDetailedList not working in windows (#2253)
3 years ago
烽宁 8354f8fb86
fix(theme): local search showDetailedList not working in windows (#2248)
3 years ago
Divyansh Singh 7c34f6a3d9 style: align search icon in box a bit
3 years ago
Divyansh Singh 1b0a249ad6 fix(search): esm interop mark.js import
3 years ago
ChuHoMan 144a7d8e4e
fix(search): avoid body scroll when using local search (#2236)
3 years ago
Divyansh Singh ca8db8adca fix(search): fix keyword highlighting and scrolling in excerpts
3 years ago
Anthony Fu b2077c7025
feat(search): make styling more configurable, align more with the theme (#2233)
3 years ago
Divyansh Singh 185213c6ba fix(search): remove double base on importing excepts
3 years ago
Divyansh Singh be8352441f
fix(search): better highlighting in detailed view (#2234)
3 years ago
Divyansh Singh 40f1d1b6f6 feat(search): allow force disabling detailed view
3 years ago
Divyansh Singh 6d5b4cd784 fix(search): show escape to close on footer
3 years ago
Divyansh Singh 4fd40d5f62 styles: tweak search icons a bit
3 years ago
Divyansh Singh 44498675ac fix(a11y): increase touch target size of search icons
3 years ago
烽宁 712a57fde7
fix(theme): fix color of blockquote in custom containers (#2173)
3 years ago
Divyansh Singh 6d363ec9ff fix(search): fix errors on empty titles
3 years ago
Divyansh Singh 7178a22c9d
fix(theme): fix top of scrollbar being unusable (#2224)
3 years ago
Divyansh Singh 25a1fe90bd fix(search): avoid double base
3 years ago
Liberty 4c24960433
feat: allow passing props and children/slots to defineClientComponent (#2198)
3 years ago
Leedom 8ee6b905f5
fix(theme): navbar style (#2202)
3 years ago
Divyansh Singh 713a35cbd0
feat!: organized search config (#2218)
3 years ago
Divyansh Singh 8059ec390a chore: rename offline search to local search
3 years ago
Divyansh Singh 609d447ab5 fix(search): properly resolve page link
3 years ago
Divyansh Singh e2951604fd fix(theme): fix meta key not showing on search button
3 years ago
Guillaume Chau 6c92675e33
feat: offline search (#2110)
3 years ago
Divyansh Singh 3a65db2453 chore: remove unused styles
3 years ago
btea 3f38715b5e
chore(theme): remove unused styles (#2167)
3 years ago
烽宁 51ecd580a2
fix(theme): fix color of table head row in custom containers (#2160)
3 years ago
John Campion Jr 9e3cf0fa7d
feat(theme): allow moving aside to left (#2138)
3 years ago
Divyansh Singh 0e45804bc9
chore: remove extra line
3 years ago
John Campion Jr 53d0099ffa
feat(theme): add `page-top/bottom` and `doc-top/bottom` slots (#2139)
3 years ago
CHOYSEN ff26ff1e66
fix(theme): hide outline dropdown scrollbar when it does not overflow (#2151)
3 years ago
Divyansh Singh e5bc1e1086 fix(theme): allow adding html as feature icons
3 years ago
Anthony Fu eac03f26e2
fix(theme): remove label background of code-group tabs (#2136)
3 years ago
Divyansh Singh 56a7d9aa74
fix(theme): use locale lang instead of navigator lang for last updated (#2118)
3 years ago
Divyansh Singh 42a0ef21c1
fix(theme): don't show outline when no header is there (#2117)
3 years ago
Divyansh Singh 83ce1b8c5e
fix(theme): properly align not found icon in algolia (#2116)
3 years ago
Divyansh Singh aecdeb9b21
fix(theme): fix aside position when footer is there (#2115)
3 years ago
Evan You 16064023cf chore: upgrade to TS 5.0 + use moduleResolution: "bundler"
3 years ago
0xRaiden ee6cda42d8
fix(theme): prevent code-groups conflict with shiki-twoslash (#2059)
3 years ago
Evan You 1f2f1ff43d fix: decode when query selecting current hash
3 years ago
Evan You 86e2a6f972 feat: support multiple selectors for scrollOffset
3 years ago
Evan You a6b18a8b9a feat(theme): add animation to mobile page outline dropdown
3 years ago
Evan You 81ae1c79cd fix(theme): improve Chinese font handling
3 years ago
Evan You 2ad668cd54 feat: defineClientComponent helper
3 years ago
Evan You 52b04f324c fix: handle async enhanceApp when extending themes
3 years ago
Evan You b0160bc261 fix(theme): move doc-footer-before slot into the footer
3 years ago
Evan You 5f3aac95c5 a11y: add hover underscore for main text links
3 years ago
Evan You 7b0f28915f fix: fix optional component imports from default theme
3 years ago
Evan You da1691d77e feat(theme): support extending default theme without importing fonts
3 years ago
Evan You b86988333b fix DocOutlineDropdown visible range
3 years ago
Alija Sabic 3aea38991c Add symbol for header anchor as CSS variable and rule using :before
3 years ago
Alija Sabic a100f88993 Revert "Update theme-default style for accessible header-anchors"
3 years ago
Alija Sabic 03e9e4206a Update theme-default style for accessible header-anchors
3 years ago
Evan You 7182c4231f feat(theme): page outline for mobile
3 years ago
Evan You 15a2dd2eb9 adjust custom container bg contrast
3 years ago
Evan You 3b6a6d1abd feat(theme): a11y improvements
3 years ago
Evan You 6ca34c4236 feat(theme): aria-label for social links
3 years ago
Evan You 9aafc88d59 fix: fix scroll to hash on new tab during dev
3 years ago
Evan You 905f58b2a8 fix: avoid circular dependency between siteData virtual module and useData()
3 years ago
Guillaume Chau 192708de67
feat(theme): editLink can accept function (#2058)
3 years ago
Divyansh Singh 9ceff1d587 fix: trim spaces from outline headers
3 years ago
Evan You 8ab36d05fa fix: properly serialize header in outline
3 years ago
Evan You 657a7d38df fix(theme): re-support dynamic headers
3 years ago
Evan You f6cb4c0d44 perf: improve default theme chunking
3 years ago
Evan You 5c00bd3db4 chore(theme): improve light mode base text contrast
3 years ago
Divyansh Singh 41987b6a88
feat(theme): add not-found layout slot (#2054)
3 years ago
Evan You 747a04d341 fix(theme): remove log in VPContent
3 years ago
Evan You 3690714a32 update domain + redirect
3 years ago
Alija 322c633fd0
perf(a11y): add aria-label to language button (#2025)
4 years ago
CHOYSEN 27e3adf8ed
fix(theme): align number to code line (#2044)
4 years ago
Evan You de84c01b72 docs: revise custom theme and default theme extending
4 years ago
Evan You f39b6a98d6 feat: support Theme.extends
4 years ago
Evan You 868a58670e feat: deprecate Theme.setup
4 years ago
Evan You 74caccda43 feat: expose isNotFound on PageData, deperecate Theme.NotFound
4 years ago
Evan You 3158115afc fix(theme): make tip box text color darker
4 years ago
Evan You 66f94fd7a0 feat: expose params at top level in useData()
4 years ago
Evan You a4ac055dbf feat: support $params in page components
4 years ago
Evan You 1457681484 fix: ensure HMR works properly for page outline
4 years ago
Evan You 7158932e27 docs: update home page
4 years ago
Robert Kowalski 254e15beb9
feat(theme): add `as` prop to `Content` (#2011)
4 years ago
gaaming 996a5f47e9
feat(theme): add `home-hero-info` slot (#1807)
4 years ago
maomao 2a1abbe45e
fix(theme): prevent text wrapping in nav dropdown menu
4 years ago
Kia King Ishii c2de4caa34
fix(theme): "copy code" button not readable on hover state (#819) (#1892) (#1998)
4 years ago
Kia King Ishii d9a2e6e897 fix(theme): tip custom container has wrong bg color for `<code>` block
4 years ago
Kia King Ishii 472b6ecf5e
feat(theme): enhance readability of custom containers (#1824) (#1989)
4 years ago
Divyansh Singh e2d4edf45b
feat(theme): support custom target and rel in navbar links (#1993)
4 years ago
meedfine 8e6e8d9af5
fix(theme): show external link icon in navbar (#1881)
4 years ago
Divyansh Singh 6218b108bc
fix(theme): show external link icon on same line (#1880)
4 years ago
Markus b56351c778
fix(theme): allow empty details in home feature (#1936) (#1963)
4 years ago
Markus b8a5e8e5b2
feat(theme): make prev/next links changeable (#1972)
4 years ago
Markus 803d5b6d66
fix(theme): add height constraints to hero image (#1983)
4 years ago
dominikcz dd0c4c698c
feat(theme): support disabling aside globally (#1925)
4 years ago
Alex Kozack dd1f0bf774
style: add `translations` class in `VPNavBarExtra` (#1896)
4 years ago
Mr-Q ea430760f5
fix(theme): make features support line wrapping (#1913)
4 years ago
manchan 48c9b11316
fix(theme-default): remove duplicate judgments in `preconnect()` (#1903)
4 years ago
Mr.Hope 616fe5b636
fix(theme-default): avoid preconnect without algolia (#1902)
4 years ago
garee76 507b193ef0
fix: safari use `window.requestIdleCallback` (#1871)
4 years ago
Divyansh Singh dea6cfa9cb
fix(theme): infer collapsible from collapsed (#1865)
4 years ago
翠 / green 1f775774da
feat(theme): preconnect algolia when idle (#1851)
4 years ago
翠 / green 010b3e5ad9
fix: take `<a>` in SVG into account (#1850)
4 years ago
Divyansh Singh cf8ad1a291
fix(build): consider base when checking actual pathname (#1858)
4 years ago
Divyansh Singh 5ae4fbde38
feat: stable `cleanUrls` (#1852)
4 years ago
Divyansh Singh 3db532ed09
fix(theme): don't show border on navbar when sidebar is there (#1845)
4 years ago
Kia King Ishii c35a1f0fae
feat(theme): enable multi level sidebar nesting (#1360) (#1835)
4 years ago
Divyansh Singh 0f145cb3c6
fix: check document instead of window to detect browser (#1833)
4 years ago
Em Zhan 1553dbce8e
fix(router): avoid duplicate history entries (#1827)
4 years ago
Divyansh Singh 5d2fc3f922
feat(theme): allow removing badge text from outline (#1825)
4 years ago
Kia Ishii 39294e0a4e fix(theme): nav bg not being applied on some viewport
4 years ago
Kia Ishii bd36224b45 fix(theme): sidebar scrollbar is cropped by nav bar
4 years ago
CHOYSEN 48f0b01569
fix(theme): adjust the position of the curtain to avoid block sidebar (#1816)
4 years ago
Kia King Ishii 5c2eb1b3b0 fix(theme): spacing between aside sponsors and ads section is missing
4 years ago
Divyansh Singh 8de2f4499d
feat: add i18n feature (#1339)
4 years ago
Kia King Ishii 471f00a68d
feat(theme): refine overall styles (#1049) (#1790)
4 years ago
MarkusKeck 4314b57959
fix(theme): prevent vertical scrollbar on code group tabs (#1793) (#1805)
4 years ago
qiang 09c2c52d6c
feat: support for teleports to body (#1642)
4 years ago
sugar 48a42c19b1
fix(theme): wrap long words in `li` (#1782)
4 years ago
CHOYSEN 167a474cb8
fix(theme): add cursor for summary of custom block details (#1774)
4 years ago
Divyansh Singh 2a80fbd14a
fix(build): handle cleanUrls without trailing slash (#1772)
4 years ago
Satrong 0913e0fe69
fix(theme): `activeMatch` support regexp (#1754)
4 years ago
Divyansh Singh 01ac579187
feat: allow `enhanceApp` to return a `Promise` (#1760)
4 years ago
Matteo Bilotta 4ac8c0482f
types: strong separation between `import` and `import type` (#1756)
4 years ago
Divyansh Singh a642ea2526
fix(theme): adjust styles for diff indicator in code blocks (#1755)
4 years ago
Divyansh Singh 565ae711b9
fix(theme): adjust styles for copied button (#1751)
4 years ago
Divyansh Singh f6c5e1f098
fix(theme): prevent layout shift on carbon ads
4 years ago
Eduardo San Martin Morote 8db20fe022
fix(theme): refresh ads per page navigation (#1734)
4 years ago
Joaquín Sánchez 9df598f36e
feat(theme): allow adding images as icons in features section (#1738)
4 years ago
Gurkiran Singh e72998b68b
feat(theme): add `home-hero-image` slot (#1528)
4 years ago
Urata Daiki 257f9e68e9
perf(a11y): make menu traversable only when it is open (#1491)
4 years ago
Divyansh Singh 7a737845e5
feat(theme): add mastodon icon (#1736)
4 years ago
Igor Randjelovic 195d867ee9
fix: handle cleanUrls with subfolders when using a trailing slash (#1575)
4 years ago
Sam Estep ae21a3a622
feat(build): provide a `pathname://` protocol to escape SPA (#1719)
4 years ago
Divyansh Singh 1ebde6623e
fix(theme): remove experimental fonts (#1710)
4 years ago
Rami Yushuvaev 505a4f8eee
feat(theme): headings anchor should not be selectable (#1701)
4 years ago
Divyansh Singh a684b67ec0
feat: add code-group feature (#728) (#1560)
4 years ago
Giedo Donkers 4f0194f1dc
fix(theme): move background colors to theme-default style (#1347)
4 years ago
Shigma 8a488deac1
fix(theme): default to vertical align top on badges inside headings (#1584)
4 years ago
Divyansh Singh f4d5417930 fix(theme): ignore removed diff lines while copying code
4 years ago
Divyansh Singh cc91d555b5
fix(theme): typo in attribute name (#1597)
4 years ago
Marshall Thompson d410d4dd9f
feat(theme): sidebar nav slots (#1582)
4 years ago
Joaquín Sánchez 9d10b1d5a1
feat(theme): use v-html in VPDocFooter (#1580)
4 years ago
Divyansh Singh 124158e3a9
fix(theme): use faux italics only with web fonts (#1581)
4 years ago
jimmyxuexue 84b4abc5fa
feat(theme): add link feature in homepage features (#984) (#1404)
4 years ago
Sascha ac8619f841
feat(theme): add built-in global component `Badge` (#1239)
4 years ago
Q.Ben Zheng f36cd0d626
fix: remove shell code copy trailing newline (#1561)
4 years ago
Joaquín Sánchez db1c343dfb
feat(theme): sort multiple sidebars (#1552)
4 years ago
Divyansh Singh 87d6c085d6
fix: prevent overlay getting hidden behind navbar (#1547)
4 years ago
WT a7abf73e43
fix(theme): use stored preference to be the value of `userPreference` (#1543)
4 years ago
Divyansh Singh 63449caf4c
fix(banner): prevent hidden local nav on scroll
4 years ago
Divyansh Singh 028cc2c76e
fix(banner): broken layout on smaller viewports (#1536)
4 years ago
Enzo Innocenzi 04ab0eb6dc
feat: support focus, colored diffs, error highlights in code blocks (#1534)
4 years ago
ylw5 a29a4a62c6
feat(theme): add --vt-layout-top-height to adjust banner (#1521)
4 years ago
Divyansh Singh c9f04e0459
feat(build): add `useWebFonts` option (#1531)
4 years ago
Divyansh Singh d327811fd5
feat: expose isDark (#1525)
4 years ago
Enzo Innocenzi d404753005
feat(theme): allow defining dark as the default theme (#1498)
4 years ago
Divyansh Singh 57116607b8
fix(types): change ComponentOptions to DefineComponent (#1499)
4 years ago
josef 946c579f2b
feat(theme): support html strings for SidebarGroup headings, SidebarItem text (#1489)
4 years ago
Divyansh Singh 1de0069a53
fix(build): better align server and client side filename sanitization (#1488)
4 years ago
Divyansh Singh ead9b8c6f6
Revert "fix(build): better align server and client side filename sanitization" (#1484)
4 years ago
Divyansh Singh d38bf016af chore: adjust styles
4 years ago
Kevin Zuniga Cuellar 962065a46e
fix(theme): match switch background transition with page transition (#1479)
4 years ago
WT 3daabdc480
fix(theme): prevent body scrolling when sidebar has opened on small screens (#1391)
4 years ago
Urata Daiki 55688a87e3
feat(theme): allow specifying common alt for logo (#1451)
4 years ago
Divyansh Singh 41a519cc77 fix(build): remove leading underscore from chunks
4 years ago
Divyansh Singh 3fd20fedb8 fix(build): better align server and client side filename sanitization
4 years ago
yuhengshen 54cf6ce51f
fix(router): don't intercept download links (#1452)
4 years ago
Divyansh Singh 067e1a9743
fix(theme): disable transitions on theme toggle (#1447)
4 years ago
zz c5f309d0e9
chore(theme): remove useless style (#1440)
4 years ago
talkor 95e4f2acc9
fix(theme): make text prop of VPHero optional (#1445)
4 years ago
Divyansh Singh 2f23eb96ef
chore: update deps (#1410)
4 years ago
Andreas Deininger 1793b87163
docs: fix typos (#1408)
4 years ago
Divyansh Singh 2114d1326a
fix(theme): break long words on overflow (#1405)
4 years ago
Divyansh Singh 9d70ca56f1
revert: #1064
4 years ago
烽宁 6cb79bbe6a
fix(theme): remove extra space before docsearch key (#1396)
4 years ago
CHOYSEN ed37b9a0e0
fix(theme): add cursor for collapsible sidebar title (#1397)
4 years ago
Gurkiran Singh a621c6910c
fix(theme): always add alt attribute to images (#1348)
4 years ago
Divyansh Singh f1cf1e800f
fix(theme): remove trailing `#` from outline (#1344)
4 years ago
meedfine 4482c5019d
fix(theme): hide extra navbar when no content (#1338)
4 years ago
Divyansh Singh 5378a49613
revert(#1264): add page load progress bar (#1311)
4 years ago
Volker E d7eac980e1
fix(theme): use pointer cursor only on enabled buttons (#1300)
4 years ago
Divyansh Singh 6fac5b2964
fix(theme): use pointer-events auto instead of all (#1290)
4 years ago
gyhyfj 9c739fd37d
fix(theme): break long words (#1064)
4 years ago
Divyansh Singh 288aa48b92
feat(theme): support dynamic headers and nesting in outline (#1281)
4 years ago
Loyalsoldier 8d6a20d665
style(theme): refine font-family (#1162)
4 years ago
Divyansh Singh f840dbc58f
fix(theme): don't nest sidebar links (#1279)
4 years ago
Divyansh Singh 496bd34ff4
fix(theme): show progress bar after delay (#1278)
4 years ago
Divyansh Singh ee37eaa271
fix(types): allow non async `transformHtml` and `buildEnd` (#1270)
4 years ago
Divyansh Singh 8f630339ba
feat(theme): allow disabling whole layout (#1268)
4 years ago
wxsm ecf5515bd4
feat(theme): add page load progress bar (#1264)
4 years ago
Divyansh Singh 7e1d1ff8b9 chore: remove ts-ignore
4 years ago
Percy Ma eb9026d83c
perf(a11y): add aria-checked attribute to switch (#644)
4 years ago
Divyansh Singh 9a6e1ea401
feat: add `vp-raw` container (#1104)
4 years ago
灵谦 86413e6739
fix: prevent jumping on clicking docsearch action buttons (#1140)
4 years ago
Divyansh Singh 43c89d66c0 chore: fix typo
4 years ago
CHOYSEN bb11d0f178
fix(theme): keep display copied hint when click multiple times (#1262)
4 years ago
Evan You b5bd73f630 feat: use global delegation for copy code interaction
4 years ago
meteorlxy 71358ebce7
refactor: externalize markdown headers plugin (#1230)
4 years ago
Evan You 5fb794864b fix: avoid circular deps when extending default theme + importing feature components
4 years ago
Anton Reshetov e0932ce5f4
fix(theme): fix typo in carbon ads components (#1192)
4 years ago
Divyansh Singh da2f8d28a6
fix(theme): show footer message/copyright only if present (#1191)
4 years ago
Divyansh Singh 3714ea3463
fix(theme): show outline even without sidebar (#1189)
4 years ago
Divyansh Singh 0048e2bf1e
feat(build): switch to vite 3, support clean urls and esm mode (#856)
4 years ago
Divyansh Singh b36656a925
fix(theme): set pointer events all on VPNavScreen (#1182)
4 years ago
botue f6d6c62117
fix(theme): remove extra padding in code blocks with line numbers
4 years ago
Divyansh Singh 2c89afb7dd
fix(theme): restore styles for code blocks (#1170)
4 years ago
Curt Grimes 44953dcd1e
fix(theme): don't let navbar obstruct clicks to top part of scrollbar (#1168)
4 years ago
Divyansh Singh 4e4a21a0ee
test: fix failing test suite (#1166)
4 years ago
Roman Ondráček 4a6eda4870
fix(theme): fix custom NotFound component rendering (#1163)
4 years ago
Jinjiang e8cb73e065
refactor(build): replace the line highlighting logic with Shiki lineOptions (#1152)
4 years ago
Divyansh Singh 70da5f275b
fix(theme): hide doc footer if empty (#1126)
4 years ago
Divyansh Singh 55971659a5
fix: use `router.go` if search string is not same (#1109)
4 years ago
Charles7c 60c515c125
feat(theme): add `doc-footer-before` slot (#1050) (#1052)
4 years ago
ian f4f1a6ccd6
feat(theme): auto open collapsed sidebar on entering (#1094)
4 years ago
Divyansh Singh 63584c2812
fix: remove duplicate router logic (#1087)
4 years ago
Azat S fb9cee95b9
perf(a11y): change copy code span to button (#1056)
4 years ago
Divyansh Singh f789932ffc
feat(build): improve code blocks and snippets (#875)
4 years ago
YiZhi d1a2c76f33
feat(theme): support multi-level sidebar (#851)
4 years ago
Divyansh Singh 74e4950c1b
feat: allow adding custom social icons as inline svg (#738) (#953)
4 years ago
Divyansh Singh ad9af83278
feat: allow html in footer (#1034)
4 years ago
George Pogosyan 4b38736adf
fix(theme): typo in color name (#1020)
4 years ago
Li Kui 8a46413d6f
fix(theme): navbar menu may exceed the screen (#988) (#989)
4 years ago
Divyansh Singh 082694470a
fix: don't change url hash while scrolling (#991)
4 years ago
Divyansh Singh d65667b8d4
fix(theme): prevent docsearch button key from changing (#986)
4 years ago
Joaquín Sánchez 69ef2998c3
feat(theme): support hiding aside component from frontmatter (#980)
4 years ago
Divyansh Singh e4c60ab3c8
fix: remove explicit noopener from external links (#871)
4 years ago
Divyansh Singh f7e9cfeb3a
fix: de-duplicate head tags while merging (#975) (#976)
4 years ago
云游君 65ec9d740b
chore: remove repeated css property (#974)
4 years ago
fi3ework 98e45af127
fix: can't detect that the page has scrolled to the bottom (#956) (#970)
4 years ago
Divyansh Singh 7a9e4d9ee0
fix: line highlighting in custom code block (#959) (#969)
4 years ago
Kaz d91f3b1b7d
fix(theme): tweak styles of nav title (#962) (#968)
4 years ago
Divyansh Singh 30249dc2c3 fix: regression caused by #887
4 years ago
Divyansh Singh 22006e8d6e
fix: decode href before using as query selector (#951)
4 years ago
Divyansh Singh 1e9a7ac6c4
fix: treat all URI schemes as external (#945) (#946)
4 years ago
Sacha STAFYNIAK 0f0453c675
feat(theme): add navigation slots (#739) (#741)
4 years ago
ML 481a6e9cbd
chore: fix typo (#924)
4 years ago
Divyansh Singh bed68f1341
fix: normalize link in VPButton (#919)
4 years ago
Divyansh Singh 836a24683a
feat(theme): custom prev/next labels and text (#897)
4 years ago
灵谦 fcd7642924
fix(theme): close menu on route change (#887)
4 years ago
rainkolwa 25a835f0f4
fix(theme): make last updated time reactive (#879)
4 years ago
Joaquín Sánchez e33955e769
fix(theme): change sponsor link class name to bypass adblock (#866) (#867)
4 years ago
rainkolwa 00fe8092d9
feat(theme): add option to customize search button text (#713) (#747)
4 years ago
Kia King Ishii 2bd960d5f5 fix(theme): home image style is broken for big view port
4 years ago
Kia King Ishii 7cfe0f05ab
feat(theme): add team page feature (#828)
4 years ago
翠 / green 8cbe0f9d41
chore: handle undefined hmr (#831)
4 years ago
Alex fdb5720acd
feat(theme): add active status to nav menu group (#820)
4 years ago
Divyansh Singh 42cbd31327
fix(theme): don't show sidebar on home layout (#825) (#829)
4 years ago
吕鹿鸣 9bc43306a1
fix(theme): edit link gets hidden when a page don't have siblings (#751)
4 years ago
Divyansh Singh 75c9d809d2
fix(theme): nav close icon not working correctly (#744)
4 years ago
Divyansh Singh 1f1e298864
feat(theme): add global layout slots (#760) (#812)
4 years ago
Divyansh Singh 773769926b
fix(theme): watch for changes in props.collapsed (#809) (#811)
4 years ago
Divyansh Singh 107724ac6f
fix(types): use `import type` for `DefaultTheme` (#804)
4 years ago
Anthony Fu 42813ce936
feat(theme): support themeable images for logo and hero (#745)
4 years ago
Divyansh Singh fa00c83af4
fix(theme): add italic fonts (#759) (#777)
4 years ago
Linmj 2935ed2295
fix: copy code in non-secure contexts (#792)
4 years ago
meteorlxy 48fae52d17
refactor: improve site data parsing (#780)
4 years ago
Kia King Ishii e312f0fc93 refactor: refine global layout system
4 years ago
Kia Ishii 1942418f95 fix: remove title bg transition to avoid flush on sidebar on/off
4 years ago
Percy Ma 9c2a36f542
feat: add doc before and after slot (#762) (#786)
4 years ago
meteorlxy 753f35bf7c
refactor: improve page data parsing (#778)
4 years ago
meteorlxy 6174362c53
refactor: handle page data hmr in the same file (#779)
4 years ago
Divyansh Singh 23276bae05
feat: emit 404.html on build (#729) (#740)
4 years ago
Divyansh Singh 919d23079b
fix(a11y): use h1 for title in hero instead of p (#776)
4 years ago
Ivan Demchuk b1ff725611
fix: use h2 for feature headers (#774)
4 years ago
Anthony Fu 94704c9563
fix(hero): use `pre-wrap` for text and tagline (#746)
4 years ago
CHOYSEN 8bf4182453
refactor: add `PageDataPayload` type (#742)
4 years ago
meteorlxy 421f641a76
feat: setup devtools and remove debug component (#721)
4 years ago
Sacha STAFYNIAK aa65cb58f5
fix: double base in sidebar links (#756)
4 years ago
Anthony Fu 81dfe36021 chore: enable `jsx` for volar
4 years ago
Percy Ma 64c3654b4b
fix: sidebar right blur notch (#712)
4 years ago
Divyansh Singh 535e176b9a
feat: allow custom edit links (#698)
4 years ago
Kia Ishii cf99dccfc4 refactor: adjust sidebar item line height
4 years ago
Kia Ishii b31fbf3621 feat: add `lastUpdated` option to frontmatter
4 years ago
Anthony Fu 92659a2e9d
feat: support custom content in home layout (#702)
4 years ago
Divyansh Singh 9c0ed9397f
fix: page layout breaks when page name matches the css class name (#696) (#699)
4 years ago
Divyansh Singh 305bcc02e6
fix: add background color in navbar to avoid contrast issues (#695)
4 years ago
Divyansh Singh a8a16237cd
feat: allow custom outline title (#689) (#690)
4 years ago
Divyansh Singh ce17f5035c
feat: allow external links in sidebar (#205) (#686)
4 years ago
Divyansh Singh 1fe5153f47
fix(style): typo (#708) (#716)
4 years ago
Divyansh Singh 8e5015462c
fix: use base in links (#717) (#718)
4 years ago
Kia King Ishii 08fe3488ba refactor: adjust small styling
4 years ago
Kia King Ishii 756139604c refactor: tiny adjustments
4 years ago
Kia King Ishii 4716a49c2e fix: search icon size on mac changes after opening search dialog
4 years ago
Kia King Ishii 9ac467c7b6 fix: local nav gets crashed on certain view point
4 years ago
Kia King Ishii de765296ef fix: code block missing right padding on x-scroll
4 years ago
Kia King Ishii 2332968e0f refactor: finally make local nav item align perfectly
4 years ago
Kia King Ishii afa29996a0 refactor: align local nav text perfectly
4 years ago
Divyansh Singh 477cc07265 fix: remove extra space inside code blocks
4 years ago
Divyansh Singh b447f16fc7 chore: typo
4 years ago
Kia Ishii 96f84bf690 fix: nav menu with group not styled correctly
4 years ago
Divyansh Singh 0d9dfe0d94
fix: `router.path` not consistent across envs (#446) (#684)
4 years ago
Percy Ma f64f83df02
feat: add `LastUpdated` support (#668) (#669) (#683)
4 years ago
Anthony Fu 41247fcfa0
feat: support dark/light color themes (#682)
4 years ago
Percy Ma 5f0d9153a3
feat: add option to hide nav title (#637) (#677)
4 years ago
Percy Ma 1db3730a48
fix: nav menu link don't show active status (#680)
4 years ago
Kia King Ishii 8f7b11f216 feat: adjust how we pass image to home hero
4 years ago
Kia King Ishii 9674dc4db4 feat: stick aside ads to the page bottom
4 years ago
Kia King Ishii 1aeebecbcf feat: add image feature to home hero
4 years ago
Kia King Ishii aa2289e488 feat: add mini sponsor component (#648)
4 years ago
Kia King Ishii 12e1a12d1e feat: a final touch to the nab menu link
4 years ago
Kia King Ishii 0cacee70d0 types: fix theme typings
4 years ago
Kia King Ishii 53bf845463 feat: adjust styles mainly nav
4 years ago
Kia King Ishii 4dde99619e fix: table even row style is not nice
4 years ago
Kia King Ishii 4ff82b410f style: format code
4 years ago
Kia King Ishii dbb5777289 chore: adjust line height of custom container
4 years ago
Anthony Fu a0f81c9f9d
feat: migrate to ESM (#645) (#659)
4 years ago
Kia Ishii bae47f7082 fix: sidebar group width not alined when scroll bar is visible
4 years ago
Kia King Ishii 99246762c6 fix: sidebar collapsible problem once more
4 years ago
Kia King Ishii 751bc0b478 fix: sidebar group is collapsible even when option is not set
4 years ago
Kia King Ishii 3f49fd67ab fix: nav menu layout shift with/without sidebar
4 years ago
Divyansh Singh e32936b6ae
feat: add collapsible option to sidebar (#640) (#663)
4 years ago
Divyansh Singh 6028cacb81
feat: add copy code element (#473) (#658)
4 years ago
Kia King Ishii 607c3d33f3 chore: adjust carbon ads spacing
4 years ago
Ryo_gk 1fcf4a4462
feat: use shiki instead of prismjs for syntax highlight (#627) (#654)
4 years ago
Kia Ishii 8bc14e6366 fix: doc aside style (#655) (#656)
4 years ago
Kia Ishii ff7af544c6 feat: adjust style for home features box and inline code link
4 years ago
Kia Ishii bc44dc2b32 feat: adjust custom box brightness
4 years ago
Kia Ishii 049c1e7a0a fix: nav background not being blurred on Firefox (#652)
4 years ago
Kia Ishii 02e9cb5e71 feat: adjust carbon ads styling
4 years ago
Kia Ishii 98443d4eee feat: refine overall layout styling
4 years ago
Kia Ishii 562e345f07 feat: adjust sidebar font size and spacing
4 years ago
Kia Ishii d9decd9412 fix: button hover style in dark mode not working
4 years ago
Kia Ishii 27f840ae04 feat: adjust code font color just a bit
4 years ago
Kia King Ishii ddc9e4b0d9 docs: add more docs
4 years ago
Kia King Ishii bffc58c735 refactor: clean up css variable
4 years ago
Kia King Ishii c1ee195469 feat: style 404 page (#649)
4 years ago
Kia King Ishii 36a67bd67d feat: add carbon ads feature (#647)
4 years ago
Kia Ishii ef3e44c5a2 feat: ensure `.html` extension in rendered nav links (#175)
4 years ago
Kia King Ishii b8c76ba47b feat: improve how aside section stick and scrolls
4 years ago
Kia King Ishii 220320bcdb fix: make outline work in 960px view port
4 years ago
Kia King Ishii 70a9fb4b5a fix: global nav background blur not applied in Safari
4 years ago
Kia Ishii 9b7ccee3b6 fix: duplicated import
4 years ago
Percy Ma 1839e9a41a
fix(theme): header blur is incomplete (#639)
4 years ago
Kia King Ishii 0e5f1e4dd5 docs: add many docs
4 years ago
Kia King Ishii 80a82be50f feat: adjust overall layout
4 years ago
Kia King Ishii 190a467a10 fix: inline code not getting proper line break
4 years ago
Kia King Ishii e51d2a8c49 feat: add custom container stylings
4 years ago
Kia King Ishii 68ebd43664 fix: doc page layout on mobile is broken
4 years ago
Kia King Ishii 67e77f7871 feat: add option to customize title template
4 years ago
Kia King Ishii 6f037e2688 feat(sponsor): add sponsors component
4 years ago
Joaquín Sánchez 905b4a0142
fix: import and use `VPDoc` instead `VPContentDoc` (#633)
4 years ago
Kia King Ishii 69c44aa607 feat: add layout option and home hero section
4 years ago
Kia Ishii 25296fa852 chore: fix file name capitalization
4 years ago
Kia Ishii 9250460b3f feat: make appearance configurable
4 years ago
Kia Ishii 73bbc6143a feat: new default theme
4 years ago
Joaquín Sánchez 216e12950b
fix: remove 404 from title on initial route (#590)
4 years ago
Evan You 06ad0d8386 refactor 404 page data
5 years ago
Divyansh Singh 28eaa3b04a
fix: reset page data on 404 (#497)
5 years ago
Divyansh Singh 33a59cd029
docs: update links (#523)
5 years ago
Guanghui Cheng ffe0c40ebc
fix(client router): tolerant invalid hash selector typo (#506)
5 years ago
Evan You 1ef69e212f feat: improve default chunk strategy + page hash stability
5 years ago
Evan You 23249483d6 feat: automatically update hash map + retry on failed page fetch
5 years ago
Evan You d32d8d4419 feat: use git-based lastUpdated data
5 years ago
Evan You 388944371d avoid readonly in production
5 years ago
Evan You 17aaaf0180 refactor tsconfig setup + migrate to vitest
5 years ago
Evan You b66785d68a feat: scrollOffset option
5 years ago
云游君 7950e884a5
chore: fix typo (#478) [ci skip]
5 years ago
Eduardo San Martin Morote 444562c3a7
fix: use algolia search lang (#459)
5 years ago
借りられない恋 a3bf52fed5
fix: initial render of 404 pages (#418)
5 years ago
云游君 b104d95993
style: make img center in nav-bar-title (#377)
5 years ago
ULIVZ ba41bb9055
feat: improve typescript support for config file (#465)
5 years ago
Eduardo San Martin Morote 1b245e22d8
feat: upgrade docsearch version (#441)
5 years ago
zhangwenjun 383d8ffbba
fix: invalid active props when `base` option is added (#342)
5 years ago
Anthony Fu efc5e1b256
fix: tolerant invalid hash (#399)
5 years ago
Evan You 5fd7db2b7f fix(theme): fix algolia search filter
5 years ago
Airene Fang 8cbe26ee06
style(theme): <code> need not a inline-bg-color (#385)
5 years ago
Evan You c071f0cb0c chore: remove unused value
5 years ago
sambit sahoo 07bf145190
feat(theme-default): home slot for customizing the entire homepage easily (#314)
5 years ago
Eduardo San Martin Morote 389e863b4d
fix(theme-default/algolia): avoid creating multiple algolia searches (#292)
5 years ago
Evan You 475dee5154 build: pre-bundle, reduce deps
5 years ago
Evan You 4fb387d94e fix: emit prevented hashchange event
5 years ago
Evan You b94c82710a fix(default-theme): use description as tagline by default
5 years ago
Evan You 96bcddabed perf: minor optimizations
5 years ago
箱子 0c1a1f2ef4
fix(css): remove 720px breakpoint in home layout (#347)
5 years ago
CHOYSEN 1e64773933
fix: use useData() instead of $site (#365)
5 years ago
Hazlank 9245226b16
fix(code): code block highlight bug in ul (#352)
5 years ago
Eduardo San Martin Morote 26b5aa931f
feat: upgrade markdown-it-anchor (#350)
5 years ago
Eduardo San Martin Morote bc78adb468
fix(i18n): fix locales reading, add site.langs (#353)
5 years ago
Eduardo San Martin Morote 858c0e77a0
build: rename carbon and buysell chunks (#370)
5 years ago
Evan You 4925fb5c29 feat: info custom container
5 years ago
Eduardo San Martin Morote 4a34b93090 refactor: reuse regexp
5 years ago
Eduardo San Martin Morote 3038829807 refactor: use compiler macros
5 years ago
Sacha STAFYNIAK 9d98dbbe60
fix: override target and rel links attribute in config (#332)
5 years ago
Dirk de Visser cfbba80a0a
fix(edit-link): let frontmatter overwrite global editLink (#340)
5 years ago
hangzou 53bb961a92
fix: skip external URLs in `withBase` (#328)
5 years ago
m4dz e76e6ecd54
fix(nav): display nav if locales are present (#321)
5 years ago
Evan You ce86b51ccf chore: remove logs
5 years ago
Evan You e6bb5a4806 perf: only update necessary head tags in prod
5 years ago
Eduardo San Martin Morote c046905b03 fix(search): correctly detect multilang
5 years ago
Evan You 9b35dfcde4 fix: avoid scroll behavior reliance on .nav-bar class
5 years ago
Evan You 3fed6f94e5 type: support specifying themeConfig type for useData() via generics
5 years ago
Evan You a9d580069f fix: avoid error when theme does not have .nav-bar class
5 years ago
Evan You f52f20e02f fix: avoid resetting head tags on hmr/page switch
5 years ago
Evan You 55de7ab43c refactor: adjust shared utility/types build setup
5 years ago
Evan You 424a4ca379 fix: fix frontmatter sidebarDepth for headers
5 years ago
Evan You a81b9e0ff1 refactor: re-expose $frontmatter global property, make localePath account for base by default
5 years ago
Evan You 76fa1733ff fix: fix vue code block type indication
5 years ago
Evan You 0661063d29 feat: more efficient `useData()` method that exposes all data
5 years ago
Cédric Exbrayat 8988aadbcb
fix: functional templates with vue v3.1 (#312)
5 years ago
heny b940397cd0
fix: chinese filenames can't build (#217) (#262)
5 years ago
dnischeta 9589a5d0e6
fix(theme): set search box min-width for >=751px (#286)
5 years ago
Anthony Fu 6b4a4aa7a6 fix: remove unnecessary 'vite/dynamic-import-polyfill'
5 years ago
Eduardo San Martin Morote 0716ffade7 fix(search): silence warning for prop
5 years ago
Eduardo San Martin Morote de89c1e5eb
fix(locales): use correct lang (#283)
5 years ago
Eduardo San Martin Morote f505db945a
fix(locales): use correct lang (#276)
5 years ago
Jeff Yang f385bc4673
fix(navbar): use css var for background-color (#264)
5 years ago
Eduardo San Martin Morote 8d915245c6
fix(css): reuse css vars (#256)
5 years ago
Eduardo San Martin Morote 9bc5c5c631 style: format code with prettier
6 years ago
Igor Randjelovic f8b4aa5baa
fix: badge for language-javascript (#245)
6 years ago
Evan You 4a40e1faf4 fix(theme-default): avoid ad image distortion on mobile
6 years ago
Kia King Ishii a613df46e8
fix: `base` option not generating correct multi sidebar (#231) (#234)
6 years ago
Kia King Ishii 6538c8e70a
fix: nav home title not having locale based link (#195) (#233)
6 years ago
Kia King Ishii 3b4584377c style: fix some code styles
6 years ago
旧巷馆子 · 沈青川 5678dc3a25
fix: home action link not being reactive (#195) (#212)
6 years ago
Eduardo San Martin Morote 7ceaf344d2
fix: ads display causing layout break in mobile view (#230)
6 years ago
Kia King Ishii 5deaf6a2cd
fix: sidebar 'auto' not working (#178) (#224)
6 years ago
Matias Capeletto 338e8453d8
fix: frontmatter description duplication (#194) (#170)
6 years ago
Evan You 2330023d99 fix: use brand color in algolia search box
6 years ago
Eduardo San Martin Morote 78b026cb7a
fix: avoid layout shift due to ads (#176)
6 years ago
Matias Capeletto 481c4513d7
feat: $lang and $localePath globals (#166) (#167)
6 years ago
Evan You 3e6e61bcea fix: ignore non-html links in router and prefetch
6 years ago
Evan You a0f463af8f fix: aria label id
6 years ago
Evan You ca631c7f51 feat: render content on home page
6 years ago
Evan You a79e1e1916 refactor: move default theme to 'vitepress/theme'
6 years ago
Anthony Fu bac1ce2d01
fix: resolve page hash case-insenstively, close #202 (#203)
6 years ago
Evan You 64a08b35a3 chore: bump vite again
6 years ago
Matias Capeletto b6ba8a943c
fix: scrollbar when using line highlight (#200)
6 years ago
Evan You 6ff76c4ea8 chore: bump vite
6 years ago
Evan You 161e0ea69c types: add vite env
6 years ago
Evan You e262ef63d8 feat(theme-default): nav.item.activeMatch
6 years ago
Evan You 9a17ddfdfb feat: add altAction for home
6 years ago
Evan You 8a2ff33bf8 fix: loosen navLink active matching
6 years ago
Evan You 7e4b16ee52 fix: adjust multi sidebar matching logic
6 years ago
Evan You 4f0c90311f refactor: simplify client path mapping
6 years ago
Evan You 3e85b46727 refactor: improve css treeshaking + avoid layout shift on async components
6 years ago