From 5f5a0dcb7b334324ab87d5bc631173d98d3b9a21 Mon Sep 17 00:00:00 2001 From: arthurbarroso Date: Mon, 29 Jun 2020 12:52:43 -0300 Subject: [PATCH 1/3] translation: /mdx/plugins.md --- docs/docs/mdx/plugins.md | 30 ++++++++++-------------------- 1 file changed, 10 insertions(+), 20 deletions(-) diff --git a/docs/docs/mdx/plugins.md b/docs/docs/mdx/plugins.md index dd2dc2a93..a3fa55165 100644 --- a/docs/docs/mdx/plugins.md +++ b/docs/docs/mdx/plugins.md @@ -2,26 +2,21 @@ title: MDX Plugins --- -## Gatsby remark plugins -`gatsby-plugin-mdx` is compatible with all of the [gatsby-remark -plugins](/packages/gatsby-remark-images/?=gatsby-remark), -including +## Plugins Remark do Gatsby +Todos os [plugins gatby-remark](/packages/gatsby-remark-images/?=gatsby-remark) +são compátiveis com o plugin `gatsby-plugin-mdx`. Um exemplo é o plugin [`gatsby-remark-images`](https://next.gatsbyjs.org/packages/gatsby-remark-images/?=gatsby-remark). -To enable `gatsby-remark-images`, you first need to install the relevant -image plugins: - +Para habilitar o `gatsby-remark-images` você deve instalar os plugins de imagem relevantes: ```shell yarn add gatsby-plugin-sharp gatsby-remark-images ``` +(Se você não tem instalado o plugin `gatsby-source-filesystem`, instale-o.) + -If you don't have `gatsby-source-filesystem` installed, also install that. +É importante agora configurar os plugins instalados. O plugin `gatsby-source-filesystem` deve apontar para onde suas imagens se encontram (em disco), já `gatsby-remark-images` deve ser mencionado no array de plugins bem como um sub-plugin de `gatsby-plugin-mdx` e `gatsby-plugin-sharp` pode ser incluído normalmente. -Then configure the plugins. `gatsby-source-filesystem` needs to be -pointed at wherever you have your images on disk, `gatsby-remark-images` -needs to be both a sub-plugin of `gatsby-plugin-mdx`and a string entry in -the plugins array, and `gatsby-plugin-sharp` can be included on its own. ```javascript:title=gatsby-config.js module.exports = { @@ -51,20 +46,15 @@ module.exports = { ], } ``` - -Then, any image in your MDX file will be automatically handled -by Gatsby image processing. +A partir deste ponto o processamento de imagem do Gatsby automaticamente tomará conta de qualquer imagem em seus arquivos `MDX` ```markdown ![my image](./my-awesome-image.png) ``` -## Remark plugins +## Plugins do Remark -You can use [remark plugins](https://github.com/remarkjs/remark/blob/master/doc/plugins.md) -directly if there are transformations you'd like to make on your -MDX documents. This can do anything from adding emoji support to -enforcing a particular title capitalization format. +Você pode usar os [plugins do Remark](https://github.com/remarkjs/remark/blob/master/doc/plugins.md) diretamente se desejar fazer transformações em seus documentos `MDX`. Isso permite fazer coisas desde adicionar suporte a emojis à import um padrão de título. ```javascript:title=gatsby-config.js const capitalize = require(`remark-capitalize`) From d2067326c0d17812348b33e9cd04b81123b757d6 Mon Sep 17 00:00:00 2001 From: arthur <48794198+arthurbarroso@users.noreply.github.com> Date: Tue, 30 Jun 2020 10:45:37 -0300 Subject: [PATCH 2/3] fix: 'import' on line 57 @ docs/mdx/plugins.md fixes `import` to `impor` Co-authored-by: Henrique Miranda --- docs/docs/mdx/plugins.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/docs/mdx/plugins.md b/docs/docs/mdx/plugins.md index a3fa55165..c5e0eaba7 100644 --- a/docs/docs/mdx/plugins.md +++ b/docs/docs/mdx/plugins.md @@ -54,7 +54,7 @@ A partir deste ponto o processamento de imagem do Gatsby automaticamente tomará ## Plugins do Remark -Você pode usar os [plugins do Remark](https://github.com/remarkjs/remark/blob/master/doc/plugins.md) diretamente se desejar fazer transformações em seus documentos `MDX`. Isso permite fazer coisas desde adicionar suporte a emojis à import um padrão de título. +Você pode usar os [plugins do Remark](https://github.com/remarkjs/remark/blob/master/doc/plugins.md) diretamente se desejar fazer transformações em seus documentos `MDX`. Isso permite fazer coisas desde adicionar suporte a emojis à impor um padrão de título. ```javascript:title=gatsby-config.js const capitalize = require(`remark-capitalize`) From a3c0d765222cb58f91837182602681597764d132 Mon Sep 17 00:00:00 2001 From: arthur Date: Sat, 11 Jul 2020 19:31:37 -0300 Subject: [PATCH 3/3] fix typo on gatsby-remark Co-authored-by: Italo --- docs/docs/mdx/plugins.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/docs/mdx/plugins.md b/docs/docs/mdx/plugins.md index c5e0eaba7..fca45baa5 100644 --- a/docs/docs/mdx/plugins.md +++ b/docs/docs/mdx/plugins.md @@ -4,7 +4,7 @@ title: MDX Plugins ## Plugins Remark do Gatsby -Todos os [plugins gatby-remark](/packages/gatsby-remark-images/?=gatsby-remark) +Todos os [plugins gatsby-remark](/packages/gatsby-remark-images/?=gatsby-remark) são compátiveis com o plugin `gatsby-plugin-mdx`. Um exemplo é o plugin [`gatsby-remark-images`](https://next.gatsbyjs.org/packages/gatsby-remark-images/?=gatsby-remark).