docu-notion

Download Notion pages as markdown and image files, preserving hierarchy and enabling workflow properties. Works with Docusaurus.

MIT License

Downloads
1.4K
Stars
151
Committers
4

Bot releases are visible (Hide)

docu-notion - v0.16.1 Latest Release

Published by github-actions[bot] 4 months ago

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)
docu-notion - v0.14.0-alpha.17

Published by github-actions[bot] 4 months ago

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

Bug Fixes

docu-notion - v0.14.0-alpha.16

Published by github-actions[bot] 6 months ago

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

Bug Fixes

  • Convert Notion's "mention" style links to internal pages, #97 (55ed8ca)
docu-notion - v0.16.0

Published by github-actions[bot] 6 months ago

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; 
}; 
docu-notion - v0.14.0-alpha.15

Published by github-actions[bot] 6 months ago

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

Features

  • Modify image file names (36da64a)
docu-notion - v0.14.0-alpha.14

Published by github-actions[bot] 7 months ago

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

Features

  • Add --require-slugs option (bff12fd)
docu-notion - v0.14.0-alpha.13

Published by github-actions[bot] 7 months ago

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

Bug Fixes

  • Download images using axios instead of node-fetch (5d00de3)
docu-notion - v0.14.0-alpha.12

Published by github-actions[bot] 7 months ago

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

Bug Fixes

  • fallback to getting image file extension from url (7f1fd40)
docu-notion - v0.14.0-alpha.11

Published by github-actions[bot] about 1 year ago

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

Bug Fixes

  • update readme to reflect change of css name (55ba105)
docu-notion - v0.14.0-alpha.10

Published by github-actions[bot] about 1 year ago

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

Features

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

Published by github-actions[bot] about 1 year ago

0.15.0 (2023-09-27)

Bug Fixes

  • latex rendering (issue Latex Rendering Problem #68) (6aa7029)

Features

  • Some checking and troubleshooting help for people just getting started (5baebe8)
docu-notion - v0.14.0-alpha.9

Published by github-actions[bot] about 1 year ago

0.14.0-alpha.9 (2023-09-27)

Bug Fixes

  • latex rendering (issue Latex Rendering Problem #68) (6aa7029)
docu-notion - v0.14.0

Published by github-actions[bot] about 1 year ago

0.14.0 (2023-09-26)

Bug Fixes

  • #76 - Prevent image filename thrashing after Notion url change (f077368)
  • Correct html which was causing issues downloading from Crowdin (05f65ea)
  • embedded link regexes were too greedy (9922b1b)
  • Increase timeout resilience (c7a6d93)
  • sublist items in columns (#70) (75500d7)
  • use original block values upon retry (7ab3147)
  • Use video player only for embedded videos (#60) (047bafd)
  • Work around typing issue (#65) (47885a2)

Features

docu-notion - v0.14.0-alpha.7

Published by github-actions[bot] about 1 year ago

0.14.0-alpha.7 (2023-09-25)

Bug Fixes

  • use original block values upon retry (7ab3147)
docu-notion - v0.14.0-alpha.6

Published by github-actions[bot] about 1 year ago

0.14.0-alpha.6 (2023-09-25)

Bug Fixes

  • embedded link regexes were too greedy (9922b1b)
docu-notion - v0.14.0-alpha.5

Published by github-actions[bot] about 1 year ago

0.14.0-alpha.5 (2023-09-25)

Bug Fixes

  • Increase timeout resilience (c7a6d93)
docu-notion - v0.14.0-alpha.4

Published by github-actions[bot] about 1 year ago

0.14.0-alpha.4 (2023-09-15)

Bug Fixes

  • #76 - Prevent image filename thrashing after Notion url change (f077368)
docu-notion - v0.13.4

Published by github-actions[bot] about 1 year ago

0.13.4 (2023-09-15)

Bug Fixes

  • #76 - Prevent image filename thrashing after Notion url change (d418f93)
docu-notion - v0.14.0-alpha.3

Published by github-actions[bot] about 1 year ago

0.14.0-alpha.3 (2023-09-05)

Bug Fixes

docu-notion - v0.14.0-alpha.2

Published by github-actions[bot] about 1 year ago

0.14.0-alpha.2 (2023-08-14)

Bug Fixes

  • Correct html which was causing issues downloading from Crowdin (05f65ea)