Skip to content
inbox

GitHub Action

notion-site

v1.1.7 Latest version

notion-site

inbox

notion-site

Build an efficient blog or content Sites based on Notion and Hugo

Installation

Copy and paste the following snippet into your .yml file.

              

- name: notion-site

uses: nonacosa/notion-site@v1.1.7

Learn more about this action in nonacosa/notion-site

Choose a version

notion-site

notion-site is an open source software for a custom website based on Notion and Hugo, and you can find your favorite template as your blog or documentation site among the hundreds of templates in the Hugo Template Store.

Example notion page
doc notion-page
blog notion-page

Requisites

  • Notion Database id for your articles.
  • Notion API secret token.

Setup

Unix system install

curl -sSf https://raw.githubusercontent.com/pkwenda/notion-site/master/install.sh | sh

Debug local

cd your-hugo-site
notion-site init
# edit notion-site.yml your datatbse id and .env file notion secret
notion-site

Github Action

The installation command tool is helpful for local debugging. If you do not want to debug locally, you can also copy the configuration file to your project and run it directly through GitHubAction. You can see the example config in notion-site-doc.

To use it as a Github Action, you can use the template of the repository in .github/worflows/notion.yml.

Contributing

See CONTRIBUTING for details on submitting patches and the contribution workflow.

Special thanks

License

notion-site is under the MIT license. See the LICENSE file for details.