Skip to content

dionjwa/docu-notion-plugins

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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;
}

About

Plugins needed for correct docu-notion functionality

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published