This is a static website for a research group, hosted as GitHub Pages.
This website is designed to update its contents every 30 minutes based on a Google Sheets document with scheduled GitHub Actions jobs.
This project is designed to update its website contents in docs folder every 30 minutes with scheduled GitHub Actions jobs defined in this file. The website contents also get updated when you push something into the website.
Do NOT directly modify the contents in docs folder, since the contents of that folder gets auto-updated every 30 minutes.
If you need to upload image files or any other static files to use in the website to this repository, please put your files in assets folder. All files in the folder will be copied to docs/assets when other website contents get updated.
-
Fork this repository to your account.
-
Configure the repository to publish a GitHub Pages site from a docs folder onh the master branch. Read this document if you need help.
-
Configure a custom domain for your website if you need to. Read this document if you need help.
-
Create a new Google Sheets document to store your website contents. Set
DATA_URL
value in the file builder/config.py. Follow the instructions below for this. -
Get a valid Google API key to use when downloading the website contents. Set the key as a encrypted secret
API_KEY
. Follow the instructions below for this. -
Voilà! You have
This project automatically downloads contents for the website from a Google Sheets document. Set URL of your document as a value for DATA_URL
in the file builder/config.py.
An example document is available at here.
To create your own document, follow the instructions below.
-
Use this link to make a copy of the example Sheets document.
-
Set your document's sharing settings as: Public on the web - Anyone on the Internet can find and view. Read this document if you need help.
-
Copy the URL of your document and paste in the file builder/config.py as a value of
DATA_URL
.
The website builder in this project needs a valid Google API key to download website contents from the Google Sheets document. Add the key to the repository as a encrypted secret value API_KEY
.
-
Get an API key from Google Developers Console. Read this answer from a question in Stack Overflow to see how to create an API key and enable its use for Google Sheets APIs.
-
Set your API key as a secret value
API_KEY
. Read this doucment to see how to add encrypted secrets for a GitHub repository.
This work was supported and funded by JinYeong Bak.