Fix line length; recognise "figure" in lint.py

This commit is contained in:
PeridexisErrant 2015-11-09 22:04:55 +11:00
parent e0e4141e45
commit 22840c555e
2 changed files with 5 additions and 3 deletions

View file

@ -58,8 +58,9 @@ def unused_images(path):
img = basename(img) img = basename(img)
if img == 'Thumbs.db': if img == 'Thumbs.db':
continue continue
markup = '.. image:: images/{}'.format(img) img_markup = '.. image:: images/{}'.format(img)
if markup not in text: fig_markup = '.. figure:: images/{}'.format(img)
if img_markup not in text and fig_markup not in text:
failed = True failed = True
print('Error: not referenced: "{}/images/{}"'.format(d, img)) print('Error: not referenced: "{}/images/{}"'.format(d, img))
if failed: if failed:

View file

@ -907,7 +907,8 @@ stack. Therefore, we need to forbid all non-quartzite doors and blocks.
* Do the same for blocks. * Do the same for blocks.
* We can check our success by starting to build a pump/door and * We can check our success by starting to build a pump/door and
verifying that quartzite is the only option for either. verifying that quartzite is the only option for either.
* Build the pump stack using Quickfort. Ensure that you start on a 'Lower'-type level with the 3x1 output chamber to the right. * Build the pump stack using Quickfort. Ensure that you start on a
'Lower'-type level with the 3x1 output chamber to the right.
* Hit :kbd:`Alt+F`, load Pump Stack - Quickfort - DF Magma * Hit :kbd:`Alt+F`, load Pump Stack - Quickfort - DF Magma
Tutorial.xlsx, and select Pump Stack - Build from the menu on the left. Tutorial.xlsx, and select Pump Stack - Build from the menu on the left.
* Read the tooltip instructions, hit :kbd:`b`, :kbd:`o`, place the * Read the tooltip instructions, hit :kbd:`b`, :kbd:`o`, place the