- Set up a github account
- Create a Public repository called
testgpages
with aREADME.md
and a Jekyll.gitignore
. - Clone this repository down.
- Also fork-clone/clone the repository https://github.com/rahuldave/gpages .
- Open both repositories side by side in the Finder (File Manager)
- Make an edit to the
README.md
intestgpages
and commit and push to understand the git flow.
- Copy the
notebooks
folder fromgpages
intotestgpages
(using the Finder or the terminal) - [OPTIONAL] Using that terminal, convert the notebooks to html:
jupyter nbconvert --output-dir . --to html notebooks/olives-eda.ipynb
jupyter nbconvert --output-dir . --to html notebooks/olives-model.ipynb
- Copy
oldondex.html
fromgpages
toindex.html
intestgpages
. Edit to suit. - Commit and push
- Go to the github user interface for settings and enable a website on the
master
branch oftestgpages
. - Go to
https://username.github.io/testgpages/index.html
to see your website
Notice that we have no navigation. We would have to build all this in by hand. Also notice the ugly In
and Out
prompts.
- Delete the html files in the main
testgpages
folder. We will generate markdown instead - From
gpages
copy the_layouts
folder, the _posts folder, the_support
folder,index.md
, and_config.yml
. - Optionally add the
_support
folder to .gitignore so its not committed. - [OPTIONAL] Using the
testgpages
terminal, convert the notebooks into markdown using our custom template. Else use the provided markdown files.jupyter nbconvert --output-dir . --to markdown --template _support/markdown.tpl notebooks/olives-eda.ipynb
jupyter nbconvert --output-dir . --to markdown --template _support/markdown.tpl notebooks/olives-model.ipynb
- Commit and push and go to the website in a bit to see the changes we have got. Its much better already.
- Add YAML preambles and some TOC frontmatter to our markdown files ( can do this by hand too)
python _support/nbmd.py olives-eda.md
python _support/nbmd.py olives-model.md
- Edit the markdown files to add a YAML tag
nav_include: 1
andnav_include: 2
respectively to the above markdown files.The 1 and 2 reflect the position on the navigation menu in thedefault.html
template in_layouts
. - Commit and push everything and go to the website in a bit to check the improvements
Use the minimal-mistakes theme to create a portfolio site for yourself. You will have to create a repo: username.github.io