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

User friendly docs for operations #1054

Merged
merged 11 commits into from
Jul 21, 2021
Merged

User friendly docs for operations #1054

merged 11 commits into from
Jul 21, 2021

Conversation

samtygier-stfc
Copy link
Collaborator

@samtygier-stfc samtygier-stfc commented Jul 14, 2021

Issue

Closes #898

(note the number is the branch name is wrong)

Description

Add extension to generate user friendly documentation for operations. Takes the docstring for the class, and the parameters from the filter_func method (with some standard parameters removed).

Update doc strings for operations

Also: Move test skipping into decorators to avoid errors with sphinx

Testing & Acceptance Criteria

To build the docs locally run:

python3 ./setup.py docs

Docs will be written to docs/build/html , so for me operations docs are in ~/git/mantidimaging/docs/build/html/user_guide/operations/index.html

Help button in the operations window should link to something like https://mantidproject.github.io/mantidimaging/user_guide/operations/index.html#crop-coordinates

Documentation

Updated release notes

@samtygier-stfc samtygier-stfc force-pushed the 1052_operations_docs branch 2 times, most recently from d878dbe to e9a49c6 Compare July 15, 2021 08:37
@samtygier-stfc samtygier-stfc changed the title Move test skipping into decorators to avoid errors with sphinx User friendly docs for operations Jul 15, 2021
Sphinx tries to import all the modules, so they need to not raise
exceptions at import time.
Use the class docstring plus the parameter list from the filter_func.
Updates from feeback from Winfried
The help button in the operations window now links to the new user docs.

THe new docs have a link to the API docs if needed.
@samtygier-stfc samtygier-stfc marked this pull request as ready for review July 20, 2021 14:22
Copy link
Collaborator

@StephenNneji StephenNneji left a comment

Choose a reason for hiding this comment

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

The operations page looks significantly better which should improve user experience 👍. I will approve after comments are addressed.

Makes more sense (avoiding a divide by zero) and is functionally identical
@samtygier-stfc samtygier-stfc merged commit 308202f into master Jul 21, 2021
@samtygier-stfc samtygier-stfc deleted the 1052_operations_docs branch July 21, 2021 13:04
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.

Nice operations pages in docs
2 participants