Functions | |
def | clean |
Variables | |
tuple | doc_folder = Path('doc') |
tuple | EQ_PATTERN = re.compile(r'!eq\[([^\]]+)\]') |
tuple | equation = m.group(1) |
list | existing_gifs = [p for p in doc_folder.iterdir() if p.suffix == '.gif'] |
tuple | gifs_to_remove = set(existing_gifs) |
tuple | img = requests.get(url) |
tuple | img_filename = doc_folder/(clean(equation) + '.gif') |
tuple | m = EQ_PATTERN.search(s) |
tuple | s = f.read() |
list | src_files = [p for p in doc_folder.iterdir() if p.suffix == '.md'] |
string | url = 'http://latex.codecogs.com/gif.download?' |
def equations.clean | ( | s | ) |
Definition at line 7 of file equations.py.
tuple equations::doc_folder = Path('doc') |
Definition at line 20 of file equations.py.
tuple equations::EQ_PATTERN = re.compile(r'!eq\[([^\]]+)\]') |
Definition at line 19 of file equations.py.
tuple equations::equation = m.group(1) |
Definition at line 31 of file equations.py.
list equations::existing_gifs = [p for p in doc_folder.iterdir() if p.suffix == '.gif'] |
Definition at line 22 of file equations.py.
tuple equations::gifs_to_remove = set(existing_gifs) |
Definition at line 23 of file equations.py.
tuple equations::img = requests.get(url) |
Definition at line 36 of file equations.py.
tuple equations::img_filename = doc_folder/(clean(equation) + '.gif') |
Definition at line 32 of file equations.py.
tuple equations::m = EQ_PATTERN.search(s) |
Definition at line 29 of file equations.py.
tuple equations::s = f.read() |
Definition at line 28 of file equations.py.
list equations::src_files = [p for p in doc_folder.iterdir() if p.suffix == '.md'] |
Definition at line 21 of file equations.py.
string equations::url = 'http://latex.codecogs.com/gif.download?' |
Definition at line 34 of file equations.py.