Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Sources/VaporDocs/Languages.swift
Original file line number Diff line number Diff line change
Expand Up @@ -1029,4 +1029,4 @@ let languages: [Language] = [
systemTheme: "حسب النظام"
)
),
]
]
11 changes: 11 additions & 0 deletions Sources/VaporDocs/Version5.swift
Original file line number Diff line number Diff line change
@@ -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")
}
2 changes: 1 addition & 1 deletion Sources/VaporDocs/main.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
33 changes: 33 additions & 0 deletions docs/5.0/index.md
Original file line number Diff line number Diff line change
@@ -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.
---
<div style="text-align: center;">
<img src="/assets/vapor-logo.png" alt="Vapor logo" width="160" class="kiln-home-hero">

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The 'assets' folder does not exist within the new '5.0' folder.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah it's a weird quirk of Kiln at the moment that anything gets copied over. So the file does exist. I need to fix that in Kiln


# Vapor Documentation

</div>

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 &rarr;](https://vapor.team) |
| API docs | Auto-generated documentation from code comments. | [visit &rarr;](https://api.vapor.codes) |
| Stack Overflow | Ask and answer questions with the `vapor` tag. | [visit &rarr;](https://stackoverflow.com/questions/tagged/vapor) |
| Swift Forums | Post in Vapor's section of the Swift.org forums. | [visit &rarr;](https://forums.swift.org/c/related-projects/vapor) |
| Source Code | Learn how Vapor works under the hood. | [visit &rarr;](https://github.com/vapor/vapor) |
| GitHub Issues | Report bugs or request features on GitHub. | [visit &rarr;](https://github.com/vapor/vapor/issues) |

## Authors

The Vapor Core Team, and the hundreds of members of the Vapor community.