🚀 Static Motion [DISCONTINUED]
Make your static site from Notion.so with the help of Netlify and Travis CI.
How do I install this… No! You do not need to install it on your machine.
All you need is a Github account.
- Fork this project.
- Turn on Travis CI for your forked repository.
- Get your access token at Netlify and set the following environment variables on Travis CI's setting page:
ACCESS_TOKEN: fill your Netlify access token. (Remember to secure it!)
SITE_ID: The "API ID" of your Netlify site.
index: The URL of your index page on Notion.so.
title_sep: Your title separator. No space around!
description: Your site description. "Remember to quote your string!"
base_url: Your site URL.
build_mobile: Will build a mobile version of your entire site at /m/ if this option presents.
apple_touch_icon: the URL of your
favicon: the URL of your
anchor: Enable anchor detection if this option presents. All urls starting with
#somewhere in the url will be rewritten to your relative path.
- Bang! Wait a few minutes and your site will be up!
- Want to have Google Analytics and Disqus? See customization.
Updating Your Site
You can set up cron jobs in your Travis CI project. However, if you wish to update your site immediately, please manually rebuild your project in Travis CI.
Committing directly to your Github repository to trigger Travis CI rebuild is highly discouraged.
Upgrading Your Static Motion
Simply merge this repository with your repository.
As notion.so make changes to their template, this utility may break at any time.
Before you go, make sure you have:
- Python 3.6,
- the latest Google Chrome,
- a working
Once you are ready, clone this repo and cd into it. Install the dependency:
pip install -r requirements.txt
Then run the static site generator.
- Embedded elements might not work.
- Embedded tweets are not working.
- Fonts in code blocks may flicker slightly.
- Pages with the same base url but with different hash cannot coexist in the same site.