Skip to content

francisglee/francisglee.github.io

Repository files navigation

FrancisGLee.com

Built with:

  1. Pelican

Plugins:

  1. Jupyter
  2. Disqus
  3. Render Math. This cannot be updated using git submodule add !!! :( (I had to copy repo manually) I should add the entire plugin repo as a submodule...

Directory

├── requirements.txt
├── README.md
├── pelicanconf.py
├── publishconf.py
├── Makefile
├── fabfile.py
├── develop_server.sh
├── .gitignore
├── venv
├── themes
|    └── portfolio
├── plugins
|    ├── Jupyter
|    ├── Google Analytics
|    ├── Disqus
|    ├──
|    ├──
|    ├──
|    └──
├── contents
|    ├── images
|    ├── pages
|    ├── pdfs
|    └── posts
└── output
     ├──
     ├──
     ├──
     ├──
     ├──
     └──

TODO

  1. Need to get the Menu in right order
  2. Get rid of titles in pages
  3. get FL box to go to home
  4. get menu boxes to be highlighted?
  5. get blog to have the index.html layout
  6. creating submenus
  7. Fix URL
  8. Get widgets on every page

Getting Started

  1. Clone this repository with associated submodules.

    $ git clone --recurse-submodules https://www.github.com/francisglee/francisglee.github.io
  2. Activate virtual environment and install Python packages.

    $ python3 -m venv venv
    $ source venv/bin/activate
    (venv)$ pip3 install -r requirements.txt

Develop Locally

  1. Convert content to HTML.

    (venv)$ pelican -s pelicanconf.py # generates HTML for entire content
    (venv)$ pelican --write-selected output/posts/MY-POST-TITLE.md # generates HTML for single article, MY-POST-TITLE
  2. View generated files locally (http://localhost:8000/).

    (venv)$ cd output | python3 -m http.server
  3. Once you're ready to deploy your site to production, you'll have to regenerate the HTML with any production-specific settings (e.g.- analytic feeds, etc.)

    (venv)$ pelican content -s publishconf.py

Deploy to Github Pages

  1. Push contents to dev branch on website repository.

    (venv)$ git checkout -b dev # remove `-b` tag if dev branch already exists.
    (venv)$ git add .
    (venv)$ git commit -m "New Post"
    (venv)$ git push origin dev
  2. Use ghp-import to extract contents of the output folder to the master branch.

    (venv)$ ghp-import output -b master
    (venv)$ git push origin master

Resources

  1. http://blog.gabrielrezzonico.com/data-science-portfolio-using-pelican.html
  2. https://www.dataquest.io/blog/how-to-setup-a-data-science-blog/
  3. https://jjakimoto.github.io/articles/2018/Mar/01/start_blog/

About

Website, Portfolio, and Blog @ francisglee.github.io

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published