Divyansh Singh
7991180080
fix(build): handle .mjs/.mts files as data / path loaders ( #3058 )
1 year ago
Divyansh Singh
e99aaad9cf
fix(build): handle importing code snippets not having an extension ( #2978 )
1 year ago
Damien Guard
00dc1e6742
feat: allow customizing markdown renderer used for local search indexing ( #2770 )
...
BREAKING CHANGES: `search.options.exclude` for local search is removed in favor of more flexible `search.options._render`
Co-authored-by: Divyansh Singh <40380293+brc-dd@users.noreply.github.com>
1 year ago
Divyansh Singh
9ae94877db
chore: fix tests
1 year ago
Divyansh Singh
52884d9d4b
feat(theme): allow setting base path in sidebar items ( #2734 )
1 year ago
Divyansh Singh
e3f8fc7972
fix(theme): allow using h1 headings in outline
...
closes #1529
1 year ago
Divyansh Singh
fb048a6f72
fix(search): add useFocusTrap and mark.js to optimizeDeps ( #2682 )
1 year ago
Jérémy Riverain
37d5b273fb
feat(search): allow excluding content from search results ( #2602 )
...
closes #2344
Co-authored-by: Divyansh Singh <40380293+brc-dd@users.noreply.github.com>
1 year ago
Divyansh Singh
e8074e60ec
fix(build): resolve nested md inclusions properly
...
closes #2584
closes #2586
Co-authored-by: Jeff Tian <jeff.tian@outlook.com>
1 year ago
烽宁
1ef33fe1c4
feat: support selecting line range when importing md file ( #2502 )
...
Co-authored-by: Divyansh Singh <40380293+brc-dd@users.noreply.github.com>
1 year ago
Jeff Tian
0c4210bb5e
feat(build): support nested markdown includes ( #2545 )
...
Co-authored-by: Divyansh Singh <40380293+brc-dd@users.noreply.github.com>
1 year ago
Divyansh Singh
b2a129f49b
fix(build): add `@vue/devtools-api` to `optimizeDeps.include` ( #2543 )
1 year ago
烽宁
c4909e4298
feat(theme): expose `useSidebar` ( #2496 )
...
Co-authored-by: Divyansh Singh <40380293+brc-dd@users.noreply.github.com>
1 year ago
Joaquín Sánchez
a3b38d1882
feat(build): allow using `@` prefix with `@include:` ( #2292 )
2 years ago
Divyansh Singh
335ef4f736
revert: 456099a
2 years ago
Divyansh Singh
456099a527
test: restore tests for init command
2 years ago
Evan You
dc88efecff
chore: fix tests
2 years ago
Evan You
3b6a6d1abd
feat(theme): a11y improvements
2 years ago
Evan You
d2838e3755
feat: createContentLoader
2 years ago
Evan You
657a7d38df
fix(theme): re-support dynamic headers
2 years ago
CHOYSEN
70ba404cb8
test: e2e for markdown extensions ( #2043 )
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
a4ac055dbf
feat: support $params in page components
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
38bbdaddb7
feat: vitepress init command ( #2020 )
...
close #1252
2 years ago
Evan You
8c9833ceba
test: fix dynamic routes test for build
2 years ago
Evan You
956de3bfa2
test: test for dynamic routes
2 years ago
Divyansh Singh
b197949930
chore: bump deps
2 years ago
Divyansh Singh
dea6cfa9cb
fix(theme): infer collapsible from collapsed ( #1865 )
...
BREAKING CHANGE: `collapsible` is dropped from sidebar, use `collapsed` instead
2 years ago
Kia King Ishii
c35a1f0fae
feat(theme): enable multi level sidebar nesting ( #1360 ) ( #1835 )
...
close #1360
close #1361
close #1680
2 years ago
0x009922
7de7fff417
fix(build): dedent of a single-line region ( #1687 )
...
Co-authored-by: Divyansh Singh <40380293+brc-dd@users.noreply.github.com>
2 years ago
Joaquín Sánchez
9df598f36e
feat(theme): allow adding images as icons in features section ( #1738 )
...
Co-authored-by: Divyansh Singh <40380293+brc-dd@users.noreply.github.com>
2 years ago
Divyansh Singh
ae3ba243b1
tests: refactor ( #1587 )
2 years ago
Joaquín Sánchez
db1c343dfb
feat(theme): sort multiple sidebars ( #1552 )
...
Co-authored-by: Divyansh Singh <40380293+brc-dd@users.noreply.github.com>
2 years ago
Divyansh Singh
288aa48b92
feat(theme): support dynamic headers and nesting in outline ( #1281 )
...
Co-authored-by: fi3ework <fi3ework@gmail.com>
2 years ago
meteorlxy
19c0f43daa
refactor: use markdown title plugin and remove parseHeader utils ( #1235 )
2 years ago
Kia Ishii
0b6f25b988
test: add test for client utils
...
close #617
2 years ago
Kia King Ishii
8c1f9f6c87
style: format
3 years ago
Anthony Fu
a0f81c9f9d
feat: migrate to ESM ( #645 ) ( #659 )
...
close #645
Co-authored-by: Kia King Ishii <kia.king.08@gmail.com>
3 years ago
Kia Ishii
73bbc6143a
feat: new default theme
3 years ago
Evan You
17aaaf0180
refactor tsconfig setup + migrate to vitest
3 years ago
Kia King Ishii
5deaf6a2cd
fix: sidebar 'auto' not working ( #178 ) ( #224 )
...
BREAKING CHANGE: If sidebat is `undefined`, it will be treated as `auto` where
previsouly it's treated as `false`. It was always treated as `auto`, but due to
this bug, the sidebar was hidden, therefore it looked like it was treated
as `false`.
4 years ago
Evan You
7e4b16ee52
fix: adjust multi sidebar matching logic
...
- matches by ensuring starting slash + startsWith
- catch-all fallback (`/`) should be placed at the end like VuePress
4 years ago
Matias Capeletto
dd312ce86b
fix: port fixes to parseHeader utils from vuepress ( #172 )
4 years ago
Kia King Ishii
6dcf6b3796
fix: fix "next and prev link" not working when `link` has extention
...
When there's extention in the sidebar item links, such as `.md` or
`.html`, the "next and prev link" is failing. This commit fixes
that issue.
4 years ago
Kia King Ishii
8735fc3096
test: add unit test setup ( #138 )
4 years ago