This script is triggered on push to main in the github actions. It converts markdown files to cobra pdf subjects.
First, cd your way to the script's directory
cd .github/workflows/parserI strongly suggest making a virtual env for ease of use.
python3 -m venv venv
source venv/bin/activatepip install -r requirements.txtYou only need to give it the path of the markdown file you want to convert. No more title, version, campus bullshit. erm.
python3 cc_subjects.py <PATH-TO-MD>Important note. The pdf will be generated in the parent directory of the markdown file. Exemple:
├── nom_du_sujet
│ ├── Sujet.pdf // Généré
│ └── subject
│ └── sujet.md
│