Skip to content

TiO2/tio2.github.io

Repository files navigation

tio2.github.io

This is the souce code for my personal site.

The tech stack: static Flask site by Frozen-Flask (for building static content) and Flask-FlatPages (for writing pages in Markdown). The static pages can be deployed to Github for hosting. Added github actions.

The github setup: config the branch "gh-pages". It will contain the final files for github page.

Check out the site.

History:

03-25-2016 the csv as the format for post input check the csv_to_md.py However, pay attention, that the created md filename can not contian blanks or the github will not render the page at all. Delete the csv rows after the run? (temporary solution for the constant updates issue by making a copy of the original csv or append to a backup csv. see source code.)

03-17-2020 update the files to Python3. Use absolute import for some of the python files.

11-19-2020 added Github CI Actions:

instructions to run:

Works with Python 3.8

$ pip install -r requirements.txt

Run local server for local development

$ python run.py

Build static content

$ python freeze.py

deploy to github:

Github action is enabled to build the app. So simply Fork, modify, commit, push.

Reference:

  1. https://github.com/sloria/flask-ghpages-example
  2. https://github.com/peaceiris/actions-gh-pages
  3. https://dev.to/peaceiris/deploy-to-github-pages-with-github-actions-for-static-site-generator-1mo6

About

Personal pages, hosted by Github.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •