Divyansh Singh
a8a16237cd
feat: allow custom outline title ( #689 ) ( #690 )
...
close #689
2 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>
2 years ago
Percy Ma
e5bf15a21e
fix: nav nested items type error ( #710 ) ( #711 )
2 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>
2 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>
2 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