Divyansh Singh
8059ec390a
chore: rename offline search to local search
2 years ago
Guillaume Chau
6c92675e33
feat: offline search ( #2110 )
...
Co-authored-by: Christian Georgi <chgeo@users.noreply.github.com>
2 years ago
John Campion Jr
9e3cf0fa7d
feat(theme): allow moving aside to left ( #2138 )
2 years ago
Evan You
86e2a6f972
feat: support multiple selectors for scrollOffset
2 years ago
Guillaume Chau
192708de67
feat(theme): editLink can accept function ( #2058 )
2 years ago
Evan You
8ab36d05fa
fix: properly serialize header in outline
...
BREAKING CHANGE: default theme config option `outlineBadge` has been
removed. Badges in headers are now always excluded when generating
outline text.
2 years ago
Alija
322c633fd0
perf(a11y): add aria-label to language button ( #2025 )
...
Co-authored-by: Divyansh Singh <40380293+brc-dd@users.noreply.github.com>
2 years ago
Evan You
74caccda43
feat: expose isNotFound on PageData, deperecate Theme.NotFound
2 years ago
Evan You
9c4c2117a6
wip: dynamic routes
2 years ago
Divyansh Singh
e2d4edf45b
feat(theme): support custom target and rel in navbar links ( #1993 )
...
Co-authored-by: Kev1nzh37 <kev1nzh37@gmail.com>
2 years ago
dominikcz
dd0c4c698c
feat(theme): support disabling aside globally ( #1925 )
...
Co-authored-by: Divyansh Singh <40380293+brc-dd@users.noreply.github.com>
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
Divyansh Singh
5ae4fbde38
feat: stable `cleanUrls` ( #1852 )
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
Divyansh Singh
5d2fc3f922
feat(theme): allow removing badge text from outline ( #1825 )
2 years ago
Divyansh Singh
8de2f4499d
feat: add i18n feature ( #1339 )
...
fix #291
fix #628
fix #631
fix #902
fix #955
fix #1253
fix #1381
Co-authored-by: Hiroki Okada <hirokio@tutanota.com>
Co-authored-by: Sadegh Barati <sadeghbaratiwork@gmail.com>
2 years ago
qiang
09c2c52d6c
feat: support for teleports to body ( #1642 )
...
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
7a737845e5
feat(theme): add mastodon icon ( #1736 )
2 years ago
Enzo Innocenzi
d404753005
feat(theme): allow defining dark as the default theme ( #1498 )
...
Co-authored-by: Divyansh Singh <40380293+brc-dd@users.noreply.github.com>
2 years ago
Urata Daiki
55688a87e3
feat(theme): allow specifying common alt for logo ( #1451 )
...
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
Divyansh Singh
ee37eaa271
fix(types): allow non async `transformHtml` and `buildEnd` ( #1270 )
2 years ago
Divyansh Singh
12591a9487
feat: bundle type definitions of dev-deps ( #1257 )
2 years ago
meteorlxy
71358ebce7
refactor: externalize markdown headers plugin ( #1230 )
2 years ago
Divyansh Singh
eacc18c993
fix(types): explicitly re-export to resolve ambiguities ( #1193 )
2 years ago
Divyansh Singh
0048e2bf1e
feat(build): switch to vite 3, support clean urls and esm mode ( #856 )
2 years ago
YiZhi
d1a2c76f33
feat(theme): support multi-level sidebar ( #851 )
...
Co-authored-by: Divyansh Singh <40380293+brc-dd@users.noreply.github.com>
2 years ago
Divyansh Singh
74e4950c1b
feat: allow adding custom social icons as inline svg ( #738 ) ( #953 )
2 years ago
Divyansh Singh
d6125c5c86
chore: fix typo
2 years ago
Divyansh Singh
836a24683a
feat(theme): custom prev/next labels and text ( #897 )
2 years ago
rainkolwa
00fe8092d9
feat(theme): add option to customize search button text ( #713 ) ( #747 )
...
close #713
2 years ago
Kia King Ishii
7cfe0f05ab
feat(theme): add team page feature ( #828 )
2 years ago
Alex
fdb5720acd
feat(theme): add active status to nav menu group ( #820 )
...
Co-authored-by: Kia King Ishii <kia.king.08@gmail.com>
2 years ago
Anthony Fu
42813ce936
feat(theme): support themeable images for logo and hero ( #745 )
...
Co-authored-by: Divyansh Singh <40380293+brc-dd@users.noreply.github.com>
2 years ago
zRains
263607b279
fix: better nav item types ( #714 )
2 years ago
CHOYSEN
8bf4182453
refactor: add `PageDataPayload` type ( #742 )
2 years ago
Divyansh Singh
535e176b9a
feat: allow custom edit links ( #698 )
...
close #694
close #697
Co-authored-by: Kia Ishii <kia.king.08@gmail.com>
3 years ago
Divyansh Singh
a8a16237cd
feat: allow custom outline title ( #689 ) ( #690 )
...
close #689
3 years ago
Divyansh Singh
ce17f5035c
feat: allow external links in sidebar ( #205 ) ( #686 )
...
close #205
Co-authored-by: Kia Ishii <kia.king.08@gmail.com>
3 years ago
Percy Ma
e5bf15a21e
fix: nav nested items type error ( #710 ) ( #711 )
3 years ago
Percy Ma
f64f83df02
feat: add `LastUpdated` support ( #668 ) ( #669 ) ( #683 )
...
close #668
close #669
Co-authored-by: Kia Ishii <kia.king.08@gmail.com>
3 years ago
Percy Ma
5f0d9153a3
feat: add option to hide nav title ( #637 ) ( #677 )
...
close #637
Co-authored-by: Kia Ishii <kia.king.08@gmail.com>
3 years ago
Divyansh Singh
e32936b6ae
feat: add collapsible option to sidebar ( #640 ) ( #663 )
...
close #640
Co-authored-by: Kia King Ishii <kia.king.08@gmail.com>
3 years ago
Kia King Ishii
36a67bd67d
feat: add carbon ads feature ( #647 )
...
close #647
3 years ago
Kia King Ishii
67e77f7871
feat: add option to customize title template
...
close #303
3 years ago
Kia King Ishii
6f037e2688
feat(sponsor): add sponsors component
3 years ago
Kia Ishii
9250460b3f
feat: make appearance configurable
3 years ago
Kia Ishii
73bbc6143a
feat: new default theme
3 years ago
郝晨光
77efd933c3
docs: algolia appId is required ( #608 )
3 years ago
Evan You
d32d8d4419
feat: use git-based lastUpdated data
...
- The main reason behind this change is because previously the FS-based
timestamp is inaccurate and will change on every remote deployment in
CI environments, resulting in cache invalidation on every build. Using
git timestamps makes them stable.
- This is now disabled by default for performance reasons, as getting
the git timestamp requires spawning a child process and is expensive.
To enable it, use the new `lastUpdated: true` config option.
3 years ago
Evan You
b66785d68a
feat: scrollOffset option
3 years ago
Evan You
745cd813e9
types: prioritize node version of shared types
3 years ago
Evan You
8288168b4f
adjust type exports
3 years ago
ULIVZ
ba41bb9055
feat: improve typescript support for config file ( #465 )
3 years ago
Evan You
475dee5154
build: pre-bundle, reduce deps
3 years ago
Evan You
6085501acb
chore: remove customData option
3 years ago
Eduardo San Martin Morote
bc78adb468
fix(i18n): fix locales reading, add site.langs ( #353 )
...
It works with the same config as Vuepress 1: https://vuepress.vuejs.org/guide/i18n.html#site-level-i18n-config
We could probably adapt the `label` property like Vuepress 2 https://v2.vuepress.vuejs.org/guide/i18n.html#site-i18n-config in a next release
3 years ago
Evan You
a79e1e1916
refactor: move default theme to 'vitepress/theme'
...
Fixes the case when using a completely custom theme, importing anything
from vitepress causes the entire default theme to be imported too.
BREAKING CHANGE: the default theme is now exposed via 'vitepress/theme',
instead of a named export from 'vitepress'.
4 years ago
Evan You
4072dc5f7e
feat: support customData in config
4 years ago
Evan You
b8e892e94a
feat: support customizing default theme via slots
...
Example:
```js
// .vitepress/theme/index.js
import { h } from 'vue'
import { defaultTheme } from 'vitepress'
const BaseLayout = defaultTheme.Layout
defaultTheme.Layout = () => {
return h(BaseLayout, null, {
'page-top-ads': () => h('h2', 'top ads!'),
'page-bottom-ads': () => h('h2', 'bottom ads!'),
})
}
export default defaultTheme
```
4 years ago
Kia King Ishii
9062dd9a1f
style: small fix for code style
4 years ago
Matias Capeletto
c6bdcfbf4f
feat!: add more global and computed properties ( #152 )
...
BREAKING CHANGE: `$theme` global computed is renamed to `$themeConfig`
to align better with VuePress.
Co-authored-by: Kia King Ishii <kia.king.08@gmail.com>
4 years ago
Kia King Ishii
fdd498be70
fix: fix next and prev links not working ( #130 )
4 years ago
Kia Ishii
750fd7e177
style: organize the order of localeConfig properties
4 years ago
Yugo Ogura
294836ce40
feat(i18n): add nav dropdown language selector feature ( #91 )
...
* feat: set language selector on navbar
* feat: hide language selector if no other langages contents
* feat: i18n selectText
* fix: move language selector before repo link
* fix: change reference of locales
* fix: fix not to fail when no locales
4 years ago
tanasinn
0ea34cbb1d
feat: add git repo link and edit links ( #55 )
...
Co-authored-by: Shintaro Tanaka <s-tanaka@holmescloud.com>
Co-authored-by: Eduardo San Martin Morote <posva@users.noreply.github.com>
4 years ago
Yugo Ogura
f52b1d576b
feat: add prev/next links ( #56 )
...
* feat: set Prev/Next to page data
* feat: set links at the bottom of page
* feat: hide next/prev links when themeConfig expressly set false
4 years ago
Anthony Fu
7802cb55c2
feat: i18n support ( #50 )
4 years ago
Evan You
255a2c4853
wip: theme
5 years ago
Evan You
a5e3d5d2f5
wip: migrate client to typescript
5 years ago