summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Dittberner <jandd@cacert.org>2016-05-07 23:43:28 +0200
committerJan Dittberner <jandd@cacert.org>2016-05-07 23:43:28 +0200
commitde38a6cf69186b86ec6f349cb2940938df52fc7c (patch)
treee5c5361c5b8565a9fe826e9c5da1211c6f4d0f56
parent989555ee9aa0c4cbd7a2f43641c0943d16ce64af (diff)
downloadcacert-infradocs-de38a6cf69186b86ec6f349cb2940938df52fc7c.tar.gz
cacert-infradocs-de38a6cf69186b86ec6f349cb2940938df52fc7c.tar.xz
cacert-infradocs-de38a6cf69186b86ec6f349cb2940938df52fc7c.zip
Add sub-headers in SSH host key list
-rw-r--r--docs/sphinxext/cacert.py15
1 files changed, 10 insertions, 5 deletions
diff --git a/docs/sphinxext/cacert.py b/docs/sphinxext/cacert.py
index 7c30dd0..9ec27a7 100644
--- a/docs/sphinxext/cacert.py
+++ b/docs/sphinxext/cacert.py
@@ -566,7 +566,7 @@ def process_sshkeys_nodes(app, doctree, docname):
for keys_info in sorted(env.cacert_sshkeys, key=_sshkeys_item_key):
trow = nodes.row()
- entry = nodes.entry(morerows=len(SUPPORTED_SSH_KEYTYPES) - 1)
+ entry = nodes.entry(morerows=len(SUPPORTED_SSH_KEYTYPES))
para = nodes.paragraph()
para += make_refnode(
app.builder, docname, keys_info['docname'],
@@ -577,15 +577,20 @@ def process_sshkeys_nodes(app, doctree, docname):
trow += entry
entry = nodes.entry()
- entry += nodes.paragraph(text=SUPPORTED_SSH_KEYTYPES[0])
+ para = nodes.paragraph()
+ para += nodes.strong(text='Algorithm')
+ entry += para
trow += entry
- trow += _get_formatted_keyentry(
- keys_info, SUPPORTED_SSH_KEYTYPES[0])
+ entry = nodes.entry()
+ para = nodes.paragraph()
+ para += nodes.strong(text='SSH host key MD5 fingerprint')
+ entry += para
+ trow += entry
tbody += trow
- for algorithm in SUPPORTED_SSH_KEYTYPES[1:]:
+ for algorithm in SUPPORTED_SSH_KEYTYPES:
trow = nodes.row()
entry = nodes.entry()