From 63d8489d8655a9c94d28e76793452c01d4e835e4 Mon Sep 17 00:00:00 2001 From: Jeff Verkoeyen Date: Thu, 1 Aug 2024 00:55:10 -0400 Subject: [PATCH] Fix casing. --- docs/data/documentation/slipstream.json | 2 +- docs/data/documentation/slipstream/fundamentals.json | 2 +- docs/data/documentation/slipstream/renderhtml(_:).json | 2 +- docs/data/documentation/slipstream/text.json | 2 +- docs/data/documentation/slipstream/text/init(_:).json | 2 +- docs/data/documentation/slipstream/textinputandoutput.json | 2 +- docs/data/documentation/slipstream/view.json | 2 +- docs/data/documentation/slipstream/view/body.json | 2 +- docs/data/documentation/slipstream/view/content.json | 2 +- docs/data/documentation/slipstream/view/render(_:)-4e6tj.json | 2 +- docs/data/documentation/slipstream/view/render(_:)-52ipj.json | 2 +- docs/data/documentation/slipstream/viewbuilder.json | 2 +- .../documentation/slipstream/viewbuilder/buildblock(_:).json | 2 +- docs/documentation/slipstream/fundamentals/index.html | 2 +- docs/documentation/slipstream/index.html | 2 +- docs/documentation/slipstream/renderhtml(_:)/index.html | 2 +- docs/documentation/slipstream/text/index.html | 2 +- docs/documentation/slipstream/text/init(_:)/index.html | 2 +- docs/documentation/slipstream/textinputandoutput/index.html | 2 +- docs/documentation/slipstream/view/body/index.html | 2 +- docs/documentation/slipstream/view/content/index.html | 2 +- docs/documentation/slipstream/view/index.html | 2 +- docs/documentation/slipstream/view/render(_:)-4e6tj/index.html | 2 +- docs/documentation/slipstream/view/render(_:)-52ipj/index.html | 2 +- .../slipstream/viewbuilder/buildblock(_:)/index.html | 2 +- docs/documentation/slipstream/viewbuilder/index.html | 2 +- docs/index.html | 2 +- docs/metadata.json | 2 +- gendocs.sh | 2 +- 29 files changed, 29 insertions(+), 29 deletions(-) diff --git a/docs/data/documentation/slipstream.json b/docs/data/documentation/slipstream.json index 88fa9ce..9e551f0 100644 --- a/docs/data/documentation/slipstream.json +++ b/docs/data/documentation/slipstream.json @@ -1 +1 @@ -{"abstract":[{"type":"text","text":"Build static web pages with Swift and Tailwind CSS."}],"primaryContentSections":[{"kind":"content","content":[{"level":2,"anchor":"Overview","type":"heading","text":"Overview"},{"type":"paragraph","inlineContent":[{"identifier":"logo","type":"image"}]},{"inlineContent":[{"text":"Slipstream is a declarative framework that allows you to write SwiftUI-like","type":"text"},{"text":" ","type":"text"},{"type":"text","text":"code to generate HTML compatible with "},{"isActive":true,"type":"reference","identifier":"https:\/\/tailwindcss.com\/docs\/installation"},{"type":"text","text":","},{"type":"text","text":" "},{"text":"a utility-first CSS framework.","type":"text"}],"type":"paragraph"},{"type":"paragraph","inlineContent":[{"type":"text","text":"By using a SwiftUI-like domain-specific language (DSL), Slipstream provides a"},{"type":"text","text":" "},{"text":"familiar syntax for Swift developers, making it easy to create and style web","type":"text"},{"type":"text","text":" "},{"type":"text","text":"components without leaving the Swift ecosystem."}]},{"syntax":"swift","code":["import Slipstream","","struct HelloWorld: View {"," var body: some View {"," Text(\"Hello, world!\")"," }","}","","print(try renderHTML(HelloWorld()))"],"type":"codeListing"},{"type":"heading","text":"Key features","anchor":"Key-features","level":3},{"items":[{"content":[{"inlineContent":[{"inlineContent":[{"type":"text","text":"SwiftUI-like DSL"}],"type":"strong"},{"type":"text","text":": Write Swift code to define your web page’s structure"},{"text":" ","type":"text"},{"text":"and styling. The DSL is designed to be intuitive and expressive, making it","type":"text"},{"type":"text","text":" "},{"type":"text","text":"easy to create complex layouts with simple code."}],"type":"paragraph"}]},{"content":[{"type":"paragraph","inlineContent":[{"inlineContent":[{"type":"text","text":"Tailwind CSS Integration"}],"type":"strong"},{"text":": Slipstream outputs HTML that is fully","type":"text"},{"type":"text","text":" "},{"type":"text","text":"compatible with Tailwind CSS, allowing you to leverage Tailwind’s extensive"},{"text":" ","type":"text"},{"type":"text","text":"library of utility classes for styling."}]}]},{"content":[{"type":"paragraph","inlineContent":[{"type":"strong","inlineContent":[{"type":"text","text":"Static Site Generation"}]},{"text":": Ideal for static web pages, Slipstream generates","type":"text"},{"text":" ","type":"text"},{"text":"static HTML files, which can be easily hosted on any web server or deployed","type":"text"},{"text":" ","type":"text"},{"text":"to static site hosting platforms such as GitHub Pages.","type":"text"}]}]},{"content":[{"type":"paragraph","inlineContent":[{"inlineContent":[{"text":"Modular and Composable","type":"text"}],"type":"strong"},{"type":"text","text":": Build reusable components and compose them to"},{"type":"text","text":" "},{"text":"create more complex UI elements.","type":"text"}]}]},{"content":[{"type":"paragraph","inlineContent":[{"type":"strong","inlineContent":[{"type":"text","text":"Flexible Rendering"}]},{"text":": As a framework, Slipstream can be integrated into any","type":"text"},{"type":"text","text":" "},{"type":"text","text":"type of static website, whether it’s a blog, portfolio, product landing page,"},{"text":" ","type":"text"},{"text":"or your personal pet project (maybe even literally a webpage for your pet?).","type":"text"}]}]}],"type":"unorderedList"}]}],"sections":[],"variants":[{"paths":["\/documentation\/slipstream"],"traits":[{"interfaceLanguage":"swift"}]}],"kind":"symbol","identifier":{"url":"doc:\/\/Slipstream\/documentation\/Slipstream","interfaceLanguage":"swift"},"schemaVersion":{"patch":0,"major":0,"minor":3},"metadata":{"roleHeading":"Framework","modules":[{"name":"Slipstream"}],"externalID":"Slipstream","role":"collection","symbolKind":"module","title":"Slipstream"},"topicSections":[{"anchor":"Views","title":"Views","identifiers":["doc:\/\/Slipstream\/documentation\/Slipstream\/Fundamentals","doc:\/\/Slipstream\/documentation\/Slipstream\/TextInputAndOutput"]},{"title":"Rendering Views","identifiers":["doc:\/\/Slipstream\/documentation\/Slipstream\/renderHTML(_:)"],"anchor":"Rendering-Views"}],"hierarchy":{"paths":[[]]},"references":{"https://tailwindcss.com/docs/installation":{"titleInlineContent":[{"text":"Tailwind CSS","type":"text"}],"url":"https:\/\/tailwindcss.com\/docs\/installation","identifier":"https:\/\/tailwindcss.com\/docs\/installation","title":"Tailwind CSS","type":"link"},"doc://Slipstream/documentation/Slipstream/Fundamentals":{"kind":"article","type":"topic","title":"View fundamentals","identifier":"doc:\/\/Slipstream\/documentation\/Slipstream\/Fundamentals","abstract":[{"text":"Define the visual elements of your website using a hierarchy of views.","type":"text"}],"url":"\/documentation\/slipstream\/fundamentals","role":"collectionGroup"},"doc://Slipstream/documentation/Slipstream/renderHTML(_:)":{"fragments":[{"kind":"keyword","text":"func"},{"kind":"text","text":" "},{"text":"renderHTML","kind":"identifier"},{"text":"(any ","kind":"text"},{"text":"View","kind":"typeIdentifier","preciseIdentifier":"s:10Slipstream4ViewP"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"},{"kind":"text","text":" -> "},{"text":"String","kind":"typeIdentifier","preciseIdentifier":"s:SS"}],"url":"\/documentation\/slipstream\/renderhtml(_:)","kind":"symbol","identifier":"doc:\/\/Slipstream\/documentation\/Slipstream\/renderHTML(_:)","abstract":[{"text":"Renders the given view as an HTML document and returns the HTML.","type":"text"}],"type":"topic","role":"symbol","title":"renderHTML(_:)"},"doc://Slipstream/documentation/Slipstream":{"title":"Slipstream","type":"topic","kind":"symbol","abstract":[{"text":"Build static web pages with Swift and Tailwind CSS.","type":"text"}],"role":"collection","identifier":"doc:\/\/Slipstream\/documentation\/Slipstream","url":"\/documentation\/slipstream"},"doc://Slipstream/documentation/Slipstream/TextInputAndOutput":{"role":"collectionGroup","title":"Text input and output","kind":"article","type":"topic","url":"\/documentation\/slipstream\/textinputandoutput","abstract":[{"text":"Display text.","type":"text"}],"identifier":"doc:\/\/Slipstream\/documentation\/Slipstream\/TextInputAndOutput"},"logo":{"alt":"The Slipstream logo. The Swift bird logo is flying off the edge of the Tailwind CSS wind logo.","identifier":"logo","variants":[{"url":"\/images\/Slipstream\/logo.svg","traits":["1x","light"]}],"type":"image"}}} \ No newline at end of file +{"schemaVersion":{"patch":0,"major":0,"minor":3},"kind":"symbol","abstract":[{"text":"Build static web pages with Swift and Tailwind CSS.","type":"text"}],"topicSections":[{"identifiers":["doc:\/\/Slipstream\/documentation\/Slipstream\/Fundamentals","doc:\/\/Slipstream\/documentation\/Slipstream\/TextInputAndOutput"],"anchor":"Views","title":"Views"},{"anchor":"Rendering-Views","title":"Rendering Views","identifiers":["doc:\/\/Slipstream\/documentation\/Slipstream\/renderHTML(_:)"]}],"variants":[{"paths":["\/documentation\/slipstream"],"traits":[{"interfaceLanguage":"swift"}]}],"primaryContentSections":[{"kind":"content","content":[{"text":"Overview","level":2,"type":"heading","anchor":"Overview"},{"type":"paragraph","inlineContent":[{"identifier":"logo","type":"image"}]},{"inlineContent":[{"type":"text","text":"Slipstream is a declarative framework that allows you to write SwiftUI-like"},{"type":"text","text":" "},{"text":"code to generate HTML compatible with ","type":"text"},{"identifier":"https:\/\/tailwindcss.com\/docs\/installation","isActive":true,"type":"reference"},{"text":",","type":"text"},{"type":"text","text":" "},{"text":"a utility-first CSS framework.","type":"text"}],"type":"paragraph"},{"type":"paragraph","inlineContent":[{"text":"By using a SwiftUI-like domain-specific language (DSL), Slipstream provides a","type":"text"},{"type":"text","text":" "},{"type":"text","text":"familiar syntax for Swift developers, making it easy to create and style web"},{"type":"text","text":" "},{"text":"components without leaving the Swift ecosystem.","type":"text"}]},{"type":"codeListing","syntax":"swift","code":["import Slipstream","","struct HelloWorld: View {"," var body: some View {"," Text(\"Hello, world!\")"," }","}","","print(try renderHTML(HelloWorld()))"]},{"text":"Key features","type":"heading","anchor":"Key-features","level":3},{"type":"unorderedList","items":[{"content":[{"type":"paragraph","inlineContent":[{"inlineContent":[{"text":"SwiftUI-like DSL","type":"text"}],"type":"strong"},{"text":": Write Swift code to define your web page’s structure","type":"text"},{"type":"text","text":" "},{"text":"and styling. The DSL is designed to be intuitive and expressive, making it","type":"text"},{"text":" ","type":"text"},{"type":"text","text":"easy to create complex layouts with simple code."}]}]},{"content":[{"inlineContent":[{"type":"strong","inlineContent":[{"text":"Tailwind CSS Integration","type":"text"}]},{"text":": Slipstream outputs HTML that is fully","type":"text"},{"type":"text","text":" "},{"type":"text","text":"compatible with Tailwind CSS, allowing you to leverage Tailwind’s extensive"},{"text":" ","type":"text"},{"text":"library of utility classes for styling.","type":"text"}],"type":"paragraph"}]},{"content":[{"inlineContent":[{"inlineContent":[{"text":"Static Site Generation","type":"text"}],"type":"strong"},{"type":"text","text":": Ideal for static web pages, Slipstream generates"},{"text":" ","type":"text"},{"type":"text","text":"static HTML files, which can be easily hosted on any web server or deployed"},{"type":"text","text":" "},{"type":"text","text":"to static site hosting platforms such as GitHub Pages."}],"type":"paragraph"}]},{"content":[{"type":"paragraph","inlineContent":[{"type":"strong","inlineContent":[{"text":"Modular and Composable","type":"text"}]},{"type":"text","text":": Build reusable components and compose them to"},{"type":"text","text":" "},{"type":"text","text":"create more complex UI elements."}]}]},{"content":[{"type":"paragraph","inlineContent":[{"type":"strong","inlineContent":[{"type":"text","text":"Flexible Rendering"}]},{"type":"text","text":": As a framework, Slipstream can be integrated into any"},{"text":" ","type":"text"},{"text":"type of static website, whether it’s a blog, portfolio, product landing page,","type":"text"},{"text":" ","type":"text"},{"type":"text","text":"or your personal pet project (maybe even literally a webpage for your pet?)."}]}]}]}]}],"hierarchy":{"paths":[[]]},"metadata":{"symbolKind":"module","modules":[{"name":"Slipstream"}],"roleHeading":"Framework","externalID":"Slipstream","role":"collection","title":"Slipstream"},"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/Slipstream\/documentation\/Slipstream"},"sections":[],"references":{"doc://Slipstream/documentation/Slipstream/Fundamentals":{"abstract":[{"type":"text","text":"Define the visual elements of your website using a hierarchy of views."}],"title":"View fundamentals","identifier":"doc:\/\/Slipstream\/documentation\/Slipstream\/Fundamentals","type":"topic","url":"\/documentation\/slipstream\/fundamentals","kind":"article","role":"collectionGroup"},"doc://Slipstream/documentation/Slipstream":{"identifier":"doc:\/\/Slipstream\/documentation\/Slipstream","role":"collection","type":"topic","url":"\/documentation\/slipstream","abstract":[{"text":"Build static web pages with Swift and Tailwind CSS.","type":"text"}],"title":"Slipstream","kind":"symbol"},"doc://Slipstream/documentation/Slipstream/renderHTML(_:)":{"url":"\/documentation\/slipstream\/renderhtml(_:)","identifier":"doc:\/\/Slipstream\/documentation\/Slipstream\/renderHTML(_:)","title":"renderHTML(_:)","type":"topic","kind":"symbol","fragments":[{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"text":"renderHTML","kind":"identifier"},{"kind":"text","text":"(any "},{"kind":"typeIdentifier","text":"View","preciseIdentifier":"s:10Slipstream4ViewP"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"},{"text":" -> ","kind":"text"},{"kind":"typeIdentifier","text":"String","preciseIdentifier":"s:SS"}],"abstract":[{"type":"text","text":"Renders the given view as an HTML document and returns the HTML."}],"role":"symbol"},"https://tailwindcss.com/docs/installation":{"identifier":"https:\/\/tailwindcss.com\/docs\/installation","type":"link","titleInlineContent":[{"text":"Tailwind CSS","type":"text"}],"title":"Tailwind CSS","url":"https:\/\/tailwindcss.com\/docs\/installation"},"logo":{"identifier":"logo","type":"image","variants":[{"url":"\/images\/Slipstream\/logo.svg","traits":["1x","light"]}],"alt":"The Slipstream logo. The Swift bird logo is flying off the edge of the Tailwind CSS wind logo."},"doc://Slipstream/documentation/Slipstream/TextInputAndOutput":{"identifier":"doc:\/\/Slipstream\/documentation\/Slipstream\/TextInputAndOutput","abstract":[{"type":"text","text":"Display text."}],"title":"Text input and output","url":"\/documentation\/slipstream\/textinputandoutput","kind":"article","type":"topic","role":"collectionGroup"}}} \ No newline at end of file diff --git a/docs/data/documentation/slipstream/fundamentals.json b/docs/data/documentation/slipstream/fundamentals.json index 652fc01..30300de 100644 --- a/docs/data/documentation/slipstream/fundamentals.json +++ b/docs/data/documentation/slipstream/fundamentals.json @@ -1 +1 @@ -{"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/Slipstream\/documentation\/Slipstream\/Fundamentals"},"topicSections":[{"anchor":"Creating-a-View","title":"Creating a View","identifiers":["doc:\/\/Slipstream\/documentation\/Slipstream\/View","doc:\/\/Slipstream\/documentation\/Slipstream\/ViewBuilder"]},{"title":"W3C views","identifiers":["doc:\/\/Slipstream\/documentation\/Slipstream\/Text"],"anchor":"W3C-views"}],"variants":[{"paths":["\/documentation\/slipstream\/fundamentals"],"traits":[{"interfaceLanguage":"swift"}]}],"sections":[],"abstract":[{"text":"Define the visual elements of your website using a hierarchy of views.","type":"text"}],"metadata":{"title":"View fundamentals","role":"collectionGroup","roleHeading":"API Collection","modules":[{"name":"Slipstream"}]},"kind":"article","schemaVersion":{"patch":0,"major":0,"minor":3},"seeAlsoSections":[{"anchor":"Views","generated":true,"identifiers":["doc:\/\/Slipstream\/documentation\/Slipstream\/TextInputAndOutput"],"title":"Views"}],"primaryContentSections":[{"kind":"content","content":[{"type":"heading","level":2,"anchor":"overview","text":"Overview"},{"type":"paragraph","inlineContent":[{"text":"Views are the building blocks that you use to declare your website. Each view","type":"text"},{"type":"text","text":" "},{"text":"contains a description of what to display. Every bit of your website that’s","type":"text"},{"text":" ","type":"text"},{"text":"visible to the user derives from the description in a view, and any type that","type":"text"},{"text":" ","type":"text"},{"text":"conforms to the ","type":"text"},{"isActive":true,"type":"reference","identifier":"doc:\/\/Slipstream\/documentation\/Slipstream\/View"},{"text":" protocol can act as a view in your website.","type":"text"}]}]}],"hierarchy":{"paths":[["doc:\/\/Slipstream\/documentation\/Slipstream"]]},"references":{"doc://Slipstream/documentation/Slipstream/View":{"type":"topic","abstract":[{"type":"text","text":"A type that represents part of your HTML document."}],"role":"symbol","fragments":[{"text":"protocol","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"View"}],"title":"View","identifier":"doc:\/\/Slipstream\/documentation\/Slipstream\/View","kind":"symbol","url":"\/documentation\/slipstream\/view","navigatorTitle":[{"text":"View","kind":"identifier"}]},"doc://Slipstream/documentation/Slipstream/TextInputAndOutput":{"title":"Text input and output","url":"\/documentation\/slipstream\/textinputandoutput","type":"topic","identifier":"doc:\/\/Slipstream\/documentation\/Slipstream\/TextInputAndOutput","kind":"article","abstract":[{"type":"text","text":"Display text."}],"role":"collectionGroup"},"doc://Slipstream/documentation/Slipstream":{"title":"Slipstream","type":"topic","kind":"symbol","abstract":[{"text":"Build static web pages with Swift and Tailwind CSS.","type":"text"}],"role":"collection","identifier":"doc:\/\/Slipstream\/documentation\/Slipstream","url":"\/documentation\/slipstream"},"doc://Slipstream/documentation/Slipstream/Text":{"fragments":[{"text":"struct","kind":"keyword"},{"kind":"text","text":" "},{"text":"Text","kind":"identifier"}],"navigatorTitle":[{"text":"Text","kind":"identifier"}],"kind":"symbol","role":"symbol","title":"Text","url":"\/documentation\/slipstream\/text","identifier":"doc:\/\/Slipstream\/documentation\/Slipstream\/Text","abstract":[{"text":"A view that displays one or more lines of read-only text.","type":"text"}],"type":"topic"},"doc://Slipstream/documentation/Slipstream/ViewBuilder":{"fragments":[{"text":"struct","kind":"keyword"},{"kind":"text","text":" "},{"text":"ViewBuilder","kind":"identifier"}],"role":"symbol","url":"\/documentation\/slipstream\/viewbuilder","title":"ViewBuilder","identifier":"doc:\/\/Slipstream\/documentation\/Slipstream\/ViewBuilder","kind":"symbol","navigatorTitle":[{"text":"ViewBuilder","kind":"identifier"}],"abstract":[{"text":"A custom parameter attribute that constructs views from closures.","type":"text"}],"type":"topic"}}} \ No newline at end of file +{"sections":[],"kind":"article","schemaVersion":{"minor":3,"major":0,"patch":0},"metadata":{"modules":[{"name":"Slipstream"}],"roleHeading":"API Collection","title":"View fundamentals","role":"collectionGroup"},"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/Slipstream\/documentation\/Slipstream\/Fundamentals"},"abstract":[{"text":"Define the visual elements of your website using a hierarchy of views.","type":"text"}],"seeAlsoSections":[{"anchor":"Views","title":"Views","generated":true,"identifiers":["doc:\/\/Slipstream\/documentation\/Slipstream\/TextInputAndOutput"]}],"primaryContentSections":[{"content":[{"text":"Overview","level":2,"type":"heading","anchor":"overview"},{"type":"paragraph","inlineContent":[{"text":"Views are the building blocks that you use to declare your website. Each view","type":"text"},{"text":" ","type":"text"},{"type":"text","text":"contains a description of what to display. Every bit of your website that’s"},{"type":"text","text":" "},{"type":"text","text":"visible to the user derives from the description in a view, and any type that"},{"type":"text","text":" "},{"type":"text","text":"conforms to the "},{"identifier":"doc:\/\/Slipstream\/documentation\/Slipstream\/View","type":"reference","isActive":true},{"type":"text","text":" protocol can act as a view in your website."}]}],"kind":"content"}],"hierarchy":{"paths":[["doc:\/\/Slipstream\/documentation\/Slipstream"]]},"variants":[{"paths":["\/documentation\/slipstream\/fundamentals"],"traits":[{"interfaceLanguage":"swift"}]}],"topicSections":[{"identifiers":["doc:\/\/Slipstream\/documentation\/Slipstream\/View","doc:\/\/Slipstream\/documentation\/Slipstream\/ViewBuilder"],"anchor":"Creating-a-View","title":"Creating a View"},{"identifiers":["doc:\/\/Slipstream\/documentation\/Slipstream\/Text"],"title":"W3C views","anchor":"W3C-views"}],"references":{"doc://Slipstream/documentation/Slipstream/ViewBuilder":{"type":"topic","identifier":"doc:\/\/Slipstream\/documentation\/Slipstream\/ViewBuilder","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"text":"ViewBuilder","kind":"identifier"}],"navigatorTitle":[{"kind":"identifier","text":"ViewBuilder"}],"abstract":[{"type":"text","text":"A custom parameter attribute that constructs views from closures."}],"url":"\/documentation\/slipstream\/viewbuilder","kind":"symbol","title":"ViewBuilder","role":"symbol"},"doc://Slipstream/documentation/Slipstream":{"identifier":"doc:\/\/Slipstream\/documentation\/Slipstream","role":"collection","type":"topic","url":"\/documentation\/slipstream","abstract":[{"text":"Build static web pages with Swift and Tailwind CSS.","type":"text"}],"title":"Slipstream","kind":"symbol"},"doc://Slipstream/documentation/Slipstream/Text":{"title":"Text","navigatorTitle":[{"text":"Text","kind":"identifier"}],"type":"topic","kind":"symbol","abstract":[{"type":"text","text":"A view that displays one or more lines of read-only text."}],"identifier":"doc:\/\/Slipstream\/documentation\/Slipstream\/Text","url":"\/documentation\/slipstream\/text","fragments":[{"kind":"keyword","text":"struct"},{"text":" ","kind":"text"},{"text":"Text","kind":"identifier"}],"role":"symbol"},"doc://Slipstream/documentation/Slipstream/View":{"title":"View","navigatorTitle":[{"kind":"identifier","text":"View"}],"type":"topic","kind":"symbol","abstract":[{"type":"text","text":"A type that represents part of your HTML document."}],"identifier":"doc:\/\/Slipstream\/documentation\/Slipstream\/View","url":"\/documentation\/slipstream\/view","fragments":[{"kind":"keyword","text":"protocol"},{"text":" ","kind":"text"},{"kind":"identifier","text":"View"}],"role":"symbol"},"doc://Slipstream/documentation/Slipstream/TextInputAndOutput":{"identifier":"doc:\/\/Slipstream\/documentation\/Slipstream\/TextInputAndOutput","abstract":[{"type":"text","text":"Display text."}],"title":"Text input and output","url":"\/documentation\/slipstream\/textinputandoutput","kind":"article","type":"topic","role":"collectionGroup"}}} \ No newline at end of file diff --git a/docs/data/documentation/slipstream/renderhtml(_:).json b/docs/data/documentation/slipstream/renderhtml(_:).json index f448a0f..4e161bd 100644 --- a/docs/data/documentation/slipstream/renderhtml(_:).json +++ b/docs/data/documentation/slipstream/renderhtml(_:).json @@ -1 +1 @@ -{"sections":[],"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/slipstream\/renderhtml(_:)"]}],"schemaVersion":{"major":0,"patch":0,"minor":3},"metadata":{"externalID":"s:10Slipstream10renderHTMLySSAA4View_pKF","symbolKind":"func","roleHeading":"Function","fragments":[{"kind":"keyword","text":"func"},{"kind":"text","text":" "},{"text":"renderHTML","kind":"identifier"},{"text":"(any ","kind":"text"},{"kind":"typeIdentifier","text":"View","preciseIdentifier":"s:10Slipstream4ViewP"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"},{"kind":"text","text":" -> "},{"text":"String","kind":"typeIdentifier","preciseIdentifier":"s:SS"}],"role":"symbol","modules":[{"name":"Slipstream"}],"title":"renderHTML(_:)"},"primaryContentSections":[{"declarations":[{"tokens":[{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"text":"renderHTML","kind":"identifier"},{"text":"(","kind":"text"},{"kind":"externalParam","text":"_"},{"text":" ","kind":"text"},{"kind":"internalParam","text":"view"},{"text":": any ","kind":"text"},{"preciseIdentifier":"s:10Slipstream4ViewP","kind":"typeIdentifier","text":"View","identifier":"doc:\/\/Slipstream\/documentation\/Slipstream\/View"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"},{"text":" -> ","kind":"text"},{"kind":"typeIdentifier","text":"String","preciseIdentifier":"s:SS"}],"languages":["swift"],"platforms":["macOS"]}],"kind":"declarations"},{"kind":"parameters","parameters":[{"name":"view","content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"The root view of the HTML document to be rendered."}]}]}]},{"kind":"content","content":[{"type":"heading","level":2,"text":"Return Value","anchor":"return-value"},{"inlineContent":[{"text":"The generated and formatted HTML string.","type":"text"}],"type":"paragraph"}]},{"kind":"content","content":[{"text":"Discussion","type":"heading","anchor":"discussion","level":2},{"type":"paragraph","inlineContent":[{"text":"Can be used in a variety of ways, including passing one-off View instances like so:","type":"text"}]},{"code":["try renderHTML(Text(\"Hello, world!\"))"],"syntax":"swift","type":"codeListing"},{"type":"paragraph","inlineContent":[{"type":"text","text":"Slipstream uses "},{"isActive":true,"type":"reference","identifier":"https:\/\/scinfu.github.io\/SwiftSoup\/"},{"text":" to render","type":"text"},{"text":" ","type":"text"},{"type":"text","text":"HTML, and this rendering process may throw exceptions if the content is malformed in"},{"type":"text","text":" "},{"type":"text","text":"some way. To explicitly catch SwiftSoup errors:"}]},{"type":"codeListing","syntax":"swift","code":["do {"," try renderHTML(Text(\"Hello, world!\"))","} catch Exception.Error(let type, let message) {"," print(message)","}"]},{"type":"aside","name":"Throws","content":[{"inlineContent":[{"text":"A SwiftSoup ","type":"text"},{"type":"codeVoice","code":"Exception.Error"},{"type":"text","text":" may be thrown if a failure occurs while rendering the view."}],"type":"paragraph"}],"style":"note"}]}],"hierarchy":{"paths":[["doc:\/\/Slipstream\/documentation\/Slipstream"]]},"abstract":[{"type":"text","text":"Renders the given view as an HTML document and returns the HTML."}],"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/Slipstream\/documentation\/Slipstream\/renderHTML(_:)"},"kind":"symbol","references":{"doc://Slipstream/documentation/Slipstream/View":{"kind":"symbol","navigatorTitle":[{"text":"View","kind":"identifier"}],"title":"View","role":"symbol","url":"\/documentation\/slipstream\/view","fragments":[{"text":"protocol","kind":"keyword"},{"text":" ","kind":"text"},{"text":"View","kind":"identifier"}],"type":"topic","identifier":"doc:\/\/Slipstream\/documentation\/Slipstream\/View","abstract":[{"text":"A type that represents part of your HTML document.","type":"text"}]},"doc://Slipstream/documentation/Slipstream":{"identifier":"doc:\/\/Slipstream\/documentation\/Slipstream","title":"Slipstream","role":"collection","type":"topic","url":"\/documentation\/slipstream","kind":"symbol","abstract":[{"text":"Build static web pages with Swift and Tailwind CSS.","type":"text"}]},"https://scinfu.github.io/SwiftSoup/":{"titleInlineContent":[{"text":"SwiftSoup","type":"text"}],"type":"link","url":"https:\/\/scinfu.github.io\/SwiftSoup\/","title":"SwiftSoup","identifier":"https:\/\/scinfu.github.io\/SwiftSoup\/"},"doc://Slipstream/documentation/Slipstream/renderHTML(_:)":{"kind":"symbol","title":"renderHTML(_:)","role":"symbol","url":"\/documentation\/slipstream\/renderhtml(_:)","fragments":[{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"text":"renderHTML","kind":"identifier"},{"text":"(any ","kind":"text"},{"preciseIdentifier":"s:10Slipstream4ViewP","text":"View","kind":"typeIdentifier"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"},{"kind":"text","text":" -> "},{"text":"String","preciseIdentifier":"s:SS","kind":"typeIdentifier"}],"type":"topic","identifier":"doc:\/\/Slipstream\/documentation\/Slipstream\/renderHTML(_:)","abstract":[{"text":"Renders the given view as an HTML document and returns the HTML.","type":"text"}]}}} \ No newline at end of file +{"schemaVersion":{"minor":3,"major":0,"patch":0},"sections":[],"variants":[{"paths":["\/documentation\/slipstream\/renderhtml(_:)"],"traits":[{"interfaceLanguage":"swift"}]}],"kind":"symbol","hierarchy":{"paths":[["doc:\/\/Slipstream\/documentation\/Slipstream"]]},"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/Slipstream\/documentation\/Slipstream\/renderHTML(_:)"},"abstract":[{"text":"Renders the given view as an HTML document and returns the HTML.","type":"text"}],"primaryContentSections":[{"declarations":[{"platforms":["macOS"],"tokens":[{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"text":"renderHTML","kind":"identifier"},{"kind":"text","text":"("},{"kind":"externalParam","text":"_"},{"kind":"text","text":" "},{"kind":"internalParam","text":"view"},{"kind":"text","text":": any "},{"text":"View","kind":"typeIdentifier","preciseIdentifier":"s:10Slipstream4ViewP","identifier":"doc:\/\/Slipstream\/documentation\/Slipstream\/View"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"},{"text":" -> ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:SS","text":"String"}],"languages":["swift"]}],"kind":"declarations"},{"kind":"parameters","parameters":[{"name":"view","content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"The root view of the HTML document to be rendered."}]}]}]},{"content":[{"type":"heading","level":2,"text":"Return Value","anchor":"return-value"},{"type":"paragraph","inlineContent":[{"type":"text","text":"The generated and formatted HTML string."}]}],"kind":"content"},{"content":[{"level":2,"text":"Discussion","type":"heading","anchor":"discussion"},{"inlineContent":[{"type":"text","text":"Can be used in a variety of ways, including passing one-off View instances like so:"}],"type":"paragraph"},{"code":["try renderHTML(Text(\"Hello, world!\"))"],"type":"codeListing","syntax":"swift"},{"type":"paragraph","inlineContent":[{"type":"text","text":"Slipstream uses "},{"identifier":"https:\/\/scinfu.github.io\/SwiftSoup\/","type":"reference","isActive":true},{"type":"text","text":" to render"},{"type":"text","text":" "},{"text":"HTML, and this rendering process may throw exceptions if the content is malformed in","type":"text"},{"text":" ","type":"text"},{"type":"text","text":"some way. To explicitly catch SwiftSoup errors:"}]},{"code":["do {"," try renderHTML(Text(\"Hello, world!\"))","} catch Exception.Error(let type, let message) {"," print(message)","}"],"type":"codeListing","syntax":"swift"},{"name":"Throws","type":"aside","content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"A SwiftSoup "},{"code":"Exception.Error","type":"codeVoice"},{"text":" may be thrown if a failure occurs while rendering the view.","type":"text"}]}],"style":"note"}],"kind":"content"}],"metadata":{"role":"symbol","symbolKind":"func","roleHeading":"Function","title":"renderHTML(_:)","modules":[{"name":"Slipstream"}],"fragments":[{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"renderHTML"},{"kind":"text","text":"(any "},{"preciseIdentifier":"s:10Slipstream4ViewP","text":"View","kind":"typeIdentifier"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"},{"text":" -> ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:SS","text":"String"}],"externalID":"s:10Slipstream10renderHTMLySSAA4View_pKF"},"references":{"https://scinfu.github.io/SwiftSoup/":{"identifier":"https:\/\/scinfu.github.io\/SwiftSoup\/","title":"SwiftSoup","titleInlineContent":[{"text":"SwiftSoup","type":"text"}],"type":"link","url":"https:\/\/scinfu.github.io\/SwiftSoup\/"},"doc://Slipstream/documentation/Slipstream":{"identifier":"doc:\/\/Slipstream\/documentation\/Slipstream","title":"Slipstream","abstract":[{"type":"text","text":"Build static web pages with Swift and Tailwind CSS."}],"kind":"symbol","url":"\/documentation\/slipstream","type":"topic","role":"collection"},"doc://Slipstream/documentation/Slipstream/renderHTML(_:)":{"url":"\/documentation\/slipstream\/renderhtml(_:)","identifier":"doc:\/\/Slipstream\/documentation\/Slipstream\/renderHTML(_:)","title":"renderHTML(_:)","type":"topic","kind":"symbol","fragments":[{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"text":"renderHTML","kind":"identifier"},{"kind":"text","text":"(any "},{"kind":"typeIdentifier","text":"View","preciseIdentifier":"s:10Slipstream4ViewP"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"},{"text":" -> ","kind":"text"},{"kind":"typeIdentifier","text":"String","preciseIdentifier":"s:SS"}],"abstract":[{"type":"text","text":"Renders the given view as an HTML document and returns the HTML."}],"role":"symbol"},"doc://Slipstream/documentation/Slipstream/View":{"title":"View","navigatorTitle":[{"kind":"identifier","text":"View"}],"type":"topic","kind":"symbol","abstract":[{"type":"text","text":"A type that represents part of your HTML document."}],"identifier":"doc:\/\/Slipstream\/documentation\/Slipstream\/View","url":"\/documentation\/slipstream\/view","fragments":[{"kind":"keyword","text":"protocol"},{"text":" ","kind":"text"},{"kind":"identifier","text":"View"}],"role":"symbol"}}} \ No newline at end of file diff --git a/docs/data/documentation/slipstream/text.json b/docs/data/documentation/slipstream/text.json index 57a0cbd..701fa23 100644 --- a/docs/data/documentation/slipstream/text.json +++ b/docs/data/documentation/slipstream/text.json @@ -1 +1 @@ -{"schemaVersion":{"minor":3,"patch":0,"major":0},"hierarchy":{"paths":[["doc:\/\/Slipstream\/documentation\/Slipstream","doc:\/\/Slipstream\/documentation\/Slipstream\/Fundamentals"],["doc:\/\/Slipstream\/documentation\/Slipstream","doc:\/\/Slipstream\/documentation\/Slipstream\/TextInputAndOutput"]]},"primaryContentSections":[{"declarations":[{"tokens":[{"kind":"keyword","text":"struct"},{"kind":"text","text":" "},{"text":"Text","kind":"identifier"}],"platforms":["macOS"],"languages":["swift"]}],"kind":"declarations"},{"kind":"content","content":[{"level":2,"type":"heading","anchor":"overview","text":"Overview"},{"type":"paragraph","inlineContent":[{"type":"text","text":"A text view adds a string to your HTML document."}]}]}],"variants":[{"paths":["\/documentation\/slipstream\/text"],"traits":[{"interfaceLanguage":"swift"}]}],"metadata":{"roleHeading":"Structure","role":"symbol","fragments":[{"kind":"keyword","text":"struct"},{"kind":"text","text":" "},{"kind":"identifier","text":"Text"}],"title":"Text","symbolKind":"struct","externalID":"s:10Slipstream4TextV","modules":[{"name":"Slipstream"}],"navigatorTitle":[{"kind":"identifier","text":"Text"}]},"kind":"symbol","relationshipsSections":[{"title":"Conforms To","kind":"relationships","type":"conformsTo","identifiers":["doc:\/\/Slipstream\/documentation\/Slipstream\/View"]}],"sections":[],"abstract":[{"type":"text","text":"A view that displays one or more lines of read-only text."}],"topicSections":[{"identifiers":["doc:\/\/Slipstream\/documentation\/Slipstream\/Text\/init(_:)"],"title":"Creating a text view","anchor":"Creating-a-text-view"}],"identifier":{"url":"doc:\/\/Slipstream\/documentation\/Slipstream\/Text","interfaceLanguage":"swift"},"references":{"doc://Slipstream/documentation/Slipstream/View":{"kind":"symbol","url":"\/documentation\/slipstream\/view","identifier":"doc:\/\/Slipstream\/documentation\/Slipstream\/View","title":"View","role":"symbol","fragments":[{"kind":"keyword","text":"protocol"},{"kind":"text","text":" "},{"text":"View","kind":"identifier"}],"navigatorTitle":[{"kind":"identifier","text":"View"}],"abstract":[{"text":"A type that represents part of your HTML document.","type":"text"}],"type":"topic"},"doc://Slipstream/documentation/Slipstream/Text/init(_:)":{"kind":"symbol","url":"\/documentation\/slipstream\/text\/init(_:)","fragments":[{"text":"init","kind":"identifier"},{"kind":"text","text":"<"},{"kind":"genericParameter","text":"S"},{"kind":"text","text":">("},{"kind":"typeIdentifier","text":"S"},{"text":")","kind":"text"}],"type":"topic","abstract":[{"text":"Creates a text view that displays a stored string without localization.","type":"text"}],"title":"init(_:)","identifier":"doc:\/\/Slipstream\/documentation\/Slipstream\/Text\/init(_:)","role":"symbol"},"doc://Slipstream/documentation/Slipstream/Text":{"fragments":[{"text":"struct","kind":"keyword"},{"kind":"text","text":" "},{"text":"Text","kind":"identifier"}],"navigatorTitle":[{"text":"Text","kind":"identifier"}],"kind":"symbol","role":"symbol","title":"Text","url":"\/documentation\/slipstream\/text","identifier":"doc:\/\/Slipstream\/documentation\/Slipstream\/Text","abstract":[{"text":"A view that displays one or more lines of read-only text.","type":"text"}],"type":"topic"},"doc://Slipstream/documentation/Slipstream/TextInputAndOutput":{"role":"collectionGroup","title":"Text input and output","kind":"article","type":"topic","url":"\/documentation\/slipstream\/textinputandoutput","abstract":[{"text":"Display text.","type":"text"}],"identifier":"doc:\/\/Slipstream\/documentation\/Slipstream\/TextInputAndOutput"},"doc://Slipstream/documentation/Slipstream":{"title":"Slipstream","type":"topic","kind":"symbol","abstract":[{"text":"Build static web pages with Swift and Tailwind CSS.","type":"text"}],"role":"collection","identifier":"doc:\/\/Slipstream\/documentation\/Slipstream","url":"\/documentation\/slipstream"},"doc://Slipstream/documentation/Slipstream/Fundamentals":{"identifier":"doc:\/\/Slipstream\/documentation\/Slipstream\/Fundamentals","kind":"article","type":"topic","url":"\/documentation\/slipstream\/fundamentals","role":"collectionGroup","title":"View fundamentals","abstract":[{"text":"Define the visual elements of your website using a hierarchy of views.","type":"text"}]}}} \ No newline at end of file +{"kind":"symbol","identifier":{"interfaceLanguage":"swift","url":"doc:\/\/Slipstream\/documentation\/Slipstream\/Text"},"metadata":{"role":"symbol","modules":[{"name":"Slipstream"}],"symbolKind":"struct","externalID":"s:10Slipstream4TextV","roleHeading":"Structure","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"text":"Text","kind":"identifier"}],"title":"Text","navigatorTitle":[{"text":"Text","kind":"identifier"}]},"hierarchy":{"paths":[["doc:\/\/Slipstream\/documentation\/Slipstream","doc:\/\/Slipstream\/documentation\/Slipstream\/Fundamentals"],["doc:\/\/Slipstream\/documentation\/Slipstream","doc:\/\/Slipstream\/documentation\/Slipstream\/TextInputAndOutput"]]},"relationshipsSections":[{"identifiers":["doc:\/\/Slipstream\/documentation\/Slipstream\/View"],"type":"conformsTo","kind":"relationships","title":"Conforms To"}],"schemaVersion":{"minor":3,"patch":0,"major":0},"abstract":[{"text":"A view that displays one or more lines of read-only text.","type":"text"}],"topicSections":[{"identifiers":["doc:\/\/Slipstream\/documentation\/Slipstream\/Text\/init(_:)"],"title":"Creating a text view","anchor":"Creating-a-text-view"}],"primaryContentSections":[{"kind":"declarations","declarations":[{"languages":["swift"],"platforms":["macOS"],"tokens":[{"kind":"keyword","text":"struct"},{"kind":"text","text":" "},{"kind":"identifier","text":"Text"}]}]},{"kind":"content","content":[{"level":2,"anchor":"overview","text":"Overview","type":"heading"},{"type":"paragraph","inlineContent":[{"text":"A text view adds a string to your HTML document.","type":"text"}]}]}],"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/slipstream\/text"]}],"sections":[],"references":{"doc://Slipstream/documentation/Slipstream":{"type":"topic","url":"\/documentation\/slipstream","title":"Slipstream","abstract":[{"text":"Build static web pages with Swift and Tailwind CSS.","type":"text"}],"kind":"symbol","role":"collection","identifier":"doc:\/\/Slipstream\/documentation\/Slipstream"},"doc://Slipstream/documentation/Slipstream/Fundamentals":{"kind":"article","abstract":[{"text":"Define the visual elements of your website using a hierarchy of views.","type":"text"}],"type":"topic","url":"\/documentation\/slipstream\/fundamentals","role":"collectionGroup","identifier":"doc:\/\/Slipstream\/documentation\/Slipstream\/Fundamentals","title":"View fundamentals"},"doc://Slipstream/documentation/Slipstream/Text/init(_:)":{"identifier":"doc:\/\/Slipstream\/documentation\/Slipstream\/Text\/init(_:)","url":"\/documentation\/slipstream\/text\/init(_:)","type":"topic","role":"symbol","fragments":[{"text":"init","kind":"identifier"},{"text":"<","kind":"text"},{"kind":"genericParameter","text":"S"},{"text":">(","kind":"text"},{"text":"S","kind":"typeIdentifier"},{"kind":"text","text":")"}],"abstract":[{"type":"text","text":"Creates a text view that displays a stored string without localization."}],"title":"init(_:)","kind":"symbol"},"doc://Slipstream/documentation/Slipstream/Text":{"fragments":[{"kind":"keyword","text":"struct"},{"text":" ","kind":"text"},{"text":"Text","kind":"identifier"}],"identifier":"doc:\/\/Slipstream\/documentation\/Slipstream\/Text","navigatorTitle":[{"kind":"identifier","text":"Text"}],"type":"topic","url":"\/documentation\/slipstream\/text","kind":"symbol","abstract":[{"type":"text","text":"A view that displays one or more lines of read-only text."}],"role":"symbol","title":"Text"},"doc://Slipstream/documentation/Slipstream/TextInputAndOutput":{"identifier":"doc:\/\/Slipstream\/documentation\/Slipstream\/TextInputAndOutput","abstract":[{"type":"text","text":"Display text."}],"title":"Text input and output","url":"\/documentation\/slipstream\/textinputandoutput","kind":"article","type":"topic","role":"collectionGroup"},"doc://Slipstream/documentation/Slipstream/View":{"title":"View","navigatorTitle":[{"kind":"identifier","text":"View"}],"type":"topic","kind":"symbol","abstract":[{"type":"text","text":"A type that represents part of your HTML document."}],"identifier":"doc:\/\/Slipstream\/documentation\/Slipstream\/View","url":"\/documentation\/slipstream\/view","fragments":[{"kind":"keyword","text":"protocol"},{"text":" ","kind":"text"},{"kind":"identifier","text":"View"}],"role":"symbol"}}} \ No newline at end of file diff --git a/docs/data/documentation/slipstream/text/init(_:).json b/docs/data/documentation/slipstream/text/init(_:).json index d639876..3b6a9a6 100644 --- a/docs/data/documentation/slipstream/text/init(_:).json +++ b/docs/data/documentation/slipstream/text/init(_:).json @@ -1 +1 @@ -{"sections":[],"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/Slipstream\/documentation\/Slipstream\/Text\/init(_:)"},"kind":"symbol","metadata":{"roleHeading":"Initializer","title":"init(_:)","role":"symbol","symbolKind":"init","modules":[{"name":"Slipstream"}],"fragments":[{"text":"init","kind":"identifier"},{"text":"<","kind":"text"},{"text":"S","kind":"genericParameter"},{"text":">(","kind":"text"},{"kind":"typeIdentifier","text":"S"},{"kind":"text","text":")"}],"externalID":"s:10Slipstream4TextVyACxcSyRzlufc"},"hierarchy":{"paths":[["doc:\/\/Slipstream\/documentation\/Slipstream","doc:\/\/Slipstream\/documentation\/Slipstream\/Fundamentals","doc:\/\/Slipstream\/documentation\/Slipstream\/Text"],["doc:\/\/Slipstream\/documentation\/Slipstream","doc:\/\/Slipstream\/documentation\/Slipstream\/TextInputAndOutput","doc:\/\/Slipstream\/documentation\/Slipstream\/Text"]]},"schemaVersion":{"minor":3,"patch":0,"major":0},"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/slipstream\/text\/init(_:)"]}],"abstract":[{"text":"Creates a text view that displays a stored string without localization.","type":"text"}],"primaryContentSections":[{"declarations":[{"platforms":["macOS"],"tokens":[{"text":"init","kind":"keyword"},{"text":"<","kind":"text"},{"text":"S","kind":"genericParameter"},{"text":">(","kind":"text"},{"kind":"externalParam","text":"_"},{"kind":"text","text":" "},{"text":"content","kind":"internalParam"},{"text":": ","kind":"text"},{"text":"S","kind":"typeIdentifier"},{"text":") ","kind":"text"},{"kind":"keyword","text":"where"},{"text":" ","kind":"text"},{"text":"S","kind":"typeIdentifier"},{"text":" : ","kind":"text"},{"kind":"typeIdentifier","text":"StringProtocol","preciseIdentifier":"s:Sy"}],"languages":["swift"]}],"kind":"declarations"},{"kind":"parameters","parameters":[{"name":"content","content":[{"inlineContent":[{"type":"text","text":"The string value to display without localization."}],"type":"paragraph"}]}]},{"kind":"content","content":[{"text":"Discussion","type":"heading","level":2,"anchor":"discussion"},{"inlineContent":[{"type":"text","text":"Use this initializer to create a text view that displays — without"},{"text":" ","type":"text"},{"type":"text","text":"localization — the text in a string variable."}],"type":"paragraph"},{"syntax":"swift","type":"codeListing","code":["\/\/ Display the contents of `someString` without localization.","Text(someString)"]},{"type":"paragraph","inlineContent":[{"type":"text","text":"The provided string will be rendered as-is in your HTML document, meaning"},{"type":"text","text":" "},{"type":"text","text":"HTML-specific characters such as tags ("},{"code":"

","type":"codeVoice"},{"text":") will be escaped (","type":"text"},{"type":"codeVoice","code":"<p>"},{"type":"text","text":")"},{"text":" ","type":"text"},{"text":"in order to render as-is in the browser.","type":"text"}]}]}],"references":{"doc://Slipstream/documentation/Slipstream/Text":{"fragments":[{"text":"struct","kind":"keyword"},{"kind":"text","text":" "},{"text":"Text","kind":"identifier"}],"navigatorTitle":[{"text":"Text","kind":"identifier"}],"kind":"symbol","role":"symbol","title":"Text","url":"\/documentation\/slipstream\/text","identifier":"doc:\/\/Slipstream\/documentation\/Slipstream\/Text","abstract":[{"text":"A view that displays one or more lines of read-only text.","type":"text"}],"type":"topic"},"doc://Slipstream/documentation/Slipstream/Fundamentals":{"kind":"article","type":"topic","title":"View fundamentals","identifier":"doc:\/\/Slipstream\/documentation\/Slipstream\/Fundamentals","abstract":[{"text":"Define the visual elements of your website using a hierarchy of views.","type":"text"}],"url":"\/documentation\/slipstream\/fundamentals","role":"collectionGroup"},"doc://Slipstream/documentation/Slipstream/TextInputAndOutput":{"role":"collectionGroup","title":"Text input and output","kind":"article","type":"topic","url":"\/documentation\/slipstream\/textinputandoutput","abstract":[{"text":"Display text.","type":"text"}],"identifier":"doc:\/\/Slipstream\/documentation\/Slipstream\/TextInputAndOutput"},"doc://Slipstream/documentation/Slipstream":{"title":"Slipstream","type":"topic","kind":"symbol","abstract":[{"text":"Build static web pages with Swift and Tailwind CSS.","type":"text"}],"role":"collection","identifier":"doc:\/\/Slipstream\/documentation\/Slipstream","url":"\/documentation\/slipstream"},"doc://Slipstream/documentation/Slipstream/Text/init(_:)":{"fragments":[{"text":"init","kind":"identifier"},{"kind":"text","text":"<"},{"kind":"genericParameter","text":"S"},{"kind":"text","text":">("},{"kind":"typeIdentifier","text":"S"},{"text":")","kind":"text"}],"kind":"symbol","role":"symbol","title":"init(_:)","url":"\/documentation\/slipstream\/text\/init(_:)","identifier":"doc:\/\/Slipstream\/documentation\/Slipstream\/Text\/init(_:)","abstract":[{"type":"text","text":"Creates a text view that displays a stored string without localization."}],"type":"topic"}}} \ No newline at end of file +{"metadata":{"role":"symbol","title":"init(_:)","externalID":"s:10Slipstream4TextVyACxcSyRzlufc","symbolKind":"init","modules":[{"name":"Slipstream"}],"fragments":[{"text":"init","kind":"identifier"},{"kind":"text","text":"<"},{"text":"S","kind":"genericParameter"},{"kind":"text","text":">("},{"text":"S","kind":"typeIdentifier"},{"kind":"text","text":")"}],"roleHeading":"Initializer"},"kind":"symbol","schemaVersion":{"major":0,"patch":0,"minor":3},"sections":[],"hierarchy":{"paths":[["doc:\/\/Slipstream\/documentation\/Slipstream","doc:\/\/Slipstream\/documentation\/Slipstream\/Fundamentals","doc:\/\/Slipstream\/documentation\/Slipstream\/Text"],["doc:\/\/Slipstream\/documentation\/Slipstream","doc:\/\/Slipstream\/documentation\/Slipstream\/TextInputAndOutput","doc:\/\/Slipstream\/documentation\/Slipstream\/Text"]]},"abstract":[{"type":"text","text":"Creates a text view that displays a stored string without localization."}],"primaryContentSections":[{"declarations":[{"tokens":[{"text":"init","kind":"keyword"},{"text":"<","kind":"text"},{"kind":"genericParameter","text":"S"},{"text":">(","kind":"text"},{"kind":"externalParam","text":"_"},{"text":" ","kind":"text"},{"text":"content","kind":"internalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"S"},{"kind":"text","text":") "},{"text":"where","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"typeIdentifier","text":"S"},{"text":" : ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:Sy","text":"StringProtocol"}],"platforms":["macOS"],"languages":["swift"]}],"kind":"declarations"},{"kind":"parameters","parameters":[{"name":"content","content":[{"type":"paragraph","inlineContent":[{"text":"The string value to display without localization.","type":"text"}]}]}]},{"content":[{"type":"heading","level":2,"anchor":"discussion","text":"Discussion"},{"type":"paragraph","inlineContent":[{"type":"text","text":"Use this initializer to create a text view that displays — without"},{"text":" ","type":"text"},{"text":"localization — the text in a string variable.","type":"text"}]},{"code":["\/\/ Display the contents of `someString` without localization.","Text(someString)"],"syntax":"swift","type":"codeListing"},{"type":"paragraph","inlineContent":[{"text":"The provided string will be rendered as-is in your HTML document, meaning","type":"text"},{"text":" ","type":"text"},{"type":"text","text":"HTML-specific characters such as tags ("},{"code":"

","type":"codeVoice"},{"type":"text","text":") will be escaped ("},{"code":"<p>","type":"codeVoice"},{"type":"text","text":")"},{"text":" ","type":"text"},{"type":"text","text":"in order to render as-is in the browser."}]}],"kind":"content"}],"variants":[{"paths":["\/documentation\/slipstream\/text\/init(_:)"],"traits":[{"interfaceLanguage":"swift"}]}],"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/Slipstream\/documentation\/Slipstream\/Text\/init(_:)"},"references":{"doc://Slipstream/documentation/Slipstream/TextInputAndOutput":{"identifier":"doc:\/\/Slipstream\/documentation\/Slipstream\/TextInputAndOutput","abstract":[{"type":"text","text":"Display text."}],"title":"Text input and output","url":"\/documentation\/slipstream\/textinputandoutput","kind":"article","type":"topic","role":"collectionGroup"},"doc://Slipstream/documentation/Slipstream":{"type":"topic","url":"\/documentation\/slipstream","title":"Slipstream","abstract":[{"text":"Build static web pages with Swift and Tailwind CSS.","type":"text"}],"kind":"symbol","role":"collection","identifier":"doc:\/\/Slipstream\/documentation\/Slipstream"},"doc://Slipstream/documentation/Slipstream/Text":{"kind":"symbol","navigatorTitle":[{"text":"Text","kind":"identifier"}],"title":"Text","type":"topic","url":"\/documentation\/slipstream\/text","identifier":"doc:\/\/Slipstream\/documentation\/Slipstream\/Text","abstract":[{"type":"text","text":"A view that displays one or more lines of read-only text."}],"fragments":[{"text":"struct","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"Text"}],"role":"symbol"},"doc://Slipstream/documentation/Slipstream/Fundamentals":{"abstract":[{"type":"text","text":"Define the visual elements of your website using a hierarchy of views."}],"title":"View fundamentals","identifier":"doc:\/\/Slipstream\/documentation\/Slipstream\/Fundamentals","type":"topic","url":"\/documentation\/slipstream\/fundamentals","kind":"article","role":"collectionGroup"},"doc://Slipstream/documentation/Slipstream/Text/init(_:)":{"identifier":"doc:\/\/Slipstream\/documentation\/Slipstream\/Text\/init(_:)","url":"\/documentation\/slipstream\/text\/init(_:)","type":"topic","role":"symbol","fragments":[{"text":"init","kind":"identifier"},{"text":"<","kind":"text"},{"kind":"genericParameter","text":"S"},{"text":">(","kind":"text"},{"text":"S","kind":"typeIdentifier"},{"kind":"text","text":")"}],"abstract":[{"type":"text","text":"Creates a text view that displays a stored string without localization."}],"title":"init(_:)","kind":"symbol"}}} \ No newline at end of file diff --git a/docs/data/documentation/slipstream/textinputandoutput.json b/docs/data/documentation/slipstream/textinputandoutput.json index 8beb789..936b334 100644 --- a/docs/data/documentation/slipstream/textinputandoutput.json +++ b/docs/data/documentation/slipstream/textinputandoutput.json @@ -1 +1 @@ -{"kind":"article","primaryContentSections":[{"content":[{"anchor":"overview","type":"heading","level":2,"text":"Overview"},{"inlineContent":[{"text":"To display read-only text, use the built-in ","type":"text"},{"type":"reference","isActive":true,"identifier":"doc:\/\/Slipstream\/documentation\/Slipstream\/Text"},{"text":" view.","type":"text"}],"type":"paragraph"}],"kind":"content"}],"metadata":{"modules":[{"name":"Slipstream"}],"title":"Text input and output","role":"collectionGroup","roleHeading":"API Collection"},"sections":[],"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/Slipstream\/documentation\/Slipstream\/TextInputAndOutput"},"topicSections":[{"anchor":"Displaying-text","title":"Displaying text","identifiers":["doc:\/\/Slipstream\/documentation\/Slipstream\/Text"]}],"seeAlsoSections":[{"identifiers":["doc:\/\/Slipstream\/documentation\/Slipstream\/Fundamentals"],"anchor":"Views","generated":true,"title":"Views"}],"hierarchy":{"paths":[["doc:\/\/Slipstream\/documentation\/Slipstream"]]},"schemaVersion":{"major":0,"minor":3,"patch":0},"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/slipstream\/textinputandoutput"]}],"abstract":[{"type":"text","text":"Display text."}],"references":{"doc://Slipstream/documentation/Slipstream":{"title":"Slipstream","type":"topic","kind":"symbol","abstract":[{"text":"Build static web pages with Swift and Tailwind CSS.","type":"text"}],"role":"collection","identifier":"doc:\/\/Slipstream\/documentation\/Slipstream","url":"\/documentation\/slipstream"},"doc://Slipstream/documentation/Slipstream/Text":{"fragments":[{"text":"struct","kind":"keyword"},{"kind":"text","text":" "},{"text":"Text","kind":"identifier"}],"navigatorTitle":[{"text":"Text","kind":"identifier"}],"kind":"symbol","role":"symbol","title":"Text","url":"\/documentation\/slipstream\/text","identifier":"doc:\/\/Slipstream\/documentation\/Slipstream\/Text","abstract":[{"text":"A view that displays one or more lines of read-only text.","type":"text"}],"type":"topic"},"doc://Slipstream/documentation/Slipstream/Fundamentals":{"identifier":"doc:\/\/Slipstream\/documentation\/Slipstream\/Fundamentals","kind":"article","type":"topic","url":"\/documentation\/slipstream\/fundamentals","role":"collectionGroup","title":"View fundamentals","abstract":[{"text":"Define the visual elements of your website using a hierarchy of views.","type":"text"}]}}} \ No newline at end of file +{"hierarchy":{"paths":[["doc:\/\/Slipstream\/documentation\/Slipstream"]]},"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/Slipstream\/documentation\/Slipstream\/TextInputAndOutput"},"sections":[],"primaryContentSections":[{"kind":"content","content":[{"type":"heading","text":"Overview","level":2,"anchor":"overview"},{"inlineContent":[{"type":"text","text":"To display read-only text, use the built-in "},{"type":"reference","isActive":true,"identifier":"doc:\/\/Slipstream\/documentation\/Slipstream\/Text"},{"type":"text","text":" view."}],"type":"paragraph"}]}],"variants":[{"paths":["\/documentation\/slipstream\/textinputandoutput"],"traits":[{"interfaceLanguage":"swift"}]}],"seeAlsoSections":[{"title":"Views","generated":true,"identifiers":["doc:\/\/Slipstream\/documentation\/Slipstream\/Fundamentals"],"anchor":"Views"}],"topicSections":[{"title":"Displaying text","identifiers":["doc:\/\/Slipstream\/documentation\/Slipstream\/Text"],"anchor":"Displaying-text"}],"metadata":{"roleHeading":"API Collection","title":"Text input and output","modules":[{"name":"Slipstream"}],"role":"collectionGroup"},"abstract":[{"type":"text","text":"Display text."}],"kind":"article","schemaVersion":{"patch":0,"minor":3,"major":0},"references":{"doc://Slipstream/documentation/Slipstream/Text":{"role":"symbol","title":"Text","fragments":[{"kind":"keyword","text":"struct"},{"kind":"text","text":" "},{"kind":"identifier","text":"Text"}],"abstract":[{"text":"A view that displays one or more lines of read-only text.","type":"text"}],"type":"topic","kind":"symbol","identifier":"doc:\/\/Slipstream\/documentation\/Slipstream\/Text","url":"\/documentation\/slipstream\/text","navigatorTitle":[{"text":"Text","kind":"identifier"}]},"doc://Slipstream/documentation/Slipstream/Fundamentals":{"abstract":[{"type":"text","text":"Define the visual elements of your website using a hierarchy of views."}],"title":"View fundamentals","identifier":"doc:\/\/Slipstream\/documentation\/Slipstream\/Fundamentals","type":"topic","url":"\/documentation\/slipstream\/fundamentals","kind":"article","role":"collectionGroup"},"doc://Slipstream/documentation/Slipstream":{"identifier":"doc:\/\/Slipstream\/documentation\/Slipstream","role":"collection","type":"topic","url":"\/documentation\/slipstream","abstract":[{"text":"Build static web pages with Swift and Tailwind CSS.","type":"text"}],"title":"Slipstream","kind":"symbol"}}} \ No newline at end of file diff --git a/docs/data/documentation/slipstream/view.json b/docs/data/documentation/slipstream/view.json index bc77d53..fd8f423 100644 --- a/docs/data/documentation/slipstream/view.json +++ b/docs/data/documentation/slipstream/view.json @@ -1 +1 @@ -{"sections":[],"abstract":[{"text":"A type that represents part of your HTML document.","type":"text"}],"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/Slipstream\/documentation\/Slipstream\/View"},"topicSections":[{"anchor":"Implementing-a-custom-view","title":"Implementing a custom view","identifiers":["doc:\/\/Slipstream\/documentation\/Slipstream\/View\/body","doc:\/\/Slipstream\/documentation\/Slipstream\/View\/Content"]},{"title":"Implementing HTML rendering","identifiers":["doc:\/\/Slipstream\/documentation\/Slipstream\/View\/render(_:)-52ipj"],"anchor":"Implementing-HTML-rendering"}],"schemaVersion":{"major":0,"minor":3,"patch":0},"relationshipsSections":[{"title":"Conforming Types","kind":"relationships","identifiers":["doc:\/\/Slipstream\/documentation\/Slipstream\/Text"],"type":"conformingTypes"}],"seeAlsoSections":[{"generated":true,"title":"Creating a View","identifiers":["doc:\/\/Slipstream\/documentation\/Slipstream\/ViewBuilder"],"anchor":"Creating-a-View"}],"metadata":{"externalID":"s:10Slipstream4ViewP","symbolKind":"protocol","navigatorTitle":[{"text":"View","kind":"identifier"}],"roleHeading":"Protocol","title":"View","fragments":[{"text":"protocol","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"View"}],"modules":[{"name":"Slipstream"}],"role":"symbol"},"kind":"symbol","hierarchy":{"paths":[["doc:\/\/Slipstream\/documentation\/Slipstream","doc:\/\/Slipstream\/documentation\/Slipstream\/Fundamentals"]]},"primaryContentSections":[{"kind":"declarations","declarations":[{"platforms":["macOS"],"languages":["swift"],"tokens":[{"text":"protocol","kind":"keyword"},{"text":" ","kind":"text"},{"text":"View","kind":"identifier"}]}]},{"kind":"content","content":[{"level":2,"anchor":"overview","text":"Overview","type":"heading"},{"inlineContent":[{"text":"You create custom views by declaring types that conform to the ","type":"text"},{"code":"View","type":"codeVoice"},{"type":"text","text":" "},{"text":"protocol. Implement the required ","type":"text"},{"type":"reference","identifier":"doc:\/\/Slipstream\/documentation\/Slipstream\/View\/body","isActive":true},{"text":" computed","type":"text"},{"type":"text","text":" "},{"type":"text","text":"property to provide the content for your custom view."}],"type":"paragraph"},{"syntax":"swift","type":"codeListing","code":["struct MyView: View {"," var body: some View {"," Text(\"Hello world\")"," }","}"]},{"type":"paragraph","inlineContent":[{"text":"Assemble the view’s body by combining one or more of the built-in views","type":"text"},{"text":" ","type":"text"},{"type":"text","text":"provided by Slipstream, like the "},{"type":"reference","identifier":"doc:\/\/Slipstream\/documentation\/Slipstream\/Text","isActive":true},{"type":"text","text":" instance in the example above, plus"},{"type":"text","text":" "},{"type":"text","text":"other custom views that you define, into a hierarchy of views."}]}]}],"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/slipstream\/view"]}],"references":{"doc://Slipstream/documentation/Slipstream":{"abstract":[{"text":"Build static web pages with Swift and Tailwind CSS.","type":"text"}],"title":"Slipstream","kind":"symbol","url":"\/documentation\/slipstream","role":"collection","identifier":"doc:\/\/Slipstream\/documentation\/Slipstream","type":"topic"},"doc://Slipstream/documentation/Slipstream/View/render(_:)-52ipj":{"defaultImplementations":1,"url":"\/documentation\/slipstream\/view\/render(_:)-52ipj","required":true,"identifier":"doc:\/\/Slipstream\/documentation\/Slipstream\/View\/render(_:)-52ipj","kind":"symbol","title":"render(_:)","role":"symbol","fragments":[{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"text":"render","kind":"identifier"},{"kind":"text","text":"("},{"text":"Element","preciseIdentifier":"s:9SwiftSoup7ElementC","kind":"typeIdentifier"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"}],"abstract":[{"type":"text","text":"Transforms the view into an HTML representation of itself and adds it"},{"text":" ","type":"text"},{"text":"to the given container element.","type":"text"}],"type":"topic"},"doc://Slipstream/documentation/Slipstream/Text":{"fragments":[{"text":"struct","kind":"keyword"},{"kind":"text","text":" "},{"text":"Text","kind":"identifier"}],"navigatorTitle":[{"text":"Text","kind":"identifier"}],"kind":"symbol","role":"symbol","title":"Text","url":"\/documentation\/slipstream\/text","identifier":"doc:\/\/Slipstream\/documentation\/Slipstream\/Text","abstract":[{"text":"A view that displays one or more lines of read-only text.","type":"text"}],"type":"topic"},"doc://Slipstream/documentation/Slipstream/View/body":{"identifier":"doc:\/\/Slipstream\/documentation\/Slipstream\/View\/body","required":true,"kind":"symbol","fragments":[{"text":"var","kind":"keyword"},{"kind":"text","text":" "},{"text":"body","kind":"identifier"},{"kind":"text","text":": "},{"text":"Self","kind":"typeIdentifier"},{"text":".","kind":"text"},{"preciseIdentifier":"s:10Slipstream4ViewP7ContentQa","text":"Content","kind":"typeIdentifier"}],"url":"\/documentation\/slipstream\/view\/body","abstract":[{"type":"text","text":"The content and behavior of the view."}],"title":"body","type":"topic","role":"symbol"},"doc://Slipstream/documentation/Slipstream/Fundamentals":{"identifier":"doc:\/\/Slipstream\/documentation\/Slipstream\/Fundamentals","kind":"article","type":"topic","url":"\/documentation\/slipstream\/fundamentals","role":"collectionGroup","title":"View fundamentals","abstract":[{"text":"Define the visual elements of your website using a hierarchy of views.","type":"text"}]},"doc://Slipstream/documentation/Slipstream/View/Content":{"identifier":"doc:\/\/Slipstream\/documentation\/Slipstream\/View\/Content","url":"\/documentation\/slipstream\/view\/content","fragments":[{"kind":"keyword","text":"associatedtype"},{"text":" ","kind":"text"},{"text":"Content","kind":"identifier"},{"text":" : ","kind":"text"},{"preciseIdentifier":"s:10Slipstream4ViewP","kind":"typeIdentifier","text":"View"}],"required":true,"type":"topic","role":"symbol","kind":"symbol","title":"Content","abstract":[{"type":"text","text":"The type of view representing the content of this view."}]},"doc://Slipstream/documentation/Slipstream/ViewBuilder":{"fragments":[{"text":"struct","kind":"keyword"},{"kind":"text","text":" "},{"text":"ViewBuilder","kind":"identifier"}],"role":"symbol","url":"\/documentation\/slipstream\/viewbuilder","title":"ViewBuilder","identifier":"doc:\/\/Slipstream\/documentation\/Slipstream\/ViewBuilder","kind":"symbol","navigatorTitle":[{"text":"ViewBuilder","kind":"identifier"}],"abstract":[{"text":"A custom parameter attribute that constructs views from closures.","type":"text"}],"type":"topic"},"doc://Slipstream/documentation/Slipstream/View":{"kind":"symbol","url":"\/documentation\/slipstream\/view","identifier":"doc:\/\/Slipstream\/documentation\/Slipstream\/View","title":"View","role":"symbol","fragments":[{"kind":"keyword","text":"protocol"},{"kind":"text","text":" "},{"text":"View","kind":"identifier"}],"navigatorTitle":[{"kind":"identifier","text":"View"}],"abstract":[{"text":"A type that represents part of your HTML document.","type":"text"}],"type":"topic"}}} \ No newline at end of file +{"sections":[],"metadata":{"fragments":[{"kind":"keyword","text":"protocol"},{"text":" ","kind":"text"},{"text":"View","kind":"identifier"}],"navigatorTitle":[{"kind":"identifier","text":"View"}],"symbolKind":"protocol","modules":[{"name":"Slipstream"}],"role":"symbol","externalID":"s:10Slipstream4ViewP","roleHeading":"Protocol","title":"View"},"hierarchy":{"paths":[["doc:\/\/Slipstream\/documentation\/Slipstream","doc:\/\/Slipstream\/documentation\/Slipstream\/Fundamentals"]]},"schemaVersion":{"major":0,"minor":3,"patch":0},"kind":"symbol","variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/slipstream\/view"]}],"primaryContentSections":[{"declarations":[{"tokens":[{"text":"protocol","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"View"}],"platforms":["macOS"],"languages":["swift"]}],"kind":"declarations"},{"content":[{"anchor":"overview","level":2,"type":"heading","text":"Overview"},{"type":"paragraph","inlineContent":[{"text":"You create custom views by declaring types that conform to the ","type":"text"},{"type":"codeVoice","code":"View"},{"text":" ","type":"text"},{"type":"text","text":"protocol. Implement the required "},{"identifier":"doc:\/\/Slipstream\/documentation\/Slipstream\/View\/body","isActive":true,"type":"reference"},{"text":" computed","type":"text"},{"type":"text","text":" "},{"type":"text","text":"property to provide the content for your custom view."}]},{"type":"codeListing","syntax":"swift","code":["struct MyView: View {"," var body: some View {"," Text(\"Hello world\")"," }","}"]},{"type":"paragraph","inlineContent":[{"type":"text","text":"Assemble the view’s body by combining one or more of the built-in views"},{"text":" ","type":"text"},{"type":"text","text":"provided by Slipstream, like the "},{"identifier":"doc:\/\/Slipstream\/documentation\/Slipstream\/Text","isActive":true,"type":"reference"},{"type":"text","text":" instance in the example above, plus"},{"text":" ","type":"text"},{"text":"other custom views that you define, into a hierarchy of views.","type":"text"}]}],"kind":"content"}],"identifier":{"url":"doc:\/\/Slipstream\/documentation\/Slipstream\/View","interfaceLanguage":"swift"},"abstract":[{"type":"text","text":"A type that represents part of your HTML document."}],"relationshipsSections":[{"kind":"relationships","type":"conformingTypes","title":"Conforming Types","identifiers":["doc:\/\/Slipstream\/documentation\/Slipstream\/Text"]}],"seeAlsoSections":[{"generated":true,"title":"Creating a View","identifiers":["doc:\/\/Slipstream\/documentation\/Slipstream\/ViewBuilder"],"anchor":"Creating-a-View"}],"topicSections":[{"identifiers":["doc:\/\/Slipstream\/documentation\/Slipstream\/View\/body","doc:\/\/Slipstream\/documentation\/Slipstream\/View\/Content"],"title":"Implementing a custom view","anchor":"Implementing-a-custom-view"},{"title":"Implementing HTML rendering","identifiers":["doc:\/\/Slipstream\/documentation\/Slipstream\/View\/render(_:)-52ipj"],"anchor":"Implementing-HTML-rendering"}],"references":{"doc://Slipstream/documentation/Slipstream/Fundamentals":{"abstract":[{"type":"text","text":"Define the visual elements of your website using a hierarchy of views."}],"title":"View fundamentals","identifier":"doc:\/\/Slipstream\/documentation\/Slipstream\/Fundamentals","type":"topic","url":"\/documentation\/slipstream\/fundamentals","kind":"article","role":"collectionGroup"},"doc://Slipstream/documentation/Slipstream/View":{"title":"View","navigatorTitle":[{"kind":"identifier","text":"View"}],"type":"topic","kind":"symbol","abstract":[{"type":"text","text":"A type that represents part of your HTML document."}],"identifier":"doc:\/\/Slipstream\/documentation\/Slipstream\/View","url":"\/documentation\/slipstream\/view","fragments":[{"kind":"keyword","text":"protocol"},{"text":" ","kind":"text"},{"kind":"identifier","text":"View"}],"role":"symbol"},"doc://Slipstream/documentation/Slipstream":{"identifier":"doc:\/\/Slipstream\/documentation\/Slipstream","role":"collection","type":"topic","url":"\/documentation\/slipstream","abstract":[{"text":"Build static web pages with Swift and Tailwind CSS.","type":"text"}],"title":"Slipstream","kind":"symbol"},"doc://Slipstream/documentation/Slipstream/Text":{"title":"Text","navigatorTitle":[{"text":"Text","kind":"identifier"}],"type":"topic","kind":"symbol","abstract":[{"type":"text","text":"A view that displays one or more lines of read-only text."}],"identifier":"doc:\/\/Slipstream\/documentation\/Slipstream\/Text","url":"\/documentation\/slipstream\/text","fragments":[{"kind":"keyword","text":"struct"},{"text":" ","kind":"text"},{"text":"Text","kind":"identifier"}],"role":"symbol"},"doc://Slipstream/documentation/Slipstream/ViewBuilder":{"type":"topic","identifier":"doc:\/\/Slipstream\/documentation\/Slipstream\/ViewBuilder","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"text":"ViewBuilder","kind":"identifier"}],"navigatorTitle":[{"kind":"identifier","text":"ViewBuilder"}],"abstract":[{"type":"text","text":"A custom parameter attribute that constructs views from closures."}],"url":"\/documentation\/slipstream\/viewbuilder","kind":"symbol","title":"ViewBuilder","role":"symbol"},"doc://Slipstream/documentation/Slipstream/View/body":{"role":"symbol","url":"\/documentation\/slipstream\/view\/body","kind":"symbol","abstract":[{"text":"The content and behavior of the view.","type":"text"}],"type":"topic","identifier":"doc:\/\/Slipstream\/documentation\/Slipstream\/View\/body","title":"body","required":true,"fragments":[{"kind":"keyword","text":"var"},{"kind":"text","text":" "},{"text":"body","kind":"identifier"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Self"},{"text":".","kind":"text"},{"kind":"typeIdentifier","text":"Content","preciseIdentifier":"s:10Slipstream4ViewP7ContentQa"}]},"doc://Slipstream/documentation/Slipstream/View/Content":{"url":"\/documentation\/slipstream\/view\/content","kind":"symbol","required":true,"fragments":[{"text":"associatedtype","kind":"keyword"},{"kind":"text","text":" "},{"text":"Content","kind":"identifier"},{"kind":"text","text":" : "},{"preciseIdentifier":"s:10Slipstream4ViewP","kind":"typeIdentifier","text":"View"}],"title":"Content","role":"symbol","type":"topic","abstract":[{"type":"text","text":"The type of view representing the content of this view."}],"identifier":"doc:\/\/Slipstream\/documentation\/Slipstream\/View\/Content"},"doc://Slipstream/documentation/Slipstream/View/render(_:)-52ipj":{"type":"topic","required":true,"title":"render(_:)","identifier":"doc:\/\/Slipstream\/documentation\/Slipstream\/View\/render(_:)-52ipj","abstract":[{"type":"text","text":"Transforms the view into an HTML representation of itself and adds it"},{"text":" ","type":"text"},{"text":"to the given container element.","type":"text"}],"role":"symbol","kind":"symbol","url":"\/documentation\/slipstream\/view\/render(_:)-52ipj","fragments":[{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"render"},{"text":"(","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftSoup7ElementC","text":"Element"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"}],"defaultImplementations":1}}} \ No newline at end of file diff --git a/docs/data/documentation/slipstream/view/body.json b/docs/data/documentation/slipstream/view/body.json index 400f5da..f2ca872 100644 --- a/docs/data/documentation/slipstream/view/body.json +++ b/docs/data/documentation/slipstream/view/body.json @@ -1 +1 @@ -{"seeAlsoSections":[{"generated":true,"identifiers":["doc:\/\/Slipstream\/documentation\/Slipstream\/View\/Content"],"title":"Implementing a custom view","anchor":"Implementing-a-custom-view"}],"primaryContentSections":[{"declarations":[{"platforms":["macOS"],"tokens":[{"kind":"attribute","text":"@"},{"kind":"attribute","preciseIdentifier":"s:10Slipstream11ViewBuilderV","identifier":"doc:\/\/Slipstream\/documentation\/Slipstream\/ViewBuilder","text":"ViewBuilder"},{"kind":"text","text":" "},{"text":"var","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"body"},{"kind":"text","text":": "},{"text":"Self","kind":"typeIdentifier"},{"kind":"text","text":"."},{"text":"Content","identifier":"doc:\/\/Slipstream\/documentation\/Slipstream\/View\/Content","kind":"typeIdentifier","preciseIdentifier":"s:10Slipstream4ViewP7ContentQa"},{"kind":"text","text":" { "},{"kind":"keyword","text":"get"},{"kind":"text","text":" }"}],"languages":["swift"]}],"kind":"declarations"},{"kind":"content","content":[{"type":"heading","anchor":"discussion","level":2,"text":"Discussion"},{"inlineContent":[{"text":"When you implement a custom view, you must implement a computed","type":"text"},{"text":" ","type":"text"},{"code":"body","type":"codeVoice"},{"type":"text","text":" property to provide the content for your view. Return a view"},{"text":" ","type":"text"},{"text":"that’s composed of built-in views that Slipstream provides, plus other","type":"text"},{"text":" ","type":"text"},{"type":"text","text":"composite views that you’ve already defined:"}],"type":"paragraph"},{"syntax":"swift","type":"codeListing","code":["struct MyView: View {"," var body: some View {"," Text(\"Hello world\")"," }","}"]}]}],"variants":[{"paths":["\/documentation\/slipstream\/view\/body"],"traits":[{"interfaceLanguage":"swift"}]}],"metadata":{"title":"body","externalID":"s:10Slipstream4ViewP4body7ContentQzvp","fragments":[{"text":"var","kind":"keyword"},{"text":" ","kind":"text"},{"text":"body","kind":"identifier"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"Self"},{"text":".","kind":"text"},{"preciseIdentifier":"s:10Slipstream4ViewP7ContentQa","text":"Content","kind":"typeIdentifier"}],"roleHeading":"Instance Property","required":true,"modules":[{"name":"Slipstream"}],"symbolKind":"property","role":"symbol"},"schemaVersion":{"patch":0,"major":0,"minor":3},"hierarchy":{"paths":[["doc:\/\/Slipstream\/documentation\/Slipstream","doc:\/\/Slipstream\/documentation\/Slipstream\/Fundamentals","doc:\/\/Slipstream\/documentation\/Slipstream\/View"]]},"sections":[],"kind":"symbol","identifier":{"url":"doc:\/\/Slipstream\/documentation\/Slipstream\/View\/body","interfaceLanguage":"swift"},"abstract":[{"type":"text","text":"The content and behavior of the view."}],"references":{"doc://Slipstream/documentation/Slipstream/View/body":{"type":"topic","abstract":[{"text":"The content and behavior of the view.","type":"text"}],"kind":"symbol","role":"symbol","identifier":"doc:\/\/Slipstream\/documentation\/Slipstream\/View\/body","required":true,"url":"\/documentation\/slipstream\/view\/body","title":"body","fragments":[{"kind":"keyword","text":"var"},{"kind":"text","text":" "},{"text":"body","kind":"identifier"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"Self"},{"kind":"text","text":"."},{"preciseIdentifier":"s:10Slipstream4ViewP7ContentQa","kind":"typeIdentifier","text":"Content"}]},"doc://Slipstream/documentation/Slipstream/View":{"kind":"symbol","navigatorTitle":[{"text":"View","kind":"identifier"}],"title":"View","role":"symbol","url":"\/documentation\/slipstream\/view","fragments":[{"text":"protocol","kind":"keyword"},{"text":" ","kind":"text"},{"text":"View","kind":"identifier"}],"type":"topic","identifier":"doc:\/\/Slipstream\/documentation\/Slipstream\/View","abstract":[{"text":"A type that represents part of your HTML document.","type":"text"}]},"doc://Slipstream/documentation/Slipstream":{"role":"collection","abstract":[{"text":"Build static web pages with Swift and Tailwind CSS.","type":"text"}],"identifier":"doc:\/\/Slipstream\/documentation\/Slipstream","title":"Slipstream","type":"topic","url":"\/documentation\/slipstream","kind":"symbol"},"doc://Slipstream/documentation/Slipstream/ViewBuilder":{"fragments":[{"text":"struct","kind":"keyword"},{"kind":"text","text":" "},{"text":"ViewBuilder","kind":"identifier"}],"role":"symbol","url":"\/documentation\/slipstream\/viewbuilder","title":"ViewBuilder","identifier":"doc:\/\/Slipstream\/documentation\/Slipstream\/ViewBuilder","kind":"symbol","navigatorTitle":[{"text":"ViewBuilder","kind":"identifier"}],"abstract":[{"text":"A custom parameter attribute that constructs views from closures.","type":"text"}],"type":"topic"},"doc://Slipstream/documentation/Slipstream/View/Content":{"role":"symbol","fragments":[{"kind":"keyword","text":"associatedtype"},{"kind":"text","text":" "},{"kind":"identifier","text":"Content"},{"kind":"text","text":" : "},{"kind":"typeIdentifier","preciseIdentifier":"s:10Slipstream4ViewP","text":"View"}],"url":"\/documentation\/slipstream\/view\/content","identifier":"doc:\/\/Slipstream\/documentation\/Slipstream\/View\/Content","abstract":[{"type":"text","text":"The type of view representing the content of this view."}],"kind":"symbol","required":true,"type":"topic","title":"Content"},"doc://Slipstream/documentation/Slipstream/Fundamentals":{"identifier":"doc:\/\/Slipstream\/documentation\/Slipstream\/Fundamentals","kind":"article","type":"topic","url":"\/documentation\/slipstream\/fundamentals","role":"collectionGroup","title":"View fundamentals","abstract":[{"text":"Define the visual elements of your website using a hierarchy of views.","type":"text"}]}}} \ No newline at end of file +{"hierarchy":{"paths":[["doc:\/\/Slipstream\/documentation\/Slipstream","doc:\/\/Slipstream\/documentation\/Slipstream\/Fundamentals","doc:\/\/Slipstream\/documentation\/Slipstream\/View"]]},"kind":"symbol","abstract":[{"type":"text","text":"The content and behavior of the view."}],"seeAlsoSections":[{"generated":true,"identifiers":["doc:\/\/Slipstream\/documentation\/Slipstream\/View\/Content"],"title":"Implementing a custom view","anchor":"Implementing-a-custom-view"}],"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/Slipstream\/documentation\/Slipstream\/View\/body"},"primaryContentSections":[{"kind":"declarations","declarations":[{"tokens":[{"text":"@","kind":"attribute"},{"identifier":"doc:\/\/Slipstream\/documentation\/Slipstream\/ViewBuilder","text":"ViewBuilder","kind":"attribute","preciseIdentifier":"s:10Slipstream11ViewBuilderV"},{"text":" ","kind":"text"},{"text":"var","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"body"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"Self"},{"text":".","kind":"text"},{"identifier":"doc:\/\/Slipstream\/documentation\/Slipstream\/View\/Content","kind":"typeIdentifier","text":"Content","preciseIdentifier":"s:10Slipstream4ViewP7ContentQa"},{"text":" { ","kind":"text"},{"text":"get","kind":"keyword"},{"text":" }","kind":"text"}],"platforms":["macOS"],"languages":["swift"]}]},{"content":[{"text":"Discussion","anchor":"discussion","type":"heading","level":2},{"inlineContent":[{"text":"When you implement a custom view, you must implement a computed","type":"text"},{"type":"text","text":" "},{"code":"body","type":"codeVoice"},{"text":" property to provide the content for your view. Return a view","type":"text"},{"text":" ","type":"text"},{"type":"text","text":"that’s composed of built-in views that Slipstream provides, plus other"},{"text":" ","type":"text"},{"type":"text","text":"composite views that you’ve already defined:"}],"type":"paragraph"},{"type":"codeListing","syntax":"swift","code":["struct MyView: View {"," var body: some View {"," Text(\"Hello world\")"," }","}"]}],"kind":"content"}],"sections":[],"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/slipstream\/view\/body"]}],"schemaVersion":{"major":0,"patch":0,"minor":3},"metadata":{"roleHeading":"Instance Property","modules":[{"name":"Slipstream"}],"title":"body","externalID":"s:10Slipstream4ViewP4body7ContentQzvp","role":"symbol","required":true,"symbolKind":"property","fragments":[{"text":"var","kind":"keyword"},{"text":" ","kind":"text"},{"text":"body","kind":"identifier"},{"kind":"text","text":": "},{"text":"Self","kind":"typeIdentifier"},{"kind":"text","text":"."},{"preciseIdentifier":"s:10Slipstream4ViewP7ContentQa","text":"Content","kind":"typeIdentifier"}]},"references":{"doc://Slipstream/documentation/Slipstream":{"identifier":"doc:\/\/Slipstream\/documentation\/Slipstream","role":"collection","type":"topic","url":"\/documentation\/slipstream","abstract":[{"text":"Build static web pages with Swift and Tailwind CSS.","type":"text"}],"title":"Slipstream","kind":"symbol"},"doc://Slipstream/documentation/Slipstream/View/Content":{"url":"\/documentation\/slipstream\/view\/content","kind":"symbol","required":true,"fragments":[{"text":"associatedtype","kind":"keyword"},{"kind":"text","text":" "},{"text":"Content","kind":"identifier"},{"kind":"text","text":" : "},{"preciseIdentifier":"s:10Slipstream4ViewP","kind":"typeIdentifier","text":"View"}],"title":"Content","role":"symbol","type":"topic","abstract":[{"type":"text","text":"The type of view representing the content of this view."}],"identifier":"doc:\/\/Slipstream\/documentation\/Slipstream\/View\/Content"},"doc://Slipstream/documentation/Slipstream/View":{"title":"View","navigatorTitle":[{"kind":"identifier","text":"View"}],"type":"topic","kind":"symbol","abstract":[{"type":"text","text":"A type that represents part of your HTML document."}],"identifier":"doc:\/\/Slipstream\/documentation\/Slipstream\/View","url":"\/documentation\/slipstream\/view","fragments":[{"kind":"keyword","text":"protocol"},{"text":" ","kind":"text"},{"kind":"identifier","text":"View"}],"role":"symbol"},"doc://Slipstream/documentation/Slipstream/View/body":{"role":"symbol","url":"\/documentation\/slipstream\/view\/body","kind":"symbol","abstract":[{"text":"The content and behavior of the view.","type":"text"}],"type":"topic","identifier":"doc:\/\/Slipstream\/documentation\/Slipstream\/View\/body","title":"body","required":true,"fragments":[{"kind":"keyword","text":"var"},{"kind":"text","text":" "},{"text":"body","kind":"identifier"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Self"},{"text":".","kind":"text"},{"kind":"typeIdentifier","text":"Content","preciseIdentifier":"s:10Slipstream4ViewP7ContentQa"}]},"doc://Slipstream/documentation/Slipstream/Fundamentals":{"abstract":[{"type":"text","text":"Define the visual elements of your website using a hierarchy of views."}],"title":"View fundamentals","identifier":"doc:\/\/Slipstream\/documentation\/Slipstream\/Fundamentals","type":"topic","url":"\/documentation\/slipstream\/fundamentals","kind":"article","role":"collectionGroup"},"doc://Slipstream/documentation/Slipstream/ViewBuilder":{"type":"topic","identifier":"doc:\/\/Slipstream\/documentation\/Slipstream\/ViewBuilder","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"text":"ViewBuilder","kind":"identifier"}],"navigatorTitle":[{"kind":"identifier","text":"ViewBuilder"}],"abstract":[{"type":"text","text":"A custom parameter attribute that constructs views from closures."}],"url":"\/documentation\/slipstream\/viewbuilder","kind":"symbol","title":"ViewBuilder","role":"symbol"}}} \ No newline at end of file diff --git a/docs/data/documentation/slipstream/view/content.json b/docs/data/documentation/slipstream/view/content.json index f8fcdf9..79004f5 100644 --- a/docs/data/documentation/slipstream/view/content.json +++ b/docs/data/documentation/slipstream/view/content.json @@ -1 +1 @@ -{"schemaVersion":{"patch":0,"major":0,"minor":3},"abstract":[{"type":"text","text":"The type of view representing the content of this view."}],"sections":[],"metadata":{"symbolKind":"associatedtype","roleHeading":"Associated Type","title":"Content","required":true,"modules":[{"name":"Slipstream"}],"fragments":[{"text":"associatedtype","kind":"keyword"},{"kind":"text","text":" "},{"text":"Content","kind":"identifier"},{"text":" : ","kind":"text"},{"text":"View","preciseIdentifier":"s:10Slipstream4ViewP","kind":"typeIdentifier"}],"role":"symbol","externalID":"s:10Slipstream4ViewP7ContentQa"},"seeAlsoSections":[{"anchor":"Implementing-a-custom-view","title":"Implementing a custom view","identifiers":["doc:\/\/Slipstream\/documentation\/Slipstream\/View\/body"],"generated":true}],"kind":"symbol","variants":[{"paths":["\/documentation\/slipstream\/view\/content"],"traits":[{"interfaceLanguage":"swift"}]}],"hierarchy":{"paths":[["doc:\/\/Slipstream\/documentation\/Slipstream","doc:\/\/Slipstream\/documentation\/Slipstream\/Fundamentals","doc:\/\/Slipstream\/documentation\/Slipstream\/View"]]},"identifier":{"url":"doc:\/\/Slipstream\/documentation\/Slipstream\/View\/Content","interfaceLanguage":"swift"},"primaryContentSections":[{"kind":"declarations","declarations":[{"tokens":[{"kind":"keyword","text":"associatedtype"},{"text":" ","kind":"text"},{"text":"Content","kind":"identifier"},{"kind":"text","text":" : "},{"kind":"typeIdentifier","identifier":"doc:\/\/Slipstream\/documentation\/Slipstream\/View","text":"View","preciseIdentifier":"s:10Slipstream4ViewP"}],"languages":["swift"],"platforms":["macOS"]}]},{"content":[{"level":2,"text":"Discussion","anchor":"discussion","type":"heading"},{"inlineContent":[{"type":"text","text":"When you create a custom view, Swift infers this type from your"},{"type":"text","text":" "},{"type":"text","text":"implementation of the required "},{"identifier":"doc:\/\/Slipstream\/documentation\/Slipstream\/View\/body","isActive":true,"type":"reference"},{"text":" property.","type":"text"}],"type":"paragraph"}],"kind":"content"}],"references":{"doc://Slipstream/documentation/Slipstream/View/body":{"identifier":"doc:\/\/Slipstream\/documentation\/Slipstream\/View\/body","required":true,"kind":"symbol","fragments":[{"text":"var","kind":"keyword"},{"kind":"text","text":" "},{"text":"body","kind":"identifier"},{"kind":"text","text":": "},{"text":"Self","kind":"typeIdentifier"},{"text":".","kind":"text"},{"preciseIdentifier":"s:10Slipstream4ViewP7ContentQa","text":"Content","kind":"typeIdentifier"}],"url":"\/documentation\/slipstream\/view\/body","abstract":[{"type":"text","text":"The content and behavior of the view."}],"title":"body","type":"topic","role":"symbol"},"doc://Slipstream/documentation/Slipstream/View/Content":{"identifier":"doc:\/\/Slipstream\/documentation\/Slipstream\/View\/Content","url":"\/documentation\/slipstream\/view\/content","fragments":[{"kind":"keyword","text":"associatedtype"},{"text":" ","kind":"text"},{"text":"Content","kind":"identifier"},{"text":" : ","kind":"text"},{"preciseIdentifier":"s:10Slipstream4ViewP","kind":"typeIdentifier","text":"View"}],"required":true,"type":"topic","role":"symbol","kind":"symbol","title":"Content","abstract":[{"type":"text","text":"The type of view representing the content of this view."}]},"doc://Slipstream/documentation/Slipstream/View":{"kind":"symbol","url":"\/documentation\/slipstream\/view","identifier":"doc:\/\/Slipstream\/documentation\/Slipstream\/View","title":"View","role":"symbol","fragments":[{"kind":"keyword","text":"protocol"},{"kind":"text","text":" "},{"text":"View","kind":"identifier"}],"navigatorTitle":[{"kind":"identifier","text":"View"}],"abstract":[{"text":"A type that represents part of your HTML document.","type":"text"}],"type":"topic"},"doc://Slipstream/documentation/Slipstream/Fundamentals":{"identifier":"doc:\/\/Slipstream\/documentation\/Slipstream\/Fundamentals","kind":"article","type":"topic","url":"\/documentation\/slipstream\/fundamentals","role":"collectionGroup","title":"View fundamentals","abstract":[{"text":"Define the visual elements of your website using a hierarchy of views.","type":"text"}]},"doc://Slipstream/documentation/Slipstream":{"title":"Slipstream","type":"topic","kind":"symbol","abstract":[{"text":"Build static web pages with Swift and Tailwind CSS.","type":"text"}],"role":"collection","identifier":"doc:\/\/Slipstream\/documentation\/Slipstream","url":"\/documentation\/slipstream"}}} \ No newline at end of file +{"primaryContentSections":[{"declarations":[{"platforms":["macOS"],"tokens":[{"text":"associatedtype","kind":"keyword"},{"text":" ","kind":"text"},{"text":"Content","kind":"identifier"},{"kind":"text","text":" : "},{"identifier":"doc:\/\/Slipstream\/documentation\/Slipstream\/View","text":"View","kind":"typeIdentifier","preciseIdentifier":"s:10Slipstream4ViewP"}],"languages":["swift"]}],"kind":"declarations"},{"kind":"content","content":[{"level":2,"text":"Discussion","type":"heading","anchor":"discussion"},{"type":"paragraph","inlineContent":[{"type":"text","text":"When you create a custom view, Swift infers this type from your"},{"text":" ","type":"text"},{"text":"implementation of the required ","type":"text"},{"type":"reference","isActive":true,"identifier":"doc:\/\/Slipstream\/documentation\/Slipstream\/View\/body"},{"type":"text","text":" property."}]}]}],"variants":[{"paths":["\/documentation\/slipstream\/view\/content"],"traits":[{"interfaceLanguage":"swift"}]}],"metadata":{"roleHeading":"Associated Type","modules":[{"name":"Slipstream"}],"role":"symbol","required":true,"externalID":"s:10Slipstream4ViewP7ContentQa","title":"Content","fragments":[{"text":"associatedtype","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"Content"},{"text":" : ","kind":"text"},{"preciseIdentifier":"s:10Slipstream4ViewP","text":"View","kind":"typeIdentifier"}],"symbolKind":"associatedtype"},"kind":"symbol","identifier":{"interfaceLanguage":"swift","url":"doc:\/\/Slipstream\/documentation\/Slipstream\/View\/Content"},"sections":[],"abstract":[{"type":"text","text":"The type of view representing the content of this view."}],"seeAlsoSections":[{"identifiers":["doc:\/\/Slipstream\/documentation\/Slipstream\/View\/body"],"anchor":"Implementing-a-custom-view","title":"Implementing a custom view","generated":true}],"schemaVersion":{"minor":3,"major":0,"patch":0},"hierarchy":{"paths":[["doc:\/\/Slipstream\/documentation\/Slipstream","doc:\/\/Slipstream\/documentation\/Slipstream\/Fundamentals","doc:\/\/Slipstream\/documentation\/Slipstream\/View"]]},"references":{"doc://Slipstream/documentation/Slipstream/View/body":{"role":"symbol","url":"\/documentation\/slipstream\/view\/body","kind":"symbol","abstract":[{"text":"The content and behavior of the view.","type":"text"}],"type":"topic","identifier":"doc:\/\/Slipstream\/documentation\/Slipstream\/View\/body","title":"body","required":true,"fragments":[{"kind":"keyword","text":"var"},{"kind":"text","text":" "},{"text":"body","kind":"identifier"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Self"},{"text":".","kind":"text"},{"kind":"typeIdentifier","text":"Content","preciseIdentifier":"s:10Slipstream4ViewP7ContentQa"}]},"doc://Slipstream/documentation/Slipstream":{"type":"topic","url":"\/documentation\/slipstream","title":"Slipstream","abstract":[{"text":"Build static web pages with Swift and Tailwind CSS.","type":"text"}],"kind":"symbol","role":"collection","identifier":"doc:\/\/Slipstream\/documentation\/Slipstream"},"doc://Slipstream/documentation/Slipstream/View/Content":{"url":"\/documentation\/slipstream\/view\/content","identifier":"doc:\/\/Slipstream\/documentation\/Slipstream\/View\/Content","type":"topic","title":"Content","abstract":[{"text":"The type of view representing the content of this view.","type":"text"}],"kind":"symbol","role":"symbol","fragments":[{"text":"associatedtype","kind":"keyword"},{"kind":"text","text":" "},{"text":"Content","kind":"identifier"},{"text":" : ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:10Slipstream4ViewP","text":"View"}],"required":true},"doc://Slipstream/documentation/Slipstream/Fundamentals":{"abstract":[{"type":"text","text":"Define the visual elements of your website using a hierarchy of views."}],"title":"View fundamentals","identifier":"doc:\/\/Slipstream\/documentation\/Slipstream\/Fundamentals","type":"topic","url":"\/documentation\/slipstream\/fundamentals","kind":"article","role":"collectionGroup"},"doc://Slipstream/documentation/Slipstream/View":{"title":"View","navigatorTitle":[{"kind":"identifier","text":"View"}],"type":"topic","kind":"symbol","abstract":[{"type":"text","text":"A type that represents part of your HTML document."}],"identifier":"doc:\/\/Slipstream\/documentation\/Slipstream\/View","url":"\/documentation\/slipstream\/view","fragments":[{"kind":"keyword","text":"protocol"},{"text":" ","kind":"text"},{"kind":"identifier","text":"View"}],"role":"symbol"}}} \ No newline at end of file diff --git a/docs/data/documentation/slipstream/view/render(_:)-4e6tj.json b/docs/data/documentation/slipstream/view/render(_:)-4e6tj.json index 3388a43..70ddf62 100644 --- a/docs/data/documentation/slipstream/view/render(_:)-4e6tj.json +++ b/docs/data/documentation/slipstream/view/render(_:)-4e6tj.json @@ -1 +1 @@ -{"kind":"symbol","sections":[],"hierarchy":{"paths":[["doc:\/\/Slipstream\/documentation\/Slipstream","doc:\/\/Slipstream\/documentation\/Slipstream\/Fundamentals","doc:\/\/Slipstream\/documentation\/Slipstream\/View","doc:\/\/Slipstream\/documentation\/Slipstream\/View\/render(_:)-52ipj"]]},"primaryContentSections":[{"declarations":[{"tokens":[{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"text":"render","kind":"identifier"},{"kind":"text","text":"("},{"kind":"externalParam","text":"_"},{"text":" ","kind":"text"},{"kind":"internalParam","text":"container"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftSoup7ElementC","text":"Element"},{"kind":"text","text":") "},{"kind":"keyword","text":"throws"}],"platforms":["macOS"],"languages":["swift"]}],"kind":"declarations"}],"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/Slipstream\/documentation\/Slipstream\/View\/render(_:)-4e6tj"},"metadata":{"extendedModule":"Slipstream","role":"symbol","externalID":"s:10Slipstream4ViewPAAE6renderyy9SwiftSoup7ElementCKF","title":"render(_:)","modules":[{"name":"Slipstream"}],"symbolKind":"method","roleHeading":"Instance Method","fragments":[{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"text":"render","kind":"identifier"},{"text":"(","kind":"text"},{"text":"Element","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftSoup7ElementC"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"}]},"abstract":[{"type":"text","text":"This default implementation recurses the render call on "},{"type":"codeVoice","code":"body"},{"type":"text","text":"’s contents"},{"text":" ","type":"text"},{"type":"text","text":"and is sufficient for most custom "},{"code":"View","type":"codeVoice"},{"text":"-conforming types.","type":"text"}],"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/slipstream\/view\/render(_:)-4e6tj"]}],"schemaVersion":{"major":0,"minor":3,"patch":0},"references":{"doc://Slipstream/documentation/Slipstream":{"identifier":"doc:\/\/Slipstream\/documentation\/Slipstream","title":"Slipstream","role":"collection","type":"topic","url":"\/documentation\/slipstream","kind":"symbol","abstract":[{"text":"Build static web pages with Swift and Tailwind CSS.","type":"text"}]},"doc://Slipstream/documentation/Slipstream/Fundamentals":{"kind":"article","type":"topic","title":"View fundamentals","identifier":"doc:\/\/Slipstream\/documentation\/Slipstream\/Fundamentals","abstract":[{"text":"Define the visual elements of your website using a hierarchy of views.","type":"text"}],"url":"\/documentation\/slipstream\/fundamentals","role":"collectionGroup"},"doc://Slipstream/documentation/Slipstream/View":{"kind":"symbol","navigatorTitle":[{"text":"View","kind":"identifier"}],"title":"View","role":"symbol","url":"\/documentation\/slipstream\/view","fragments":[{"text":"protocol","kind":"keyword"},{"text":" ","kind":"text"},{"text":"View","kind":"identifier"}],"type":"topic","identifier":"doc:\/\/Slipstream\/documentation\/Slipstream\/View","abstract":[{"text":"A type that represents part of your HTML document.","type":"text"}]},"doc://Slipstream/documentation/Slipstream/View/render(_:)-52ipj":{"kind":"symbol","url":"\/documentation\/slipstream\/view\/render(_:)-52ipj","identifier":"doc:\/\/Slipstream\/documentation\/Slipstream\/View\/render(_:)-52ipj","type":"topic","title":"render(_:)","required":true,"role":"symbol","fragments":[{"kind":"keyword","text":"func"},{"kind":"text","text":" "},{"text":"render","kind":"identifier"},{"text":"(","kind":"text"},{"preciseIdentifier":"s:9SwiftSoup7ElementC","text":"Element","kind":"typeIdentifier"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"}],"defaultImplementations":1,"abstract":[{"text":"Transforms the view into an HTML representation of itself and adds it","type":"text"},{"text":" ","type":"text"},{"type":"text","text":"to the given container element."}]},"doc://Slipstream/documentation/Slipstream/View/render(_:)-4e6tj":{"kind":"symbol","url":"\/documentation\/slipstream\/view\/render(_:)-4e6tj","identifier":"doc:\/\/Slipstream\/documentation\/Slipstream\/View\/render(_:)-4e6tj","title":"render(_:)","role":"symbol","fragments":[{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"render"},{"kind":"text","text":"("},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftSoup7ElementC","text":"Element"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"}],"abstract":[{"type":"text","text":"This default implementation recurses the render call on "},{"code":"body","type":"codeVoice"},{"text":"’s contents","type":"text"},{"type":"text","text":" "},{"type":"text","text":"and is sufficient for most custom "},{"code":"View","type":"codeVoice"},{"text":"-conforming types.","type":"text"}],"type":"topic"}}} \ No newline at end of file +{"kind":"symbol","abstract":[{"text":"This default implementation recurses the render call on ","type":"text"},{"type":"codeVoice","code":"body"},{"type":"text","text":"’s contents"},{"type":"text","text":" "},{"type":"text","text":"and is sufficient for most custom "},{"type":"codeVoice","code":"View"},{"text":"-conforming types.","type":"text"}],"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/Slipstream\/documentation\/Slipstream\/View\/render(_:)-4e6tj"},"metadata":{"extendedModule":"Slipstream","symbolKind":"method","roleHeading":"Instance Method","role":"symbol","externalID":"s:10Slipstream4ViewPAAE6renderyy9SwiftSoup7ElementCKF","modules":[{"name":"Slipstream"}],"fragments":[{"kind":"keyword","text":"func"},{"text":" ","kind":"text"},{"kind":"identifier","text":"render"},{"kind":"text","text":"("},{"kind":"typeIdentifier","text":"Element","preciseIdentifier":"s:9SwiftSoup7ElementC"},{"kind":"text","text":") "},{"kind":"keyword","text":"throws"}],"title":"render(_:)"},"hierarchy":{"paths":[["doc:\/\/Slipstream\/documentation\/Slipstream","doc:\/\/Slipstream\/documentation\/Slipstream\/Fundamentals","doc:\/\/Slipstream\/documentation\/Slipstream\/View","doc:\/\/Slipstream\/documentation\/Slipstream\/View\/render(_:)-52ipj"]]},"primaryContentSections":[{"kind":"declarations","declarations":[{"tokens":[{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"render"},{"text":"(","kind":"text"},{"text":"_","kind":"externalParam"},{"kind":"text","text":" "},{"kind":"internalParam","text":"container"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Element","preciseIdentifier":"s:9SwiftSoup7ElementC"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"}],"languages":["swift"],"platforms":["macOS"]}]}],"schemaVersion":{"patch":0,"major":0,"minor":3},"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/slipstream\/view\/render(_:)-4e6tj"]}],"sections":[],"references":{"doc://Slipstream/documentation/Slipstream/View":{"fragments":[{"kind":"keyword","text":"protocol"},{"text":" ","kind":"text"},{"text":"View","kind":"identifier"}],"navigatorTitle":[{"kind":"identifier","text":"View"}],"title":"View","abstract":[{"type":"text","text":"A type that represents part of your HTML document."}],"identifier":"doc:\/\/Slipstream\/documentation\/Slipstream\/View","url":"\/documentation\/slipstream\/view","type":"topic","kind":"symbol","role":"symbol"},"doc://Slipstream/documentation/Slipstream/View/render(_:)-52ipj":{"type":"topic","role":"symbol","abstract":[{"type":"text","text":"Transforms the view into an HTML representation of itself and adds it"},{"type":"text","text":" "},{"text":"to the given container element.","type":"text"}],"required":true,"fragments":[{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"render"},{"text":"(","kind":"text"},{"preciseIdentifier":"s:9SwiftSoup7ElementC","text":"Element","kind":"typeIdentifier"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"}],"identifier":"doc:\/\/Slipstream\/documentation\/Slipstream\/View\/render(_:)-52ipj","kind":"symbol","defaultImplementations":1,"url":"\/documentation\/slipstream\/view\/render(_:)-52ipj","title":"render(_:)"},"doc://Slipstream/documentation/Slipstream":{"identifier":"doc:\/\/Slipstream\/documentation\/Slipstream","role":"collection","type":"topic","url":"\/documentation\/slipstream","abstract":[{"text":"Build static web pages with Swift and Tailwind CSS.","type":"text"}],"title":"Slipstream","kind":"symbol"},"doc://Slipstream/documentation/Slipstream/Fundamentals":{"abstract":[{"type":"text","text":"Define the visual elements of your website using a hierarchy of views."}],"title":"View fundamentals","identifier":"doc:\/\/Slipstream\/documentation\/Slipstream\/Fundamentals","type":"topic","url":"\/documentation\/slipstream\/fundamentals","kind":"article","role":"collectionGroup"},"doc://Slipstream/documentation/Slipstream/View/render(_:)-4e6tj":{"kind":"symbol","title":"render(_:)","role":"symbol","fragments":[{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"text":"render","kind":"identifier"},{"text":"(","kind":"text"},{"text":"Element","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftSoup7ElementC"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"}],"url":"\/documentation\/slipstream\/view\/render(_:)-4e6tj","abstract":[{"text":"This default implementation recurses the render call on ","type":"text"},{"type":"codeVoice","code":"body"},{"text":"’s contents","type":"text"},{"type":"text","text":" "},{"type":"text","text":"and is sufficient for most custom "},{"code":"View","type":"codeVoice"},{"text":"-conforming types.","type":"text"}],"type":"topic","identifier":"doc:\/\/Slipstream\/documentation\/Slipstream\/View\/render(_:)-4e6tj"}}} \ No newline at end of file diff --git a/docs/data/documentation/slipstream/view/render(_:)-52ipj.json b/docs/data/documentation/slipstream/view/render(_:)-52ipj.json index 39b56ee..a0aede0 100644 --- a/docs/data/documentation/slipstream/view/render(_:)-52ipj.json +++ b/docs/data/documentation/slipstream/view/render(_:)-52ipj.json @@ -1 +1 @@ -{"schemaVersion":{"major":0,"patch":0,"minor":3},"sections":[],"primaryContentSections":[{"declarations":[{"platforms":["macOS"],"tokens":[{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"render"},{"kind":"text","text":"("},{"text":"_","kind":"externalParam"},{"text":" ","kind":"text"},{"kind":"internalParam","text":"container"},{"text":": ","kind":"text"},{"text":"Element","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftSoup7ElementC"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"}],"languages":["swift"]}],"kind":"declarations"},{"content":[{"anchor":"discussion","text":"Discussion","type":"heading","level":2},{"type":"paragraph","inlineContent":[{"type":"text","text":"This method is typically only implemented when your view needs to perform"},{"type":"text","text":" "},{"type":"text","text":"some kind of novel transformation of its content into HTML. In most cases,"},{"type":"text","text":" "},{"type":"text","text":"you’ll only need to implement the "},{"code":"body","type":"codeVoice"},{"text":" property.","type":"text"}]},{"type":"paragraph","inlineContent":[{"type":"text","text":"If this method is not implemented, a default implementation will be"},{"type":"text","text":" "},{"text":"provided that recurses the render calls on ","type":"text"},{"code":"body","type":"codeVoice"},{"text":".","type":"text"}]}],"kind":"content"}],"metadata":{"modules":[{"name":"Slipstream"}],"fragments":[{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"render"},{"kind":"text","text":"("},{"preciseIdentifier":"s:9SwiftSoup7ElementC","kind":"typeIdentifier","text":"Element"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"}],"symbolKind":"method","roleHeading":"Instance Method","externalID":"s:10Slipstream4ViewP6renderyy9SwiftSoup7ElementCKF","role":"symbol","title":"render(_:)","required":true},"abstract":[{"type":"text","text":"Transforms the view into an HTML representation of itself and adds it"},{"type":"text","text":" "},{"type":"text","text":"to the given container element."}],"identifier":{"url":"doc:\/\/Slipstream\/documentation\/Slipstream\/View\/render(_:)-52ipj","interfaceLanguage":"swift"},"defaultImplementationsSections":[{"title":"View Implementations","anchor":"View-Implementations","identifiers":["doc:\/\/Slipstream\/documentation\/Slipstream\/View\/render(_:)-4e6tj"]}],"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/slipstream\/view\/render(_:)-52ipj"]}],"hierarchy":{"paths":[["doc:\/\/Slipstream\/documentation\/Slipstream","doc:\/\/Slipstream\/documentation\/Slipstream\/Fundamentals","doc:\/\/Slipstream\/documentation\/Slipstream\/View"]]},"kind":"symbol","references":{"doc://Slipstream/documentation/Slipstream/View/render(_:)-4e6tj":{"type":"topic","kind":"symbol","fragments":[{"kind":"keyword","text":"func"},{"text":" ","kind":"text"},{"kind":"identifier","text":"render"},{"text":"(","kind":"text"},{"preciseIdentifier":"s:9SwiftSoup7ElementC","text":"Element","kind":"typeIdentifier"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"}],"role":"symbol","identifier":"doc:\/\/Slipstream\/documentation\/Slipstream\/View\/render(_:)-4e6tj","title":"render(_:)","abstract":[{"text":"This default implementation recurses the render call on ","type":"text"},{"code":"body","type":"codeVoice"},{"text":"’s contents","type":"text"},{"text":" ","type":"text"},{"type":"text","text":"and is sufficient for most custom "},{"type":"codeVoice","code":"View"},{"type":"text","text":"-conforming types."}],"url":"\/documentation\/slipstream\/view\/render(_:)-4e6tj"},"doc://Slipstream/documentation/Slipstream":{"title":"Slipstream","type":"topic","kind":"symbol","abstract":[{"text":"Build static web pages with Swift and Tailwind CSS.","type":"text"}],"role":"collection","identifier":"doc:\/\/Slipstream\/documentation\/Slipstream","url":"\/documentation\/slipstream"},"doc://Slipstream/documentation/Slipstream/Fundamentals":{"identifier":"doc:\/\/Slipstream\/documentation\/Slipstream\/Fundamentals","kind":"article","type":"topic","url":"\/documentation\/slipstream\/fundamentals","role":"collectionGroup","title":"View fundamentals","abstract":[{"text":"Define the visual elements of your website using a hierarchy of views.","type":"text"}]},"doc://Slipstream/documentation/Slipstream/View":{"kind":"symbol","url":"\/documentation\/slipstream\/view","identifier":"doc:\/\/Slipstream\/documentation\/Slipstream\/View","title":"View","role":"symbol","fragments":[{"kind":"keyword","text":"protocol"},{"kind":"text","text":" "},{"text":"View","kind":"identifier"}],"navigatorTitle":[{"kind":"identifier","text":"View"}],"abstract":[{"text":"A type that represents part of your HTML document.","type":"text"}],"type":"topic"},"doc://Slipstream/documentation/Slipstream/View/render(_:)-52ipj":{"defaultImplementations":1,"url":"\/documentation\/slipstream\/view\/render(_:)-52ipj","required":true,"identifier":"doc:\/\/Slipstream\/documentation\/Slipstream\/View\/render(_:)-52ipj","kind":"symbol","title":"render(_:)","role":"symbol","fragments":[{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"text":"render","kind":"identifier"},{"kind":"text","text":"("},{"text":"Element","preciseIdentifier":"s:9SwiftSoup7ElementC","kind":"typeIdentifier"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"}],"abstract":[{"type":"text","text":"Transforms the view into an HTML representation of itself and adds it"},{"text":" ","type":"text"},{"text":"to the given container element.","type":"text"}],"type":"topic"}}} \ No newline at end of file +{"kind":"symbol","identifier":{"url":"doc:\/\/Slipstream\/documentation\/Slipstream\/View\/render(_:)-52ipj","interfaceLanguage":"swift"},"schemaVersion":{"minor":3,"patch":0,"major":0},"defaultImplementationsSections":[{"anchor":"View-Implementations","title":"View Implementations","identifiers":["doc:\/\/Slipstream\/documentation\/Slipstream\/View\/render(_:)-4e6tj"]}],"sections":[],"metadata":{"role":"symbol","fragments":[{"kind":"keyword","text":"func"},{"kind":"text","text":" "},{"text":"render","kind":"identifier"},{"kind":"text","text":"("},{"text":"Element","preciseIdentifier":"s:9SwiftSoup7ElementC","kind":"typeIdentifier"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"}],"required":true,"modules":[{"name":"Slipstream"}],"title":"render(_:)","externalID":"s:10Slipstream4ViewP6renderyy9SwiftSoup7ElementCKF","roleHeading":"Instance Method","symbolKind":"method"},"primaryContentSections":[{"kind":"declarations","declarations":[{"platforms":["macOS"],"languages":["swift"],"tokens":[{"kind":"keyword","text":"func"},{"kind":"text","text":" "},{"text":"render","kind":"identifier"},{"kind":"text","text":"("},{"kind":"externalParam","text":"_"},{"kind":"text","text":" "},{"text":"container","kind":"internalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"Element","preciseIdentifier":"s:9SwiftSoup7ElementC"},{"kind":"text","text":") "},{"kind":"keyword","text":"throws"}]}]},{"content":[{"anchor":"discussion","type":"heading","text":"Discussion","level":2},{"inlineContent":[{"text":"This method is typically only implemented when your view needs to perform","type":"text"},{"type":"text","text":" "},{"type":"text","text":"some kind of novel transformation of its content into HTML. In most cases,"},{"type":"text","text":" "},{"text":"you’ll only need to implement the ","type":"text"},{"type":"codeVoice","code":"body"},{"type":"text","text":" property."}],"type":"paragraph"},{"inlineContent":[{"text":"If this method is not implemented, a default implementation will be","type":"text"},{"text":" ","type":"text"},{"text":"provided that recurses the render calls on ","type":"text"},{"type":"codeVoice","code":"body"},{"text":".","type":"text"}],"type":"paragraph"}],"kind":"content"}],"hierarchy":{"paths":[["doc:\/\/Slipstream\/documentation\/Slipstream","doc:\/\/Slipstream\/documentation\/Slipstream\/Fundamentals","doc:\/\/Slipstream\/documentation\/Slipstream\/View"]]},"variants":[{"paths":["\/documentation\/slipstream\/view\/render(_:)-52ipj"],"traits":[{"interfaceLanguage":"swift"}]}],"abstract":[{"text":"Transforms the view into an HTML representation of itself and adds it","type":"text"},{"type":"text","text":" "},{"type":"text","text":"to the given container element."}],"references":{"doc://Slipstream/documentation/Slipstream/View":{"type":"topic","abstract":[{"type":"text","text":"A type that represents part of your HTML document."}],"identifier":"doc:\/\/Slipstream\/documentation\/Slipstream\/View","title":"View","kind":"symbol","role":"symbol","fragments":[{"text":"protocol","kind":"keyword"},{"text":" ","kind":"text"},{"text":"View","kind":"identifier"}],"navigatorTitle":[{"text":"View","kind":"identifier"}],"url":"\/documentation\/slipstream\/view"},"doc://Slipstream/documentation/Slipstream/Fundamentals":{"abstract":[{"type":"text","text":"Define the visual elements of your website using a hierarchy of views."}],"title":"View fundamentals","identifier":"doc:\/\/Slipstream\/documentation\/Slipstream\/Fundamentals","type":"topic","url":"\/documentation\/slipstream\/fundamentals","kind":"article","role":"collectionGroup"},"doc://Slipstream/documentation/Slipstream/View/render(_:)-52ipj":{"type":"topic","required":true,"title":"render(_:)","identifier":"doc:\/\/Slipstream\/documentation\/Slipstream\/View\/render(_:)-52ipj","abstract":[{"type":"text","text":"Transforms the view into an HTML representation of itself and adds it"},{"text":" ","type":"text"},{"text":"to the given container element.","type":"text"}],"role":"symbol","kind":"symbol","url":"\/documentation\/slipstream\/view\/render(_:)-52ipj","fragments":[{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"render"},{"text":"(","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftSoup7ElementC","text":"Element"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"}],"defaultImplementations":1},"doc://Slipstream/documentation/Slipstream/View/render(_:)-4e6tj":{"kind":"symbol","title":"render(_:)","role":"symbol","fragments":[{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"text":"render","kind":"identifier"},{"text":"(","kind":"text"},{"text":"Element","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftSoup7ElementC"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"}],"url":"\/documentation\/slipstream\/view\/render(_:)-4e6tj","abstract":[{"text":"This default implementation recurses the render call on ","type":"text"},{"type":"codeVoice","code":"body"},{"text":"’s contents","type":"text"},{"type":"text","text":" "},{"type":"text","text":"and is sufficient for most custom "},{"code":"View","type":"codeVoice"},{"text":"-conforming types.","type":"text"}],"type":"topic","identifier":"doc:\/\/Slipstream\/documentation\/Slipstream\/View\/render(_:)-4e6tj"},"doc://Slipstream/documentation/Slipstream":{"identifier":"doc:\/\/Slipstream\/documentation\/Slipstream","role":"collection","type":"topic","url":"\/documentation\/slipstream","abstract":[{"text":"Build static web pages with Swift and Tailwind CSS.","type":"text"}],"title":"Slipstream","kind":"symbol"}}} \ No newline at end of file diff --git a/docs/data/documentation/slipstream/viewbuilder.json b/docs/data/documentation/slipstream/viewbuilder.json index 3d192fc..b6c76f6 100644 --- a/docs/data/documentation/slipstream/viewbuilder.json +++ b/docs/data/documentation/slipstream/viewbuilder.json @@ -1 +1 @@ -{"seeAlsoSections":[{"identifiers":["doc:\/\/Slipstream\/documentation\/Slipstream\/View"],"anchor":"Creating-a-View","title":"Creating a View","generated":true}],"kind":"symbol","topicSections":[{"identifiers":["doc:\/\/Slipstream\/documentation\/Slipstream\/ViewBuilder\/buildBlock(_:)"],"title":"Building content","anchor":"Building-content"}],"sections":[],"metadata":{"role":"symbol","roleHeading":"Structure","externalID":"s:10Slipstream11ViewBuilderV","navigatorTitle":[{"text":"ViewBuilder","kind":"identifier"}],"title":"ViewBuilder","modules":[{"name":"Slipstream"}],"symbolKind":"struct","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"text":"ViewBuilder","kind":"identifier"}]},"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/Slipstream\/documentation\/Slipstream\/ViewBuilder"},"hierarchy":{"paths":[["doc:\/\/Slipstream\/documentation\/Slipstream","doc:\/\/Slipstream\/documentation\/Slipstream\/Fundamentals"]]},"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/slipstream\/viewbuilder"]}],"schemaVersion":{"patch":0,"major":0,"minor":3},"abstract":[{"type":"text","text":"A custom parameter attribute that constructs views from closures."}],"primaryContentSections":[{"kind":"declarations","declarations":[{"languages":["swift"],"platforms":["macOS"],"tokens":[{"kind":"attribute","text":"@resultBuilder"},{"text":" ","kind":"text"},{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"text":"ViewBuilder","kind":"identifier"}]}]},{"kind":"content","content":[{"type":"heading","anchor":"overview","level":2,"text":"Overview"},{"inlineContent":[{"text":"You typically use ","type":"text"},{"type":"reference","identifier":"doc:\/\/Slipstream\/documentation\/Slipstream\/ViewBuilder","isActive":true},{"type":"text","text":" as a parameter attribute for child"},{"text":" ","type":"text"},{"type":"text","text":"view-producing closure parameters, allowing those closures to provide"},{"type":"text","text":" "},{"text":"multiple child views.","type":"text"}],"type":"paragraph"}]}],"references":{"doc://Slipstream/documentation/Slipstream/Fundamentals":{"identifier":"doc:\/\/Slipstream\/documentation\/Slipstream\/Fundamentals","kind":"article","type":"topic","url":"\/documentation\/slipstream\/fundamentals","role":"collectionGroup","title":"View fundamentals","abstract":[{"text":"Define the visual elements of your website using a hierarchy of views.","type":"text"}]},"doc://Slipstream/documentation/Slipstream/View":{"kind":"symbol","url":"\/documentation\/slipstream\/view","identifier":"doc:\/\/Slipstream\/documentation\/Slipstream\/View","title":"View","role":"symbol","fragments":[{"kind":"keyword","text":"protocol"},{"kind":"text","text":" "},{"text":"View","kind":"identifier"}],"navigatorTitle":[{"kind":"identifier","text":"View"}],"abstract":[{"text":"A type that represents part of your HTML document.","type":"text"}],"type":"topic"},"doc://Slipstream/documentation/Slipstream":{"title":"Slipstream","type":"topic","kind":"symbol","abstract":[{"text":"Build static web pages with Swift and Tailwind CSS.","type":"text"}],"role":"collection","identifier":"doc:\/\/Slipstream\/documentation\/Slipstream","url":"\/documentation\/slipstream"},"doc://Slipstream/documentation/Slipstream/ViewBuilder":{"fragments":[{"text":"struct","kind":"keyword"},{"kind":"text","text":" "},{"text":"ViewBuilder","kind":"identifier"}],"role":"symbol","url":"\/documentation\/slipstream\/viewbuilder","title":"ViewBuilder","identifier":"doc:\/\/Slipstream\/documentation\/Slipstream\/ViewBuilder","kind":"symbol","navigatorTitle":[{"text":"ViewBuilder","kind":"identifier"}],"abstract":[{"text":"A custom parameter attribute that constructs views from closures.","type":"text"}],"type":"topic"},"doc://Slipstream/documentation/Slipstream/ViewBuilder/buildBlock(_:)":{"title":"buildBlock(_:)","url":"\/documentation\/slipstream\/viewbuilder\/buildblock(_:)","role":"symbol","abstract":[{"text":"Passes a single view written as a child view through unmodified.","type":"text"}],"kind":"symbol","type":"topic","fragments":[{"kind":"keyword","text":"static"},{"text":" ","kind":"text"},{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"buildBlock"},{"text":"<","kind":"text"},{"text":"Content","kind":"genericParameter"},{"kind":"text","text":">("},{"kind":"typeIdentifier","text":"Content"},{"text":") -> ","kind":"text"},{"text":"Content","kind":"typeIdentifier"}],"identifier":"doc:\/\/Slipstream\/documentation\/Slipstream\/ViewBuilder\/buildBlock(_:)"}}} \ No newline at end of file +{"schemaVersion":{"major":0,"minor":3,"patch":0},"identifier":{"url":"doc:\/\/Slipstream\/documentation\/Slipstream\/ViewBuilder","interfaceLanguage":"swift"},"kind":"symbol","topicSections":[{"title":"Building content","anchor":"Building-content","identifiers":["doc:\/\/Slipstream\/documentation\/Slipstream\/ViewBuilder\/buildBlock(_:)"]}],"seeAlsoSections":[{"anchor":"Creating-a-View","identifiers":["doc:\/\/Slipstream\/documentation\/Slipstream\/View"],"generated":true,"title":"Creating a View"}],"primaryContentSections":[{"declarations":[{"tokens":[{"kind":"attribute","text":"@resultBuilder"},{"text":" ","kind":"text"},{"text":"struct","kind":"keyword"},{"kind":"text","text":" "},{"text":"ViewBuilder","kind":"identifier"}],"languages":["swift"],"platforms":["macOS"]}],"kind":"declarations"},{"content":[{"text":"Overview","anchor":"overview","type":"heading","level":2},{"inlineContent":[{"text":"You typically use ","type":"text"},{"type":"reference","isActive":true,"identifier":"doc:\/\/Slipstream\/documentation\/Slipstream\/ViewBuilder"},{"type":"text","text":" as a parameter attribute for child"},{"text":" ","type":"text"},{"text":"view-producing closure parameters, allowing those closures to provide","type":"text"},{"text":" ","type":"text"},{"type":"text","text":"multiple child views."}],"type":"paragraph"}],"kind":"content"}],"hierarchy":{"paths":[["doc:\/\/Slipstream\/documentation\/Slipstream","doc:\/\/Slipstream\/documentation\/Slipstream\/Fundamentals"]]},"sections":[],"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/slipstream\/viewbuilder"]}],"abstract":[{"text":"A custom parameter attribute that constructs views from closures.","type":"text"}],"metadata":{"roleHeading":"Structure","externalID":"s:10Slipstream11ViewBuilderV","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"text":"ViewBuilder","kind":"identifier"}],"modules":[{"name":"Slipstream"}],"role":"symbol","symbolKind":"struct","navigatorTitle":[{"text":"ViewBuilder","kind":"identifier"}],"title":"ViewBuilder"},"references":{"doc://Slipstream/documentation/Slipstream/Fundamentals":{"kind":"article","abstract":[{"text":"Define the visual elements of your website using a hierarchy of views.","type":"text"}],"type":"topic","url":"\/documentation\/slipstream\/fundamentals","role":"collectionGroup","identifier":"doc:\/\/Slipstream\/documentation\/Slipstream\/Fundamentals","title":"View fundamentals"},"doc://Slipstream/documentation/Slipstream":{"type":"topic","url":"\/documentation\/slipstream","title":"Slipstream","abstract":[{"text":"Build static web pages with Swift and Tailwind CSS.","type":"text"}],"kind":"symbol","role":"collection","identifier":"doc:\/\/Slipstream\/documentation\/Slipstream"},"doc://Slipstream/documentation/Slipstream/ViewBuilder/buildBlock(_:)":{"abstract":[{"text":"Passes a single view written as a child view through unmodified.","type":"text"}],"type":"topic","role":"symbol","fragments":[{"kind":"keyword","text":"static"},{"kind":"text","text":" "},{"kind":"keyword","text":"func"},{"kind":"text","text":" "},{"text":"buildBlock","kind":"identifier"},{"kind":"text","text":"<"},{"kind":"genericParameter","text":"Content"},{"kind":"text","text":">("},{"text":"Content","kind":"typeIdentifier"},{"kind":"text","text":") -> "},{"kind":"typeIdentifier","text":"Content"}],"title":"buildBlock(_:)","kind":"symbol","url":"\/documentation\/slipstream\/viewbuilder\/buildblock(_:)","identifier":"doc:\/\/Slipstream\/documentation\/Slipstream\/ViewBuilder\/buildBlock(_:)"},"doc://Slipstream/documentation/Slipstream/ViewBuilder":{"type":"topic","identifier":"doc:\/\/Slipstream\/documentation\/Slipstream\/ViewBuilder","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"text":"ViewBuilder","kind":"identifier"}],"navigatorTitle":[{"kind":"identifier","text":"ViewBuilder"}],"abstract":[{"type":"text","text":"A custom parameter attribute that constructs views from closures."}],"url":"\/documentation\/slipstream\/viewbuilder","kind":"symbol","title":"ViewBuilder","role":"symbol"},"doc://Slipstream/documentation/Slipstream/View":{"title":"View","navigatorTitle":[{"kind":"identifier","text":"View"}],"type":"topic","kind":"symbol","abstract":[{"type":"text","text":"A type that represents part of your HTML document."}],"identifier":"doc:\/\/Slipstream\/documentation\/Slipstream\/View","url":"\/documentation\/slipstream\/view","fragments":[{"kind":"keyword","text":"protocol"},{"text":" ","kind":"text"},{"kind":"identifier","text":"View"}],"role":"symbol"}}} \ No newline at end of file diff --git a/docs/data/documentation/slipstream/viewbuilder/buildblock(_:).json b/docs/data/documentation/slipstream/viewbuilder/buildblock(_:).json index b84b119..51fb234 100644 --- a/docs/data/documentation/slipstream/viewbuilder/buildblock(_:).json +++ b/docs/data/documentation/slipstream/viewbuilder/buildblock(_:).json @@ -1 +1 @@ -{"abstract":[{"text":"Passes a single view written as a child view through unmodified.","type":"text"}],"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/slipstream\/viewbuilder\/buildblock(_:)"]}],"primaryContentSections":[{"declarations":[{"languages":["swift"],"platforms":["macOS"],"tokens":[{"kind":"keyword","text":"static"},{"kind":"text","text":" "},{"kind":"keyword","text":"func"},{"kind":"text","text":" "},{"text":"buildBlock","kind":"identifier"},{"kind":"text","text":"<"},{"kind":"genericParameter","text":"Content"},{"text":">(","kind":"text"},{"text":"_","kind":"externalParam"},{"text":" ","kind":"text"},{"kind":"internalParam","text":"content"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Content"},{"text":") -> ","kind":"text"},{"text":"Content","kind":"typeIdentifier"},{"text":" ","kind":"text"},{"kind":"keyword","text":"where"},{"text":" ","kind":"text"},{"kind":"typeIdentifier","text":"Content"},{"text":" : ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:10Slipstream4ViewP","text":"View","identifier":"doc:\/\/Slipstream\/documentation\/Slipstream\/View"}]}],"kind":"declarations"},{"content":[{"type":"heading","text":"Discussion","level":2,"anchor":"discussion"},{"inlineContent":[{"type":"text","text":"An example of a single view written as a child view is"}],"type":"paragraph"},{"code":["var body: some View {"," Text(\"Hello\")","}"],"type":"codeListing","syntax":"swift"}],"kind":"content"}],"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/Slipstream\/documentation\/Slipstream\/ViewBuilder\/buildBlock(_:)"},"kind":"symbol","metadata":{"roleHeading":"Type Method","modules":[{"name":"Slipstream"}],"title":"buildBlock(_:)","role":"symbol","fragments":[{"text":"static","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"keyword","text":"func"},{"text":" ","kind":"text"},{"text":"buildBlock","kind":"identifier"},{"text":"<","kind":"text"},{"text":"Content","kind":"genericParameter"},{"text":">(","kind":"text"},{"text":"Content","kind":"typeIdentifier"},{"text":") -> ","kind":"text"},{"text":"Content","kind":"typeIdentifier"}],"symbolKind":"method","externalID":"s:10Slipstream11ViewBuilderV10buildBlockyxxAA0B0RzlFZ"},"sections":[],"schemaVersion":{"major":0,"minor":3,"patch":0},"hierarchy":{"paths":[["doc:\/\/Slipstream\/documentation\/Slipstream","doc:\/\/Slipstream\/documentation\/Slipstream\/Fundamentals","doc:\/\/Slipstream\/documentation\/Slipstream\/ViewBuilder"]]},"references":{"doc://Slipstream/documentation/Slipstream/ViewBuilder":{"fragments":[{"text":"struct","kind":"keyword"},{"kind":"text","text":" "},{"text":"ViewBuilder","kind":"identifier"}],"role":"symbol","url":"\/documentation\/slipstream\/viewbuilder","title":"ViewBuilder","identifier":"doc:\/\/Slipstream\/documentation\/Slipstream\/ViewBuilder","kind":"symbol","navigatorTitle":[{"text":"ViewBuilder","kind":"identifier"}],"abstract":[{"text":"A custom parameter attribute that constructs views from closures.","type":"text"}],"type":"topic"},"doc://Slipstream/documentation/Slipstream/Fundamentals":{"kind":"article","type":"topic","title":"View fundamentals","identifier":"doc:\/\/Slipstream\/documentation\/Slipstream\/Fundamentals","abstract":[{"text":"Define the visual elements of your website using a hierarchy of views.","type":"text"}],"url":"\/documentation\/slipstream\/fundamentals","role":"collectionGroup"},"doc://Slipstream/documentation/Slipstream":{"role":"collection","abstract":[{"text":"Build static web pages with Swift and Tailwind CSS.","type":"text"}],"identifier":"doc:\/\/Slipstream\/documentation\/Slipstream","title":"Slipstream","type":"topic","url":"\/documentation\/slipstream","kind":"symbol"},"doc://Slipstream/documentation/Slipstream/ViewBuilder/buildBlock(_:)":{"url":"\/documentation\/slipstream\/viewbuilder\/buildblock(_:)","role":"symbol","type":"topic","title":"buildBlock(_:)","identifier":"doc:\/\/Slipstream\/documentation\/Slipstream\/ViewBuilder\/buildBlock(_:)","abstract":[{"text":"Passes a single view written as a child view through unmodified.","type":"text"}],"kind":"symbol","fragments":[{"text":"static","kind":"keyword"},{"text":" ","kind":"text"},{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"buildBlock"},{"kind":"text","text":"<"},{"text":"Content","kind":"genericParameter"},{"text":">(","kind":"text"},{"kind":"typeIdentifier","text":"Content"},{"kind":"text","text":") -> "},{"kind":"typeIdentifier","text":"Content"}]},"doc://Slipstream/documentation/Slipstream/View":{"kind":"symbol","url":"\/documentation\/slipstream\/view","identifier":"doc:\/\/Slipstream\/documentation\/Slipstream\/View","title":"View","role":"symbol","fragments":[{"kind":"keyword","text":"protocol"},{"kind":"text","text":" "},{"text":"View","kind":"identifier"}],"navigatorTitle":[{"kind":"identifier","text":"View"}],"abstract":[{"text":"A type that represents part of your HTML document.","type":"text"}],"type":"topic"}}} \ No newline at end of file +{"abstract":[{"text":"Passes a single view written as a child view through unmodified.","type":"text"}],"sections":[],"schemaVersion":{"major":0,"minor":3,"patch":0},"metadata":{"title":"buildBlock(_:)","symbolKind":"method","externalID":"s:10Slipstream11ViewBuilderV10buildBlockyxxAA0B0RzlFZ","modules":[{"name":"Slipstream"}],"roleHeading":"Type Method","fragments":[{"text":"static","kind":"keyword"},{"kind":"text","text":" "},{"kind":"keyword","text":"func"},{"text":" ","kind":"text"},{"kind":"identifier","text":"buildBlock"},{"text":"<","kind":"text"},{"kind":"genericParameter","text":"Content"},{"text":">(","kind":"text"},{"text":"Content","kind":"typeIdentifier"},{"text":") -> ","kind":"text"},{"kind":"typeIdentifier","text":"Content"}],"role":"symbol"},"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/Slipstream\/documentation\/Slipstream\/ViewBuilder\/buildBlock(_:)"},"hierarchy":{"paths":[["doc:\/\/Slipstream\/documentation\/Slipstream","doc:\/\/Slipstream\/documentation\/Slipstream\/Fundamentals","doc:\/\/Slipstream\/documentation\/Slipstream\/ViewBuilder"]]},"primaryContentSections":[{"kind":"declarations","declarations":[{"languages":["swift"],"tokens":[{"kind":"keyword","text":"static"},{"text":" ","kind":"text"},{"kind":"keyword","text":"func"},{"text":" ","kind":"text"},{"text":"buildBlock","kind":"identifier"},{"text":"<","kind":"text"},{"text":"Content","kind":"genericParameter"},{"text":">(","kind":"text"},{"text":"_","kind":"externalParam"},{"text":" ","kind":"text"},{"kind":"internalParam","text":"content"},{"kind":"text","text":": "},{"text":"Content","kind":"typeIdentifier"},{"kind":"text","text":") -> "},{"kind":"typeIdentifier","text":"Content"},{"text":" ","kind":"text"},{"kind":"keyword","text":"where"},{"kind":"text","text":" "},{"kind":"typeIdentifier","text":"Content"},{"text":" : ","kind":"text"},{"identifier":"doc:\/\/Slipstream\/documentation\/Slipstream\/View","text":"View","preciseIdentifier":"s:10Slipstream4ViewP","kind":"typeIdentifier"}],"platforms":["macOS"]}]},{"content":[{"text":"Discussion","type":"heading","level":2,"anchor":"discussion"},{"inlineContent":[{"type":"text","text":"An example of a single view written as a child view is"}],"type":"paragraph"},{"syntax":"swift","code":["var body: some View {"," Text(\"Hello\")","}"],"type":"codeListing"}],"kind":"content"}],"variants":[{"paths":["\/documentation\/slipstream\/viewbuilder\/buildblock(_:)"],"traits":[{"interfaceLanguage":"swift"}]}],"kind":"symbol","references":{"doc://Slipstream/documentation/Slipstream/View":{"title":"View","abstract":[{"text":"A type that represents part of your HTML document.","type":"text"}],"identifier":"doc:\/\/Slipstream\/documentation\/Slipstream\/View","role":"symbol","url":"\/documentation\/slipstream\/view","fragments":[{"text":"protocol","kind":"keyword"},{"kind":"text","text":" "},{"text":"View","kind":"identifier"}],"kind":"symbol","type":"topic","navigatorTitle":[{"text":"View","kind":"identifier"}]},"doc://Slipstream/documentation/Slipstream/ViewBuilder/buildBlock(_:)":{"identifier":"doc:\/\/Slipstream\/documentation\/Slipstream\/ViewBuilder\/buildBlock(_:)","abstract":[{"text":"Passes a single view written as a child view through unmodified.","type":"text"}],"title":"buildBlock(_:)","url":"\/documentation\/slipstream\/viewbuilder\/buildblock(_:)","kind":"symbol","type":"topic","fragments":[{"text":"static","kind":"keyword"},{"kind":"text","text":" "},{"kind":"keyword","text":"func"},{"kind":"text","text":" "},{"text":"buildBlock","kind":"identifier"},{"kind":"text","text":"<"},{"text":"Content","kind":"genericParameter"},{"kind":"text","text":">("},{"text":"Content","kind":"typeIdentifier"},{"text":") -> ","kind":"text"},{"text":"Content","kind":"typeIdentifier"}],"role":"symbol"},"doc://Slipstream/documentation/Slipstream":{"identifier":"doc:\/\/Slipstream\/documentation\/Slipstream","role":"collection","type":"topic","url":"\/documentation\/slipstream","abstract":[{"text":"Build static web pages with Swift and Tailwind CSS.","type":"text"}],"title":"Slipstream","kind":"symbol"},"doc://Slipstream/documentation/Slipstream/Fundamentals":{"abstract":[{"type":"text","text":"Define the visual elements of your website using a hierarchy of views."}],"title":"View fundamentals","identifier":"doc:\/\/Slipstream\/documentation\/Slipstream\/Fundamentals","type":"topic","url":"\/documentation\/slipstream\/fundamentals","kind":"article","role":"collectionGroup"},"doc://Slipstream/documentation/Slipstream/ViewBuilder":{"type":"topic","identifier":"doc:\/\/Slipstream\/documentation\/Slipstream\/ViewBuilder","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"text":"ViewBuilder","kind":"identifier"}],"navigatorTitle":[{"kind":"identifier","text":"ViewBuilder"}],"abstract":[{"type":"text","text":"A custom parameter attribute that constructs views from closures."}],"url":"\/documentation\/slipstream\/viewbuilder","kind":"symbol","title":"ViewBuilder","role":"symbol"}}} \ No newline at end of file diff --git a/docs/documentation/slipstream/fundamentals/index.html b/docs/documentation/slipstream/fundamentals/index.html index 37c9fbb..b06e78b 100644 --- a/docs/documentation/slipstream/fundamentals/index.html +++ b/docs/documentation/slipstream/fundamentals/index.html @@ -1 +1 @@ -Documentation

This page requires JavaScript.

Please turn on JavaScript in your browser and refresh the page to view its content.

\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/docs/documentation/slipstream/index.html b/docs/documentation/slipstream/index.html index 37c9fbb..b06e78b 100644 --- a/docs/documentation/slipstream/index.html +++ b/docs/documentation/slipstream/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/docs/documentation/slipstream/renderhtml(_:)/index.html b/docs/documentation/slipstream/renderhtml(_:)/index.html index 37c9fbb..b06e78b 100644 --- a/docs/documentation/slipstream/renderhtml(_:)/index.html +++ b/docs/documentation/slipstream/renderhtml(_:)/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/docs/documentation/slipstream/text/index.html b/docs/documentation/slipstream/text/index.html index 37c9fbb..b06e78b 100644 --- a/docs/documentation/slipstream/text/index.html +++ b/docs/documentation/slipstream/text/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/docs/documentation/slipstream/text/init(_:)/index.html b/docs/documentation/slipstream/text/init(_:)/index.html index 37c9fbb..b06e78b 100644 --- a/docs/documentation/slipstream/text/init(_:)/index.html +++ b/docs/documentation/slipstream/text/init(_:)/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/docs/documentation/slipstream/textinputandoutput/index.html b/docs/documentation/slipstream/textinputandoutput/index.html index 37c9fbb..b06e78b 100644 --- a/docs/documentation/slipstream/textinputandoutput/index.html +++ b/docs/documentation/slipstream/textinputandoutput/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/docs/documentation/slipstream/view/body/index.html b/docs/documentation/slipstream/view/body/index.html index 37c9fbb..b06e78b 100644 --- a/docs/documentation/slipstream/view/body/index.html +++ b/docs/documentation/slipstream/view/body/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/docs/documentation/slipstream/view/content/index.html b/docs/documentation/slipstream/view/content/index.html index 37c9fbb..b06e78b 100644 --- a/docs/documentation/slipstream/view/content/index.html +++ b/docs/documentation/slipstream/view/content/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/docs/documentation/slipstream/view/index.html b/docs/documentation/slipstream/view/index.html index 37c9fbb..b06e78b 100644 --- a/docs/documentation/slipstream/view/index.html +++ b/docs/documentation/slipstream/view/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/docs/documentation/slipstream/view/render(_:)-4e6tj/index.html b/docs/documentation/slipstream/view/render(_:)-4e6tj/index.html index 37c9fbb..b06e78b 100644 --- a/docs/documentation/slipstream/view/render(_:)-4e6tj/index.html +++ b/docs/documentation/slipstream/view/render(_:)-4e6tj/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/docs/documentation/slipstream/view/render(_:)-52ipj/index.html b/docs/documentation/slipstream/view/render(_:)-52ipj/index.html index 37c9fbb..b06e78b 100644 --- a/docs/documentation/slipstream/view/render(_:)-52ipj/index.html +++ b/docs/documentation/slipstream/view/render(_:)-52ipj/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/docs/documentation/slipstream/viewbuilder/buildblock(_:)/index.html b/docs/documentation/slipstream/viewbuilder/buildblock(_:)/index.html index 37c9fbb..b06e78b 100644 --- a/docs/documentation/slipstream/viewbuilder/buildblock(_:)/index.html +++ b/docs/documentation/slipstream/viewbuilder/buildblock(_:)/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/docs/documentation/slipstream/viewbuilder/index.html b/docs/documentation/slipstream/viewbuilder/index.html index 37c9fbb..b06e78b 100644 --- a/docs/documentation/slipstream/viewbuilder/index.html +++ b/docs/documentation/slipstream/viewbuilder/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/docs/index.html b/docs/index.html index 37c9fbb..b06e78b 100644 --- a/docs/index.html +++ b/docs/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/docs/metadata.json b/docs/metadata.json index b48ec5d..d56ae28 100644 --- a/docs/metadata.json +++ b/docs/metadata.json @@ -1 +1 @@ -{"bundleDisplayName":"Slipstream","schemaVersion":{"major":0,"patch":0,"minor":1},"bundleIdentifier":"Slipstream"} \ No newline at end of file +{"bundleIdentifier":"Slipstream","schemaVersion":{"major":0,"patch":0,"minor":1},"bundleDisplayName":"Slipstream"} \ No newline at end of file diff --git a/gendocs.sh b/gendocs.sh index 546dfa7..9c8e57d 100755 --- a/gendocs.sh +++ b/gendocs.sh @@ -6,5 +6,5 @@ swift package \ --target Slipstream \ --disable-indexing \ --transform-for-static-hosting \ - --hosting-base-path Slipstream \ + --hosting-base-path slipstream \ --output-path docs