Commit Graph

612 Commits (a62ea6a832a33b756642b24ad5d38c248e08b554)

Author SHA1 Message Date
烽宁 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)
3 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
meteorlxy bfb0220989
feat(build): support markdown frontmatter options (#1218)
3 years ago
Divyansh Singh 0e14211b60
fix: use junctions in Windows (#1217)
3 years ago
meteorlxy 0664006e92
refactor: migrate markdown toc plugin (#1093) (#1207)
3 years ago
Evan You 8b6aef7844 chore: remove console log
3 years ago
meteorlxy 8a2d4f39e4
refactor: externalize markdown component plugin (#843)
3 years ago
Evan You 04c4d0f01b fix: fix client build entry
3 years ago
Evan You 64462dc985 chore: remove log [ci skip]
3 years ago
Evan You 19ec22cb40 fix: fix static data file support in vite 3
3 years ago
Divyansh Singh 0048e2bf1e
feat(build): switch to vite 3, support clean urls and esm mode (#856)
3 years ago
Evan You 35b7361ca2 fix: support urls with query during dev
3 years ago
Divyansh Singh 120736fec1
chore: make recreateServer optional (#1165)
3 years ago
Jinjiang e8cb73e065
refactor(build): replace the line highlighting logic with Shiki lineOptions (#1152)
3 years ago
Divyansh Singh 93fe8207e7
fix(build): recreate server on config change (#1132)
3 years ago
Divyansh Singh 708c36183a
fix(build): update language regex for line number class (#1108)
3 years ago
CHOYSEN 8e6665bd8d
feat(build): handle change of config file dependencies (#1009)
3 years ago
Divyansh Singh f9d2799be8
refactor: use available DT packages instead of manually defining modules (#1096)
3 years ago
Azat S fb9cee95b9
perf(a11y): change copy code span to button (#1056)
3 years ago
xinconan 867f305886
feat(build): support code highlight in uppercase (#1082)
3 years ago
Divyansh Singh f789932ffc
feat(build): improve code blocks and snippets (#875)
3 years ago
Divyansh Singh 72950337bc
fix: don't add base to external urls while preloading (#1045)
3 years ago
Divyansh Singh 2b4b800618
feat: provide `transformHtml` hook (#1022)
3 years ago
Luka Skugor f6d5697ed7
fix(build): strip custom anchor with capital letters in outline (#1005)
3 years ago
Azat S d5ed66c6d2
feat: allow using custom syntax highlighting themes (#992)
3 years ago
Divyansh Singh e4c60ab3c8
fix: remove explicit noopener from external links (#871)
3 years ago
Divyansh Singh f7e9cfeb3a
fix: de-duplicate head tags while merging (#975) (#976)
3 years ago
Divyansh Singh 0257ea88dc
fix: layout inconsistencies and remove sidebar from 404 page (#964)
3 years ago
Joaquín Sánchez e0b730aa8e
feat: provide build end hook (#709)
3 years ago
fi3ework 1daeaa16a0
fix(build): cache key should consider file path (#948)
3 years ago
Divyansh Singh bb41a9fed7
fix: decode image src so that rollup can process it (#933)
3 years ago
Eulier González 95a74e58a4
docs: add including markdown content to guide (#938)
3 years ago
meteorlxy e7960f4b6b
refactor: reuse original markdown-it renderer rule (#932)
3 years ago
CHOYSEN 4b9b385aff
refactor: simplify config loading (#918)
3 years ago
meteorlxy 9d9db6227d
fix(build): handle vite constants replacement (#419) (#888)
3 years ago
JounQin 29d44e7a22
fix(build): show workaround on encountering dead links (#822) (#868)
4 years ago
Divyansh Singh 19b0758a04
feat(build): allow ignoring dead links (#586) (#793)
4 years ago
Enzo Notario ddf876d8e9
feat(build): allow using custom highlighter (#754) (#857)
4 years ago
Divyansh Singh 378f9b4695 chore: format
4 years ago
JounQin 295263807d
feat(build): allow setting base from command line
4 years ago
Shinigami 75ca9e4302
fix(theme): copy button has wrong tag closing syntax (#816)
4 years ago
CHOYSEN 35772ca8d0
refactor(types): use built-in utility type `Awaited` (#801)
4 years ago
meteorlxy 48fae52d17
refactor: improve site data parsing (#780)
4 years ago
meteorlxy 753f35bf7c
refactor: improve page data parsing (#778)
4 years ago
Divyansh Singh c5c3c64851
fix: title in containers not working with markdown content (#765) (#768)
4 years ago
Divyansh Singh 23276bae05
feat: emit 404.html on build (#729) (#740)
4 years ago
artiely 521601d20b
chore: typo (#783)
4 years ago
CHOYSEN 8bf4182453
refactor: add `PageDataPayload` type (#742)
4 years ago
Divyansh Singh 0ac7ac1a6e
chore: remove unnecessary head tags (#725)
4 years ago
Divyansh Singh 59df10590b
fix: allow lang='ts' on scripts in markdown (#693) (#701)
4 years ago
Divyansh Singh 78a2e84e7b
fix: add default value for base in `createMarkdownRenderer` (#555) (#556)
4 years ago
Brad Veryard 3a07048533
fix: missing alt attribute on images even if provided (#679) (#685)
4 years ago
Anthony Fu 41247fcfa0
feat: support dark/light color themes (#682)
4 years ago
Divyansh Singh 4fd2fad1fa
fix: explicitly set component name (#657) (#681)
4 years ago
Divyansh Singh ae7c255aea
fix: toc cause error when used with heading (#605) (#674)
4 years ago
Divyansh Singh d93b477c76
fix: convert paths in dynamic imports to file urls (#671) (#673)
4 years ago
Kia King Ishii b853910c32 style: format
4 years ago
Divyansh Singh d0fdda6904
fix: more than 4 indented html tags cause error (#638) (#665)
4 years ago
Divyansh Singh b79c66d79c
feat: allow disabling `markdown-it-attrs` (#662) (#664)
4 years ago
Anthony Fu a0f81c9f9d
feat: migrate to ESM (#645) (#659)
4 years ago
Divyansh Singh 7d89b61b92
fix: switch to `markdown-it-toc-done-right` (#388) (#660)
4 years ago
Divyansh Singh 6028cacb81
feat: add copy code element (#473) (#658)
4 years ago
Ryo_gk 1fcf4a4462
feat: use shiki instead of prismjs for syntax highlight (#627) (#654)
4 years ago
Kia King Ishii 36a67bd67d feat: add carbon ads feature (#647)
4 years ago
Kia King Ishii e51d2a8c49 feat: add custom container stylings
4 years ago
Kia King Ishii 67e77f7871 feat: add option to customize title template
4 years ago
Kia Ishii 9250460b3f feat: make appearance configurable
4 years ago
Dominic Elm 1656f0365a
fix(plugin): set content-type header for serving index.html (#616)
4 years ago
Divyansh Singh 33a59cd029
docs: update links (#523)
4 years ago
Fabian Winkler 779b78902f
fix: avoid minimizing non-javascript inline scripts (#517)
4 years ago
Divyansh Singh 9270477fa5
fix: normalize relative img src (#514)
4 years ago
Divyansh Singh 34d1542f46
fix: don't add .html to urls of non-html files (#515)
4 years ago
Divyansh Singh 804954cf4d
fix: append base to links (#502)
4 years ago