Skip to content

Fix warning about 4-column-based-index #7

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

eric-wieser
Copy link
Contributor

@eric-wieser eric-wieser commented Nov 19, 2019

Stops the message WARNING: 4 column based index found. It might be a bug of extensions you use: appearing, which is due to sphinx changing from 4- to 5-column indices.

This change will break compatibility with sphinx < 1.4.

Note that this is only a warning, so doesn't really block anything - filing this primarily for a destination for google searches of that warning.

Stops the message `WARNING: 4 column based index found. It might be a bug of extensions you use:` appearing, which is due to sphinx changing from 4- to 5-column indices.

This change will break compatibility with sphinx < 1.4.
@@ -76,7 +76,7 @@ def add_target_and_index(self, name, sig, signode):
indextype = 'single'
indexentry = self.indextemplate % (name,)
self.indexnode['entries'].append((indextype, indexentry,
Copy link

Choose a reason for hiding this comment

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

Should we add if version_info < (1, 4): here to also support old Sphinx version? (This also needs import of version_info, see e.g. VACUMM/sphinx-fortran@f723ef2)

Copy link
Member

Choose a reason for hiding this comment

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

I don't have an opinion about this. Either supporting and not supporting is okay for me.
If we choose to raise the target version of Sphinx, we have to update dependencies on setup.py.

@eric-wieser Could you check this please?

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.

3 participants