Skip to content

Commit 1c783a4

Browse files
Use consistent typography for method lists
Assisted-By: devx/08af623d-3e23-42c2-ada9-1ce2bcb7e46f
1 parent 8a22d45 commit 1c783a4

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

pages/reference/_relationships.xnode

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,15 @@ relationship_labels = {
3434
end
3535

3636
if methods&.any?
37-
?>: <?r
37+
?>: <code><?r
3838
methods.each_with_index do |method, method_index|
3939
if method_index > 0
4040
?>, <?r
4141
end
4242

43-
?><a href="#{base.link_for(method.definition)}"><code>#{method.name}</code></a><?r
43+
?><a href="#{base.link_for(method.definition)}">#{method.name}</a><?r
4444
end
45+
?></code><?r
4546
end
4647
end
4748
?></dd><?r

test/utopia/project/serve.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@
8585

8686
relationships = body[/<dl class="relationships">.*?<\/dl>/m]
8787
expect(relationships).to be(:include?, "/reference/Utopia/Project/Document/index#Utopia%3A%3AProject%3A%3ADocument%23root")
88+
expect(relationships).to be(:include?, ": <code><a href=")
8889
expect(body).not.to be(:include?, "<h2>Inherited Methods</h2>")
8990
end
9091

0 commit comments

Comments
 (0)