From 6edd7db751bb571887c84cb2f92e8226e8dd7017 Mon Sep 17 00:00:00 2001 From: Angelo Polo Date: Thu, 8 Oct 2020 15:20:15 +0200 Subject: [PATCH] Eliminate gen-doc template warning and unused (problematic) import gen-doc is now python3 compatible patch by Angelo Polo; reviewed by Ekaterina Dimitrova, Mick Semb Wever for CASSANDRA-16206 --- doc/source/_templates/indexcontent.html | 13 ++++++++++--- doc/source/_util/cql.py | 1 - 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/doc/source/_templates/indexcontent.html b/doc/source/_templates/indexcontent.html index 5d4b485d17..a95191c0d2 100644 --- a/doc/source/_templates/indexcontent.html +++ b/doc/source/_templates/indexcontent.html @@ -1,6 +1,13 @@ -{% extends "defindex.html" %} -{% block tables %} -
This documentation is currently a work-in-progress and contains a number of TODO sections. +{% extends "layout.html" %} +{%- block htmltitle -%} +{{ html_title }} +{%- endblock -%} +{% block body %} +

{{ docstitle|e }}

+

+ {% trans %}Welcome! This is the documentation for Apache Cassandra {{ version }}.{% endtrans %} +

+
This documentation is a work-in-progress. Contributions are welcome.

Main documentation

diff --git a/doc/source/_util/cql.py b/doc/source/_util/cql.py index 673fbcf6a7..023700b7bc 100644 --- a/doc/source/_util/cql.py +++ b/doc/source/_util/cql.py @@ -43,7 +43,6 @@ from pygments.lexer import Lexer, RegexLexer, do_insertions, bygroups, words from pygments.token import Punctuation, Whitespace, Error, \ Text, Comment, Operator, Keyword, Name, String, Number, Generic, Literal from pygments.lexers import get_lexer_by_name, ClassNotFound -from pygments.util import iteritems __all__ = [ 'CQLLexer' ]