Script to convert MSFT Learn modules to PDFs. Might need more tweaking and testing, but at the moment it's working pretty well.
- Install pip dependencies from requirements.txt
- Calibre - https://calibre-ebook.com/download
- Specifically this script uses the ebook-convert CLI tool
- Optional: Install Amazon's Bookerly font - https://developer.amazon.com/en-US/alexa/branding/echo-guidelines/identity-guidelines/typography
- Shouldn't break anything if you don't have it, but let me know and I might be able to add some logic to check
Once the requiremments are installed, you can simply run with the url as a commandline argument.
python3 main.py 'https://learn.microsoft.com/en-us/training/paths/az-400-get-started-devops-transformation-journey/'
The script takes a secondary argument that specifies whether or not you want to export a .pdf or .epub.
python3 main.py 'https://learn.microsoft.com/en-us/training/paths/az-400-get-started-devops-transformation-journey/' 'epub'
You can also pass a 'Series' name after the file format if you want to keep track of which Certfication the PDFs are for with your EBook manager. This does require the file format to be set as I haven't added support for named arguments.
python3 main.py 'https://learn.microsoft.com/en-us/training/paths/az-400-get-started-devops-transformation-journey/' 'pdf' 'AZ-400'
The structure of these paths is Learning Path -> Module -> Units. PDFs should have a Table of Content with the chapters being the Module names, and sub-chapters being the unit names