diff --git a/docs/ElunaDoc/__main__.py b/docs/ElunaDoc/__main__.py index 3748166..d6c7842 100644 --- a/docs/ElunaDoc/__main__.py +++ b/docs/ElunaDoc/__main__.py @@ -160,10 +160,14 @@ if __name__ == '__main__': # Make a folder for the class. os.mkdir('build/' + class_.name) index_path = '{}/index.html'.format(class_.name) + sidebar_path = '{}/sidebar.js'.format(class_.name) # Render the class's index page. render('class.html', index_path, level=1, classes=classes, current_class=class_) + # Render the class's sidebar script. + render('sidebar.js', sidebar_path, level=1, classes=classes, current_class=class_) + # Render each method's page. for method in class_.methods: method_path = '{}/{}.html'.format(class_.name, method.name) diff --git a/docs/ElunaDoc/templates/method.html b/docs/ElunaDoc/templates/method.html index 77642d2..43983f9 100644 --- a/docs/ElunaDoc/templates/method.html +++ b/docs/ElunaDoc/templates/method.html @@ -23,9 +23,18 @@ {% block sidebar %}