Rodja Trappe преди 2 години
родител
ревизия
316192a99c
променени са 1 файла, в които са добавени 0 реда и са изтрити 9 реда
  1. 0 9
      website/build_search_data.py

+ 0 - 9
website/build_search_data.py

@@ -33,15 +33,6 @@ class DemoVisitor(ast.NodeVisitor):
                         'content': content,
                         'url': url
                     })
-                elif isinstance(function, ast.Attribute) and function.attr == 'text_demo':
-                    title = decorator.args[0].s
-                    content = textwrap.dedent(decorator.args[1].s)
-                    url = '/docs/' + node.name
-                    documents.append({
-                        'title': title,
-                        'content': content,
-                        'url': url
-                    })
         self.generic_visit(node)