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

Restructure The Repository to Create The Documentation using Sphinx and Sphinx Gallery #9

Draft
wants to merge 11 commits into
base: master
Choose a base branch
from

Conversation

blackbird7112
Copy link
Contributor

📝 Description

Type: 🚀 feature
Write a complete description of your changes, including the necessary context or any piece of information required to understand your work.

Addition of python scripts to run the configuration files. Then create the documentation structure so that we can build it using the help of Sphinx and Sphinx Gallery.

Also, link issues affected by this pull request by using the keywords: close, closes, closed, fix, fixes, fixed, resolve, resolves or resolved.

📌 Resources

Examples, notebooks, and links to useful references.

🚦 Testing

How did you test these changes?

  • Testing pipeline
  • Other method (describe)
  • My changes can't be tested (explain why)
    Manually running the commands.

☑️ Checklist

  • I requested two reviewers for this pull request
  • I updated the documentation according to my changes
  • I built the documentation by applying the build_docs label

Note: If you are not allowed to perform any of these actions, ping (@) a contributor.

@blackbird7112 blackbird7112 marked this pull request as draft June 17, 2022 11:06
@review-notebook-app
Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@@ -105,3 +105,15 @@ venv.bak/

# Mac OSX
.DS_Store

# Binary files
*.pickle
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We try to not pickle objects in TARDIS.

*_examples/

# VScode
.vscode/
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Newline at the end of the file.


# Sphinx HTML Output
html/

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't get the sphinx/sphinx gallery folder structure. Could you explain to me?

Usually Sphinx had docs/_build folder where _build was already included in .gitignore.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I use a command that creates a folder called html. So it should remove this folder

@@ -10,8 +10,8 @@ supernova:
distance: 8.32 Mpc

# standard atomic data base; get it from the tardis-refdata repository
atom_data: /home/mew488/src/tardis-refdata/atom_data/kurucz_cd23_chianti_H_He.h5
#atom_data: kurucz_cd23_chianti_H_He.h5
# atom_data: /home/mew488/src/tardis-refdata/atom_data/kurucz_cd23_chianti_H_He.h5
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you can remove the commented line.

@@ -0,0 +1,13 @@
import requests
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TARDIS has a function to download from URL, maybe works here!

https://github.com/tardis-sn/tardis/blob/master/tardis/io/util.py#L390


import sys

sys.path.append("../")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this does not look like a sensible idea of implementing things.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We needed a couple of functions to be used across all the papers. So we needed to put them in a separate folder so that all the files could import them. The only way to access those functions is through this function.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants