Commit Graph

612 Commits (a62ea6a832a33b756642b24ad5d38c248e08b554)

Author SHA1 Message Date
arianrhodsandlot 6d89a08cb7
fix: print errors when importing an invalid dynamic route (#3201)
2 years ago
Divyansh Singh 9568fea8fc fix(build): clear cache after build
2 years ago
Yuxuan Zhang 6dac9a4dc5
refactor: add concurrent promise pooling for render task (#3366)
2 years ago
Divyansh Singh f4d4280d7d feat(build): enable VUE_PROD_HYDRATION_MISMATCH_DETAILS when DEBUG is truthy
2 years ago
Divyansh Singh 2958b8b839
chore: bump deps (#3345)
2 years ago
Anthony Fu d12e23ddf6
feat: expose `shikijiSetup` hook (#3344)
2 years ago
Anthony Fu 00eec7a4ef
chore: use transformer to clean-up highlight result (#3343)
2 years ago
Anthony Fu 8800195457
feat: update shikiji, support twoslash (#3339)
2 years ago
Ianis Bernard 0f02697353
chore: fix typo (#3279)
2 years ago
Divyansh Singh c3d7f22bd3
fix(build): force assets to go through vite pipeline during dev too (#3258)
2 years ago
Divyansh Singh 33ce7e4478 fix: merge bundledLanguages with user provided languages for less breakage
2 years ago
Anthony Fu 75f18e4733
feat: migrate to shikiji (#3237)
2 years ago
Divyansh Singh a12a00ca78 chore: path separator normalization in assetsDir
2 years ago
Divyansh Singh 134ca6c661 chore: remove capturing group
2 years ago
bonyuta0204 563dc89975
feat(client): allow disabling link auto-prefetching (#3220)
2 years ago
Divyansh Singh a33831bf2c chore: throw error on assetsDir outside outDir
2 years ago
Divyansh Singh 02161d0f79 fix(build): support nested assetsDir
2 years ago
烽宁 672e4946ac
feat(build): html head meta generator (#3219)
2 years ago
翠 / green da73b58c79
fix: CSS missing after build (#3217)
2 years ago
Divyansh Singh d2238eedb7
feat: switch to vite 5 and bump deps (#3200)
2 years ago
Divyansh Singh dbbffa2487 fix(build): remove frontmatter in md file inclusion
2 years ago
Jacob Hummer a850786a56
feat: export `mergeConfig()` (#3143)
2 years ago
Divyansh Singh 6cf1de5e9e
fix(mpa): properly emit assets in mpa mode (#3115)
2 years ago
Divyansh Singh da3d7812a1
fix: don't normalize non-html/non-http links (#3114)
2 years ago
翠 / green d65afc2873
chore: make it work with rollup v4 (#3065)
2 years ago
Divyansh Singh 1ee1c04159 chore: remove dns workaround
2 years ago
Divyansh Singh 7991180080
fix(build): handle .mjs/.mts files as data / path loaders (#3058)
2 years ago
Jason Dai bdb080093f
feat(md): allow customizing container titles globally (#3044)
2 years ago
Divyansh Singh 6f2a2af1ff chore: fix types
2 years ago
Divyansh Singh 8b10848810
build: improve types (#3009)
2 years ago
Divyansh Singh 1a9c32df12 fix: selectively pass env for container titles
2 years ago
Jeff Tian bc96b2bb5b
fix(types): add RegExp to markdown's allowed attributes (#3008)
2 years ago
Divyansh Singh a2750492be fix: snippet hmr not working with rewrites
2 years ago
Divyansh Singh e84f31371e
fix(hmr): handle hmr in imported code snippets (#3005)
2 years ago
Divyansh Singh 7fbfe71b6c fix: handle references in container titles
2 years ago
Divyansh Singh aa40cecd48 fix(build): don't show missing lang warnings with text specifiers in fences
2 years ago
Divyansh Singh 70fe47c1dd
fix(compat): reset setRawMode on process exit (#2994)
2 years ago
Divyansh Singh 4f9a60b0cf feat: allow passing fast glob options to `createContentLoader`
2 years ago
Divyansh Singh 5bb6bb0a14 fix(build): indentation being lost in code blocks
2 years ago
Divyansh Singh 0df88438c7 chore: update ssr.format condition to unblock vite ci
2 years ago
Divyansh Singh f186901a51 fix(build): allow using symlinks with code snippets
2 years ago
Divyansh Singh e99aaad9cf
fix(build): handle importing code snippets not having an extension (#2978)
2 years ago
Divyansh Singh 7271a95948
feat: mathjax support (#2977)
2 years ago
mehm8128 0cd87b1baf
fix: customizing the starting line number even if globally set (#2941)
2 years ago
Divyansh Singh 76e9fe86b2
Revert "fix(build): respect srcExclude in content loader" (#2975)
2 years ago
huluobotx 3023b5c76b
fix(build): respect srcExclude in content loader (#2963)
2 years ago
Divyansh Singh 1fb5d228a2
feat(theme): allow forcing dark mode (#2974)
2 years ago
g-dx c6ff5c7686
feat: process md includes before building local search index (#2906)
2 years ago
fan1312 c0ce7f723e
feat: support for customizing the starting line number in a code block (#2917)
2 years ago
Divyansh Singh 8b76167ccf fix: respect attrs on custom containers
2 years ago
Divyansh Singh d40eb1903b
feat: skip rendering if env.BUNDLE_ONLY is truthy (#2890)
2 years ago
Divyansh Singh 0088434895
fix(theme): prevent layout shift in search button key (#2889)
2 years ago
Divyansh Singh 195ebe9464 fix(init): missing mts extension on windows
2 years ago
Colin McDonnell 83270fe657
feat: detect bun package manager (#2874)
2 years ago
Divyansh Singh 40da45d038 chore: move init terminal output to separate file
2 years ago
Divyansh Singh 1705c179df chore: vite no longer emits assets on ssr by default
2 years ago
Divyansh Singh 8aa032f60c fix: resolve snippets from original file path - align with include behavior
2 years ago
Divyansh Singh 4f01f1a09c feat: allow overriding mdit-vue/component options
2 years ago
Divyansh Singh 21b4f8caad fix: pseudo styles being removed with postcssIsolateStyles
2 years ago
Divyansh Singh 6be5a7e830
revert: "fix: createContentLoader generates invalid url when sets `base`" (#2865)
2 years ago
Divyansh Singh 47068ff0c5
revert: "perf: extract social icons as plugin to avoid unused icons" (#2861)
2 years ago
Divyansh Singh db17df336e chore!: bump deps (#2852)
2 years ago
Divyansh Singh 5836facc61
chore!: drop pathname protocol (#2823)
2 years ago
Damien Guard 00dc1e6742
feat: allow customizing markdown renderer used for local search indexing (#2770)
2 years ago
Divyansh Singh 9499953386
refactor: drop custom logic in favor of vueuse useDark (#2818)
2 years ago
Divyansh Singh 3c736c1c95 feat: export postcssIsolateStyles for vp-raw
2 years ago
Divyansh Singh 13343c91d9 chore!: change shiki defaults
2 years ago
Divyansh Singh 41ab96a269
refactor: drop body-scroll-lock in favor of vueuse useScrollLock (#2809)
2 years ago
awkweb 6960ec1cf6
feat(theme): export VPButton and VPSponsors (#2767)
2 years ago
btea b388b0a8c1
fix(cli/init): print the correct packageManager (#2787)
2 years ago
btea 4d9d977519
fix(cli/init): terminal message has not enough contrast (#2786)
2 years ago
Divyansh Singh e0be677554
fix: restart server on theme creation/deletion (#2785)
2 years ago
Divyansh Singh 1bda710702
fix(build): respect preserveSymlinks (#2780)
2 years ago
Divyansh Singh 0c8cf0df89
perf: extract social icons as plugin to avoid unused icons (#2768)
2 years ago
Divyansh Singh 23d751165f fix(cli): generate mjs file on init if type: module is not present
2 years ago
Lehoczky Zoltán 819eb515d0
docs: add root path to gitignore suggestion (#2488)
2 years ago
Divyansh Singh b2f671ab3b
chore(build)!: drop node 16 support (#2744)
2 years ago
Divyansh Singh 9df8adb53e
chore(build)!: drop cjs api (#2737)
2 years ago
Divyansh Singh 1bed154612
feat(build): allow overriding vite config loading (#2750)
2 years ago
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)
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