Skip to content

Commit

Permalink
Comment out README processing from symbiflow-examples.
Browse files Browse the repository at this point in the history
Signed-off-by: Tim Callahan <tcal@google.com>
  • Loading branch information
tcal-x committed Mar 10, 2021
1 parent 069c68b commit b882108
Showing 1 changed file with 22 additions and 22 deletions.
44 changes: 22 additions & 22 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,25 +87,25 @@


# -- Collect READMEs from examples --------------------------------------------

from collect_readmes import full_name_lut, families, fill_context

jinja_contexts = {}
top_dir = os.path.join(os.path.dirname(__file__), '..')
for family in families:
examples = os.scandir(os.path.join(top_dir, family))
for example in examples:
if example.is_dir():

# get README
path = os.path.join(top_dir, family, example, 'README.rst')

# skip if file does not exist
if not os.path.isfile(path):
continue

with open(path) as f:
text = f.read()

key = '_'.join((family, example.name))
jinja_contexts[key] = {'blocks': fill_context(text)}
#
#from collect_readmes import full_name_lut, families, fill_context
#
#jinja_contexts = {}
#top_dir = os.path.join(os.path.dirname(__file__), '..')
#for family in families:
# examples = os.scandir(os.path.join(top_dir, family))
# for example in examples:
# if example.is_dir():
#
# # get README
# path = os.path.join(top_dir, family, example, 'README.rst')
#
# # skip if file does not exist
# if not os.path.isfile(path):
# continue
#
# with open(path) as f:
# text = f.read()
#
# key = '_'.join((family, example.name))
# jinja_contexts[key] = {'blocks': fill_context(text)}

0 comments on commit b882108

Please sign in to comment.