Hey @svigneau,
I haven’t written detailed instructions, but @aoliveras asked before I went on holiday, and this is what I shared with him.
A quick disclaimer first - you should be familiar with using python in your environment. You don’t need to code, but you do need to edit the script to update the google document ID.
Before you start, you also need to fork the course in a box repo and use a git client to clone the repository to your local system.
Here follows the instructions:
- Copy gdoc2ciab.py to the folder your course is in.
- Copy requirements.txt to the folder your course is in.
- Setup a python virtual environment:
virtualenv -p python3.6 venv
- Activate the virtual environment
source venv/bin/activate
- Install the dependencies
pip install -r requirements.txt
- Create a google doc with your course content. Content should be formatted as described below.
- Edit the document ID in gdoc2ciab.py line 19.
- Update the course:
rm -r modules && ./venv/bin/python gdoc2ciab.py && git add modules/. index.md _data/course.yml
Content formatting:
- Use the Formatting that is in the toolbar at the top to maintain the course outline
- Headings indicate modules and sub-modules
- “Heading 1” will be a module
- “Heading 2” will be a sub-module
- “heading 3”+ will become normal headings on a page
- For content on the landing page, put it at the top of the document, before any “heading 1” or “heading 2”.
- You can use normal bullets
- To insert a picture, upload the picture to GitHub, and then add the ‘raw’ link to the doc. Image added the normal google doc way won’t work atm.
- You can embed a youtube video by adding the “embed link” to the doc. Ex.
<iframe width="560" height="315" src="https://www.youtube.com/embed/bQqmIS7WQa8" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
would embed the video on the P2PU landing page in the course. Other services that is embedded using an iframe can also be used similarly.
Let me know if you get stuck.