pydata / pydata/xarray

Documentation rendering bug - `set_options`

Open
#10,832 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

topic-documentation
Dominant language
Python
Stars
4.2k
Forks
1.4k
Avg merge
2d 15h
Merged PRs (30d)
14

Description

What is your issue?

The default value for netcdf_order in set options is not being properly rendered by sphinx:

https://docs.xarray.dev/en/stable/generated/xarray.set_options.html
Image

I tried to get this to work by adding a colon and switch to a tuple. but neither, nor their combination fixed this.

Code defined here: https://github.com/pydata/xarray/blob/20d377347154412aed41697da23274ca48c0fd54/xarray/core/options.py#L263-L267

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with xarray/core/options.py at lines 263-267 and compare the set_options API page linked in the issue with the source definition. Check how the netcdf_order default is rendered by Sphinx, then verify that the generated documentation displays the intended default correctly.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
documentation
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.