vega / altair

Declarative statistical visualization library for Python
https://altair-viz.github.io/
BSD 3-Clause "New" or "Revised" License
9.4k stars 795 forks source link

Add `@alt.theme.register` to API Reference #3607

Closed dangotbanned closed 2 weeks ago

dangotbanned commented 2 months ago

@mattijn

I searched for register_theme within the altair documentation page, but nothing was returned altair-viz.github.io/search.html?q=register_theme. A brief description to the documentation page would help the average user a lot here.

Well spotted! I wasn't aware this hadn't been included in the API reference yet, but will open a new issue/PR to address it - since that is orthogonal to this PR.

Originally posted by @dangotbanned in https://github.com/vega/altair/issues/3536#issuecomment-2366824507


I added this to alt.__init__.__all__ in #3526, but forgot to make sure it was picked up by https://github.com/vega/altair/blob/fa420f36e0af8043d7197cda39a2834f7659cd68/tools/generate_api_docs.py