-
Notifications
You must be signed in to change notification settings - Fork 64
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 qutip-qip tutorials to documentation on Read the docs #206
Conversation
This is the cropped .html file generated from qutip/tutorials |
Planning on creating a python script to render the html to tutorials.rst |
I have created a file called html2rst.py which renders the HTML into .rst This is the html2rst.py file 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) I'll have to provide the link to the html file generated previously from the qutip-qip tutorials. qutip/qutip-tutorials#64 file qutip-qip.html I can locally generate the .html by running the script create_qutip-qip.py that I created by modifying the create_index.py. But unless I run the create_qutip-qip.py , the HTML is not generated, I need a deployed HTML link from GitHub. Even the index.html for the index file is not available on GitHub, I can create it locally by running the create_index.py script @nathanshammah @BoxiLi any insights on how to add an HTML link that can be accessed? Hope I communicated it clearly This is the cropped local version of the tutorials doc after rendering the HTML(need to remove the header, footer and title): |
TLDR:
Issue: Need to get the link |
What you described sounds almost like a success. I don't think we should push any code to The question is, do you really need the deployed HTML? If you can create it locally, you should be able to crop it from the file locally, or did I miss something? I'm thinking more of something like this: The Python script is executed automatically when calling |
Feasible, doing it rn! |
will close this pr! |
Closes: Add qutip-qip tutorials to documentation on Read the docs #204
Did not add the examples in a gallery form like in Mitiq. can be converted to that form easily tho
Just added the links to the text