Skip to content

Commit 2f315d7

Browse files
matthieumotaulivz
authored andcommitted
docs: documentation theme logo (#1150)
1 parent b7f3ac4 commit 2f315d7

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

docs/.vuepress/config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ module.exports = {
2929
repo: 'vuejs/vuepress',
3030
editLinks: true,
3131
docsDir: 'docs',
32+
docsBranch: '0.x',
3233
// #697 Provided by the official algolia team.
3334
// algolia: {
3435
// apiKey: '3a539aab83105f01761a137c61004d85',

docs/default-theme-config/README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,19 @@ If you want to use a completely custom homepage layout, you can also use a [Cust
3939

4040
The Navbar may contain your page title, [Search Box](#search-box), [Navbar Links](#navbar-links), [Languages](../guide/i18n.md) and [Repository Link](#git-repo-and-edit-links), all of them depends on your configuration.
4141

42+
### Navbar Logo
43+
44+
You can add a logo to the navbar via `themeConfig.logo`. Logo can be placed in [public folder](../guide/assets.md#public-files).
45+
46+
``` js
47+
// .vuepress/config.js
48+
module.exports = {
49+
themeConfig: {
50+
logo: '/assets/img/logo.png',
51+
}
52+
}
53+
```
54+
4255
### Navbar Links
4356

4457
You can add links to the navbar via `themeConfig.nav`:

0 commit comments

Comments
 (0)