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

[Fix] All docs-build warnings and errors #1014

Conversation

DerAndereJohannes
Copy link
Contributor

Description

In preparation for more documentation editing, I have dedicated this pull request to solving all the errors and warnings that still came up when performing the docs-build workflow. This also means that this pull request only consists of changes if they had a warning or not.

This means that many parts of the documentation now look more normal in design and that some ipython directives also are now able to run, creating more example images.

With these out of the way, it will now be easier to focus on new changes to the docs as we will immediately know if our new changes have caused warnings / errors.

Proposed Changes

For every category of error / warning, I have created a commit including a comment as to what was done, why and what are the consequences of the change. The largest changes you can see in:

  • signal_detrend
  • progress_bar
  • mne-to-df

I have also added the missing dependency that was previously updated in the docs-build workflow into the docs-check workflow.

The studies were giving the most warnings since most of the headers were duplicated in the files causing their reference to be turned into #id1, #id2 etc... rather than their section names. I firstly tried adding a specifier to leave the headings unchanged, only to change their id reference, however this was somehow not working. I think it could have to do that there is a problem when putting the markdown into the rst files.

The mne-to-df change is the only file that wasn't affected by some error / warning, but I changed the example to give a brief summary of the data since the function example was taking up the high majority of the eeg page.

Thanks.

Checklist

  • I have read the CONTRIBUTING file.
  • My PR is targeted at the dev branch (and not towards the master branch).
  • I ran the CODE CHECKS on the files I added or modified and fixed the errors.

- Duplicate headers were always replaced by id1, id2 etc.
- Unique names give more semantic meanings when linking directly to a
  heading
- Previously this was printing the entire result which took up 80% of
  the eeg doc page
- Without this blank line, the directive does not execute
- This directive did not execute due to a missing space in the directive
  call
- Bullet point list lacked an empty line
- One bullet point had the incorrect indentation
- interpolate: missing space before quadratic to make the highlighting
  work
- interpolate: added more precise linking
- detrend: entire docstring was misaligned by missing some empty lines
@DominiqueMakowski
Copy link
Member

Thanks for all this work it's hugely appreciated!! Let me know when you want me to merge

(Please consider adding yourself as a contributor for what it's worth)

@DerAndereJohannes
Copy link
Contributor Author

DerAndereJohannes commented Jul 21, 2024

Happy to contribute. I have taken your advice and added another commit.

Regarding this pull request, it can be pulled as is (which will fix the current issues in the docs). The pipeline now no longer gives errors or warnings, which you can see here.

The next thing I want to do is 1. work on the codebook as discussed on #1012 and 2. fix more of the linking of the functions. I could also add this to this request (more relevant for number 2), but I could also create new pull requests at a later date.

Do let me know!

@DominiqueMakowski
Copy link
Member

Let's merge this bad boy now and make another PR for other things
Thanks again, and let me know if there's anything I can help with :)

@DominiqueMakowski DominiqueMakowski merged commit d42a230 into neuropsychology:dev Jul 22, 2024
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants