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
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ Learn more about [Strict mode](https://developer.mozilla.org/en-US/docs/Web/Java
<DocItem title="Functions limits" href="/en/documentation/build/functions/limits/#default-limits">Every ceiling one invocation runs inside, and what happens past each one.</DocItem>
<DocItem title="Instance fields" href="/en/documentation/build/functions/functions-instances/#instance-fields">The `active` field, which stops an instance from running without deleting it.</DocItem>
<DocItem title="Modules" href="/en/documentation/platform/applications/#modules">What an application enables before a function can run on it.</DocItem>
<DocItem title="Where does Azion run?" href="/en/documentation/fundamentals/#where-does-azion-run">Where the code physically executes.</DocItem>
<DocItem title="Where does Azion run?" href="/en/documentation/platform/#where-does-azion-run">Where the code physically executes.</DocItem>
<DocItem title="Get help" href="/en/documentation/support/get-help/">The support and community channels.</DocItem>
</ItemList>
</FrameBox>
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ After the deployment, each template creates a new application and its Azion doma
Go to the [guides page](https://www.azion.com/en/documentation/guides/#azion-templates) and check more details on the specific template you're willing to use.

:::tip
To know more on how to edit and customize your application's main settings, go to the [Configuring main settings](/en/documentation/guides/application-development/getting-started/configure-main-settings/) guide. You can also [Go live with Azion](/en/documentation/fundamentals/), adding a custom domain and poiting your traffic.
To know more on how to edit and customize your application's main settings, go to the [Configuring main settings](/en/documentation/guides/application-development/getting-started/configure-main-settings/) guide. You can also [Go live with Azion](/en/documentation/products/go-live-with-azion/), adding a custom domain and poiting your traffic.
:::


Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
---
title: "Azion Web Platform Overview"
title: "How Azion works"
description: >-
This documentation introduces the Azion Web Platform, which unifies app development, security, and observability on a global infrastructure so you can ship faster with performance and control.
meta_tags: >-
Azion, application, Azion Web Platform, developer platform, application platform, modern application platform, global web platform, serverless platform, serverless computing, serverless functions, functions, application development, application security, API security, web application firewall, WAF, DDoS protection, DDoS mitigation
namespace: documentation_azion_platform_overview
permalink: /documentation/fundamentals/
permalink: /documentation/platform/
---


Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
---
title: Fundamentals
description: >-
Create an Azion account, add the people who work in it, keep it secure, and
understand what you are charged for.
meta_tags: >-
account, fundamentals, billing, subscriptions, permissions, teams, security, compliance, single sign-on, multi-factor authentication
namespace: documentation_fundamentals
permalink: /documentation/fundamentals/
---

import DocCardGroup from '@aziontech/webkit/doc-card-group'
import DocCard from '@aziontech/webkit/doc-card'

Everything you build on Azion lives inside an account. This section covers the account itself: how you create one, who else can work in it and with which permissions, how usage becomes an invoice, and the controls that keep the account secure.

Looking for what the platform does instead? Start with [How Azion works](/en/documentation/platform/).

---

<DocCardGroup cols={2}>
<DocCard title="Get started" href="/en/documentation/fundamentals/creating-account/" label="Create an Azion account and sign in for the first time." />
<DocCard title="Accounts" href="/en/documentation/fundamentals/accounts/" label="Account settings, client accounts, activity history, and your own profile." />
<DocCard title="Members and permissions" href="/en/documentation/fundamentals/teams-permissions/" label="Add people to the account and control what each of them can do." />
<DocCard title="Billing" href="/en/documentation/fundamentals/billing-and-subscriptions/" label="Payment methods, invoices, and how usage becomes a charge." />
<DocCard title="Security" href="/en/documentation/fundamentals/multi-factor-authentication/" label="Multi-factor authentication, single sign-on, session limits, and compliance." />
<DocCard title="Reference" href="/en/documentation/fundamentals/migrate-to-azion/" label="Migrate to Azion, and move an integration to API v4." />
</DocCardGroup>
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@ You have these ways to start building with a template:



Once you've built your application with the preferred method, you can come back to follow your journey and [Go live with Azion](/en/documentation/fundamentals/).
Once you've built your application with the preferred method, you can come back to follow your journey and [Go live with Azion](/en/documentation/products/go-live-with-azion/).


Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ With Applications, you can:
- Bring your business rules for any request or response.
- Optimize content and image delivery for your users.

<DocButton kind="secondary" label="Build your first application" href="/en/documentation/fundamentals/" size="medium" />
<DocButton kind="secondary" label="Build your first application" href="/en/documentation/platform/applications/first-steps/" size="medium" />

You can create and manage applications using:

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ Saiba mais sobre o [Strict mode](https://developer.mozilla.org/en-US/docs/Web/Ja
<DocItem title="Limites de Functions" href="/pt-br/documentacao/build/functions/limites/#limites-default">Todos os tetos dentro dos quais uma invocação roda, e o que acontece além de cada um.</DocItem>
<DocItem title="Campos da instância" href="/pt-br/documentacao/build/functions/functions-instances/#campos-da-instancia">O campo `active`, que impede uma instância de rodar sem apagá-la.</DocItem>
<DocItem title="Modules" href="/pt-br/documentacao/plataforma/applications/#modules">O que uma aplicação habilita antes de uma função poder rodar nela.</DocItem>
<DocItem title="Visão geral da Azion" href="/pt-br/documentacao/fundamentos/">Onde o código é executado fisicamente.</DocItem>
<DocItem title="Visão geral da Azion" href="/pt-br/documentacao/plataforma/">Onde o código é executado fisicamente.</DocItem>
<DocItem title="Obter ajuda" href="/pt-br/documentacao/suporte/obter-ajuda/">Os canais de suporte e de comunidade.</DocItem>
</ItemList>
</FrameBox>
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Você tem as seguintes maneiras de começar a construir com templates:



Depois de criar uma application com seu método preferido, volte para continuar sua jornada e [activá-la em produção](/pt-br/documentacao/fundamentos/).
Depois de criar uma application com seu método preferido, volte para continuar sua jornada e [activá-la em produção](/pt-br/documentacao/produtos/ative-em-producao/).



Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
---
title: Fundamentos
description: >-
Crie uma conta na Azion, adicione as pessoas que trabalham nela, mantenha a
conta segura e entenda o que é cobrado.
meta_tags: >-
conta, fundamentos, faturamento, assinaturas, permissões, times, segurança, conformidade, single sign-on, autenticação multifator
namespace: documentation_fundamentals
permalink: /documentacao/fundamentos/
---

import DocCardGroup from '@aziontech/webkit/doc-card-group'
import DocCard from '@aziontech/webkit/doc-card'

Tudo o que você constrói na Azion fica dentro de uma conta. Esta seção trata da própria conta: como criá-la, quem mais pode trabalhar nela e com quais permissões, como o uso vira uma fatura e quais controles mantêm a conta segura.

Procura o que a plataforma faz? Comece por [Como a Azion funciona](/pt-br/documentacao/plataforma/).

---

<DocCardGroup cols={2}>
<DocCard title="Comece aqui" href="/pt-br/documentacao/fundamentos/criar-uma-conta/" label="Crie uma conta na Azion e faça o primeiro acesso." />
<DocCard title="Contas" href="/pt-br/documentacao/fundamentos/contas/" label="Configurações da conta, clientes, histórico de atividades e seu perfil." />
<DocCard title="Membros e permissões" href="/pt-br/documentacao/fundamentos/teams-permissions/" label="Adicione pessoas à conta e defina o que cada uma pode fazer." />
<DocCard title="Faturamento" href="/pt-br/documentacao/fundamentos/billing-and-subscriptions/" label="Formas de pagamento, faturas e como o uso vira cobrança." />
<DocCard title="Segurança" href="/pt-br/documentacao/fundamentos/multi-factor-authentication/" label="Autenticação multifator, single sign-on, limites de sessão e conformidade." />
<DocCard title="Referência" href="/pt-br/documentacao/fundamentos/migrar-para-a-azion/" label="Migre para a Azion e atualize uma integração para a API v4." />
</DocCardGroup>
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
---
title: Visão geral da Azion Web Platform
title: Como a Azion funciona
description: >-
Esta documentação apresenta a Azion Web Platform e conceitos-chave para ajudar a entender melhor a arquitetura distribuída.
meta_tags: 'Azion, application, jornada, onboarding, templates, domínios, tráfego'
namespace: documentation_azion_platform_overview
permalink: /documentacao/fundamentos/
permalink: /documentacao/plataforma/
---


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ Após a implantação, cada template cria uma nova application e seu domínio Az
Vá para a [página de guias](/pt-br/documentacao/guias/#azion-templates) e verifique mais detalhes sobre o template específico que você quer usar.

:::tip[dica]
Para saber mais sobre como editar e personalizar as configurações principais de sua aplicação, acesse o guia sobre [configuração](/pt-br/documentacao/guias/desenvolvimento-de-aplicacoes/primeiros-passos/definir-configuracoes-principais/) das applications. Você também pode [rodar na rede da Azion](/pt-br/documentacao/fundamentos/), adicionando um domínio personalizado e direcionando seu tráfego.
Para saber mais sobre como editar e personalizar as configurações principais de sua aplicação, acesse o guia sobre [configuração](/pt-br/documentacao/guias/desenvolvimento-de-aplicacoes/primeiros-passos/definir-configuracoes-principais/) das applications. Você também pode [rodar na rede da Azion](/pt-br/documentacao/produtos/ative-em-producao/), adicionando um domínio personalizado e direcionando seu tráfego.
:::


Expand Down
8 changes: 4 additions & 4 deletions src/data/agent-setup.json
Original file line number Diff line number Diff line change
Expand Up @@ -846,8 +846,8 @@
"pt-br": "Visão geral da plataforma"
},
"href": {
"en": "/en/documentation/fundamentals/",
"pt-br": "/pt-br/documentacao/fundamentos/"
"en": "/en/documentation/platform/",
"pt-br": "/pt-br/documentacao/plataforma/"
}
},
"workload": {
Expand All @@ -861,8 +861,8 @@
"pt-br": "Visão geral da plataforma"
},
"href": {
"en": "/en/documentation/fundamentals/",
"pt-br": "/pt-br/documentacao/fundamentos/"
"en": "/en/documentation/platform/",
"pt-br": "/pt-br/documentacao/plataforma/"
}
}
},
Expand Down
2 changes: 1 addition & 1 deletion src/i18n/en/footer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ const listData = [
},
{
title: 'How to start',
link: '/en/documentation/fundamentals/',
link: '/en/documentation/platform/',
},
{
title: 'Pricing',
Expand Down
42 changes: 33 additions & 9 deletions src/nav/resolve.ts
Original file line number Diff line number Diff line change
Expand Up @@ -262,10 +262,21 @@ export function buildNavIndex(data: NavData, lang: Lang): NavIndex {
return byPermalink;
}

function openedTree(node: NavNode, href: string | undefined, ctx: MenuContext): string | undefined {
function inlineTree(data: NavData, node: NavNode): NavTree | undefined {
const tree = node.tree ? data.trees.get(node.tree) : undefined;
return tree?.inline ? tree : undefined;
}

function openedTree(
data: NavData,
node: NavNode,
href: string | undefined,
ctx: MenuContext
): string | undefined {
if (node.href || node.placeholder || !href) return undefined;
const target = ctx.index.get(normalize(href))?.treeId;
return target && target !== ctx.treeId ? target : undefined;
if (!target || target === ctx.treeId) return undefined;
return data.trees.get(target)?.inline ? undefined : target;
}

interface MenuContext {
Expand All @@ -292,10 +303,12 @@ function toMenuNodes(
const label = nodeLabel(data, node, lang);
if (!label) return;

const href = nodeHref(data, node, lang);
const inlined = inlineTree(data, node);
const rows = inlined ? inlined.groups.flatMap((group) => group.items) : node.items;
const href = inlined ? undefined : nodeHref(data, node, lang);
const external = Boolean(node.href);
const children = node.items?.length
? toMenuNodes(data, node.items, lang, id, ctx, [...ancestors, id])
const children = rows?.length
? toMenuNodes(data, rows, lang, id, ctx, [...ancestors, id])
: undefined;

const claimsActive = Boolean(href) && href !== ctx.comingSoonHref;
Expand All @@ -308,7 +321,7 @@ function toMenuNodes(
node.tag ??
(node.page && !hasOwnLanguage(data, node.page, lang) && lang !== 'en' ? 'EN' : undefined);

const opensTree = openedTree(node, href, ctx);
const opensTree = openedTree(data, node, href, ctx);

if (children?.length) {
if (href) {
Expand Down Expand Up @@ -358,6 +371,11 @@ function groupsToMenu(
.filter((group) => group.items.length > 0);
}

function withSectionTitle(groups: MenuGroupNode[], title: string | undefined): MenuGroupNode[] {
if (!title || groups.length === 0 || groups[0].label) return groups;
return [{ ...groups[0], label: title }, ...groups.slice(1)];
}

export function resolveTreeMenus(
data: NavData,
index: NavIndex,
Expand All @@ -367,14 +385,16 @@ export function resolveTreeMenus(
const out: Record<string, MenuGroupNode[]> = {};

for (const tree of data.trees.values()) {
out[tree.id] = groupsToMenu(data, tree.groups, lang, tree.id, {
if (tree.inline) continue;
const groups = groupsToMenu(data, tree.groups, lang, tree.id, {
activePath: '',
activeId: '',
expanded: [],
comingSoonHref,
index,
treeId: tree.id,
});
out[tree.id] = withSectionTitle(groups, text(tree.title, lang));
}

return out;
Expand All @@ -389,7 +409,8 @@ export function resolveSidebar(
): SidebarModel {
const activePath = normalize(pathname);
const location = index.get(activePath);
const tree = location ? data.trees.get(location.treeId) : undefined;
const located = location ? data.trees.get(location.treeId) : undefined;
const tree = located?.inline ? undefined : located;

const ctx: MenuContext = {
activePath,
Expand All @@ -413,7 +434,10 @@ export function resolveSidebar(
}

const back = backRow(data, tree, lang, labels);
const groups = groupsToMenu(data, tree.groups, lang, tree.id, ctx);
const groups = withSectionTitle(
groupsToMenu(data, tree.groups, lang, tree.id, ctx),
text(tree.title, lang)
);
const catalog = groupsToMenu(data, data.root.groups, lang, 'root', {
activePath,
activeId: '',
Expand Down
29 changes: 1 addition & 28 deletions src/nav/root.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,36 +15,9 @@
]
},
{
"label": {
"en": "Platform"
},
"items": [
{
"tree": "applications"
},
{
"tree": "firewall"
},
{
"tree": "connectors"
},
{
"tree": "workloads"
},
{
"tree": "real-time-metrics"
},
{
"tree": "ddos-protection"
},
{
"tree": "custom-pages"
},
{
"tree": "certificate-manager"
},
{
"tree": "load-balancer"
"tree": "platform"
}
]
},
Expand Down
1 change: 1 addition & 0 deletions src/nav/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ export const navTree = z.object({
parent: z.string().min(1).default('root'),
path: localized,
root: z.string().min(1).optional(),
inline: z.boolean().optional(),
groups: z.array(navGroup).min(1),
});

Expand Down
7 changes: 4 additions & 3 deletions src/nav/trees/fundamentals.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,20 @@
"pt-br": "Fundamentos"
},
"description": {
"en": "Accounts, billing and platform basics"
"en": "Accounts, billing, permissions and account security"
},
"parent": "root",
"path": {
"en": "fundamentals",
"pt-br": "fundamentos"
},
"root": "documentation_azion_platform_overview",
"root": "documentation_fundamentals",
"inline": true,
"groups": [
{
"items": [
{
"page": "documentation_azion_platform_overview",
"page": "documentation_fundamentals",
"label": {
"en": "Overview",
"pt-br": "Visão geral"
Expand Down
Loading
Loading