diff options
author | Aaron LI <aly@aaronly.me> | 2019-05-06 13:35:48 +0800 |
---|---|---|
committer | Aaron LI <aly@aaronly.me> | 2019-05-06 13:35:48 +0800 |
commit | 8b0a7481e6e1d854b23521f9489d9e39294ea385 (patch) | |
tree | fc53e1a1178327ed8f908dc6496b522a0edd6954 | |
parent | b1722f8f9ddf3c4e355fb44bfa7431e992f148b2 (diff) | |
download | resume-8b0a7481e6e1d854b23521f9489d9e39294ea385.tar.bz2 |
Document the YAML requirement of make-fontawesome5.py
-rw-r--r-- | README.md | 13 | ||||
-rwxr-xr-x | fontawesome5/make-fontawesome5.py | 3 |
2 files changed, 12 insertions, 4 deletions
@@ -17,9 +17,16 @@ by Alessandro Plasmati. Font Awesome 5 -------------- -I wrote a simple tool [`make-fontawesome5.py`](fontawesome5/make-fontawesome5.py) -to generate the LaTeX style file for using the latest **Font Awesome 5** -(the *free* edition) in LaTeX. +I wrote a simple tool [`make-fontawesome5.py`](fontawesome5/make-fontawesome5.py), +which will download the latest icon list from the +[Font Awesome](https://github.com/FortAwesome/Font-Awesome) project +and then generate the LaTeX style file for using the latest +**Font Awesome 5** (the *free* edition) in LaTeX. + +This Python script requires the [`PyYAML`](https://github.com/yaml/pyyaml) +package, which can be installed with `pip3 install --user PyYAML` +or `sudo apt install python3-yaml`. + A pre-generated style file [`fontawesome5.sty`](fontawesome5/fontawesome5.sty) (matches Font Awesome **v5.2.0**) is also provided. diff --git a/fontawesome5/make-fontawesome5.py b/fontawesome5/make-fontawesome5.py index 0c26f30..14de6a2 100755 --- a/fontawesome5/make-fontawesome5.py +++ b/fontawesome5/make-fontawesome5.py @@ -21,10 +21,11 @@ Credits: import os import sys import argparse -import yaml import urllib.request from datetime import datetime +# Require the 'PyYAML' package (or 'python3-yaml' package on Debian) +import yaml FA_URL = "https://github.com/FortAwesome/Font-Awesome" ICONS_URL = FA_URL + "/raw/master/advanced-options/metadata/icons.yml" |