mirror of https://github.com/vapor/docs.git
big rename
This commit is contained in:
parent
9d4ec3521a
commit
cb602c3e42
|
|
@ -1,14 +1,14 @@
|
|||
# Vapor Documentation
|
||||
|
||||
This is the documentation for Vapor, a Web Framework for Swift that works on iOS, macOS, and Ubuntu; and all of the packages that Qutheory offers.
|
||||
This is the documentation for Vapor, a Web Framework for Swift that works on iOS, macOS, and Ubuntu; and all of the packages that Vapor offers.
|
||||
|
||||
Vapor is the most used web framework for Swift. It provides a beautifully expressive and easy to use foundation for your next website or API.
|
||||
|
||||
To view the framework's source code and code documentation, visit [Vapor's GitHub](https://github.com/qutheory/vapor).
|
||||
To view the framework's source code and code documentation, visit [Vapor's GitHub](https://github.com/vapor/vapor).
|
||||
|
||||
## ℹ️ How To Read
|
||||
|
||||
You can read this guide by clicking through the folders and markdown files on [GitHub](https://github.com/qutheory/documentation) or through the rendered [GitHub Pages](https://qutheory.github.io/documentation/).
|
||||
You can read this guide by clicking through the folders and markdown files on [GitHub](https://github.com/vapor/documentation) or through the rendered [GitHub Pages](https://vapor.github.io/documentation/).
|
||||
|
||||
## 🚀 Getting Started
|
||||
|
||||
|
|
@ -20,4 +20,4 @@ Learn about how to use all of Vapor's powerful and modern features from routing
|
|||
|
||||
## 👥 Authors
|
||||
|
||||
[Tanner Nelson](mailto:tanner@qutheory.io), [Logan Wright](logan@qutheory.io), and the hundreds of members of Qutheory.
|
||||
[Tanner Nelson](mailto:tanner@qutheory.io), [Logan Wright](logan@qutheory.io), and the hundreds of members of Vapor.
|
||||
|
|
|
|||
|
|
@ -67,5 +67,5 @@ $ swiftenv versions
|
|||
To ensure that your environment has been correctly configured, run the check script.
|
||||
|
||||
```sh
|
||||
curl -sL check.qutheory.io | bash
|
||||
curl -sL check.vapor.sh | bash
|
||||
```
|
||||
|
|
|
|||
|
|
@ -10,10 +10,10 @@ Vapor's command line interface provides shortcuts and assistance for commons tas
|
|||
|
||||
## Install
|
||||
|
||||
Run the following script to install the [Toolbox](https://github.com/qutheory/toolbox).
|
||||
Run the following script to install the [Toolbox](https://github.com/vapor/toolbox).
|
||||
|
||||
```sh
|
||||
curl -sL toolbox.qutheory.io | bash
|
||||
curl -sL toolbox.vapor.sh | bash
|
||||
```
|
||||
|
||||
> Note: You must have the correct version of Swift 3 installed.
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ This document assumes that the appropriate version of Swift is installed for Vap
|
|||
To check that your environment is compatible, run the following script:
|
||||
|
||||
```bash
|
||||
curl -sL check.qutheory.io | bash
|
||||
curl -sL check.vapor.sh | bash
|
||||
```
|
||||
|
||||
## Make new project using SwiftPM
|
||||
|
|
@ -58,12 +58,12 @@ import PackageDescription
|
|||
let package = Package(
|
||||
name: "HelloVapor",
|
||||
dependencies: [
|
||||
.Package(url: "https://github.com/qutheory/vapor.git", majorVersion: 0, minor: 15)
|
||||
.Package(url: "https://github.com/vapor/vapor.git", majorVersion: 0, minor: 16)
|
||||
]
|
||||
)
|
||||
```
|
||||
|
||||
> We try to keep this document up to date, however, you can view latest releases [here](https://github.com/qutheory/vapor/releases)
|
||||
> We try to keep this document up to date, however, you can view latest releases [here](https://github.com/vapor/vapor/releases)
|
||||
|
||||
## Edit `main.swift`
|
||||
|
||||
|
|
|
|||
|
|
@ -52,5 +52,5 @@ View.renderers[".mustache"] = MustacheRenderer()
|
|||
|
||||
These renderers can be added to your application through Providers.
|
||||
|
||||
- [Mustache](https://github.com/qutheory/vapor-mustache)
|
||||
- [Stencil](https://github.com/qutheory/vapor-stencil)
|
||||
- [Mustache](https://github.com/vapor/mustache-provider)
|
||||
- [Stencil](https://github.com/vapor/stencil-provider)
|
||||
|
|
@ -48,9 +48,9 @@ drop.group(AuthMiddleware()) { authorized in
|
|||
You can limit the host for a group of routes.
|
||||
|
||||
```
|
||||
drop.group(host: "qutheory.io") { qt
|
||||
qt.get { request in
|
||||
// only responds to requests to qutheory.io
|
||||
drop.group(host: "vapor.codes") { vapor
|
||||
vapor.get { request in
|
||||
// only responds to requests to vapor.codes
|
||||
}
|
||||
}
|
||||
```
|
||||
|
|
@ -60,7 +60,7 @@ drop.group(host: "qutheory.io") { qt
|
|||
Groups can be chained together.
|
||||
|
||||
```swift
|
||||
drop.grouped(host: "qutheory.io").grouped(AuthMiddleware()).group("v1") { authedSecureV1 in
|
||||
drop.grouped(host: "vapor.codes").grouped(AuthMiddleware()).group("v1") { authedSecureV1 in
|
||||
// add routes here
|
||||
}
|
||||
```
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@
|
|||
|
||||
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Source+Code+Pro">
|
||||
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Quicksand:400,700,300">
|
||||
<link rel="stylesheet" href="{{ baseUrl }}/styles/qutheory-code.css">
|
||||
<link rel="stylesheet" href="{{ baseUrl }}/styles/vapor-code.css">
|
||||
<link rel="stylesheet" href="{{ baseUrl }}/styles/main.css">
|
||||
</head>
|
||||
<body>
|
||||
|
|
@ -20,19 +20,19 @@
|
|||
</a>
|
||||
<ul>
|
||||
<li>
|
||||
<a href="http://qutheory.io">Home</a>
|
||||
<a href="http://vapor.codes">Home</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="http://example.qutheory.io">Example</a>
|
||||
<a href="http://example.vapor.codes">Example</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="https://github.com/qutheory/vapor">GitHub</a>
|
||||
<a href="https://github.com/vapor/vapor">GitHub</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="https://twitter.com/@qutheory">Twitter</a>
|
||||
<a href="https://twitter.com/@codevapor">Twitter</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="http://slack.qutheory.io">Slack</a>
|
||||
<a href="http://vapor.team">Slack</a>
|
||||
</li>
|
||||
</ul>
|
||||
</header>
|
||||
|
|
@ -57,7 +57,7 @@
|
|||
</nav>
|
||||
|
||||
<main>
|
||||
<a href="https://github.com/qutheory/documentation/blob/master/CONTRIBUTING.md" class="edit">✎ Edit on GitHub</a>
|
||||
<a href="https://github.com/vapor/documentation/blob/master/CONTRIBUTING.md" class="edit">✎ Edit on GitHub</a>
|
||||
{{ content | raw }}
|
||||
</main>
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue