-
Notifications
You must be signed in to change notification settings - Fork 131
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
review: add a test that loads from a render fixture
- Loading branch information
1 parent
57a8a12
commit 10edeec
Showing
3 changed files
with
144 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
110 changes: 110 additions & 0 deletions
110
Tests/SwiftDocCTests/Rendering/Rendering Fixtures/external-location-custom-url.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,110 @@ | ||
{ | ||
"schemaVersion" : { | ||
"major" : 1, | ||
"minor" : 0, | ||
"patch" : 0 | ||
}, | ||
"seeAlsoSections" : [ ], | ||
"metadata" : { | ||
"platforms" : [ | ||
{ | ||
"name" : "macOS", | ||
"introducedAt" : "10.15" | ||
} | ||
], | ||
"modules" : [ | ||
{ "name" : "MyKit" } | ||
], | ||
"title" : "Wifi Access", | ||
"roleHeading" : "Plist Key" | ||
}, | ||
"abstract" : [ | ||
{ | ||
"type" : "text", | ||
"text" : "A " | ||
}, | ||
{ | ||
"type" : "codeVoice", | ||
"code" : "WiFi access" | ||
}, | ||
{ | ||
"type" : "text", | ||
"text" : " abstract description." | ||
} | ||
], | ||
"sections" : [ | ||
], | ||
"identifier" : { | ||
"url" : "doc:\/\/org.swift.docc.example\/plist\/wifiaccess", | ||
"interfaceLanguage": "swift" | ||
}, | ||
"hierarchy" : { | ||
"paths" : [["doc:\/\/org.swift.docc.example\/plist\/wifiaccess"]] | ||
}, | ||
"topicSections" : [ | ||
], | ||
"kind" : "symbol", | ||
"references" : { | ||
"doc:\/\/org.swift.docc.example\/downloads\/sample.zip": { | ||
"identifier": "ExternalLocation.zip", | ||
"url": "https://example.com/ExternalLocation.zip", | ||
"type": "externalLocation" | ||
}, | ||
"doc:\/\/org.swift.docc.example\/plist\/wifiaccess": { | ||
"abstract" : [ | ||
{ | ||
"text" : "WiFi access", | ||
"type" : "text" | ||
} | ||
], | ||
"identifier" : "doc:\/\/org.swift.docc.example\/plist\/wifiaccess", | ||
"kind" : "symbol", | ||
"title" : "WiFi Access", | ||
"type" : "topic", | ||
"url" : "\/documentation\/mykit" | ||
} | ||
}, | ||
"sampleCodeDownload": { | ||
"action": { | ||
"identifier": "doc:\/\/org.swift.docc.example\/downloads\/sample.zip", | ||
"isActive": true, | ||
"overridingTitle": "Download", | ||
"type": "reference" | ||
} | ||
}, | ||
"primaryContentSections" : [ | ||
{ | ||
"kind" : "content", | ||
"content" : [ | ||
{ | ||
"anchor" : "discussion", | ||
"level" : 2, | ||
"type" : "heading", | ||
"text" : "Discussion" | ||
}, | ||
{ | ||
"type" : "paragraph", | ||
"inlineContent" : [ | ||
{ | ||
"type" : "text", | ||
"text" : "Use " | ||
}, | ||
{ | ||
"type" : "codeVoice", | ||
"code" : "Wifi access" | ||
}, | ||
{ | ||
"type" : "text", | ||
"text" : " to secure wifi access for your app." | ||
} | ||
] | ||
} | ||
] | ||
} | ||
], | ||
"variants": [{ | ||
"paths" : ["\/plist\/wifiaccess"], | ||
"traits" : [] | ||
}] | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters