Commit Graph

583 Commits (829977876a21da4f0af5d27593a2d81eb9af0c33)

Author SHA1 Message Date
Divyansh Singh 0f421d7222 fix(build): nested rewrites not working properly
2 years ago
Divyansh Singh 481a5e3cb5 fix: fix sitemap path resolution
2 years ago
Divyansh Singh 20b509c6e1 feat(client): allow customizing scrollOffset padding
2 years ago
Divyansh Singh b55b529f23
refactor: use stringified `deserializeFunctions` util (#2733)
2 years ago
Divyansh Singh ce85726c12 feat(build): add `markdown.preConfig` option
2 years ago
Divyansh Singh f0d308288c
chore: bump deps (#2724)
2 years ago
Bjorn Lu 3f79f4bb6e
refactor: use rollup type from vite (#2723)
2 years ago
Divyansh Singh 1179484432 feat(client): allow overriding props on Content
2 years ago
Divyansh Singh 17378c064f fix(build): make outDir from cli work properly
2 years ago
Divyansh Singh a56d608bec
revert: #2689 (#2722)
2 years ago
Divyansh Singh 7f0c18e013
feat: allow html blocks inside code groups (#2719)
2 years ago
烽宁 0f38eb4404
fix: `createContentLoader` generates invalid url when `base` is set (#2714)
2 years ago
Divyansh Singh 7778187f2d
feat: i18n with sitemap (#2708)
2 years ago
烽宁 6fc88a5cce
fix: remove index.html when using createContentLoader (#2693)
2 years ago
烽宁 13f94a6663
feat(build): custom excerpt for `createContentLoader` (#2698)
2 years ago
Divyansh Singh 68f25f5a9c
fix(build): duplicate description tags with transformHead (#2702)
2 years ago
Divyansh Singh 5563695b15
feat: sitemap generation (#2691)
2 years ago
Divyansh Singh b61f36d853
fix(build): use vue dev build when DEBUG is truthy (#2689)
2 years ago
烽宁 74d9ba27b5
fix(build): `createContentLoader` generates invalid url when `srcDir` is set (#2578)
2 years ago
Divyansh Singh fb048a6f72
fix(search): add useFocusTrap and mark.js to optimizeDeps (#2682)
2 years ago
Jérémy Riverain 37d5b273fb
feat(search): allow excluding content from search results (#2602)
2 years ago
烽宁 94e2966bab
feat(build): support overriding meta viewport tag (#2642)
2 years ago
Divyansh Singh ec6bfbd5a3 revert(#2622): to fix hmr
2 years ago
Divyansh Singh 08c4bacac5
fix(compat): disable stdin-discarder (#2640)
2 years ago
Divyansh Singh 700fad192e
feat(build): add `metaChunk` option to extract metadata to separate chunk (#2626)
2 years ago
烽宁 64d7c3ba54
feat(build): support custom `assetsDir` (#2497)
2 years ago
Divyansh Singh 2c25855986
fix(build): use vue dev build when DEBUG is truthy (#2622)
2 years ago
Divyansh Singh e02adfe3ea
fix(build): remove `=""` from boolean attributes in head (#2620)
2 years ago
烽宁 9949f00461
fix(build): cannot handle file name containing single quote (#2615)
2 years ago
Divyansh Singh 47bf5bf991
fix(lastUpdated): use author date instead of commit date (#2618)
2 years ago
烽宁 9fee5542cb
feat(search): support `minisearch` customization (#2576)
2 years ago
Divyansh Singh e8074e60ec fix(build): resolve nested md inclusions properly
2 years ago
Divyansh Singh f60b32f02f
fix(hmr): allow disabling md cache during dev (#2581)
2 years ago
烽宁 d5ccc52048
refactor: optimize snippet markdown plugin code (#2580)
2 years ago
Divyansh Singh 32d65d40c5
perf: fix race conditions with cache (#2579)
2 years ago
Mateu Llull 24abc7c6bd
feat(theme): allow customizing last updated date time format options (#2332)
2 years ago
烽宁 1ef33fe1c4
feat: support selecting line range when importing md file (#2502)
2 years ago
Jeff Tian 0c4210bb5e
feat(build): support nested markdown includes (#2545)
2 years ago
Divyansh Singh b2a129f49b
fix(build): add `@vue/devtools-api` to `optimizeDeps.include` (#2543)
2 years ago
Divyansh Singh cd03db803d
revert!: sync defineConfig types with vite (#2529)
2 years ago
Divyansh Singh 69b2625623
fix(build): disable validation for rewrite compiling
3 years ago
Divyansh Singh f831767764 feat(build): allow using regex in rewrites
3 years ago
烽宁 b9eafac1d6
refactor: rename variable name and simplify some code (#2504)
3 years ago
Divyansh Singh bfc85805de chore(types): sync `ServerOptions` with vite
3 years ago
Divyansh Singh b3ded34d8a fix(types): sync defineConfig types with vite
3 years ago
JiZhi c9a98ac6bb
fix(build): create markdown env for localSearchPlugin (#2322)
3 years ago
CHOYSEN 90478b36cd
feat(build): support relative path for code snippet (#1894)
3 years ago
Divyansh Singh 2f75769985
fix(build): use rimraf to handle temp folder deletion in windows (#2483)
3 years ago
zonemeen 199f392b58 refactor: simplify the import path
3 years ago
Alex 64b06db3ec
feat(cli): add shortcut for restarting server (#2403)
3 years ago
Divyansh Singh 93f8a05ad2
chore: use graceful-fs and bump deps (#2429)
3 years ago
烽宁 6d7d195adc
perf: parallelize mpa chunks copy (#2389)
3 years ago
烽宁 8153f23c90
fix(config): set scrollOffset to 0 is not effect (#2395)
3 years ago
三咲智子 Kevin Deng 97065cefc2
feat(cli): add shortcuts (#2353)
3 years ago
烽宁 b31933fbdd
fix(build): uniform handling of windows slash in localSearchPlugin (#2358)
3 years ago
烽宁 f4cd0aeb69
refactor: resolve duplicate function definitions (#2350)
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
Divyansh Singh 64ecedc73f fix(cli/init): remove trailing slash from npm scripts
3 years ago
Joaquín Sánchez a3b38d1882
feat(build): allow using `@` prefix with `@include:` (#2292)
3 years ago
Divyansh Singh ae041448aa refactor: improve error message on encountering dead links
3 years ago
Divyansh Singh 188893c2c1 fix(build): reset regex lastIndex before testing
3 years ago
Joaquín Sánchez a647cd3843
feat: preserve user log level (#2310)
3 years ago
烽宁 494c634eb1
fix(theme): local search get 404 on build when use route rewrites in windows (#2301)
3 years ago
Divyansh Singh 84cf45772e fix(build): allow data-loaders files in packages to be found (closes #2272)
3 years ago
btea 87d309c088
refactor: resolve circular dependency (#2283)
3 years ago
烽宁 8354f8fb86
fix(theme): local search showDetailedList not working in windows (#2248)
3 years ago
Divyansh Singh e37e5cb45a fix(search): ready event is not fired on mac
3 years ago
Divyansh Singh 3e0e9d2b27 fix(search): don't directly access userConfig
3 years ago
Divyansh Singh b1c956ce99 fix(search): properly group nested headings
3 years ago
Divyansh Singh 19ce8e5dd6 chore: bump deps
3 years ago
Divyansh Singh 9e04b43567 fix(search): remove extra /index from routes
3 years ago
ChuHoMan 7dfe9d2d43
refactor: directly use site.base instead of userConfig.base (#2223)
3 years ago
Divyansh Singh 25a1fe90bd fix(search): avoid double base
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
Guillaume Chau 6c92675e33
feat: offline search (#2110)
3 years ago
Divyansh Singh a681fd11e3
fix(build): remove extra line at end of code blocks (#2191)
3 years ago
John Campion Jr 3714741b40 feat(build): provide `siteConfig` in `transformPageData` context (#2163)
3 years ago
Christian Georgi 4c23003189
fix(build): make `lastUpdated` work with git submodules (#2149)
3 years ago
Anthony Fu 3235c23313
feat: more flexible `ignoreDeadLinks` (#2135)
3 years ago
Christian Georgi 3553f015a9
fix: make md includes work with rewrites (#1898)
3 years ago
徐聪 a78d3a83b9
chore: fix typo (#2125)
3 years ago
Divyansh Singh 7678a89358
revert: 456099a
3 years ago
Alois Klink ac953ce8bd
fix(build): skip warning for `txt` language (#2109)
3 years ago
Divyansh Singh 456099a527
test: restore tests for init command
3 years ago
Evan You 86e2a6f972 feat: support multiple selectors for scrollOffset
3 years ago
Evan You 24735dbcde perf(theme): preload font
3 years ago
Evan You 32dfaf5adc fix(types): allow void return in transformHead hook
3 years ago
Evan You 2bf8df4bae BREAKING CHANGE: markdown.headers is now disabled by default
3 years ago
Evan You 468c049ccd feat: expose page and assets on build hooks TransformContext
3 years ago
Alija Sabic 3355fcc1df Provide accessible markdown-it-anchor configuration using ZeroWidthSpace (HTML Entity) and custom renderAttrs
3 years ago
Alija Sabic 9a315d8855 Revert "Provide accessible markdown-it-anchor configuration"
3 years ago
Alija Sabic 86259682c8 Provide accessible markdown-it-anchor configuration
3 years ago
Evan You 3b6a6d1abd feat(theme): a11y improvements
3 years ago
Evan You 2f26693a1d fix: do not include head tags in inlined site data
3 years ago
Evan You 470ce3d3f3 fix: gracefully handle config update with syntax error
3 years ago
Evan You d64a76eb36 perf: kickoff main chunk fetch earlier in browsers without modulepreload support
3 years ago
Evan You 22ace7b075 perf: inline site data on page
3 years ago
Evan You bed202dbcc fix: fix chunking logic that causes breakage
3 years ago
Evan You d2838e3755 feat: createContentLoader
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
Evan You 9bd940f22c fix: remove @vue/devtools from force include
3 years ago
Evan You 9708510cbd fix: fix line higlighting for empty lines
3 years ago
Evan You 6ce88da3ba fix: fix rewrites with non ascii chars
3 years ago
Evan You e05a3f2b5a fix: fix same page hash links with encoded chars
3 years ago
Evan You 868a9ff81e feat: allow disabling markdown.headers
3 years ago
Evan You 63f33d2895 fix: respect user vue alias
3 years ago
Evan You f6cb4c0d44 perf: improve default theme chunking
3 years ago
Divyansh Singh 8b5181446d chore: bump deps
3 years ago
CHOYSEN bed31d0c21
refactor: only compile rewrite rules once (#2018)
3 years ago
Evan You 76097048f3 feat: export loadEnv from vite
3 years ago
Evan You 4673bb1879 feat(data-loader): defineLoader() type helper
3 years ago
Evan You e29b6a051e feat(data-loader): pass watched files into load()
3 years ago
Evan You 580a8e1a55 fix: extract all headers by default
3 years ago
Evan You 0c0b6cc5a3 fix: avoid deprecation warning when using --force
3 years ago
Evan You 22047f3363 fix: respect command line minify and outDir options
3 years ago
Evan You 49bcc254dc docs: rewrite getting started + init tips
3 years ago
Evan You 38bbdaddb7
feat: vitepress init command (#2020)
3 years ago
Evan You 8e8fcd9caa fix: normalize all paths in config
3 years ago
Evan You 8c9833ceba test: fix dynamic routes test for build
3 years ago
Evan You c5f37188a1 warn missing paths export
3 years ago
Evan You ef6ae56c95 feat: cache dynamic path loaders
3 years ago
Evan You b075ee5be6 fix: dyamic routes w/ srcDir + relative imports
3 years ago
Evan You 24fa862c39 feat: dynamic routes
3 years ago
Evan You 5913ebc34f fix: hmr on deps change of data loaders
3 years ago
Evan You bccce98c62 fix: update route configs on file add / delete
3 years ago
Evan You 34b149ba25 wip: rewrites for dynamic routes
3 years ago
Evan You 24507105b1 fix: disable fuzzy link recognition by default
3 years ago
Evan You 80fb3b0e98 wip: prod build for dynamic routes
3 years ago
Evan You d6952f37b7 wip: hmr for dynamic routes on add/delete
3 years ago
Evan You 08df389db8 wip: basic hmr for dynamic routes
3 years ago
Evan You 9c4c2117a6 wip: dynamic routes
3 years ago
Juan Martín Seery 5a6d384952
feat(build): add support for custom languages (#1837)
3 years ago
gittig11 fd995906f6
fix(compat): remove use of array.at
3 years ago
Divyansh Singh c4d8d7225c
fix(build): show error stack in logs (#1960)
3 years ago
Divyansh Singh 5c9b75e325
fix(types): augment vite user config (#1946)
3 years ago
Alexey Iskhakov bcb8cbf3c8
fix: custom titles of code snippets inside code groups (#1834)
3 years ago
CHOYSEN a00bb62143
feat(build): use vite logger (#1899)
3 years ago
Juan Martín Seery dcf29419f2
fix(build): prepend base to all internal non-relative links (#1908)
3 years ago
Q.Ben Zheng f9743816a5
feat(shiki): support `ansi` code highlight (#1878)
3 years ago
Divyansh Singh a05956f38a fix(build): hmr with rewrites when base is set
3 years ago
Divyansh Singh 08e07d643d
chore: bump deps (#1853)
3 years ago
Divyansh Singh 5ae4fbde38
feat: stable `cleanUrls` (#1852)
3 years ago
Divyansh Singh 00abac6116
feat(build): support rewrites (#1798)
3 years ago
Divyansh Singh 05430e45c9
feat(build): expose vitepress site config to vite plugins (#1822)
3 years ago
Divyansh Singh fe52fa3420
feat(build): allow ignoring only localhost dead links (#1821)
3 years ago
Divyansh Singh 8de2f4499d
feat: add i18n feature (#1339)
3 years ago
qiang 09c2c52d6c
feat: support for teleports to body (#1642)
3 years ago
Divyansh Singh 99ad162fb7 fix(build): don't warn on blank lang in fences
3 years ago
Clark Cui 1ae0596939
feat(build): don't hard fail on unknown languages in fences (#1750)
3 years ago
Divyansh Singh 3b7ff8d66e
feat(build): support interpolation inside code blocks (#1759)
3 years ago
Matteo Bilotta 4ac8c0482f
types: strong separation between `import` and `import type` (#1756)
3 years ago
0x009922 7de7fff417
fix(build): dedent of a single-line region (#1687)
3 years ago
Divyansh Singh ce9467e389
fix(build): handle `-` in title of code blocks with line highlighting (#1743)
3 years ago
Divyansh Singh c048076370
feat(build): fence-level config for line-numbers (#1733)
3 years ago
Sanjaiyan Parthipan bf1315ace6
perf: preload css to improve loading speed
3 years ago
xinconan f40df31947
feat(build): allow specifying default language for syntax highlighter (#1296)
3 years ago
Sam Estep ae21a3a622
feat(build): provide a `pathname://` protocol to escape SPA (#1719)
3 years ago
Divyansh Singh 135b797cfb
fix(build): fix code groups for line numbers mode (#1700)
3 years ago
Divyansh Singh a684b67ec0
feat: add code-group feature (#728) (#1560)
3 years ago
Shigma f899764bad
feat(build): support `cacheDir` (#1355)
3 years ago
Sam Chen 4c5a892d77
perf(a11y): add aria-hidden to line numbers wrapper (#1675)
3 years ago
Stephen Zhou 0565c38fc1
fix(build): allow importing files having numbers in extension (#1618)
3 years ago
Divyansh Singh 4ba33dac60
feat(build): add preview as an alias for serve in cli (#1651)
3 years ago
Divyansh Singh dc596621cf
fix(build): allow serving files in dev from workspace root (#1647)
3 years ago
Divyansh Singh 8601e1596b
fix(build): explicitly specify asset and entry file names (#1607)
3 years ago
Divyansh Singh ae3ba243b1
tests: refactor (#1587)
3 years ago
Azat S 7955760972
types: improve coverage (#1585)
3 years ago
Divyansh Singh 01719fa58e
revert(#1530): explicitly exit process after build to prevent hangup (#1572)
3 years ago
Divyansh Singh 4b0b1ef35f
fix(build): use addClass from shiki-processor (#1557)
3 years ago
Divyansh Singh 8cd1f7c4aa
fix(build): use default slugify from mdit-vue (#1554)
3 years ago
Divyansh Singh 178895f067
fix: properly apply dark/light classes in code blocks (#1546)
3 years ago
Enzo Innocenzi 04ab0eb6dc
feat: support focus, colored diffs, error highlights in code blocks (#1534)
3 years ago
Divyansh Singh c9f04e0459
feat(build): add `useWebFonts` option (#1531)
3 years ago
YongGit 09fcc46079
fix(build): explicitly exit process after build to prevent hangup (#1530)
3 years ago
Igor Randjelovic afeb06f17c
feat: transformPageData hook (#1492)
3 years ago
Enzo Innocenzi d404753005
feat(theme): allow defining dark as the default theme (#1498)
3 years ago
Divyansh Singh 1de0069a53
fix(build): better align server and client side filename sanitization (#1488)
3 years ago
Divyansh Singh ead9b8c6f6
Revert "fix(build): better align server and client side filename sanitization" (#1484)
3 years ago
Divyansh Singh 3fd20fedb8 fix(build): better align server and client side filename sanitization
3 years ago
Divyansh Singh 18f0fb4e39
revert: "fix(build): remove leading underscore from chunks" (#1471)
3 years ago
Joaquín Sánchez f79bb78bf7
fix(a11y): add title to copy code button (#1437)
3 years ago
Divyansh Singh 2f23eb96ef
chore: update deps (#1410)
3 years ago
Divyansh Singh 66cd1640d1
fix(build): remove leading underscore from chunks (#1394)
3 years ago
Divyansh Singh fa6fa56af9
fix(compat): use default export of dns module (#1388)
3 years ago
Divyansh Singh ce8d139a8e
feat(build): allow using `transformIndexHtml` (#1380)
3 years ago
sun0day 9c04a10c4d
fix(build): line numbers mode when language specifier has symbol (#1353)
3 years ago
Divyansh Singh 0672a696a4
fix(build): properly resolve node_modules (#1337)
3 years ago
Joaquín Sánchez 6b16dad22f
feat: add `transformHead` hook (#1323)
3 years ago
Sanjaiyan Parthipan 8e4ff4de90
perf: render pages asynchronously (#1320)
3 years ago
Joaquín Sánchez 1aa3456125
docs: add `transformHtml` and `buildEnd` hooks (#1317)
3 years ago
Divyansh Singh ee37eaa271
fix(types): allow non async `transformHtml` and `buildEnd` (#1270)
3 years ago
Divyansh Singh 9a6e1ea401
feat: add `vp-raw` container (#1104)
3 years ago
Divyansh Singh 12591a9487
feat: bundle type definitions of dev-deps (#1257)
3 years ago
meteorlxy 45743cb2e3
refactor: remove non-standard markdown-it extensions (#1240)
3 years ago
meteorlxy d700a66e65
feat: support markdown sfc options (#1238)
3 years ago
meteorlxy 19c0f43daa
refactor: use markdown title plugin and remove parseHeader utils (#1235)
3 years ago
meteorlxy 71358ebce7
refactor: externalize markdown headers plugin (#1230)
3 years ago