Skip to content

Added Sphinx Documentation #5

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

Merged
merged 19 commits into from
Apr 7, 2025
Merged

Added Sphinx Documentation #5

merged 19 commits into from
Apr 7, 2025

Conversation

lr154lrose
Copy link
Collaborator

No description provided.

- added docstrings to functions to get picked up by the sphinx auto-documentation
- added logger
- files located in build/ and source/
- main file is index.rst
- documentation .rst file made from docstrings and comments
- images are located in source/_images
@lr154lrose lr154lrose requested a review from dwest77a March 17, 2025 16:42
@dwest77a
Copy link
Collaborator

The sphinx build step is failing because you don't have the expected pyproject.toml file in this branch. Quickest fix is to merge the poetry branch into this branch, once you're happy you've got the poetry stuff sorted.

@dwest77a
Copy link
Collaborator

Also you're best to delete the build/ folder from the repo git rm -r build/ so there's not so many files being committed.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Is this a picture you found somewhere or one you screenshotted yourself? Would be nice to get the CEDA flight finder branding included in the picture!

source/conf.py Outdated
sys.path.insert(0, os.path.abspath('../flightpipe/updaters'))

project = 'Flight-Finder'
author = 'Daniel Westwood'
Copy link
Collaborator

Choose a reason for hiding this comment

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

Check sphinx docs for how to add multiple authors, so it's both of us. Also the same for the Poetry author part!

=============
Documentation
=============

Copy link
Collaborator

Choose a reason for hiding this comment

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

Would be nice to add a couple of lines in this file about the purpose of the flight pipeline and flight finder in general

source/index.rst Outdated

Flight-pipeline documentation
=============================

Copy link
Collaborator

Choose a reason for hiding this comment

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

Similar description to the top of docs. Include when the package was created (March 2023), what it's used for, maybe link to flight finder UI. Then a paragraph on your contributions!

@dwest77a
Copy link
Collaborator

dwest77a commented Apr 4, 2025

Hi Ioana, looks like the next step for these three pull requests is to merge them all into one request, and deal with any merge conflicts as there are some areas that might have opposing changes. Everything you've done for these three aims looks good so far. I'll just add a couple of comments here:

  • the flight_update.py script - is this redundant now with the new cli.py entrypoint script?
  • When you do the merge, you can also get rid of setup.py and any other small files that aren't being used anymore.
  • When you have a completely merged single branch to then try and pull into the main branch, let me know and I can go through all the changes and give any comments there.

I'll message you directly for a meeting early next week to give time for any final changes, and for you to write a short handover document with your changes to Wendy and some basic instructions for how to use the pipeline (might just be directing her to the brand new documentation!)

@lr154lrose lr154lrose merged commit db54d04 into main Apr 7, 2025
1 check passed
@lr154lrose lr154lrose deleted the ioana.circu-test-clean-up branch April 7, 2025 08:37
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.

2 participants