Skip to content
This repository has been archived by the owner on Dec 31, 2023. It is now read-only.

docs(pt): start to translating documentation to portuguese #124

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
3 changes: 3 additions & 0 deletions src/.vuepress/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ let site_config = {
"/zh/": locales.locale_abstract_zh,
"/ja/": locales.locale_abstract_ja,
"/ko/": locales.locale_abstract_ko,
"/pt/": locales.locale_abstract_pt,
},

markdown: {
Expand Down Expand Up @@ -94,6 +95,7 @@ let site_config = {
"/zh/": "新的",
"/ja/": "新しい",
"/ko/": "새로운",
"/pt/": "NOVO",
},
},
],
Expand Down Expand Up @@ -135,6 +137,7 @@ let site_config = {
"/zh/": locales.locale_detail_zh,
"/ja/": locales.locale_detail_ja,
"/ko/": locales.locale_detail_ko,
"/pt/": locales.locale_detail_pt,
},
author: {
name: "Sanic Community Organization",
Expand Down
7 changes: 7 additions & 0 deletions src/.vuepress/locales/abstract/locale_abstract_pt.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
module.exports = {
lang: "pt-PT",
title: "A Abstração Sanic",
current: "Recente com a versão 22.3",
description:
"A Sanic é um servidor web e uma abstração web da Python 3.7+ que é escrita ir rápido. Ela permite o uso da sintaxe de async/await adicionada à Python 3.5, a qual torna o seu código não-bloqueante e rápido.",
};
12 changes: 12 additions & 0 deletions src/.vuepress/locales/details/locale_detail_pt.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
const sidebar_en = require("./sidebar/sidebar_pt");
const nav_en = require("./nav/nav_pt");
module.exports = {
selectText: "Línguas",
label: "Português",
editLinkText: "Edite esta página no GitHub",
helpText: "Ajudar",
algolia: {},
current: "Recente com a versão 21.12",
nav: nav_pt,
sidebar: sidebar_pt,
};
101 changes: 101 additions & 0 deletions src/.vuepress/locales/details/nav/nav_pt.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,101 @@
module.exports = [
{
text: "Página Inicial",
link: "/pt/",
},
// { text: "Anúncios", link: "/announcements" },
{
text: "Documentação",
items: [
{
text: "Guia de Usuário",
items: [
{
text: "Geral",
link: "/pt/guide/getting-started.md",
},
{
text: "Básicos",
link: "/pt/guide/basics/app.md",
},
{
text: "Avançados",
link: "/pt/guide/advanced/class-based-views.md",
},
{
text: "Boas Práticas",
link: "/pt/guide/best-practices/blueprints.md",
},
{
text: "Executando e Desdobrando",
link: "/pt/guide/deployment/configuration.md",
},
{
text: "Como...",
link: "/pt/guide/how-to/toc.md",
},
{
text: "Notas do Último Lançamento",
link: "/pt/guide/release-notes/v21.12.md",
},
],
},
{
text: "Plugins Oficiais",
items: [
{
text: "Extensões de Sanic",
link: "/pt/plugins/sanic-ext/getting-started.md",
},
{
text: "Testando a Sanic",
link: "/pt/plugins/sanic-testing/getting-started.md",
},
],
},
{
text: "Documentação da API",
items: [
{
text: "Ver a Documentação da API",
link: "https://sanic.readthedocs.io",
},
],
},
{
text: "Documentação da Organização",
items: [
{
text: "Políticas",
link: "/pt/org/policies.md",
},
{
text: "D.O.M.Í.N.I.O",
link: "/pt/org/scope.md",
},
],
},
],
},
{
text: "Comunidade",
items: [
{
text: "Fóruns",
link: "https://community.sanicframework.org/",
},
{
text: "Discord",
link: "https://discord.gg/FARQzAEMAA",
},
{
text: "Twitter",
link: "https://twitter.com/sanicframework",
},
{
text: "Patrocínio",
link: "https://opencollective.com/sanic-org/",
},
],
},
];
195 changes: 195 additions & 0 deletions src/.vuepress/locales/details/sidebar/sidebar_pt.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,195 @@
module.exports = {
"/pt/guide/": [
{
title: "Geral",
sidebarDepth: 1,
children: ["/pt/guide/", "/pt/guide/getting-started.md"],
},
{
title: "Básicos",
sidebarDepth: 1,
children: [
"/pt/guide/basics/app.md",
"/pt/guide/basics/handlers.md",
"/pt/guide/basics/request.md",
"/pt/guide/basics/response.md",
"/pt/guide/basics/routing.md",
"/pt/guide/basics/listeners.md",
"/pt/guide/basics/middleware.md",
"/pt/guide/basics/headers.md",
"/pt/guide/basics/cookies.md",
"/pt/guide/basics/tasks.md",
],
},
{
title: "Avançado",
sidebarDepth: 1,
children: [
"/pt/guide/advanced/class-based-views.md",
"/pt/guide/advanced/proxy-headers.md",
"/pt/guide/advanced/streaming.md",
"/pt/guide/advanced/websockets.md",
"/pt/guide/advanced/versioning.md",
"/pt/guide/advanced/signals.md",
],
},
{
title: "Boas Práticas",
sidebarDepth: 1,
children: [
"/pt/guide/best-practices/blueprints.md",
"/pt/guide/best-practices/exceptions.md",
"/pt/guide/best-practices/decorators.md",
"/pt/guide/best-practices/logging.md",
"/pt/guide/best-practices/testing.md",
],
},
{
title: "Executando e Desdobrando",
sidebarDepth: 2,
children: [
"/pt/guide/deployment/configuration.md",
"/pt/guide/deployment/development.md",
"/pt/guide/deployment/running.md",
// "/guide/deployment/server-choice.md",
"/pt/guide/deployment/nginx.md",
// "/guide/deployment/docker.md",
// "/guide/deployment/kubernetes.md",
],
},
{
title: "Como...",
sidebarDepth: 1,
children: [
"/pt/guide/how-to/toc.md",
"/pt/guide/how-to/mounting.md",
"/pt/guide/how-to/authentication.md",
"/pt/guide/how-to/autodiscovery.md",
"/pt/guide/how-to/cors.md",
// "/guide/how-to/db.md",
// "/guide/how-to/decorators.md",
// "/guide/how-to/validation.md",
// "/guide/how-to/csrf.md",
// "/guide/how-to/serialization.md",
// "/pt/guide/how-to/sqlalchemy.md",
"/pt/guide/how-to/orm.md",
"/pt/guide/how-to/static-redirects.md",
// "/guide/how-to/task-queue.md",
"/pt/guide/how-to/tls.md",
// "/guide/how-to/websocket-feed.md",
// "/guide/how-to/server-sent-events.md",
],
},
{
title: "Notas de Lançamanto",
sidebarDepth: 1,
children: [
"/pt/guide/release-notes/v22.3.md",
"/pt/guide/release-notes/v21.12.md",
"/pt/guide/release-notes/v21.9.md",
"/pt/guide/release-notes/v21.6.md",
"/pt/guide/release-notes/v21.3.md",
],
},
{
title: "Plugins",
sidebarDepth: 1,
children: [
["/pt/plugins/sanic-ext/getting-started.md", "Extensões de Sanic"],
["/pt/plugins/sanic-testing/getting-started.md", "Testes da Sanic"],
],
},
{
title: "Organização",
sidebarDepth: 1,
children: ["/pt/org/policies.md", "/pt/org/scope.md"],
},
],

"/pt/plugins/": [
{
title: "Guia de Usuário",
sidebarDepth: 1,
children: [
["/pt/guide/", "Geral"],
["/pt/guide/basics/app.md", "Básicos"],
["/pt/guide/advanced/class-based-views.md", "Avançado"],
["/pt/guide/best-practices/blueprints.md", "Boas Práticas"],
["/pt/guide/deployment/configuration.md", "Executando e Desdobrando"],
["/pt/guide/how-to/toc.md", "Como..."],
],
},
{
title: "Extensões de Sanic",
sidebarDepth: 1,
children: [
"/pt/plugins/sanic-ext/getting-started.md",
{
title: "Recursos da HTTP",
children: [
"/pt/plugins/sanic-ext/http/methods.md",
"/pt/plugins/sanic-ext/http/cors.md",
],
},
"/pt/plugins/sanic-ext/convenience.md",
"/pt/plugins/sanic-ext/injection.md",
{
title: "OpenAPI",
sidebarDepth: 2,
children: [
"/pt/plugins/sanic-ext/openapi/basic.md",
"/pt/plugins/sanic-ext/openapi/ui.md",
"/pt/plugins/sanic-ext/openapi/decorators.md",
"/pt/plugins/sanic-ext/openapi/advanced.md",
"/pt/plugins/sanic-ext/openapi/autodoc.md",
"/pt/plugins/sanic-ext/openapi/security.md",
],
},
"/pt/plugins/sanic-ext/validation.md",
"/pt/plugins/sanic-ext/configuration.md",
],
},
{
title: "Testes da Sanic",
sidebarDepth: 1,
children: [
"/pt/plugins/sanic-testing/getting-started.md",
"/pt/plugins/sanic-testing/clients.md",
],
},
{
title: "Organização",
sidebarDepth: 1,
children: ["/pt/org/policies.md", "/pt/org/scope.md"],
},
],

"/pt/org/": [
{
title: "Guia de Usuário",
sidebarDepth: 1,
children: [
["/pt/guide/", "Geral"],
["/pt/guide/basics/app.md", "Básicos"],
["/pt/guide/advanced/class-based-views.md", "Avançado"],
["/pt/guide/best-practices/blueprints.md", "Boas Práticas"],
["/pt/guide/deployment/configuration.md", "Executando e Desdobrando"],
["/pt/guide/how-to/toc.md", "Como..."],
],
},
{
title: "Plugins",
sidebarDepth: 1,
children: [
["/pt/plugins/sanic-ext/getting-started.md", "Extensões de Sanic"],
["/pt/plugins/sanic-testing/getting-started.md", "Testes da Sanic"],
],
},
{
title: "Organização",
sidebarDepth: 1,
collapsable: false,
children: ["/pt/org/policies.md", "/pt/org/scope.md"],
},
],
};
4 changes: 4 additions & 0 deletions src/.vuepress/locales/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,22 @@ const locale_abstract_en = require("./abstract/locale_abstract_en");
const locale_abstract_ko = require("./abstract/locale_abstract_ko");
const locale_abstract_zh = require("./abstract/locale_abstract_zh");
const locale_abstract_ja = require("./abstract/locale_abstract_ja");
const locale_abstract_pt = require("./abstract/locale_abstract_pt");
const locale_detail_en = require("./details/locale_detail_en");
const locale_detail_ko = require("./details/locale_detail_ko");
const locale_detail_zh = require("./details/locale_detail_zh");
const locale_detail_ja = require("./details/locale_detail_ja");
const locale_detail_pt = require("./details/locale_detail_pt");

module.exports = {
locale_abstract_en,
locale_abstract_ko,
locale_abstract_zh,
locale_abstract_ja,
locale_abstract_pt,
locale_detail_en,
locale_detail_ko,
locale_detail_zh,
locale_detail_ja,
locale_detail_pt,
};
23 changes: 23 additions & 0 deletions src/pt/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
---
home: true
heroImage: https://raw.githubusercontent.com/huge-success/sanic-assets/master/png/sanic-framework-logo-400x97.png
heroText: Build fast. Run fast.
tagline: Next generation Python web server/framework
actionText: Get Started →
actionLink: /en/guide/
features:
- title: Simple and lightweight
details: Intuitive API with smart defaults and no bloat allows you to get straight to work building your app.
- title: Unopinionated and flexible
details: Build the way you want to build without letting your tooling constrain you.
- title: Performant and scalable
details: Built from the ground up with speed and scalability as a main concern. It is ready to power web applications big and small.
- title: Production ready
details: Out of the box, it comes bundled with a web server ready to power your web applications.
- title: Trusted by millions
details: Sanic is one of the overall most popular frameworks on PyPI, and the top async enabled framework
- title: Community driven
details: The project is maintained and run by the community for the community.
pageClass: landing-page
logo: false
---
Loading