Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Integration of sphinx for documentation generation #74

Merged
merged 4 commits into from
Jul 6, 2016
Merged

Integration of sphinx for documentation generation #74

merged 4 commits into from
Jul 6, 2016

Conversation

fedorov
Copy link
Collaborator

@fedorov fedorov commented Jun 29, 2016

This addresses #53.

Note that it is a known issue that tests are currently not passing, so this is a caveat for using the current contributing guidelines.

We should definitely have green dashboard before making pyradiomics public!

fedorov added 4 commits June 29, 2016 10:56
This is initial work to investigate the suitability and features of sphinx for
documenting feature calculation formulas, as suggested in #53. It seems that this
approach to documentation is a good fit for supporting users of this library, which
are developers by intent.

The process of setting up and using sphinx is summarized in this wiki entry:

https://github.com/Radiomics/pyradiomics/wiki/Documentation-infrastructure

Examples of the documented features are kurtosis and skewness in firstorder.

Sample screenshots will be added to #53.

_build should probably be taken out of the repository, and perhaps _build/html
should be replicated into gh-pages branch, once the repository becomes public.

Some open questions for discussion:
 - should modules.rst and radiomics.rst be included in the repository, or
   generated every time with sphinx-apidoc -f -o . ../radiomics ?

 - documentation for some of the features (texture, wavelets) is quite
   extensive and probably does not fit into this format
IMO it is more practical to use python raw strings (r"<content>") instead of
regular strings. The use of raw strings allows to use LaTeX math directly, without
the need to escape backslashes. This in turn allows to directly paste math formulas
generated using WYSIWYG editors such as https://www.codecogs.com/latex/eqneditor.php.

See #53
 - remove _build folder
 - remove modules.rst as unnecessary
 - rename radiomics.rst to radiomics-api.rst
Also, moved radiomics-api.rst back to radiomics.rst, to simplify the contribution
process and maintain consistency with the naming conventions used by sphinx-apidoc.
@fedorov
Copy link
Collaborator Author

fedorov commented Jun 29, 2016

Cc: @Radiomics/developers

@fedorov fedorov merged commit aec7787 into AIM-Harvard:master Jul 6, 2016
# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant