Skip to content

Commit

Permalink
fixing doc building error on mac (#391)
Browse files Browse the repository at this point in the history
  • Loading branch information
Nik-P2 authored Jun 6, 2024
1 parent 17fdfba commit b5cdf6e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions scripts/_render_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -362,6 +362,9 @@ def _get_options(code_lines):
for line in code_lines:
if line.startswith(option_chars):
options.append(line)
# Strip out the python code specifier.
elif line.startswith("```{"):
continue
else:
code_segments.append(line)
return code_segments, options
Expand Down Expand Up @@ -535,6 +538,7 @@ def write_api_markdown(data_dict, api_path, address_dict, debug=False):
# get path and ensure parents exist
sub_dir = api_path / "/".join(data["key"].split(".")[:-1])
path = api_path / sub_dir / f"{data['name']}.qmd"

path.parent.mkdir(exist_ok=True, parents=True)
# remove path from files to delete
if path in files_to_delete:
Expand Down

0 comments on commit b5cdf6e

Please sign in to comment.