summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorJan Dittberner <jandd@cacert.org>2016-05-07 22:43:52 +0200
committerJan Dittberner <jandd@cacert.org>2016-05-07 22:43:52 +0200
commit117b12689463d1518767fd51c75c154320864ce6 (patch)
treed922edc1eb5a930187bc207f882dd6bf8ac93793 /docs
parentacfd810d571074a10f3b5f84cf2b386deae566b4 (diff)
downloadcacert-infradocs-117b12689463d1518767fd51c75c154320864ce6.tar.gz
cacert-infradocs-117b12689463d1518767fd51c75c154320864ce6.tar.xz
cacert-infradocs-117b12689463d1518767fd51c75c154320864ce6.zip
Fix minor issues with certificate lists
This commit fixes a grammar error in the certlist error handling and creates paired index entries for certificates instead of single ones.
Diffstat (limited to 'docs')
-rw-r--r--docs/sphinxext/cacert.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/docs/sphinxext/cacert.py b/docs/sphinxext/cacert.py
index aa728f3..7c30dd0 100644
--- a/docs/sphinxext/cacert.py
+++ b/docs/sphinxext/cacert.py
@@ -298,8 +298,8 @@ def process_sslcerts(app, doctree):
for node in doctree.traverse(sslcertlist_node):
if hasattr(env, 'cacert_certlistdoc'):
raise SphinxError(
- "There must only be one sslcertlist directive present in "
- "the document tree.")
+ "There must be one sslcertlist directive present in "
+ "the document tree only.")
env.cacert_certlistdoc = env.docname
for node in doctree.traverse(sslcert_node):
@@ -342,7 +342,7 @@ def process_sslcerts(app, doctree):
if 'altnames' in certdata:
info['altnames'] = certdata['altnames'].copy()
indexnode = addnodes.index(entries=[
- ('single', _get_cert_index_text(info), targetnode['ids'][0],
+ ('pair', _get_cert_index_text(info), targetnode['ids'][0],
'', None)
])
@@ -479,7 +479,7 @@ def process_sslcert_nodes(app, doctree, docname):
)
cert_sec += nodes.title(text=cert_info['cn'])
indexnode = addnodes.index(entries=[
- ('single', _get_cert_index_text(cert_info),
+ ('pair', _get_cert_index_text(cert_info),
cert_sec['ids'][0], '', None),
])
content.append(indexnode)