Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added convert_to_html #71

Merged
merged 4 commits into from
Jun 6, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
added convert_to_html
Signed-off-by: Peter Staar <[email protected]>
PeterStaar-IBM committed Jun 6, 2024
commit cfb04df1ebb4c83f3ae5c4003af61c0a367643cb
Original file line number Diff line number Diff line change
@@ -170,23 +170,22 @@
"\n",
" basename = name.rstrip(\".json\")\n",
" doc_json = json.loads(archive.read(f\"{basename}.json\"))\n",
" \n",
"\n",
" doc_md = export_to_markdown(doc_json)\n",
"\n",
" ofile = output_dir / f\"{basename}.md\"\n",
" print(f\"writing {ofile}\")\n",
" \n",
"\n",
" with ofile.open(\"w\") as fw:\n",
" fw.write(doc_md)\n",
"\n",
" doc_html = export_to_html(doc_json)\n",
"\n",
" ofile = output_dir / f\"{basename}.html\"\n",
" print(f\"writing {ofile}\")\n",
" \n",
"\n",
" with ofile.open(\"w\") as fw:\n",
" fw.write(doc_html)\n",
" "
" fw.write(doc_html)"
]
},
{