From 03928eb23f37413d5fe36e5a1afde3aff29d236a Mon Sep 17 00:00:00 2001
From: Darko Poljak <darko.poljak@gmail.com>
Date: Wed, 25 May 2016 08:06:13 +0200
Subject: [PATCH] Fix man section conf.

---
 docs/man/conf.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/docs/man/conf.py b/docs/man/conf.py
index 0cf8bc61..7df4ed25 100644
--- a/docs/man/conf.py
+++ b/docs/man/conf.py
@@ -265,7 +265,7 @@ for mansubdir in ('man1', 'man7'):
             froot, fext = os.path.splitext(fname)
             if fext == '.rst':
                 man_page = (os.path.join(mansubdir, froot), froot, '',
-                        [], 7)
+                        [], mansubdir[-1])
                 man_pages.append(man_page)
 
 #man_pages = [