diff --git a/pages/_header.xnode b/pages/_header.xnode index 1c33f0b..ba9c6de 100644 --- a/pages/_header.xnode +++ b/pages/_header.xnode @@ -12,7 +12,7 @@ ?>#{link.title} - GitHub + GitHub
diff --git a/pages/reference/_declaration.xnode b/pages/reference/_declaration.xnode index 4642550..33f1e52 100644 --- a/pages/reference/_declaration.xnode +++ b/pages/reference/_declaration.xnode @@ -2,8 +2,9 @@ base = self[:base] symbol = self[:symbol] link = self[:link] +inheritance = self[:inheritance] != false -if symbol.respond_to?(:super_class) +if inheritance && symbol.respond_to?(:super_class) super_class = symbol.super_class end diff --git a/pages/reference/show.xnode b/pages/reference/show.xnode index 11c23ca..cde6ea4 100644 --- a/pages/reference/show.xnode +++ b/pages/reference/show.xnode @@ -30,7 +30,7 @@ if nested.any? ?>
-

Classes and Modules

+

Nested Classes and Modules

-
#{partial 'content:declaration', symbol: symbol, link: true}
+
#{partial 'content:declaration', symbol: symbol, link: true, inheritance: false}
#{base.format(description, symbol)}
diff --git a/public/_static/site.css b/public/_static/site.css index d5ec5a8..8765d7c 100644 --- a/public/_static/site.css +++ b/public/_static/site.css @@ -170,10 +170,6 @@ header .sections .github { opacity: 0.7; } -header .sections .github span { - font-size: 0.85em; -} - header .sections .github:hover { opacity: 1; } diff --git a/test/utopia/project/serve.rb b/test/utopia/project/serve.rb index 27ec354..7bc0082 100644 --- a/test/utopia/project/serve.rb +++ b/test/utopia/project/serve.rb @@ -45,6 +45,8 @@ expect(body).to be(:include?, "Project") expect(body).to be(:include?, 'Reference') + expect(body).to be(:include?, 'aria-label="View source on GitHub">GitHub') + expect(body).not.to be(:include?, "↗") end it "generates URL-like import map values" do @@ -92,9 +94,13 @@ it "summarizes nested definitions" do body = client.get("/reference/Utopia/Project/index").read - expect(body).to be(:include?, "Classes and Modules") + expect(body).to be(:include?, "Nested Classes and Modules") expect(body).to be(:include?, '
') - expect(body).to be(:include?, 'class Document') + + nested_definitions = body[/
.*?<\/dl>/m] + expect(nested_definitions).to be(:include?, 'class Document') + expect(nested_definitions).to be(:include?, 'class ReleasesDocument') + expect(nested_definitions).not.to be(:include?, " < ") expect(body).to be(:include?, "Represents a Markdown document with optional source code cross-references.") end end