Skip to content

Resolve attributes as cross-references#115

Open
mwoehlke wants to merge 1 commit into
cps-org:masterfrom
mwoehlke:attributes-are-references
Open

Resolve attributes as cross-references#115
mwoehlke wants to merge 1 commit into
cps-org:masterfrom
mwoehlke:attributes-are-references

Conversation

@mwoehlke
Copy link
Copy Markdown
Member

Rewrite the attribute role to be a domain specific cross reference that is resolved against the actual collected attributes set. While our previous practice of creating attribute links using standard references was functional, it made it somewhat awkward to elide the object context for overloaded attributes, and resulted in inconsistency between linked and unlinked attribute references in both markup and visual rendering.

Generating the references ourself for improved consistency of visual presentation, as well as simplified and more standard mechanisms for specifying whether a reference to an overloaded attribute should be qualified. Additionally, resolving references against our internal attribute model (as compared to the previous behavior which effectively used only section targets) means that attributes can be qualified, whether or not they are overloaded, which makes resolution more robust.

@mwoehlke mwoehlke force-pushed the attributes-are-references branch from 2e056e5 to 856ddd8 Compare May 28, 2026 15:10
Rewrite the `attribute` role to be a domain specific cross reference
that is resolved against the actual collected attributes set. While our
previous practice of creating attribute links using standard references
was functional, it made it somewhat awkward to elide the object context
for overloaded attributes, and resulted in inconsistency between linked
and unlinked attribute references in both markup and visual rendering.

Generating the references ourself for improved consistency of visual
presentation, as well as simplified and more standard mechanisms for
specifying whether a reference to an overloaded attribute should be
qualified. Additionally, resolving references against our internal
attribute model (as compared to the previous behavior which effectively
used only section targets) means that attributes can be qualified,
whether or not they are overloaded, which makes resolution more robust.
@mwoehlke mwoehlke force-pushed the attributes-are-references branch from 856ddd8 to dae560d Compare May 28, 2026 15:21
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.

1 participant