Kia King Ishii
53bf845463
feat: adjust styles mainly nav
3 years ago
Kia King Ishii
4dde99619e
fix: table even row style is not nice
3 years ago
Kia King Ishii
4ff82b410f
style: format code
3 years ago
Kia King Ishii
dbb5777289
chore: adjust line height of custom container
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
bae47f7082
fix: sidebar group width not alined when scroll bar is visible
3 years ago
Kia King Ishii
99246762c6
fix: sidebar collapsible problem once more
3 years ago
Kia King Ishii
751bc0b478
fix: sidebar group is collapsible even when option is not set
3 years ago
Kia King Ishii
3f49fd67ab
fix: nav menu layout shift with/without sidebar
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
Divyansh Singh
6028cacb81
feat: add copy code element ( #473 ) ( #658 )
...
close #473
Co-authored-by: Kia Ishii <kia.king.08@gmail.com>
3 years ago
Kia King Ishii
607c3d33f3
chore: adjust carbon ads spacing
3 years ago
Ryo_gk
1fcf4a4462
feat: use shiki instead of prismjs for syntax highlight ( #627 ) ( #654 )
...
close #627
Co-authored-by: Kia Ishii <kia.king.08@gmail.com>
3 years ago
Kia Ishii
8bc14e6366
fix: doc aside style ( #655 ) ( #656 )
...
fix #655
fix #656
3 years ago
Kia Ishii
ff7af544c6
feat: adjust style for home features box and inline code link
3 years ago
Kia Ishii
bc44dc2b32
feat: adjust custom box brightness
3 years ago
Kia Ishii
049c1e7a0a
fix: nav background not being blurred on Firefox ( #652 )
...
fix #652
3 years ago
Kia Ishii
02e9cb5e71
feat: adjust carbon ads styling
3 years ago
Kia Ishii
98443d4eee
feat: refine overall layout styling
3 years ago
Kia Ishii
562e345f07
feat: adjust sidebar font size and spacing
3 years ago
Kia Ishii
d9decd9412
fix: button hover style in dark mode not working
3 years ago
Kia Ishii
27f840ae04
feat: adjust code font color just a bit
3 years ago
Kia King Ishii
ddc9e4b0d9
docs: add more docs
3 years ago
Kia King Ishii
bffc58c735
refactor: clean up css variable
3 years ago
Kia King Ishii
c1ee195469
feat: style 404 page ( #649 )
...
close #649
3 years ago
Kia King Ishii
36a67bd67d
feat: add carbon ads feature ( #647 )
...
close #647
3 years ago
Kia Ishii
ef3e44c5a2
feat: ensure `.html` extension in rendered nav links ( #175 )
...
close #175
3 years ago
Kia King Ishii
b8c76ba47b
feat: improve how aside section stick and scrolls
3 years ago
Kia King Ishii
220320bcdb
fix: make outline work in 960px view port
3 years ago
Kia King Ishii
70a9fb4b5a
fix: global nav background blur not applied in Safari
3 years ago
Kia Ishii
9b7ccee3b6
fix: duplicated import
3 years ago
Percy Ma
1839e9a41a
fix(theme): header blur is incomplete ( #639 )
...
Co-authored-by: Kia Ishii <kia.king.08@gmail.com>
3 years ago
Kia King Ishii
0e5f1e4dd5
docs: add many docs
3 years ago
Kia King Ishii
80a82be50f
feat: adjust overall layout
3 years ago
Kia King Ishii
190a467a10
fix: inline code not getting proper line break
3 years ago
Kia King Ishii
e51d2a8c49
feat: add custom container stylings
3 years ago
Kia King Ishii
68ebd43664
fix: doc page layout on mobile is broken
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
Joaquín Sánchez
905b4a0142
fix: import and use `VPDoc` instead `VPContentDoc` ( #633 )
3 years ago
Kia King Ishii
69c44aa607
feat: add layout option and home hero section
3 years ago
Kia Ishii
25296fa852
chore: fix file name capitalization
3 years ago
Kia Ishii
9250460b3f
feat: make appearance configurable
3 years ago
Kia Ishii
73bbc6143a
feat: new default theme
3 years ago
Joaquín Sánchez
216e12950b
fix: remove 404 from title on initial route ( #590 )
...
fix #589
3 years ago
Evan You
06ad0d8386
refactor 404 page data
3 years ago
Divyansh Singh
28eaa3b04a
fix: reset page data on 404 ( #497 )
3 years ago
Divyansh Singh
33a59cd029
docs: update links ( #523 )
...
* docs: update links
* docs: fix 3xx urls
* chore: fix typo
3 years ago
Guanghui Cheng
ffe0c40ebc
fix(client router): tolerant invalid hash selector typo ( #506 )
3 years ago
Evan You
1ef69e212f
feat: improve default chunk strategy + page hash stability
3 years ago
Evan You
23249483d6
feat: automatically update hash map + retry on failed page fetch
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
388944371d
avoid readonly in production
3 years ago
Evan You
17aaaf0180
refactor tsconfig setup + migrate to vitest
3 years ago
Evan You
b66785d68a
feat: scrollOffset option
3 years ago
云游君
7950e884a5
chore: fix typo ( #478 ) [ci skip]
3 years ago
Eduardo San Martin Morote
444562c3a7
fix: use algolia search lang ( #459 )
3 years ago
借りられない恋
a3bf52fed5
fix: initial render of 404 pages ( #418 )
3 years ago
云游君
b104d95993
style: make img center in nav-bar-title ( #377 )
3 years ago
ULIVZ
ba41bb9055
feat: improve typescript support for config file ( #465 )
3 years ago
Eduardo San Martin Morote
1b245e22d8
feat: upgrade docsearch version ( #441 )
3 years ago
zhangwenjun
383d8ffbba
fix: invalid active props when `base` option is added ( #342 )
3 years ago
Anthony Fu
efc5e1b256
fix: tolerant invalid hash ( #399 )
3 years ago
Evan You
5fd7db2b7f
fix(theme): fix algolia search filter
3 years ago
Airene Fang
8cbe26ee06
style(theme): <code> need not a inline-bg-color ( #385 )
...
Co-authored-by: fangying <fangying@vipkid.com.cn>
3 years ago
Evan You
c071f0cb0c
chore: remove unused value
3 years ago
sambit sahoo
07bf145190
feat(theme-default): home slot for customizing the entire homepage easily ( #314 )
3 years ago
Eduardo San Martin Morote
389e863b4d
fix(theme-default/algolia): avoid creating multiple algolia searches ( #292 )
3 years ago
Evan You
475dee5154
build: pre-bundle, reduce deps
3 years ago
Evan You
4fb387d94e
fix: emit prevented hashchange event
3 years ago
Evan You
b94c82710a
fix(default-theme): use description as tagline by default
3 years ago
Evan You
96bcddabed
perf: minor optimizations
3 years ago
箱子
0c1a1f2ef4
fix(css): remove 720px breakpoint in home layout ( #347 )
3 years ago
CHOYSEN
1e64773933
fix: use useData() instead of $site ( #365 )
3 years ago
Hazlank
9245226b16
fix(code): code block highlight bug in ul ( #352 )
3 years ago
Eduardo San Martin Morote
26b5aa931f
feat: upgrade markdown-it-anchor ( #350 )
...
BREAKING CHANGE: the `markdown.anchor` option is updated. Refer to
valeriangalliat/markdown-it-anchor#permalinks for
instructions to upgrade your existing `markdown.anchor.permalink`
option. **This doesn't affect you if you weren't changing the header
permalinks behavior**.
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
Eduardo San Martin Morote
858c0e77a0
build: rename carbon and buysell chunks ( #370 )
3 years ago
Evan You
4925fb5c29
feat: info custom container
3 years ago
Eduardo San Martin Morote
4a34b93090
refactor: reuse regexp
3 years ago
Eduardo San Martin Morote
3038829807
refactor: use compiler macros
3 years ago
Sacha STAFYNIAK
9d98dbbe60
fix: override target and rel links attribute in config ( #332 )
3 years ago
Dirk de Visser
cfbba80a0a
fix(edit-link): let frontmatter overwrite global editLink ( #340 )
...
Co-authored-by: Eduardo San Martin Morote <posva@users.noreply.github.com>
3 years ago
hangzou
53bb961a92
fix: skip external URLs in `withBase` ( #328 )
3 years ago
m4dz
e76e6ecd54
fix(nav): display nav if locales are present ( #321 )
3 years ago
Evan You
ce86b51ccf
chore: remove logs
3 years ago
Evan You
e6bb5a4806
perf: only update necessary head tags in prod
3 years ago
Eduardo San Martin Morote
c046905b03
fix(search): correctly detect multilang
...
Close #316
4 years ago
Evan You
9b35dfcde4
fix: avoid scroll behavior reliance on .nav-bar class
4 years ago
Evan You
3fed6f94e5
type: support specifying themeConfig type for useData() via generics
4 years ago
Evan You
a9d580069f
fix: avoid error when theme does not have .nav-bar class
4 years ago
Evan You
f52f20e02f
fix: avoid resetting head tags on hmr/page switch
4 years ago
Evan You
55de7ab43c
refactor: adjust shared utility/types build setup
...
fix non-existent imports in generated dts files
4 years ago
Evan You
424a4ca379
fix: fix frontmatter sidebarDepth for headers
4 years ago
Evan You
a81b9e0ff1
refactor: re-expose $frontmatter global property, make localePath account for base by default
4 years ago
Evan You
76fa1733ff
fix: fix vue code block type indication
4 years ago
Evan You
0661063d29
feat: more efficient `useData()` method that exposes all data
...
BREAKING CHANGE:
- Individual `useX()` data methods are removed.
```js
// before
import { useSiteDataByRoute, usePageData } from 'vitepress'
const site = useSiteDataByRoute()
const page = usePageData()
const theme = computed(() => site.value.themeConfig)
// after
import { useData } from 'vitepress'
const { site, page, theme } = useData()
```
All destructured values are computed refs injected from app root
so they are created only once globally.
- Global mixin properties (e.g. `$site`) are removed. Always use
`useData()` to retrieve VitePress data.
4 years ago
Cédric Exbrayat
8988aadbcb
fix: functional templates with vue v3.1 ( #312 )
4 years ago
heny
b940397cd0
fix: chinese filenames can't build ( #217 ) ( #262 )
4 years ago
dnischeta
9589a5d0e6
fix(theme): set search box min-width for >=751px ( #286 )
4 years ago
Anthony Fu
6b4a4aa7a6
fix: remove unnecessary 'vite/dynamic-import-polyfill'
4 years ago
Eduardo San Martin Morote
0716ffade7
fix(search): silence warning for prop
4 years ago
Eduardo San Martin Morote
de89c1e5eb
fix(locales): use correct lang ( #283 )
4 years ago
Eduardo San Martin Morote
f505db945a
fix(locales): use correct lang ( #276 )
4 years ago
Jeff Yang
f385bc4673
fix(navbar): use css var for background-color ( #264 )
4 years ago
Eduardo San Martin Morote
8d915245c6
fix(css): reuse css vars ( #256 )
4 years ago
Eduardo San Martin Morote
9bc5c5c631
style: format code with prettier
4 years ago
Igor Randjelovic
f8b4aa5baa
fix: badge for language-javascript ( #245 )
4 years ago
Evan You
4a40e1faf4
fix(theme-default): avoid ad image distortion on mobile
4 years ago
Kia King Ishii
a613df46e8
fix: `base` option not generating correct multi sidebar ( #231 ) ( #234 )
4 years ago
Kia King Ishii
6538c8e70a
fix: nav home title not having locale based link ( #195 ) ( #233 )
...
fix #195
4 years ago
Kia King Ishii
3b4584377c
style: fix some code styles
4 years ago
旧巷馆子 · 沈青川
5678dc3a25
fix: home action link not being reactive ( #195 ) ( #212 )
...
Co-authored-by: mariotang <mariotang@tencent.com>
4 years ago
Eduardo San Martin Morote
7ceaf344d2
fix: ads display causing layout break in mobile view ( #230 )
4 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
Matias Capeletto
338e8453d8
fix: frontmatter description duplication ( #194 ) ( #170 )
...
Co-authored-by: Kia King Ishii <kia.king.08@gmail.com>
4 years ago
Evan You
2330023d99
fix: use brand color in algolia search box
4 years ago
Eduardo San Martin Morote
78b026cb7a
fix: avoid layout shift due to ads ( #176 )
4 years ago
Matias Capeletto
481c4513d7
feat: $lang and $localePath globals ( #166 ) ( #167 )
...
close #166
Co-authored-by: Kia King Ishii <kia.king.08@gmail.com>
4 years ago
Evan You
3e6e61bcea
fix: ignore non-html links in router and prefetch
4 years ago
Evan You
a0f463af8f
fix: aria label id
4 years ago
Evan You
ca631c7f51
feat: render content on home page
4 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
Anthony Fu
bac1ce2d01
fix: resolve page hash case-insenstively, close #202 ( #203 )
4 years ago
Evan You
64a08b35a3
chore: bump vite again
4 years ago
Matias Capeletto
b6ba8a943c
fix: scrollbar when using line highlight ( #200 )
4 years ago
Evan You
6ff76c4ea8
chore: bump vite
4 years ago
Evan You
161e0ea69c
types: add vite env
4 years ago
Evan You
e262ef63d8
feat(theme-default): nav.item.activeMatch
4 years ago
Evan You
9a17ddfdfb
feat: add altAction for home
4 years ago
Evan You
8a2ff33bf8
fix: loosen navLink active matching
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
Evan You
4f0c90311f
refactor: simplify client path mapping
4 years ago
Evan You
3e85b46727
refactor: improve css treeshaking + avoid layout shift on async components
4 years ago
Evan You
b9c9e79cda
chore: bump vite
4 years ago
Evan You
6fff96652e
chore: bump deps
4 years ago
Evan You
c878e6d3b5
perf: avoid including optional features in build when not used
4 years ago
Evan You
a1daf2b8a0
fix: revert datetime handling
4 years ago
Evan You
22e12b8928
chore: bump min node version + target es2019
4 years ago
Evan You
b50a2dffc4
wip: make build pass
4 years ago
Evan You
9ef7c8de1b
types: fix types
4 years ago
Evan You
d02cd6b9b5
wip: build compat for vite 2.0
4 years ago
Evan You
02391593bc
fix: temporarily disable slot usage causing hydration mismatch
4 years ago
Evan You
084c7deb02
wip: handle config hmr
4 years ago
Evan You
bf8fd3a6f3
wip: dev works with vite 2
4 years ago
Anthony Fu
46e99babc2
fix: style pollution on custom theme ( #190 )
4 years ago
Anthony Fu
5ba4ea2ef0
refactor: refactor for <script setup>
4 years ago
Anthony Fu
eefbd76b7a
chore: typo
4 years ago
Evan You
a9f75749a6
refactor: simplify navlink logic
4 years ago
qiang
ffaca73992
fix(theme): the actionLink miss withBase ( #168 ) ( #169 )
4 years ago
Evan You
2bde6bf88d
revert home page feature
4 years ago
Evan You
8809d2dbfc
feat: built-in ClientOnly component
4 years ago
Evan You
9bd79e8de1
fix: fix h2 anchor hover
...
fix #174
4 years ago
Evan You
f32771fe86
feat(default-theme): support customLayout: true in frontmatter
...
BREAKING CHANGE: the `home` frontmatter option has been removed.
Instead, use `customLayout: true` and custom HTML + `<style>` in the
markdown file to customize the home page (or any other page).
4 years ago
Evan You
8dea5185f0
refactor: use prefetch at app root
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
Evan You
7dd5c24a5f
chore: useXXX calls should not be inside computed
4 years ago
Evan You
ade6dddbb5
fix: fix link prefetch
4 years ago
Kia King Ishii
7c83105e51
refactor: layout component
4 years ago
Matias Capeletto
1b6981a915
fix: prevLinks and nextLinks config type ( #165 )
4 years ago
Evan You
08b9e17a93
refactor: code split optional features + improve typing
4 years ago
Kia King Ishii
170d72892e
refactor: do not use ref: syntax yet
4 years ago
Kia King Ishii
7aa3fb261b
refactor: asjust few styling of algolia search box
4 years ago
Kia King Ishii
077784fa34
refactor: sidebar and navbar
4 years ago
Eduardo San Martin Morote
5bb4730f7f
feat: add Algolia DocSearch ( #40 ) ( #153 )
...
close #40
4 years ago
Kia King Ishii
a084cd3f78
fix: make home page look better ( #154 )
4 years ago
Kia King Ishii
77bb75f7ee
refactor: client app index
4 years ago
Kia King Ishii
01d2837474
fix: siteData passed to enhanceApp being siteDataByRoute ( #159 )
...
fix #159
4 years ago
Matias Capeletto
30740d3516
fix: align $title with vuepress ( #158 ) ( #163 )
...
fix #158
4 years ago
Kia King Ishii
f2dafa05f2
chore: fix netlify build failure
4 years ago
Kia King Ishii
fad85b80fd
refactor: float h2 code block when there's carbon ads
4 years ago
Kia King Ishii
8c94cabf0d
refactor: adjust the edit link external icon looks just a bit
4 years ago
Kia King Ishii
9062dd9a1f
style: small fix for code style
4 years ago
Kia King Ishii
d90b9bdfb4
style: refactor the style of app exports.ts
4 years ago
Kia King Ishii
15e18df01e
feat: add `$withBase` global app function
4 years ago
Kia King Ishii
776d8014a2
refactor: organize app index related files
4 years ago
Eduardo San Martin Morote
9d6b8cadcc
feat: add native support for carbon ads ( #86 )
...
Co-authored-by: Kia King Ishii <kia.king.08@gmail.com>
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
Evan You
b127aeeaf1
refactor: migrate default theme to use script-setup ( #137 )
...
Co-authored-by: Kia King Ishii <kia.king.08@gmail.com>
4 years ago
Kia King Ishii
a7686b7691
fix: hydration mismatch when home page having action link
4 years ago
Kia King Ishii
f5a570f640
fix: fix inline code not inheriting the parent font size
4 years ago
Kia King Ishii
b0cf2be561
fix: fix nested list having too much margin
4 years ago
Kia King Ishii
fc725e7295
fix: fix hydration mismatch with the "last update" feature ( #150 )
4 years ago
Kia King Ishii
0b181e7582
fix: fix sidebar active status not working as expected ( #140 ) ( #149 )
4 years ago
Kia King Ishii
242fcc1098
fix: make code block look prettier ( #146 )
4 years ago
Kia King Ishii
07337a9eb2
fix: final fix for the code line number highlights
4 years ago
Kia King Ishii
d97056437b
fix: code line number highlight not working in production environment
4 years ago
Kia King Ishii
25cd29815b
refactor: make debug component look a bit better
4 years ago
Kia King Ishii
40d204b2f6
feat: add "last updated" feature
4 years ago
Kia King Ishii
ed8ea3e5d5
refactor: refactor nav bar component
4 years ago
Kia King Ishii
2ab66e10b2
style: fix code style for code.css
4 years ago
Matias Capeletto
da09266f5e
fix: some color in code block not working as expected ( #143 )
4 years ago
Matias Capeletto
0c644fc34e
fix: fix code block line number highlights were not showing correctly ( #142 )
...
Co-authored-by: Kia King Ishii <kia.king.08@gmail.com>
4 years ago
Kia King Ishii
1836934f7c
refactor: refactor sidebar styles
4 years ago
Kia King Ishii
621ca3e26f
fix: avoid 300ms click delay on touch devices
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
Máximo Mussini
018a9b46d9
fix: fix next and prev links not working when the `base` option is set ( #139 )
4 years ago
Kia Ishii
7f99f3a260
refactor(theme): organize custom block styles
4 years ago
Kia Ishii
982212d619
refactor(theme): slightly adjust next prev link arrow icon position
4 years ago
Kia Ishii
afc40e61cd
refactor(theme): refactor variaous styles
4 years ago