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
3 years ago
Divyansh Singh
836a24683a
feat(theme): custom prev/next labels and text ( #897 )
3 years ago
rainkolwa
00fe8092d9
feat(theme): add option to customize search button text ( #713 ) ( #747 )
...
close #713
3 years ago
Kia King Ishii
7cfe0f05ab
feat(theme): add team page feature ( #828 )
3 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>
3 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>
3 years ago
zRains
263607b279
fix: better nav item types ( #714 )
3 years ago
CHOYSEN
8bf4182453
refactor: add `PageDataPayload` type ( #742 )
3 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