nebula-atoms
v1.3.2
Published
Gatsby x Notion's templates.
Downloads
21
Maintainers
Readme
Nebula atoms
nebula-atoms
is part of the Nebula suite.
Nebula connects Notion API and GatsbyJS to automatically create static websites.
Nebula Atoms provides a set of templates and components ready to integrate and display Notion content.
Table of contents
Projects' usage
First, install package inside a site project from npm registry :
npm i nebula-atoms
Templates
Setup
Templates must be imported in project and re-exported in order to customize them with specific contents and to provide custom SCSS.
Example :
import "../styles/global.scss";
import { DefaultTemplate, Head } from "nebula-atoms";
export { Head };
export default DefaultTemplate;
Different templates
nebula-atoms
offers three different templates :
default.template
is a basic template which must be provisioned with metadata and blocks content,customizable.template
extendsdefault.template
by allowing a set of custom blocks to be added,empty.template
sets metadata the same way than other templates but its content must be filled.
Notion usage
Extended blocks
Static blocks API
Extend the package
Local development
Install nebula-atoms
in local projet using :
npm uninstall nebula-atoms
npm i ../nebula-atoms
Don't forget to run the dev routine build with the following command :
npm run dev
Build & publish
- Increase
package.json
version prop accordingly. - Run the following :
npm run build
npm publish