doc: fix relative path of NIC table input file
authorJohn McNamara <john.mcnamara@intel.com>
Sun, 4 Dec 2016 16:47:37 +0000 (16:47 +0000)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Tue, 6 Dec 2016 16:28:59 +0000 (17:28 +0100)
Fix relative path between sphinx conf.py file and Nic table file
to allow automatic build on ReadTheDocs.

Fixes: 9db3f52126fb ("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>
doc/guides/conf.py

index 149bcdb..29e8efb 100644 (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 '