Skip to content

rename secondary_sidebar_items to page_sidebar_items in user guide #1028

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

Closed
wants to merge 1 commit into from

Conversation

MuellerSeb
Copy link

Ran into an error following the documentation for modifying secondary_sidebar_items:

preparing documents... WARNING: unsupported theme option 'secondary_sidebar_items' given

I think it should be named page_sidebar_items

@drammock
Copy link
Collaborator

can you check that the version of the docs you were viewing matches the version of the theme you have installed? I think secondary_sidebar_items is correct but the name change was recent; I suspect you have an older theme version installed but were viewing the development version of the docs.

@drammock
Copy link
Collaborator

see, e.g., here:

# DEPRECATE after 0.12
left_sidebar_end =
page_sidebar_items =

and here:

if theme_options.get("page_sidebar_items"):
theme_options["secondary_sidebar_items"] = theme_options.get(
"page_sidebar_items"
)
logger.warning(
"The configuration `page_sidebar_items` is deprecated."
"Use `secondary_sidebar_items`."
)

@12rambau
Copy link
Collaborator

The change was done in this PR: 355fe0b. This is not yet released so I think you were looking at the latest documentation instead of stable.

@choldgraf
Copy link
Collaborator

@12rambau perhaps we should cut a release soon? I think that the bootstrap PR #1029 is going to be another breaking change so we probably want to cut a release before that anyway

@12rambau
Copy link
Collaborator

@choldgraf as I still cannot build the documentation on my weird environment, I'll leave it to you or @jarrodmillman but i'm happy to see releases whenever you see fit (these days my goal is to reduce the number of issues)

@choldgraf
Copy link
Collaborator

sounds good - I don't have time to cut a release for a while, but happy to review PRs from anybody else that is interested in doing so.

@MuellerSeb
Copy link
Author

The change was done in this PR: 355fe0b. This is not yet released so I think you were looking at the latest documentation instead of stable.

You are right. That was my mistake. Sorry for the confusion.

@MuellerSeb
Copy link
Author

But then, I think my only mistake was to follow the links in the readme, since they point to the latest release of the documentation. Going to https://pydata-sphinx-theme.readthedocs.io directly redirects to the stable version. Is that intended?

@12rambau
Copy link
Collaborator

@MuellerSeb Nice catch, to my understanding it's not intended, it would be safer to remove "latest" from the link. would you mind doing a patch PR ?

12rambau added a commit that referenced this pull request Oct 23, 2022
12rambau added a commit that referenced this pull request Oct 24, 2022
* DOCS: update documentation link 

supersede #1028

* update all the links
@12rambau 12rambau closed this Oct 24, 2022
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.

4 participants