From 9656ac025404004fc305e3fcfbe5ed7d47dfc8bc Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Tue, 24 Oct 2017 23:05:51 +0900 Subject: [PATCH] Fix sphinx warnings --- doc/_exts/sphinxcontrib/rubydomain.py | 3 +-- doc/conf.py.in | 2 +- doc/docutils.conf | 2 ++ 3 files changed, 4 insertions(+), 3 deletions(-) create mode 100644 doc/docutils.conf diff --git a/doc/_exts/sphinxcontrib/rubydomain.py b/doc/_exts/sphinxcontrib/rubydomain.py index 79dbf655..14114cba 100644 --- a/doc/_exts/sphinxcontrib/rubydomain.py +++ b/doc/_exts/sphinxcontrib/rubydomain.py @@ -13,6 +13,7 @@ import re from docutils import nodes from docutils.parsers.rst import directives +from docutils.parsers.rst import Directive from sphinx import addnodes from sphinx import version_info @@ -21,10 +22,8 @@ from sphinx.locale import l_, _ from sphinx.domains import Domain, ObjType, Index from sphinx.directives import ObjectDescription from sphinx.util.nodes import make_refnode -from sphinx.util.compat import Directive from sphinx.util.docfields import Field, GroupedField, TypedField - # REs for Ruby signatures rb_sig_re = re.compile( r'''^ ([\w.]*\.)? # class name(s) diff --git a/doc/conf.py.in b/doc/conf.py.in index 0cc5a5a9..bc6401ec 100644 --- a/doc/conf.py.in +++ b/doc/conf.py.in @@ -157,7 +157,7 @@ html_theme_path = ['@top_srcdir@/doc/_themes'] # If true, SmartyPants will be used to convert quotes and dashes to # typographically correct entities. -html_use_smartypants = False +#html_use_smartypants = False # Custom sidebar templates, maps document names to template names. html_sidebars = { diff --git a/doc/docutils.conf b/doc/docutils.conf new file mode 100644 index 00000000..f5208a87 --- /dev/null +++ b/doc/docutils.conf @@ -0,0 +1,2 @@ +[parsers] +smart_quotes=no