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 Documentation
+
+