- Jupyter
- Disqus
- 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...
├── 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
├──
├──
├──
├──
├──
└──
- Need to get the Menu in right order
- Get rid of titles in pages
- get FL box to go to home
- get menu boxes to be highlighted?
- get blog to have the index.html layout
- creating submenus
- Fix URL
- Get widgets on every page
-
Clone this repository with associated submodules.
$ git clone --recurse-submodules https://www.github.com/francisglee/francisglee.github.io
-
Activate virtual environment and install Python packages.
$ python3 -m venv venv $ source venv/bin/activate (venv)$ pip3 install -r requirements.txt
-
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
-
View generated files locally (http://localhost:8000/).
(venv)$ cd output | python3 -m http.server
-
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
-
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
-
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