Skip to content
This repository was archived by the owner on Jun 1, 2023. It is now read-only.

Commit b3a01da

Browse files
authored
Merge pull request #115 from samsymons/member-type-icon-fix
Ensure that the member type icon is correct
2 parents 5dafcb1 + f522d2c commit b3a01da

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

Changelog.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
4646
#76 by @victor-pavlychko.
4747
- Fixed default location of sources reference in README
4848
#92 by @heckj
49-
- Fixed indentation of code examples.
49+
- Fixed indentation of code examples in HTML output.
5050
#114 by @samsymons
51+
- Fixed icons for symbols in HTML output.
52+
#115 by @samsymons
5153

5254
## [1.0.0-beta.2] - 2020-04-08
5355

Sources/swift-doc/Supporting Types/Components/Members.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ struct Members: Component {
9393
<h2>\#(section.title)</h2>
9494
9595
\#(section.members.map { member -> HypertextLiteral.HTML in
96-
let descriptor = String(describing: type(of: symbol.api)).lowercased()
96+
let descriptor = String(describing: type(of: member.api)).lowercased()
9797

9898
return #"""
9999
<div role="article" class="\#(descriptor)" id=\#(member.id.description.lowercased().replacingOccurrences(of: " ", with: "-"))>

0 commit comments

Comments
 (0)