Skip to content

Releases: doczjs/docz

v0.5.1

03 Jul 18:44
Compare
Choose a tag to compare

Changelog

  • fix(docz-core): check package.json name to populate initial title (6cdbebc)

thanks @mAAdhaTTah

v0.5.0

03 Jul 06:26
Compare
Choose a tag to compare

Changelog

Bug Fixes

Features

  • docz-core: add ordering property for config (a6c307d) (thanks @Swapnull)
  • docz-core: read name from package.json to populate initial title (4f10a6d)
  • docz-theme-default: add sidebar search (8218dc1)
  • docz-theme-default: some bundle size improvements

Ordering property

Now you can define how order prop will work by passing an ordering property on your configuration:

// doczrc.js
export default {
  order: 'ascending'
}

Search

And a simple and powerful search for your menus (powered by Fuse.js)

v0.4.0

30 Jun 06:52
Compare
Choose a tag to compare

Changelog

Bug Fixes

  • docz-core: add a fallback name on Entry (ec38139)
  • docz-theme-default: add overflow auto to nav (4cdbcfd)

Improvements

  • docz-core: remove <Playground> from output code (777b8bf)
  • docz: add ErrorBoundary component for a better error handler (914e3ad)
  • docz-core: add NODE_ENV global variable with webpack.DefinePlugin (914e3ad)

Without <Playground> on output

ErrorBoundary

Features

  • docz-theme-default: add automatic table of content (#106) (6ce9e84)

Thanks

@good-idea, @marceloavf and @drmzio for the awesome work ✌️

v0.3.4

27 Jun 00:25
Compare
Choose a tag to compare

Changelog

  • docz-theme-default: remove color transparent on body (#93) (a1942ef)

v0.3.3

26 Jun 05:53
Compare
Choose a tag to compare

Changelog

Bug Fixes

  • docz-core: copy templates files for dist (#88) (5e4b98d)

v0.3.2

25 Jun 15:36
Compare
Choose a tag to compare

Changelog

  • docz-default-theme: add dark mode #81
  • docz-default-theme: fix global styles (related to #80)
  • docz-default-theme: make theme responsive #86

Contributions

Thanks a lot, @marceloavf that makes an awesome work making the default theme responsive!


Dark mode

Docz default theme now has a mode option to get your theme darker 🌚. To enable this feature, just change your doczrc.js like that:

// doczrc.js
export default {
  themeConfig: {
    mode: 'dark'
  }
}

And now you have a dark mode!

and totally mobile friendly...

v0.2.11

22 Jun 06:18
Compare
Choose a tag to compare

Changelog

  • docz-core: node env for production (615aa1f)
  • docz-plugin-css: production build (1a66d8a)
  • docz-theme-default: use webfontloader instead of css import (5973969)
  • some changes on css examples (058660f)

docz-plugin-css

Docz plugin to parse css files inside your documents

Examples

Instalation

First of all, install plugin:

$ yarn add docz-plugin-css --dev

After that, use the plugin on your doczrc.js:

// doczrc.js
import { css } from 'docz-plugin-css'

export default {
  plugins: [
    css({
      preprocessor: 'postcss',
      cssmodules: true,
      loaderOpts: {
        /* whatever your preprocessor loader accept */
      }
    })
  ]
}

v0.2.10

21 Jun 22:57
Compare
Choose a tag to compare

Changelog

v0.2.9

21 Jun 04:58
Compare
Choose a tag to compare

Changelog

  • Chore: use findAllExportedComponentDefinitions for react-docgen (4b959b9)

v0.2.8

21 Jun 03:41
Compare
Choose a tag to compare

Changelog

  • Fix typescript automatic resolve extensions (201fada)
  • Chore: use mdx provider instead of pass components as prop (d92804f)
  • Chore: update dependencies (c58b676)