diff options
author | Stephen Finucane <stephen@that.guru> | 2017-05-10 21:32:18 -0400 |
---|---|---|
committer | Ben Pfaff <blp@ovn.org> | 2017-05-18 15:49:09 -0700 |
commit | f15010f6631fe6a7f960ab4a8fca6f777d92cf92 (patch) | |
tree | 1f7e897e9583ad83d0119969bdf0bb42642a91fe /Documentation/conf.py | |
parent | 34d8e04bec46c40ab62f837c526e0086e332f056 (diff) | |
download | openvswitch-f15010f6631fe6a7f960ab4a8fca6f777d92cf92.tar.gz |
doc: Reduce duplication in 'man_pages'
All these entries are going to be roughly the same, with only two key
differences. Clarify things by focusing on those differences.
Signed-off-by: Stephen Finucane <stephen@that.guru>
Signed-off-by: Ben Pfaff <blp@ovn.org>
Diffstat (limited to 'Documentation/conf.py')
-rw-r--r-- | Documentation/conf.py | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/Documentation/conf.py b/Documentation/conf.py index 655574748..d70ee6b93 100644 --- a/Documentation/conf.py +++ b/Documentation/conf.py @@ -112,11 +112,15 @@ html_static_path = ['_static'] # One entry per manual page. List of tuples # (source start file, name, description, authors, manual section). -man_pages = [ - ('ref/ovs-test.8', 'ovs-test', - u'Check Linux drivers for performance, vlan and L3 tunneling problems', - [author], 8), - ('ref/ovs-vlan-test.8', 'ovs-vlan-test', - u'Check Linux drivers for problems with vlan traffic', - [author], 8) +_man_pages = [ + ('ovs-test.8', + u'Check Linux drivers for performance, vlan and L3 tunneling problems'), + ('ovs-vlan-test.8', + u'Check Linux drivers for problems with vlan traffic'), ] + +# Generate list of (path, name, description, [author, ...], section) +man_pages = [ + ('ref/%s' % filename, filename.split('.', 1)[0], + description, [author], filename.split('.', 1)[1]) + for filename, description in _man_pages] |