LSSTDESC / CCL

DESC Core Cosmology Library: cosmology routines with validated numerical accuracy
BSD 3-Clause "New" or "Revised" License
145 stars 68 forks source link

Review all doc pages before tagging v3 #1116

Closed damonge closed 1 year ago

damonge commented 1 year ago

We need to review all of the doc pages on readthedocs, since some of them are a bit antiquated, and some of the autodoc pages show small typos/inaccuracies. This is the last thing to do before we're able to tag v3!

A few instructions for reviewers:

Of course, reviewers should feel free to proceed as they prefer!

Closes #1091 Closes #867 Closes #871

coveralls commented 1 year ago

Pull Request Test Coverage Report for Build 5789866361


Totals Coverage Status
Change from base Build 5744252840: 0.0%
Covered Lines: 5805
Relevant Lines: 5957

💛 - Coveralls
hsinfan1996 commented 1 year ago

Update this line? https://github.com/LSSTDESC/CCL/blob/11375ea2a2329c9c7332fa2aacdb192a5dbfa09d/readthedocs/conf.py#L97

hsinfan1996 commented 1 year ago

The link is outdated. Should be https://www.numpy.org/ https://github.com/LSSTDESC/CCL/blob/11375ea2a2329c9c7332fa2aacdb192a5dbfa09d/readthedocs/conf.py#L229

hsinfan1996 commented 1 year ago

A more detailed table of contents for API Documentation would be great, e.g.

image
hsinfan1996 commented 1 year ago

Is there a reason to use this specific version of sphinx_rtd_theme? https://github.com/LSSTDESC/CCL/blob/b4fbaa74d76f04e7ea63071dcb008c7eb68ed163/readthedocs/requirements.txt#L6

damonge commented 1 year ago

@hsinfan1996 a few months ago the default rtd theme had a few bugs that affected how some things were displayed. We could check if this is now fixed.

Regarding the TOC: do you have a conf.py showing how to do this somewhere?

hsinfan1996 commented 1 year ago

@hsinfan1996 a few months ago the default rtd theme had a few bugs that affected how some things were displayed. We could check if this is now fixed.

Regarding the TOC: do you have a conf.py showing how to do this somewhere?

conf.py from CLMM https://github.com/LSSTDESC/CLMM/blob/c6cf806cd9b542f7286187ed0ecb6432f959a767/docs/conf.py#L216-L229

hsinfan1996 commented 1 year ago

@hsinfan1996 a few months ago the default rtd theme had a few bugs that affected how some things were displayed. We could check if this is now fixed. Regarding the TOC: do you have a conf.py showing how to do this somewhere?

conf.py from CLMM https://github.com/LSSTDESC/CLMM/blob/c6cf806cd9b542f7286187ed0ecb6432f959a767/docs/conf.py#L216-L229

@damonge Turns out it is just a html_theme_options to be added in the conf.py. No need to modify any .rst files.

anicola commented 1 year ago

I have started going through the top-level docs and just found these super small things. I will now start going through the function docs. image image image

hsinfan1996 commented 1 year ago

I removed modules.rst so the TOC looks like

image

instead of

image

I can revert it if anyone wants pyccl package to be at the first level.

damonge commented 1 year ago

This looks good. Thanks @hsinfan1996 !

damonge commented 1 year ago

Thanks a lot @anicola , super useful! Just fixed those.

damonge commented 1 year ago

This has been reviewed now by several people, so I'm just using my super powers to merge.