- Set up a github account
- Create a Public repository called
testgpageswith aREADME.mdand 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.mdintestgpagesand commit and push to understand the git flow.
- Copy the
notebooksfolder fromgpagesintotestgpages(using the Finder or the terminal) - [OPTIONAL] Using that terminal, convert the notebooks to html:
jupyter nbconvert --output-dir . --to html notebooks/olives-eda.ipynbjupyter nbconvert --output-dir . --to html notebooks/olives-model.ipynb
- Copy
oldondex.htmlfromgpagestoindex.htmlintestgpages. Edit to suit. - Commit and push
- Go to the github user interface for settings and enable a website on the
masterbranch oftestgpages. - Go to
https://username.github.io/testgpages/index.htmlto 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
testgpagesfolder. We will generate markdown instead - From
gpagescopy the_layoutsfolder, the _posts folder, the_supportfolder,index.md, and_config.yml. - Optionally add the
_supportfolder to .gitignore so its not committed. - [OPTIONAL] Using the
testgpagesterminal, 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.ipynbjupyter 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.mdpython _support/nbmd.py olives-model.md
- Edit the markdown files to add a YAML tag
nav_include: 1andnav_include: 2respectively to the above markdown files.The 1 and 2 reflect the position on the navigation menu in thedefault.htmltemplate 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