Go to file
BennyDB e3ba11c2b3
Enhancement/deploy to s3 - Add deployment to S3
* Create deployment stack file for cloudformation

* Add deployment script

* Add custom 404 page

* Install couscous manually in deploy workflow

* Add missing sudo statement to chmod command

* Add project board workflow (#649)

* Add i18n Support (#650)

* Add i18n support

* Update requirements.txt to include i18n package

* Update Readme to include explanation for contributing

* Update styling and include mistakes section

* Apply suggestions from code review

* Update per PR changes

Co-authored-by: Tim Condon <0xTim@users.noreply.github.com>

* Remove plugin for now

* Reenable plugin

* Plugin broke search

* Update mkdocs material requirement to be version 7.1 or higher

* remove google analytics. Use highlight for code blocks. Include search in plugins

* Add css file for code block customisation possiblities

Co-authored-by: Tim Condon <0xTim@users.noreply.github.com>
2022-05-06 15:06:02 +02:00
.github Enhancement/deploy to s3 - Add deployment to S3 2022-05-06 15:06:02 +02:00
1.5 switch 4.0 2020-06-13 13:17:53 -04:00
2.0 2.0 -> 4.0 redirect 2020-06-13 13:08:45 -04:00
3.0 Fix old typo 2021-05-12 12:15:44 +01:00
4.0 Enhancement/deploy to s3 - Add deployment to S3 2022-05-06 15:06:02 +02:00
leaf-pygment deploy 2018-10-30 14:50:20 -04:00
.gitignore cleanup 2020-06-13 12:51:51 -04:00
README.md Add i18n Support (#650) 2022-05-06 10:40:23 +01:00
build.sh update build 2020-06-13 17:12:52 +00:00
requirements.txt Enhancement/deploy to s3 - Add deployment to S3 2022-05-06 15:06:02 +02:00
stack.yml Enhancement/deploy to s3 - Add deployment to S3 2022-05-06 15:06:02 +02:00

README.md

Documentation

Read the docs at docs.vapor.codes

Contributing

If you want to add information to the docs or have found any mistakes you wish to fix, feel free to create a PR for the change.

Translating


Localised docs are incredibly useful for allowing people to learn Vapor in their native language. If you wish to contribute to the Vapor documentation by translating, follow the steps below.

You'll need Python3 to build the docs. You can download this from the Python Website or install via Homebrew. Once installed, run pip install -r requirements.txt in the root directory of this repository. This will install all the needed dependencies in order to be able to build the documentation.

Following the installation of the dependencies, check if your language you want to translate to is already included in the mkdocs.yml file. If it is not, then you can add it like this:

languages:
  # Structure
  <language iso code>:
    name: <The name of the language>
    site_name: <The translated site name>
    build: true # Whether the documentation gets build or not. You can disable this if you don't want to build your language or want to temporarily disable other languages

  # Example
  nl:
    name: Nederlands
    site_name: Vapor Documentatie
    build: true

NOTE: The language code you have to add must conform to the ISO 639-1 Standard. More information can be found here.

If there are navigation components that have to be translated, then you can add them under nav_translations in the mkdocs file. This is done by specifying a keyword defined in the nav: section of the mkdocs.yml file and then adding the translation. An example can be found below of how to add those:

nav_translations:
  # Structure
  <language code>:
    <keyword>: <translation>

  # Example
  nl:
    Welcome: Welkom
    Install: Installeren

Copy the markdown file you would like to translate and name it <original name file>.<language code>.md. For example:

- index.md <- the original english documentation
- index.nl.md <- the dutch translation of the english documentation file

You can check it out by running mkdocs serve in the terminal. Once you are satisfied with your translations, feel free to create a PR. Don't forget to turn the build flag to true for all languages!

NOTE: If a file isn't translated, it will just default to the default language file. So you don't have to translate everything all at once.