Skip to content

Build any website for free with Notion automation | 使用 Notion + Hugo 免费自动化构建任何网站

License

Notifications You must be signed in to change notification settings

nonacosa/notion-site

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Repository files navigation

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.