Giter VIP home page Giter VIP logo

francisglee.github.io's Introduction

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/

francisglee.github.io's People

Contributors

francisglee avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.