1.3.2 • Published 6 months ago

nebula-atoms v1.3.2

Weekly downloads
-
License
ISC
Repository
-
Last release
6 months ago

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 extends default.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
1.3.2

6 months ago

1.2.8

8 months ago

1.2.7

8 months ago

1.3.1

8 months ago

1.3.0

8 months ago

1.2.5

9 months ago

1.2.4

9 months ago

1.2.2

9 months ago

1.2.1

9 months ago

1.2.0

9 months ago

1.1.3

9 months ago

1.1.2

9 months ago

1.1.1

9 months ago

1.1.0

9 months ago

1.0.0

9 months ago