0.1.6 • Published 4 months ago

@metapages/docu-notion-plugins v0.1.6

Weekly downloads
-
License
-
Repository
github
Last release
4 months ago

docu-notion plugins

Plugins for docu-notion (min version 0.14.0)

  • adjusts mermaid links to other notion documents so they work in docusaurus
  • fixes paths when you have ./docs and ./blog
  • columns break, uses different column rendering that works with images and mermaid diagrams

Usage:

Example docu-notion.config.ts:

import {
  IDocuNotionConfig,
  Log,
} from '@sillsdev/docu-notion';

import {
  correctNotionUrlsInMermaid,
  modifiedStandardInternalLinkConversion,
  notionColumnsUpgraded,
  embedToIframe,
} from '@dionjw/docu-notion-plugins';

const config: IDocuNotionConfig = {
  plugins: [
    notionColumnsUpgraded,
    correctNotionUrlsInMermaid(),
    modifiedStandardInternalLinkConversion,
    // Convert all [embed] markdown tags to <iframes>, with
    // special treatment for metaframes/metapages
    embedToIframe,
  ],
};
export default config;

For the notionColumnsUpgraded plugin you will need this css added to your docusaurus:

.custom-docunotion-row {
  display: flex;
  direction: row;
  min-height: 0;
  max-height: 100%;
  align-self: center;
  
  flex-direction: row;
  justify-content: center;
  align-items: center;
}
  
.custom-docunotion-row-cell {
  /* Allow shrinkage */
  flex: 1 1 auto;
  height: 100%;
  text-align: center;
}
0.1.6

4 months ago

0.1.5

6 months ago

0.1.4

7 months ago

0.1.3

8 months ago

0.1.1

8 months ago

0.1.0

8 months ago

0.0.8

8 months ago

0.0.7

8 months ago

0.0.5

8 months ago

0.0.4

8 months ago

0.0.3

8 months ago

0.0.2

8 months ago

0.0.1

8 months ago