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

Documentation Refactor #295

Merged
merged 7 commits into from
Dec 12, 2024
Merged

Documentation Refactor #295

merged 7 commits into from
Dec 12, 2024

Conversation

nabobalis
Copy link
Member

@nabobalis nabobalis commented Sep 11, 2024

My goal here is to refactor the entire documentation structure to bring it inline with how its done in sunpy.

This means:

  • Bringing inline the installation steps to account for anaconda.
  • Reformatting the API pages
  • Turning the notebooks into sphinx gallery examples
  • Reducing the number of dependencies needed to handle for building the documentation
  • General copy-edit
  • One sentence per line.
  • Changing to the pydata theme

@nabobalis nabobalis changed the title WIP Documentation Refactor Sep 11, 2024
@nabobalis nabobalis force-pushed the docs branch 2 times, most recently from abc60c4 to c3e961c Compare September 12, 2024 00:38
@nabobalis nabobalis force-pushed the docs branch 2 times, most recently from c38c5ee to 152af91 Compare September 13, 2024 01:34

This comment was marked as outdated.

@nabobalis
Copy link
Member Author

This pull request is going to be massive.

But the content will not change, so reviewing each file is not important. So for reviews it is much better to focus on the RTD built version to see how it looks and how it flows.

@nabobalis nabobalis force-pushed the docs branch 5 times, most recently from 486c0d5 to 73bb83a Compare September 14, 2024 00:00
@nabobalis nabobalis marked this pull request as ready for review September 14, 2024 00:01
@nabobalis nabobalis force-pushed the docs branch 2 times, most recently from 86d1aeb to e51935f Compare September 14, 2024 17:18
docs/conf.py Outdated Show resolved Hide resolved
docs/getting_started.rst Outdated Show resolved Hide resolved
docs/index.rst Outdated Show resolved Hide resolved
docs/install.rst Outdated Show resolved Hide resolved
docs/reference/index.rst Outdated Show resolved Hide resolved
Copy link
Collaborator

@wtbarnes wtbarnes left a comment

Choose a reason for hiding this comment

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

LGTM. Just two nitpicks on visualization in the gallery examples.


fig = plt.figure()
ax = fig.add_subplot(projection=xrt_seq.maps[0])
ani = xrt_seq.plot(axes=ax)
Copy link
Collaborator

Choose a reason for hiding this comment

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

For all of these animations, the normalization should be specified (e.g. https://docs.sunpy.org/en/stable/generated/gallery/map/difference_images.html#sphx-glr-generated-gallery-map-difference-images-py) explicitly. Otherwise, it changes from frame to frame which makes it near impossible to actually understand what is being animated.

Copy link
Member Author

Choose a reason for hiding this comment

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

Should be fixed now with the new norm.

Comment on lines 38 to 41
xrt_map.plot(axes=ax, title="Original", clip_interval=(1, 99.9) * u.percent)
ax1 = fig.add_subplot(122, projection=lightleak_map)
lightleak_map.plot(
axes=ax1, title="Light Leak Subtracted", clip_interval=(1, 99.9) * u.percent
Copy link
Collaborator

Choose a reason for hiding this comment

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

I would recommend using the same normalization in each plot. Otherwise, it is hard to see what the differences between the two plots actually is.

Copy link
Member Author

Choose a reason for hiding this comment

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

Should be fixed now with the new image.

@@ -7,7 +7,7 @@ requires = [
]

[project]
name = "xrtpy"
name = "XRTpy"
Copy link
Member Author

Choose a reason for hiding this comment

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

Not sure if this is correct.

Copy link
Contributor

Choose a reason for hiding this comment

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

I do have a tendency of keeping/using it capitalized

Copy link
Collaborator

Choose a reason for hiding this comment

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

Does this mean that one would have to do pip install XRTpy on case sensitive OSes?

Copy link
Member Author

@nabobalis nabobalis Sep 25, 2024

Choose a reason for hiding this comment

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

No for pip, this is case insensitive.

The project name must consist of ASCII letters, digits, underscores “_”, hyphens “-” and periods “.”. It must not start or end with an underscore, hyphen or period.

Comparison of project names is case insensitive and treats arbitrarily long runs of underscores, hyphens, and/or periods as equal. For example, if you register a project named cool-stuff, users will be able to download it or declare a dependency on it using any of the following spellings: Cool-Stuff, cool.stuff, COOL_STUFF, CoOl__-.-__sTuFF.

@nabobalis nabobalis force-pushed the docs branch 3 times, most recently from 8c6cd09 to 828fa92 Compare October 17, 2024 23:50
@nabobalis nabobalis removed the request for review from jslavin October 17, 2024 23:51
@nabobalis
Copy link
Member Author

The built version is located at https://xrtpy--295.org.readthedocs.build/en/295/

Copy link
Contributor

@joyvelasquez joyvelasquez left a comment

Choose a reason for hiding this comment

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

I have thoroughly reviewed the changes and confirmed that the updates to the documentation structure, including the revised installation steps, API pages, and integration of Sphinx gallery examples, are excellent. The overall structure is cohesive and well-organized. Thank you for the hard work and meticulous effort, @nabobalis !

@@ -48,12 +49,6 @@ repos:
- id: pretty-format-yaml
args: [--autofix]

- repo: https://github.com/MarcoGorelli/absolufy-imports
Copy link
Member Author

Choose a reason for hiding this comment

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

Replaced by ruff

@nabobalis nabobalis merged commit 7697c29 into HinodeXRT:main Dec 12, 2024
8 checks passed
@nabobalis nabobalis deleted the docs branch December 12, 2024 23:12
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