Skip to content

Releases: umijs/dumi

v1.0.0-alpha.16

17 Jan 04:24
Compare
Choose a tag to compare
v1.0.0-alpha.16 Pre-release
Pre-release

Features

  • Support to write frontmatters in the embedded demo

Breaking Change (maybe a half)

  • Support to configure transform CSS property via the transform frontmatter, code block modifier and code tag property, use to switch transform: translate(0, 0) for demo wrapper element to change CSS containing block (catch fixed element), the following ways to do the same thing:
``` jsx
/**
 * transform: true
 */
// source code
```
``` jsx | transform
// source code
```
<code src="path/to/demo" transform>

In the previous versions, the transform: translate(0, 0) is enable by default, but in the v1.0.0-alpha.16 it is not, so if you have been write a demo that contains fixed element, and you still want to position it according to the demo wrapper element, you need to enable transform via the above ways after upgrade.

v1.0.0-alpha.14

13 Jan 04:32
Compare
Choose a tag to compare
v1.0.0-alpha.14 Pre-release
Pre-release

Features

  • Support use README.md with locale suffix as the locale root path

Improvements

  • Default to sort by ASCII of filename for routes if it has not order config

Fixed

  • Menu broken bug when using multi-language with the group feature
  • Locale select state error for default theme

v1.0.0-alpha.13

11 Jan 03:07
Compare
Choose a tag to compare
v1.0.0-alpha.13 Pre-release
Pre-release

Features

  • Support to write multi-language documentation, #45 , #58

v1.0.0-alpha.12

03 Jan 06:12
Compare
Choose a tag to compare
v1.0.0-alpha.12 Pre-release
Pre-release

Fixed

  • Improve the way to symlink automatically to avoid GitLab CI bug
  • Side menu z-index bug on mobile devices, #56 , by @chenshuai2144
  • Group order not working bug, #57
  • Group entry file case-sensitive bug when generating routes

v1.0.0-alpha.10

27 Dec 14:22
Compare
Choose a tag to compare
v1.0.0-alpha.10 Pre-release
Pre-release

Features

  • Add icon for external links, #54 , by @kakuyogy
  • Support to configure legacy path for md (use to migrating from old doc tool)
  • Fallback to README.md if there has no index route

Fixed

  • Repeat generate bug for route redirects
  • Slug text bug if using inline code in title

Improvements

  • Refactor routes generate logic, prepare for i18n routes
  • Add test case for routes generator

v1.0.0-alpha.9

23 Dec 17:24
Compare
Choose a tag to compare
v1.0.0-alpha.9 Pre-release
Pre-release

Features

  • Responsibility for the built-in default theme, #49, by @chenshuai2144
  • npm link automatically for current package(s), use for resolve module path when writing demo

Improvements

v1.0.0-alpha.7

20 Dec 14:00
Compare
Choose a tag to compare
v1.0.0-alpha.7 Pre-release
Pre-release

Fixed

  • title undefined error when generate sub routes
  • slugs undefined error when render affix menu in layout

v1.0.0-alpha.6

16 Dec 07:59
Compare
Choose a tag to compare
v1.0.0-alpha.6 Pre-release
Pre-release

(Due to npm publish system crash, missing the v1.0.0-alpha.5, npm/cli#593)

Features

  • Add Code Sandbox link for demo previewer, #38 , by @tli4
  • Highlight following for affix menu when scrolling, #39 , by @tli4

Fixed

  • AST traverse bug for another exports default statement: exports.default
  • Route path broken on Windows, #43 , by @chenshuai2144
  • extraBabelPlugins config get bug, #36 , by @Deturium

v1.0.0-alpha.4

12 Dec 15:01
Compare
Choose a tag to compare
v1.0.0-alpha.4 Pre-release
Pre-release

Features

  • Add affix menu to display slugs on the right, also can be disabed, #32 , by @xiaohuoni
  • Add inline mode for previewer, we can insert any custom react component now!
  • Support to apply user babel plugin config for transform demo

Improvements

  • Support to write self-closing HTML tags without close symbol
  • Rewrite routes & menus generate logic

Fixed

  • Side menu shadow bug when scroll over the first screen
  • External demo link broken on Windows, #27, @Deturium

v1.0.0-alpha.3

09 Dec 02:28
Compare
Choose a tag to compare
v1.0.0-alpha.3 Pre-release
Pre-release

Improvements

  • Support to use README as the default entry, by @xiaohuoni , #19
  • Support to set empty title to hide it, by @xiaohuoni , #17
  • Ignore node_modules when searching routes
  • Suppor to export class component as a demo
  • Use a common way to get frontmatter and meta data for markdown file, #20

Fixed

  • Fix crash when write HTML comment in markdown
  • Fix quotation escape/stringify error, #25
  • Fix path process error for externalDemo on Windows, by @Deturium , #27