-
Notifications
You must be signed in to change notification settings - Fork 4
Operating the Build Scripts
The scripts are provided as a manual alternative to the automatic process using Docker listed within the docker/docker.md file of the project. These are used internally within the automatic process, but is available for reference or extended use.
All scripts can be found in the build/ folder in the project. To use the scripts, ensure that you have pandoc (and possible additional programs needed for the PDF output) set up.
Note: The build script is expected to run in a Unix-type environment.
Required Software and Dependencies:
-
pandoc>= 3.0 (Visit your package manager) - For PDF export: LaTeX libraries -
texlive-core,texlive-latexextra(Visit your package manager) - The font "Fira Code" must be installed for PDF output. (https://github.com/tonsky/FiraCode/wiki/Installing)
Optional Software:
- Python 3 library:
premailer(Usepip install premailer)- This is only used when
premaileris enabled when runningmd_to_html.sh.
- This is only used when
- The
build_all.shscript will compile all .md files in thesrc/folder.- To use it:
- Open your command line into to the folder that contains the script.
- Run
./build_all.sh.
- For more help, run
./build_all.sh -h.
- To use it:
- The
md_to_html.shscript will compile a single .md file that you specify.- To use it:
- Open your command line into the folder that contains the script.
- Run
./md_to_html.sh <markdown file name>.
- For more help, run
./md_to_html.sh.
- To use it:
Both scripts work by using a combination of pandoc and (optionally) a Python library called premailer to convert the markdown files to HTML, DOCX, and PDF. pandoc takes care of the conversion, and premailer will adjust the HTML output from pandoc into a format that can be copy-pasted into Webcourses without losing its formatting (Webcourses does not support the <style> tag).