Skip to content

Convert settings into attribute references.#2341

Merged
mhsmith merged 6 commits intobeeware:mainfrom
freakboy3742:attr-refs
Jun 17, 2025
Merged

Convert settings into attribute references.#2341
mhsmith merged 6 commits intobeeware:mainfrom
freakboy3742:attr-refs

Conversation

@freakboy3742
Copy link
Member

One of the review comments of the External Apps PR (#2333) noted that a setting should be hyperlink. That was difficult to do in that context because settings are all referenced as section headings, rather than being marked up as settings.

This PR converts all settings to "attributes", with the module namespace being used to differentiate settings with the same name on different backends.

This could possibly be improved with a custom Sphinx plugin to add a :setting: directive (or similar), but for now, this meets the goal of having (a) linkable settings, (b) rendered as code. As we don't have any autodoc content, the :attr: directive is currently unambiguous about what it refers to, so moving to a :setting: directive should be a search-and-replace operation.

PR Checklist:

  • All new features have been tested
  • All new features have been documented
  • I have read the CONTRIBUTING.md file
  • I will abide by the code of conduct

@mhsmith mhsmith merged commit 8c0adb8 into beeware:main Jun 17, 2025
57 checks passed
@freakboy3742 freakboy3742 deleted the attr-refs branch June 17, 2025 21:35
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.

2 participants