Commit Graph

184 Commits

Author SHA1 Message Date
Wojciech Sierotowicz c9dca28ada
Remove the use of `load(on:)` in relations.md (#956)
<!-- 🚀 Thank you for contributing! -->

<!-- Describe your changes clearly and use examples if possible. -->

<!-- When this PR is merged, the title and body will be -->
<!-- used to generate a release automatically. -->

As I've noticed on a [discord
conversation](https://discord.com/channels/431917998102675485/684159753189982218/1152776938281250896),
the `load(on:)` method is discouraged to be used and should be replaced
with `get(on:)`, which defaults to cache if possible.
2024-01-02 16:58:39 +00:00
William Sedlacek e478d998a8
Add missing `else` to guard in docs (#955)
<!-- 🚀 Thank you for contributing! -->

<!-- Describe your changes clearly and use examples if possible. -->
The code as is has a syntax error.

<!-- When this PR is merged, the title and body will be -->
<!-- used to generate a release automatically. -->
2023-12-18 16:55:24 +00:00
Valeriy Van fafc8baf14
Update snippet in server.md (#954)
Use `makeServerConfiguration` instead of deprecated `forServer`.
2023-12-13 12:57:18 +00:00
JIN 38d4edd812
update cn doc (#952)
update cn doc for pr #935 

@Jinxiansen
2023-12-06 14:59:57 +00:00
Marius Seufzer 32e917855b
Update Command docs to use new AsyncCommand api (#953) 2023-12-01 22:28:38 +00:00
Anton Begehr ed51309ce3
Minor Code Fixes to apns.md (#950) 2023-11-26 02:47:49 +00:00
JIN 6ae20112e2
update cn doc (#939)
update cn doc for PR #925 

@Jinxiansen
2023-11-23 11:05:47 +00:00
とんとんぼ 40a7eea5d5
Add Japanese translation for ”basic" (#948)
## Added Content

Added a Japanese translation of
[basics](https://github.com/vapor/docs/tree/main/docs/basics).

Also addressed Issue.:
[fb3b0c2](fb3b0c23f5)

<details>
<summary>Japanese</summary>
## 追加内容

[basics](https://github.com/vapor/docs/tree/main/docs/basics)
の日本語訳を追加しました。
</details>
2023-11-22 13:54:53 +00:00
Szymon Matynia f437e4a0e7
Add polish translation for leaf getting-started (#941)
<!-- 🚀 Thank you for contributing! -->
🚀

<!-- Describe your changes clearly and use examples if possible. -->
I added polish translation for docs/leaf/getting-started.

<!-- When this PR is merged, the title and body will be -->
I don't know right now, I leave it up to you :)

<!-- used to generate a release automatically. -->

Co-authored-by: Szymon Matynia <31554149+eterxoz@users.noreply.github.com>
2023-11-18 18:51:06 +00:00
Sam Bishop 6738625271
Align apns versions and imports (#947)
Make sure that `import APNSCore` and `from: "4.0.0"` are present in all
versions of `apns.md` in response to
https://github.com/vapor/apns/issues/54.
2023-11-16 18:10:19 +00:00
Sam Bishop 3b307ce8de
Update highlightjs (#944)
Updated highlightjs to 11.9.0 to include new leaf grammar. Also slimmed
it down to only include grammars likely to appear in the documentation
(html, css, json, etc). Close #637
2023-11-16 03:31:32 +00:00
Nicolás A. Rodríguez 8975f0c959
Update apns.md (#945)
<!-- 🚀 Thank you for contributing! -->

<!-- Describe your changes clearly and use examples if possible. -->

<!-- When this PR is merged, the title and body will be -->
<!-- used to generate a release automatically. -->
2023-11-16 03:25:00 +00:00
Nicolás A. Rodríguez bb7367b849
Update apns.md (#943)
<!-- 🚀 Thank you for contributing! -->

<!-- Describe your changes clearly and use examples if possible. -->

<!-- When this PR is merged, the title and body will be -->
<!-- used to generate a release automatically. -->
2023-11-16 01:13:40 +00:00
Dominik K 798becd593
Translate authentication.md to german (#889)
Adds the correct and finished German translation for the
authentication.md file. Also fixes the index.de.md translation!

This is the complete and improved version of #827

---------

Co-authored-by: Paul Toffoloni <69189821+ptoffy@users.noreply.github.com>
Co-authored-by: Tim Condon <0xTim@users.noreply.github.com>
Co-authored-by: Mattes Mohr <mail@mattesmohr.de>
2023-11-14 18:47:24 +01:00
Hadi Sharghi 882b8a521f
add Custom Validator section to Validation docs (#935)
<!-- Describe your changes clearly and use examples if possible. -->
Add a section about Custom Validators, and a sample to create a custom
validator for zip codes. The sample is from a code that @0xTim had been
provided in an issue.
<!-- When this PR is merged, the title and body will be -->
Add 'How to create custom validators' to docs.
<!-- used to generate a release automatically. -->

---------

Co-authored-by: Tim Condon <0xTim@users.noreply.github.com>
2023-11-09 12:28:21 +00:00
とんとんぼ 46150d96e1
Update Japanese translation doc 925 (#937)
Issue: #932 

Edited `linux.md` included in pr #925 

The translation of `digital-ocean.md` into Japanese has not been done
yet.
2023-11-07 22:55:19 +01:00
Ale Mohamad ⌘ 52628f9640
Add Spanish translation for redis/overview.md (#930)
Add Spanish translation for redis/overview.md

---------

Co-authored-by: Jorge Acosta <104621044+jacostaf10@users.noreply.github.com>
2023-11-02 11:03:58 +00:00
Ale Mohamad ⌘ 4bc3b1fca2
Add Spanish translation for redis/sessions.md (#931)
Add Spanish translation for redis/sessions.md

---------

Co-authored-by: Jorge Acosta <104621044+jacostaf10@users.noreply.github.com>
2023-11-02 10:59:45 +00:00
A 40 years old student 33812d6933
Recommend Swiftly as install method on Linux (#925)
Any place we say to install Swift on Linux (deploy docs, getting started
etc) should use
[Swiftly](https://github.com/swift-server/swiftly/tree/main) instead of
directing people to download them from the install pages
2023-11-01 18:56:31 +00:00
Ale Mohamad ⌘ e40ba07ba7
Add Spanish translation for custom-tag.md (#929)
Add Spanish translation for custom-tag.md

---------

Co-authored-by: Jorge Acosta <104621044+jacostaf10@users.noreply.github.com>
2023-11-01 16:21:50 +00:00
Ale Mohamad ⌘ 81fb2b2b35
Add Spanish translation for getting-started.md (#927)
Add Spanish translation for getting-started.md

---------

Co-authored-by: Jorge Acosta <104621044+jacostaf10@users.noreply.github.com>
2023-11-01 15:24:38 +00:00
Ale Mohamad ⌘ c1c708ee06
Add Spanish translation for overview.md (#928)
Add Spanish translation for overview.md

---------

Co-authored-by: Jorge Acosta <104621044+jacostaf10@users.noreply.github.com>
2023-11-01 15:19:37 +00:00
Claisse Florian 35436a4697
Add French translation for transaction.md (#924) 2023-10-31 12:48:48 +00:00
Jorge Acosta f433b00c7e
Add Spanish translation for advanced.md (#913) 2023-10-16 19:45:23 +00:00
Jorge Acosta a776060ece
Add Spanish translation for transaction.md (#912) 2023-10-16 20:39:55 +01:00
Kalyn Davis fbd9723a00
Update routing.md (#920) 2023-10-06 12:01:53 +00:00
Paul Toffoloni 3fa1e50c1d
Translate authentication to Italian (#919)
Co-authored-by: Francesco Paolo Severino <96546612+fpseverino@users.noreply.github.com>
2023-10-03 09:32:57 +02:00
Francesco Paolo Severino e487994900
Added Italian translation of leaf/overview.md and basics/client.md (#918) 2023-09-30 17:42:34 +02:00
Mattes Mohr f6b8e0bfc8
Update the German translation for controller.md (#916) 2023-09-30 08:53:38 +02:00
Francesco Paolo Severino 2ee65b0d42
Update and add Italian translations (#910)
- Fixed some navigation components in `mkdocs.yml`.
- Minor fixes in the `getting-started` and `install` folders, as well as
in `index.it.md` and `upgrading.it.md`.
- Added `contributing.it.md`, `legacy-docs.it.md`, `release-notes.it.md`
and the `redis` folder.
- Added two out of the three `leaf` folder files:
`getting-started.it.md` and `custom-tags.it.md`.

---------

Co-authored-by: Paul Toffoloni <69189821+ptoffy@users.noreply.github.com>
2023-09-26 00:54:48 +01:00
Jorge Acosta 9e038227ce
Add Spanish translation for migration.md (#907)
Added Spanish translation for `migration.md` in `fluent` folder

---------

Co-authored-by: Ale Mohamad ⌘ <alejandro.mohamad@gmail.com>
2023-09-22 12:08:32 +00:00
Jorge Acosta 5033800a45
Add Spanish translation for relations.md (#906)
Added `relations.md` Spanish translation in `fluent` folder

---------

Co-authored-by: Ale Mohamad ⌘ <alejandro.mohamad@gmail.com>
2023-09-22 13:57:51 +02:00
とんとんぼ 8a8e6a800a
Add Japanese translation for ”Install” and "Getting Started" (#908)
<!-- 🚀 Thank you for contributing! -->

<!-- Describe your changes clearly and use examples if possible. -->
## Added Content

I have added a Japanese translation for the following file.

- install
-
[macos.md](https://github.com/vapor/docs/blob/main/docs/install/macos.md)
-
[linux.md](https://github.com/vapor/docs/blob/main/docs/install/linux.md)
- getting-started
-
[hello-world.md](https://github.com/vapor/docs/blob/main/docs/getting-started/hello-world.md)
-
[folder-structure.md](https://github.com/vapor/docs/blob/main/docs/getting-started/folder-structure.md)
-
[spm.md](https://github.com/vapor/docs/blob/main/docs/getting-started/spm.md)
-
[xcode.md](https://github.com/vapor/docs/blob/main/docs/getting-started/xcode.md)

<!-- When this PR is merged, the title and body will be -->
<!-- used to generate a release automatically. -->

<details>
<summary>日本語</summary>
## 追加内容
以下のファイルの日本語訳を追加しました。

- install
-
[macos.md](https://github.com/vapor/docs/blob/main/docs/install/macos.md)
-
[linux.md](https://github.com/vapor/docs/blob/main/docs/install/linux.md)
- getting-started
-
[hello-world.md](https://github.com/vapor/docs/blob/main/docs/getting-started/hello-world.md)
-
[folder-structure.md](https://github.com/vapor/docs/blob/main/docs/getting-started/folder-structure.md)
-
[spm.md](https://github.com/vapor/docs/blob/main/docs/getting-started/spm.md)
-
[xcode.md](https://github.com/vapor/docs/blob/main/docs/getting-started/xcode.md)
</details>
2023-09-21 14:15:44 +02:00
Ale Mohamad ⌘ 4882065814
Add Spanish translation for contributing.md (#904)
Add Spanish translation for contributing.md

---------

Co-authored-by: Jorge Acosta <104621044+jacostaf10@users.noreply.github.com>
2023-09-19 14:46:52 +00:00
Jorge Acosta 13c8287ad0
Add Spanish translation for model.md (#905)
Add `model.md` Spanish translation on `fluent` folder

---------

Co-authored-by: Ale Mohamad ⌘ <alejandro.mohamad@gmail.com>
2023-09-19 12:31:30 +00:00
Ale Mohamad ⌘ 7168b6a129
Add Spanish translation for upgrading.md (#903)
Add Spanish translation for upgrading.md

---------

Co-authored-by: Jorge Acosta <104621044+jacostaf10@users.noreply.github.com>
2023-09-19 13:26:48 +01:00
Ale Mohamad ⌘ 18b945a0be
Update Spanish translation doc 877 (#902)
Update Spanish translation doc for pr
https://github.com/vapor/docs/pull/877

Translation needed in issue https://github.com/vapor/docs/issues/878

@jacostaf10
2023-09-14 12:24:01 +01:00
Ale Mohamad ⌘ b04f5b29fd
Add Spanish translation for async.md (#901)
Add Spanish translation for async.md

---------

Co-authored-by: Jorge Acosta <104621044+jacostaf10@users.noreply.github.com>
2023-09-14 11:57:58 +01:00
とんとんぼ 07c625acbe
Start Japanese translation (#899) 2023-09-12 15:27:13 +00:00
JIN a5a1d95b90
Update cn doc (#895)
update cn doc for PR #885
2023-09-03 21:34:19 +08:00
JIN a3613ee836
Add Chinese translation for request.md (#892)
add cn translation for PR #860 
@Jinxiansen

---------

Co-authored-by: Tim Condon <0xTim@users.noreply.github.com>
2023-08-29 17:35:01 +00:00
Paul Toffoloni 3ad9bb119e
Fix redis docs dead links (#891)
Apparently there's no 1.4.1 branch documentation for
https://swiftpackageindex.com/swift-server/redistack anymore so we have
dead links
2023-08-28 10:09:17 +01:00
Paul Toffoloni b43e93cb2a
Add default hint for required values in schema (#885)
I've seen this asked more than once

---------

Co-authored-by: Tim Condon <0xTim@users.noreply.github.com>
Co-authored-by: Gwynne Raskind <gwynne@vapor.codes>
2023-08-07 15:56:29 +00:00
Paul Toffoloni a4dfba1cc7
Translate Request section to Italian (#884) 2023-08-07 11:07:55 +00:00
JIN 88787856cd
update cn doc (#886) 2023-08-07 12:02:20 +08:00
Stephen Beitzel 98ef20c9d7
Add a tip about model middleware to authentication example (#863)
The example we use for `ModelAuthenticatable` is a `User` identified by
an email address. Email addresses are case-insensitive, while the
`ModelAuthenticatable` that ships with `Fluent` is case sensitive. This
means that an application that follows the example naively would
consider `SomeUser@example.com` and `someuser@example.com` to be two
different users. This is easily addressed with model middleware that
converts the email address to lowercase before saving a `User`, but that
example is elsewhere in the documentation.

This change simply calls out this possibility in a tip section and links
to the model middleware section of the docs.
2023-08-05 16:45:05 +00:00
Sam Bishop 1bfbdab673
Request Section (#860)
This is my own attempt to close #394 with a full request page. May
supersede #859 if we want a more in depth section.

---------

Co-authored-by: Gwynne Raskind <gwynne@darkrainfall.org>
Co-authored-by: Tim Condon <0xTim@users.noreply.github.com>
2023-08-05 16:39:15 +00:00
Paul Toffoloni aa8e385d07
Translate controllers section to italian (#879) 2023-08-05 15:38:49 +00:00
Paul Toffoloni d81299642f
Translate APNS section to italian (#880) 2023-08-05 16:31:41 +01:00
Paul Toffoloni 3faa2026ab
Add and update controllers section (#877) 2023-08-03 22:27:38 +02:00