From: John McNamara Date: Sun, 4 Dec 2016 16:47:37 +0000 (+0000) Subject: doc: fix relative path of NIC table input file X-Git-Tag: spdx-start~5295 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=ed239ecd4251ef6d928e29f498fc08b811cd09d7;p=dpdk.git 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: 9db3f52126fb ("doc: generate NIC overview table from ini files") Signed-off-by: John McNamara Tested-by: Ferruh Yigit Acked-by: Pablo de Lara --- diff --git a/doc/guides/conf.py b/doc/guides/conf.py index 149bcdbcd7..29e8efb6c6 100644 --- a/doc/guides/conf.py +++ b/doc/guides/conf.py @@ -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 '