From 81cf240b8217bfb69679780d75aeefbfeaffb57f Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Fri, 17 Nov 2023 15:45:10 +0000 Subject: [PATCH] get mdwn_inline.py to understand both the openpower/isa and openpower/isatables directories, include anything not just fields.txt --- openpower/mdwn_inline.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/openpower/mdwn_inline.py b/openpower/mdwn_inline.py index 2c03ae22c..6dec26a8b 100755 --- a/openpower/mdwn_inline.py +++ b/openpower/mdwn_inline.py @@ -80,9 +80,13 @@ def recursive_inline(f, input_name, depth): if fname.endswith(".mdwn"): with open_tracked(wiki_path + "/" + fname) as inc: recursive_inline(inc, fname, depth + 1) - elif fname == 'openpower/isatables/fields.text': - with open_tracked( - wiki_path + "/../openpower-isa/" + fname) as inc: + elif fname.startswith('openpower/isatables'): + pth = wiki_path + "/../openpower-isa/" + fname + with open_tracked(pth) as inc: + recursive_inline(inc, fname, depth + 1) + elif fname.startswith('openpower/isa'): + pth = wiki_path + "/../openpower-isa/" + fname + ".mdwn" + with open_tracked(pth) as inc: recursive_inline(inc, fname, depth + 1) else: with open_tracked(wiki_path + "/" + fname + ".mdwn") as inc: -- 2.30.2