doc: fix relative path of NIC table input file

Fix relative path between sphinx conf.py file and Nic table file
to allow automatic build on ReadTheDocs.

Fixes: 9db3f52126 ("doc: generate NIC overview table from ini files")

Signed-off-by: John McNamara <john.mcnamara@intel.com>
Tested-by: Ferruh Yigit <ferruh.yigit@intel.com>
Acked-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
This commit is contained in:
John McNamara 2016-12-04 16:47:37 +00:00 committed by Thomas Monjalon
parent 6d059e9980
commit ed239ecd42

View File

@ -312,7 +312,8 @@ def print_table_divider(outfile, num_cols):
def setup(app):
generate_nic_overview_table('doc/guides/nics/overview_table.txt')
table_file = dirname(__file__) + '/nics/overview_table.txt'
generate_nic_overview_table(table_file)
if LooseVersion(sphinx_version) < LooseVersion('1.3.1'):
print('Upgrade sphinx to version >= 1.3.1 for '