mirror of
https://github.com/PeridexisErrant/DF-Walkthrough.git
synced 2025-09-21 21:30:47 +02:00
Fix line length; recognise "figure" in lint.py
This commit is contained in:
parent
e0e4141e45
commit
22840c555e
2 changed files with 5 additions and 3 deletions
|
@ -58,8 +58,9 @@ def unused_images(path):
|
|||
img = basename(img)
|
||||
if img == 'Thumbs.db':
|
||||
continue
|
||||
markup = '.. image:: images/{}'.format(img)
|
||||
if markup not in text:
|
||||
img_markup = '.. image:: images/{}'.format(img)
|
||||
fig_markup = '.. figure:: images/{}'.format(img)
|
||||
if img_markup not in text and fig_markup not in text:
|
||||
failed = True
|
||||
print('Error: not referenced: "{}/images/{}"'.format(d, img))
|
||||
if failed:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue