Skip to content

Commit

Permalink
html2rst added
Browse files Browse the repository at this point in the history
  • Loading branch information
rum1887 committed May 28, 2023
1 parent 53cb78f commit 721fe4e
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions doc/source/html2rst.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import subprocess

def convert_html_to_rst(html_file_path, rst_file_path):
# Use the subprocess module to call the pandoc command-line tool
subprocess.run(['pandoc', html_file_path, '-o', rst_file_path])

html_file_path = 'qutip-qip.html'
rst_file_path = 'tutorials.rst'
convert_html_to_rst(html_file_path, rst_file_path)

0 comments on commit 721fe4e

Please sign in to comment.