The code that generates all the web site by the OSDC course participants.
See the https://github.com/osdc-Code-Maven/osdc-skeleton repositor as an example
In the GitHub Action workflow file add
- name: Generate HTML Pages
uses: osdc-code-maven/osdc-site-generator@v1
- Clone the repository of the site generator:
git clone [email protected]:OSDC-Code-Maven/osdc-site-generator.git
- Clone your the repo of the OSDC course
git clone [email protected]:OSDC-Code-Maven/osdc-skeleton.git
So you will have two folders one next to the other:
osdc-site-generator
osdc-skeleton
cd osdc-site-generator
virtualenv -p python3 venv
source venv/bin/activate
pip install -r requirements.txt -c constraints.txt
- Generate GITHUB token
-
See the documentation
-
Visit GitHub (and log in)
-
Go to Settings
-
Go to Developer Settings
-
Personal Access tokens / Tokens
-
Generate New token
-
Enable following: notifications, read:org, read:project, read:user, user:email
-
Then create the environment variable with the value:
export MY_GITHUB_TOKEN=.....
cd ../osdc-skeleton
../osdc-site-generator/generate.py
../osdc-site-generator/app.py
There is a tool to verify that the CI processes are the same in all the courses as in the skeleton
Another tool allows us to run generate.py on all the courses.