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

[DOC] deal with several warnings and errors in the doc build #1061

Merged
merged 3 commits into from
May 8, 2024

Conversation

Remi-Gau
Copy link
Contributor

@Remi-Gau Remi-Gau commented May 8, 2024

@@ -24,8 +24,6 @@ API Reference

.. currentmodule:: bids

.. _calibration_ref:
Copy link
Contributor Author

Choose a reason for hiding this comment

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

duplicate ref

@@ -11,7 +11,7 @@ kernelspec:
name: python3
---

## Executing and inspecting StatsModels with `pybids.modeling`
# Executing and inspecting StatsModels with `pybids.modeling`
Copy link
Contributor Author

Choose a reason for hiding this comment

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

fix heading level

@@ -1,4 +1,4 @@
.. _reports:
Copy link
Contributor Author

Choose a reason for hiding this comment

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

duplicae ref

Possible args:
- sampling_rate (int, str): The sampling rate to use if resampling
Copy link
Contributor Author

Choose a reason for hiding this comment

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

fix indentation error

@@ -18,16 +18,20 @@ class BIDSReport:
(str), a dictionary, or None. If None, loads and uses default
configuration information.
Keys in the dictionary include:
'dir': a dictionary for converting encoding direction strings
Copy link
Contributor Author

Choose a reason for hiding this comment

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

fix indentation error and ensure better HTML rendering

Copy link

codecov bot commented May 8, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 89.80%. Comparing base (235cd25) to head (e2343e4).

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1061   +/-   ##
=======================================
  Coverage   89.80%   89.80%           
=======================================
  Files          63       63           
  Lines        7178     7178           
  Branches     1374     1374           
=======================================
  Hits         6446     6446           
  Misses        532      532           
  Partials      200      200           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@@ -68,6 +68,7 @@
autosummary_generate = True
autodoc_default_flags = ['members', 'inherited-members']
add_module_names = False
numpydoc_class_members_toctree = False
Copy link
Contributor Author

Choose a reason for hiding this comment

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

see https://stackoverflow.com/a/66139873

This feels a bit like a nuclear option but have not found a better way to deal with those warnings

@Remi-Gau
Copy link
Contributor Author

Remi-Gau commented May 8, 2024

I can deal with the intersphinx mapping config format mentioned here: https://github.com/bids-standard/pybids/actions/runs/8958443748/job/24602669575#step:5:29

but this would require bumping up the minimum required sphinx version

@Remi-Gau Remi-Gau requested a review from effigies May 8, 2024 11:32
@effigies
Copy link
Collaborator

effigies commented May 8, 2024

Sure, we can bump the minimum sphinx no problem.

@@ -15,7 +15,7 @@
.. _overview:

An overview of the analysis module
===========================================
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I suspect there are more like this but I decided not to start looking to give my inner marie kondo a break.

@@ -2,6 +2,8 @@
File to ..include in a document with a big table of content, to give
it 'style'

:orphan:
Copy link
Contributor Author

Choose a reason for hiding this comment

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

to silence 'not included in toc tree' warnings

@Remi-Gau
Copy link
Contributor Author

Remi-Gau commented May 8, 2024

not a consequence of this PR but noticed some funky layout in a tuto:

https://bids-standard.github.io/pybids/examples/pybids_tutorial.html#exporting-a-bidslayout-to-a-pandas-dataframe

image

@effigies
Copy link
Collaborator

effigies commented May 8, 2024

This looks good. I'm still getting

/home/chris/Projects/bids/pybids/doc/api.rst:9: WARNING: autosummary: stub file not found 'bids.layout'. Check your autosummary_generate setting.
/home/chris/Projects/bids/pybids/doc/api.rst:31: WARNING: autosummary: stub file not found 'bids.modeling'. Check your autosummary_generate setting.
/home/chris/Projects/bids/pybids/doc/api.rst:47: WARNING: autosummary: stub file not found 'bids.reports'. Check your autosummary_generate setting.
/home/chris/Projects/bids/pybids/doc/api.rst:61: WARNING: autosummary: stub file not found 'bids.variables'. Check your autosummary_generate setting.
/home/chris/Projects/bids/pybids/doc/api.rst:83: WARNING: autosummary: stub file not found 'bids.config'. Check your autosummary_generate setting.
/home/chris/Projects/bids/pybids/doc/api.rst:98: WARNING: autosummary: stub file not found 'bids.utils'. Check your autosummary_generate setting.

Are those out of scope, or is there something wrong with my setup?

@Remi-Gau
Copy link
Contributor Author

Remi-Gau commented May 8, 2024

Are those out of scope, or is there something wrong with my setup?

yeah I noticed that but if I rerun the doc build the error goes away: do you get the same thing?

@effigies
Copy link
Collaborator

effigies commented May 8, 2024

If I make -C doc clean html, it shows up consistently. Doesn't seem new, though. There are no references for the API summary to link to: https://bids-standard.github.io/pybids/api.html#bids-layout-querying-bids-datasets

@Remi-Gau
Copy link
Contributor Author

Remi-Gau commented May 8, 2024

tempted to leave it there for now , merge and and get back to it later.

@effigies effigies merged commit 09448ad into bids-standard:master May 8, 2024
20 checks passed
@Remi-Gau Remi-Gau deleted the doc_fix branch May 8, 2024 13:55
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.

2 participants