You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Would it be an idea to limit the list to just Sphinx roles by default, and have some way of adding "known" directive names? This could be via e.g. sphinx-lint.toml or via command line flags.
An extension to this idea would be dumping custom directives from Sphinx through some mechanism, and then having some sphinx-lint init that could use that hook with a project's conf.py to auto-populate. But baby steps!
A
The text was updated successfully, but these errors were encountered:
A brief look through the source, I saw the list of directive names is hardcoded and contains many specific to the CPython docs:
sphinx-lint/sphinxlint.py
Lines 87 to 100 in f6a736d
Would it be an idea to limit the list to just Sphinx roles by default, and have some way of adding "known" directive names? This could be via e.g.
sphinx-lint.toml
or via command line flags.An extension to this idea would be dumping custom directives from Sphinx through some mechanism, and then having some
sphinx-lint init
that could use that hook with a project'sconf.py
to auto-populate. But baby steps!A
The text was updated successfully, but these errors were encountered: