@metapages/docu-notion-plugins
v0.1.6
Published
Plugins for [docu-notion](https://www.npmjs.com/package/@sillsdev/docu-notion) (min version `0.14.0`)
Downloads
722
Readme
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;
}