Add last update, cover images and new code theme

This commit is contained in:
Leonardo Murça 2024-03-25 14:30:54 -03:00
parent c0f88a257a
commit d469e41989
17 changed files with 44 additions and 6 deletions

View file

@ -5,7 +5,7 @@ defaultContentLanguage='en'
enableRobotsTXT = true
# Code Highlight
pygmentsstyle = "github"
pygmentsstyle = "gruvbox"
pygmentscodefences = true
pygmentscodefencesguesssyntax = true

View file

@ -0,0 +1,6 @@
---
title: "Demystifying ViewModel Testing: Strategies for Crafting Test-Friendly ViewModels"
date: 2024-03-25T10:54:21-03:00
featured_image: "/img/demystifying-viewmodel-testing.webp"
draft: true
---

View file

@ -1,11 +1,14 @@
---
title: "How to Access Test Only Files From Unit and Instrumented Test Packages"
date: 2022-02-19
lastmod: 2024-03-24
description: "Learn how to make files available from different test packages in Android development."
featured_image: "/img/how-to-access-test-only-files-from-unit-and-instrumented-test-packages/featured_image.webp"
draft: false
---
![Arara-canindé with one wing opened](/img/how-to-access-test-only-files-from-unit-and-instrumented-test-packages/cover-image-1.webp)
## TL;DR
Create a directory called `testCommon` and add the code below to your `build.gradle` file.

View file

