diff --git a/Sources/VaporDocs/Languages.swift b/Sources/VaporDocs/Languages.swift index c96ea7e38..1704813ba 100644 --- a/Sources/VaporDocs/Languages.swift +++ b/Sources/VaporDocs/Languages.swift @@ -1029,4 +1029,4 @@ let languages: [Language] = [ systemTheme: "حسب النظام" ) ), -] +] \ No newline at end of file diff --git a/Sources/VaporDocs/Version5.swift b/Sources/VaporDocs/Version5.swift new file mode 100644 index 000000000..f09097b42 --- /dev/null +++ b/Sources/VaporDocs/Version5.swift @@ -0,0 +1,11 @@ +import Kiln + +let v5_0 = DocVersion( + id: "5.0", + name: "5.0 alpha", + isPrerelease: true, + contentDirectory: "5.0", + languages: languages +) { + Page("Welcome", "index.md") +} \ No newline at end of file diff --git a/Sources/VaporDocs/main.swift b/Sources/VaporDocs/main.swift index 6a7e95c85..cac4e4174 100644 --- a/Sources/VaporDocs/main.swift +++ b/Sources/VaporDocs/main.swift @@ -29,7 +29,7 @@ let site = KilnSite( ], carbonAds: .init(serve: "CK7DT2QW", placement: "vaporcodes"), extraCSS: ["stylesheets/fonts.css"], - versions: [v4_0, v3_0, v2_0, v1_5] + versions: [v5_0, v4_0, v3_0, v2_0, v1_5] ) let outputDirectory = "site" diff --git a/docs/5.0/index.md b/docs/5.0/index.md new file mode 100644 index 000000000..7c5e639c2 --- /dev/null +++ b/docs/5.0/index.md @@ -0,0 +1,33 @@ +--- +title: Welcome to the Vapor Documentation! +description: Vapor is a web framework for Swift, allowing you to write backends, web apps APIs and HTTP servers in Swift. +--- +
+ Vapor logo + +# Vapor Documentation + +
+ +Welcome to the Vapor Documentation! Vapor is a web framework for Swift, allowing you to write backends, web apps APIs and HTTP servers in Swift. Vapor is written in Swift, which is a modern, powerful and safe language providing a number of benefits over the more traditional server languages. + +## Getting Started + +Vapor 5 is under active development, with more docs coming soon. + +## Other Sources + +Here are some other great places to find information about Vapor. + +| name | description | link | +|----------------|--------------------------------------------------|-------------------------------------------------------------------| +| Vapor Discord | Chat with thousands of Vapor developers. | [visit →](https://vapor.team) | +| API docs | Auto-generated documentation from code comments. | [visit →](https://api.vapor.codes) | +| Stack Overflow | Ask and answer questions with the `vapor` tag. | [visit →](https://stackoverflow.com/questions/tagged/vapor) | +| Swift Forums | Post in Vapor's section of the Swift.org forums. | [visit →](https://forums.swift.org/c/related-projects/vapor) | +| Source Code | Learn how Vapor works under the hood. | [visit →](https://github.com/vapor/vapor) | +| GitHub Issues | Report bugs or request features on GitHub. | [visit →](https://github.com/vapor/vapor/issues) | + +## Authors + +The Vapor Core Team, and the hundreds of members of the Vapor community.