docs: fix incorrect import-heading example#23568
Conversation
|
Could you please add a test plan showing a local build of the docs with the updated heading? I thought there was a different PR implementing this, and it ended up with a duplicate heading. |
|
Thanks — I can't run a full local docs build in my current environment atm, so I can't attach a mkdocs build result right now. What I did verify:
If necessary and you'd prefer, I can rerun this with a proper Rust toolchain + docs build and report back |
|
Thanks — I see what you mean. I'll update the snippet to use the fully-qualified table header ([tool.ruff.lint.isort.import-heading] / [lint.isort.import-heading]) instead of the nested [import-heading] form to avoid the duplicate heading in the rendered docs. Pushing an update shortly. |
Use fully-qualified table header to avoid duplicate heading in rendered docs. Closes astral-sh#23420
ed88148 to
ec43418
Compare
|
Thanks — updated the example to use the fully-qualified table header to avoid the duplicate heading in the rendered docs. |
|
Switched the example to the inline dict form (import-heading = {...}) to match other dict examples in options.rs and to avoid the docs generator dropping the nested header segment / producing duplicate headings. |
|



Fixes incorrect TOML example for import-heading configuration.
Closes #23420