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
This commit is contained in:
Angelo Polo 2020-10-08 15:20:15 +02:00 committed by Mick Semb Wever
parent 9e513390b7
commit 6edd7db751
No known key found for this signature in database
GPG Key ID: E91335D77E3E87CB
2 changed files with 10 additions and 4 deletions

View File

@ -1,6 +1,13 @@
{% extends "defindex.html" %}
{% block tables %}
<div id="wipwarning">This documentation is currently a work-in-progress and contains a number of TODO sections.
{% extends "layout.html" %}
{%- block htmltitle -%}
<title>{{ html_title }}</title>
{%- endblock -%}
{% block body %}
<h1>{{ docstitle|e }}</h1>
<p>
{% trans %}Welcome! This is the documentation for Apache Cassandra {{ version }}.{% endtrans %}
</p>
<div id="wipwarning">This documentation is a work-in-progress.
<a href="{{ pathto("bugs") }}">Contributions</a> are welcome.</div>
<h3>Main documentation</h3>

View File

@ -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' ]