Skip to content

Commit

Permalink
added convert_to_html
Browse files Browse the repository at this point in the history
Signed-off-by: Peter Staar <[email protected]>
  • Loading branch information
PeterStaar-IBM committed Jun 6, 2024
1 parent 4857504 commit cfb04df
Showing 1 changed file with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)"
]
},
{
Expand Down

0 comments on commit cfb04df

Please sign in to comment.