Skip to content

v4.11.0

Compare
Choose a tag to compare
@egoist egoist released this 22 Mar 18:02
· 65 commits to master since this release

Features

Dark Theme

Now you can use cssVariables option to configure site style, check out the docs for the css variables used by the default theme, we also shipped another set of css variables as dark theme, you can switch to it by:

new Docute({
  theme: 'dark'
})

Check out the theme option in docs.

Layout

Docute now uses the wide layout by default:

屏幕快照 2019-03-23 上午1 57 27

There're also narrow layout:

屏幕快照 2019-03-23 上午1 57 54

And left layout:

屏幕快照 2019-03-23 上午1 58 07

Adding Vue Mixin in Markdown

<button v-on:click="count++">{{ count }}</button> people love Docute.

```js {mixin:true}
{
  data() {
    return {
      count: 1000
    }
  }
}
```

https://docute.org/guide/markdown-features#adding-vue-mixin