-
Notifications
You must be signed in to change notification settings - Fork 14
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 build #22
Conversation
Codecov Report
❗ Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more. @@ Coverage Diff @@
## master #22 +/- ##
========================================
Coverage ? 5.29%
========================================
Files ? 14
Lines ? 2359
Branches ? 306
========================================
Hits ? 125
Misses ? 2231
Partials ? 3
Flags with carried forward coverage won't be shown. Click here to find out more. 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
Short update, not forgetting about this PR; but I'm lacking the bandwidth at the moment to finish it.. we'll get back to it when I can. IIRC, the doc build is complete but there is a number of warnings to resolve. |
Hi @mscheltienne , looking at this again. I fixed the typo in the README (in master), so you can pull that into your branch. About the failing doc build I wonder if sphinx is missing a correct path setup in doc/conf.py and therefore does not find the modules? |
It should not require this |
I had a look today, and the issue I faced last time became obvious. The naming convention ;) Now if we look at Several option to resolve this:
Option (1) has the advantage of not impacting the codebase. It is fully backward compatible.
In
Those would be the 3 only function/classes that would retain backward compatibility in the import if we go with option (2). All other function would fail the import if we change the file name. Up to you @m-reuter to decide, it depends on the user base and on how you use this package. If 99% of the time you import only those 3 classes defined at the package top-level, backward compatibility is not an issue. If you also import often functions or classes in the modules, then option (1) would be better for this project. |
Thanks for the explanation! I also think we should go to option 2 and fix the naming. We will then do a new major release to highlight the broken compatibility. We can easily adjust this in our own dependent projects like brainprint , qc and fastsurfer in case we import it in the old way. |
Option (2) done, documentation build is green locally and should comeback green here too.
Once done, please ping me here, and I'll check that the automation is setup. Then we can merge this PR. The workflow is setup so that:
Finally, you can find here: https://github.com/Deep-MI/LaPy/suites/13170914153/artifacts/716604501 |
Thanks, this looks really great. I created a gh-pages branch, but am not sure what you mean with copying the content onto your template? |
If you created the branch, I can create a PR to fill it. It will become clear, give me a minute. |
The |
thanks, this is done, also the Build and deployment in settings was already setup as you specified (probably the default). |
Unsurprising, when GitHub detects a |
So.. it did nothing 😅 LaPy/.github/workflows/doc.yml Lines 5 to 9 in 763251c
I'll open a PR today or tomorrow to fix the trigger from |
We are also planning to rename the branch to main as master is outdated. Probably a good time to do that now. |
Works too. Once done, an empty commit to |
worked. would be great if you can at some point explain more on the structure and how to customise. Also why this is under ..dev.. in the path. Thanks. |
Will do, probably Friday! I'm not going to leave you with the infrastructure and no manual ;) |
Beginning of the documentation build PR.
The documentation is build from the 2 sources:
LaPy/doc
LaPy
code and its docstringsWhich is why it was important to first sort that out.
For the docstrings, I ran
pydocstlye LaPy/lapy
and fixed all the remaining issues. Mostly the 3 following convention were not followed:And I also enabled it back in the
code-style
workflow.I did not however rephrase, add x-ref, or add syntax highlights.
To install the documentation dependencies, you can run
pip install LaPy/lapy[doc]
from whereLaPy
is the cloned repository. To build the documentation:The documentation is then in
LaPy/doc/_build/html
. You can openindex.html
.For the theme, I've used Furo which I like. For instance, it's used by nilearn. Another popular choice is pydata-sphinx-theme. For instance, it's used by scipy.
WIP.