@ -1,11 +1,14 @@
---
title: "How to Deploy React Applications Using Github Actions + Rsync"
date: 2022-10-15T15:30:22-03:00
lastmod: 2024-03-24
description: "Learn how to easily deploy a react application"
featured_image: "/img/how-to-deploy-react-applications-using-github-actions-+-rsync/featured_image.webp"
draft: false
---
![Cat with yellow eyes](/img/how-to-deploy-react-applications-using-github-actions-+-rsync/cover-image-1.webp)
Source code and deployed app used for this post:
- [rsync-deploy-react-app](https://github.com/leomurca/rsync-deploy-react-app);
- [tutorials.leomurca.xyz/rsync-deploy-react-app](https://tutorials.leomurca.xyz/rsync-deploy-react-app/);
@ -78,7 +81,7 @@ I recognize these tools have their advantages, but have found that for small to
I've created an demo app to deploy it to my server. Its source code is available at [rsync-deploy-react-app](https://github.com/leomurca/rsync-deploy-react-app).
![React Application Screenshot](/img/how-to-deploy-react-applications-using-github-actions-+-rsync/app-screenshot-1.webp)
![React Application Screenshot](/img/how-to-deploy-react-applications-using-github-actions-+-rsync/app-screenshot-2.webp)
## Server Setup
@ -240,7 +243,7 @@ jobs:
That's it! Change some code, push it to the main branch and see the magic happening!
![Github action screenshot](/img/how-to-deploy-react-applications-using-github-actions-+-rsync/github-action-screenshot-2.webp)
![Github action screenshot](/img/how-to-deploy-react-applications-using-github-actions-+-rsync/github-action-screenshot-3.webp)
Also, if you want to have more details on the action steps, please check the [actions-executed](https://github.com/leomurca/rsync-deploy-react-app/actions) during this article.

View file

@ -1,12 +1,15 @@
---
title: "How to Push to Multiple Git Remotes With One Command"
date: 2022-10-11T16:51:53-03:00
lastmod: 2024-03-24
description: "Learn how to how to manage multiple remote repositories with git (terminal)."
featured_image: "/img/how-to-push-to-multiple-git-remotes-with-one-command/featured_image.webp"
draft: false
---
![Yellow roses](/img/how-to-push-to-multiple-git-remotes-with-one-command/cover-image-1.webp)
Repositories used for the tutorial:
- [gh-remote](https://github.com/leomurca/gh-remote);
- [gl-remote](https://gitlab.com/leomurca/gl-remote.git).

View file

@ -1,11 +1,14 @@
---
title: "Como acessar arquivos de teste de diferentes pacotes de teste (Unit e Instrumented) em Android"
date: 2022-02-19
lastmod: 2024-03-24
description: "Aprenda como acessar arquivos de teste de diferentes pacotes de teste (Unit e Instrumented) em Android."
featured_image: "/img/how-to-access-test-only-files-from-unit-and-instrumented-test-packages/featured_image.webp"
draft: false
---
![Arara-canindé com uma asa aberta](/img/how-to-access-test-only-files-from-unit-and-instrumented-test-packages/cover-image-1.webp)
## TL;DR
Crie um diretório chamado `testCommon` e adicione o trecho de código abaixo ao seu arquivo `build.gradle`.

View file

@ -1,11 +1,14 @@
---
title: "Como fazer o deploy de aplicativos React usando Github Actions + Rsync"
date: 2022-10-15T15:30:22-03:00
lastmod: 2024-03-24
description: "Aprenda como fazer o deploy de aplicativos React usando Github Actions + Rsync"
featured_image: "/img/how-to-deploy-react-applications-using-github-actions-+-rsync/featured_image.webp"
draft: false
---
![Gato com olhos amarelos](/img/how-to-deploy-react-applications-using-github-actions-+-rsync/cover-image-1.webp)
Código fonte e aplicação em produção utilizado nesse post:
- [rsync-deploy-react-app](https://github.com/leomurca/rsync-deploy-react-app);
- [tutorials.leomurca.xyz/rsync-deploy-react-app](https://tutorials.leomurca.xyz/rsync-deploy-react-app/);
@ -80,7 +83,7 @@ Reconheço que essas ferramentas têm suas vantagens, mas descobri que, para pro
Criei um aplicativo de demonstração para fazer o deploy em meu servidor. Seu código-fonte está disponível em [rsync-deploy-react-app](https://github.com/leomurca/rsync-deploy-react-app).
![Screenshot da aplicação escrita em React](/img/how-to-deploy-react-applications-using-github-actions-+-rsync/app-screenshot-1.webp)
![Screenshot da aplicação escrita em React](/img/how-to-deploy-react-applications-using-github-actions-+-rsync/app-screenshot-2.webp)
## Setup do servidor
@ -242,7 +245,7 @@ jobs:
É isso! Altere algum código, envie-o para o branch principal e veja a mágica acontecendo!
![Captura de tela da action no Github](/img/how-to-deploy-react-applications-using-github-actions-+-rsync/github-action-screenshot-2.webp)
![Captura de tela da action no Github](/img/how-to-deploy-react-applications-using-github-actions-+-rsync/github-action-screenshot-3.webp)
Além disso, se você quiser obter mais detalhes sobre as etapas da ação, verifique as [ações executadas](https://github.com/leomurca/rsync-deploy-react-app/actions) durante este artigo.

View file

@ -1,11 +1,14 @@
---
title: "Como fazer push para múltiplos repositórios no git com apenas 1 comando"
date: 2022-10-11T16:51:53-03:00
lastmod: 2024-03-24
description: "Aprenda como fazer push para múltiplos repositórios no git com apenas 1 comando (terminal)."
featured_image: "/img/how-to-push-to-multiple-git-remotes-with-one-command/featured_image.webp"
draft: false
---
![Rosas amarelas](/img/how-to-push-to-multiple-git-remotes-with-one-command/cover-image-1.webp)
Repositório utilizados neste tutorial:
- [gh-remote](https://github.com/leomurca/gh-remote);
- [gl-remote](https://gitlab.com/leomurca/gl-remote.git).

View file

@ -12,6 +12,8 @@
other="Freelance and side projects."
[posted-on]
other="Posted on "
[last-update]
other="Last update "
[posts]
other="Posts"
[post-date-format]

View file

@ -12,6 +12,8 @@
other="Freelance e projetos paralelos."
[posted-on]
other="Publicado em "
[last-update]
other="Última atualização "
[posts]
other="Publicações"
[post-date-format]

View file

@ -2,7 +2,10 @@
<main id="main">
<article>
<h1 class="title">{{ .Title }}</h1>
<p class="posted-on">{{ i18n "posted-on"}}{{ dateFormat (i18n "single-post-date-format") .Date }}</p>
<p class="posted-on"><strong>{{ i18n "posted-on"}}</strong>{{ dateFormat (i18n "single-post-date-format") .Date }}</p>
{{ if ne .Date .Lastmod }}
<p class="last-update"><strong>{{ i18n "last-update"}}</strong>{{ dateFormat (i18n "single-post-date-format") .Lastmod }}</p>
{{ end }}
<section class="body">
{{ .Content }}
</section>

View file

@ -301,6 +301,13 @@ footer p {
.posted-on {
font-style: italic;
color: #2f3335;
margin-bottom: 0;
}
.last-update {
margin-top: 0;
font-style: italic;
color: #2f3335;
}
/* "Hide" checkbox -- moves it off screen*/

Binary file not shown.

After

Width:  |  Height:  |  Size: 38 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 60 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 65 KiB