code: def make_images_responsive(app, doctree):
      
  
      for fig in doctree.traverse(condition=nodes.figure):
          if 'thumbnail' in fig['classes']:
              continue
  
          for img in fig.traverse(condition=nodes.image):
              img['classes'].append('img-responsive')
docs: Add Bootstrap img-responsive class to images.