code: def setup(app):
      
      app.add_config_value('offline_skin_js_path', None, 'html')
      app.add_config_value('offline_wavedrom_js_path', None, 'html')
      app.add_config_value('wavedrom_html_jsinline', True, 'html')
      app.add_directive('wavedrom', WavedromDirective)
      app.connect('build-finished', build_finished)
      app.connect('builder-inited', builder_inited)
      app.connect('doctree-resolved', doctree_resolved)
  
      app.add_node(wavedromnode,
                   html = (visit_wavedrom, None),
                   latex = (visit_wavedrom, None),
                   )
docs: Setup the extension