Skip to content

Releases: sillsdev/docu-notion

v0.16.1

24 Jun 18:21
Compare
Choose a tag to compare

0.16.1 (2024-06-24)

Bug Fixes

  • Convert Notion's "mention" style links to internal pages, #97 (55ed8ca)
  • Multiple links in a paragraph (#108) (f1176c5)

v0.14.0-alpha.17

24 Jun 18:16
Compare
Choose a tag to compare
v0.14.0-alpha.17 Pre-release
Pre-release

0.14.0-alpha.17 (2024-06-24)

Bug Fixes

v0.14.0-alpha.16

01 May 23:39
2d37898
Compare
Choose a tag to compare
v0.14.0-alpha.16 Pre-release
Pre-release

0.14.0-alpha.16 (2024-05-01)

Bug Fixes

  • Convert Notion's "mention" style links to internal pages, #97 (55ed8ca)

v0.16.0

09 Apr 22:17
Compare
Choose a tag to compare

0.16.0 (2024-04-09)

Bug Fixes

  • Download images using axios instead of node-fetch (5d00de3)
  • fallback to getting image file extension from url (7f1fd40)
  • update readme to reflect change of css name (55ba105)

Features

  • Add --require-slugs option (bff12fd)
  • copy the latest docu-notion-styles.css to output (28645e8)
  • Modify image file names (36da64a)
  • If desired instead, users can specify --image-file-name-format content-hash to use a hash of the image content as the file name. (#76)

Breaking Changes

  • Previously, image files names were a hash of all or part of the image url.
    To provide more stability and future-proofing, the default format is now {page-slug}.{notion-block-id}. (#82)
    Users can opt in to the old format with --image-file-name-format legacy.

Potential breaking change for plugins:

The exported type IDocuNotionContext changed from

export type IDocuNotionContext = { 
  layoutStrategy: LayoutStrategy; 
  options: DocuNotionOptions; 
  getBlockChildren: IGetBlockChildrenFn; 
  notionToMarkdown: NotionToMarkdown;
  directoryContainingMarkdown: string; 
  relativeFilePathToFolderContainingPage: string; 
  convertNotionLinkToLocalDocusaurusLink: (url: string) => string | undefined; 
  pages: NotionPage[]; 
  counts: ICounts; 
  imports: string[]; 
}; 

to

export type IDocuNotionContext = { 
  layoutStrategy: LayoutStrategy; 
  options: DocuNotionOptions; 
  getBlockChildren: IGetBlockChildrenFn; 
  notionToMarkdown: NotionToMarkdown; 
  pageInfo: IDocuNotionContextPageInfo; 
  convertNotionLinkToLocalDocusaurusLink: (url: string) => string | undefined; 
  pages: NotionPage[]; 
  counts: ICounts; 
  imports: string[]; 
}; 

where IDocuNotionContextPageInfo is

export type IDocuNotionContextPageInfo = { 
  directoryContainingMarkdown: string; 
  relativeFilePathToFolderContainingPage: string; 
  slug: string; 
}; 

v0.14.0-alpha.15

09 Apr 19:06
9d11a98
Compare
Choose a tag to compare
v0.14.0-alpha.15 Pre-release
Pre-release

0.14.0-alpha.15 (2024-04-09)

Features

  • Modify image file names (36da64a)

v0.14.0-alpha.14

05 Apr 23:33
5d10789
Compare
Choose a tag to compare
v0.14.0-alpha.14 Pre-release
Pre-release

0.14.0-alpha.14 (2024-04-05)

Features

  • Add --require-slugs option (bff12fd)

v0.14.0-alpha.13

02 Apr 16:53
Compare
Choose a tag to compare
v0.14.0-alpha.13 Pre-release
Pre-release

0.14.0-alpha.13 (2024-04-02)

Bug Fixes

  • Download images using axios instead of node-fetch (5d00de3)

v0.14.0-alpha.12

02 Apr 15:57
Compare
Choose a tag to compare
v0.14.0-alpha.12 Pre-release
Pre-release

0.14.0-alpha.12 (2024-04-02)

Bug Fixes

  • fallback to getting image file extension from url (7f1fd40)

v0.14.0-alpha.11

28 Sep 23:28
Compare
Choose a tag to compare
v0.14.0-alpha.11 Pre-release
Pre-release

0.14.0-alpha.11 (2023-09-28)

Bug Fixes

  • update readme to reflect change of css name (55ba105)

v0.14.0-alpha.10

28 Sep 23:21
Compare
Choose a tag to compare
v0.14.0-alpha.10 Pre-release
Pre-release

0.14.0-alpha.10 (2023-09-28)

Features

  • copy the latest docu-notion-styles.css to output (28645e8)