From 02cd3532fe92e444d6cf5f6e6bf4c3085d7f7732 Mon Sep 17 00:00:00 2001 From: Victor Villarreal Date: Mon, 13 Oct 2025 20:57:36 -0300 Subject: [PATCH] chore: update Dockerfile and docker-compose for Node 22, adjust working directories and ports fix: correct links in documentation for Pinguino IDE and boards chore: refine .gitignore to include VitePress build outputs chore: simplify start/stop scripts by removing pipenv --- .gitignore | 2 +- Dockerfile | 5 +++-- docker-compose.yml | 10 ++++------ site/getting-started/index.md | 2 +- site/index.md | 10 +++++++--- site/language-reference/wiring-base.md | 6 +++--- site/pt/boards/index.md | 2 +- site/pt/getting-started/index.md | 6 +++--- site/pt/news/index.md | 2 +- start | 2 +- stop | 2 +- 11 files changed, 26 insertions(+), 23 deletions(-) diff --git a/.gitignore b/.gitignore index 70ef4e6a1..910ba912e 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,4 @@ Pipfile.lock /node_modules/ - +site/.vitepress/dist/* site/.vitepress/cache/* diff --git a/Dockerfile b/Dockerfile index e55b68f03..56afe647c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,3 +1,4 @@ -FROM node:12-alpine -WORKDIR /usr/src +FROM node:22-alpine +WORKDIR /app +RUN apk add --no-cache git RUN yarn global add vitepress babel-loader diff --git a/docker-compose.yml b/docker-compose.yml index 648028ead..7995f73db 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,5 +1,3 @@ -version: "3" - networks: lan: @@ -7,11 +5,11 @@ services: pinguino-cc: build: . container_name: pinguino-cc - working_dir: /usr/src - command: ["yarn", "start"] + working_dir: /app + command: ["yarn", "start", "--host", "0.0.0.0", "--port", "5173"] networks: - lan ports: - - "8080:8080" + - "5173:5173" volumes: - - ./:/usr/src/ + - ./:/app diff --git a/site/getting-started/index.md b/site/getting-started/index.md index 7465be6a2..d3bf5a040 100644 --- a/site/getting-started/index.md +++ b/site/getting-started/index.md @@ -24,7 +24,7 @@ in your house. Pinguino IDE is cross-platform, it run on Linux, Windows and Mac OS X. With this IDE, you can write, compile and upload code to your board. -[Download and install it](/download/) to start. +[Download and install it](/getting-started/download) to start. Read more about [Pinguino IDE v13](/pinguino-ide-v13/) to learn. ## Pinguino boards diff --git a/site/index.md b/site/index.md index 85a3d14c9..01eb016d1 100644 --- a/site/index.md +++ b/site/index.md @@ -30,7 +30,7 @@ features: ### 1. Get de IDE [Download and install](/getting-started/download) the Pinguino IDE in your computer. Don't known -how to use it? Check the [Pinguino IDE v13 user manual](/pinguino-ide-v13). +how to use it? Check the [Pinguino IDE v13 user manual](/pinguino-ide-v13/index.md). ### 2. Write and compile @@ -52,7 +52,7 @@ void loop() { } ``` -Pinguino boards are programmed using the [Pinguino language](/language-reference), that in turn, +Pinguino boards are programmed using the [Pinguino language](/language-reference/), that in turn, is based on Wiring and Processing Languages. ### 3. Upload @@ -61,6 +61,10 @@ Connect the board to your PC and upload the code. Enjoy! ## :loudspeaker: Announcements +::: tip Oct 2025 +* Thanks to [@erickisos](https://github.com/erickisos) for migrate this site to VitePress. +::: + ::: tip May 2022 * Fixed support for SSD1306 I2C OLED on PIC18Fx550. Thanks to [@PaoloDooM](https://github.com/PaoloDooM) for your [Pull Request #26](https://github.com/PinguinoIDE/pinguino-libraries/pull/26). * We've submitted a talk proposal for [The Linux Foundation Open Source Summit Latin America Conference](https://events.linuxfoundation.org/open-source-summit-latin-america/) ! Cross your finger... @@ -73,7 +77,7 @@ Connect the board to your PC and upload the code. Enjoy! ::: tip April 2021 * Added a new [Wiring Base](/language-reference/wiring-base) Language Reference page. Thanks to [@swhomans](https://github.com/swhomans) for the contribution. * Updated the [8-bit Pinguino Boards](/pinguino-boards/supported-boards-8) page. -* A new [v2.0-beta.2](/download/) Pinguino installer for GNU/Linux has been released ! Thanks to [@iz3gme](https://github.com/iz3gme) for the contribution. +* A new [v2.0-beta.2](/getting-started/download) Pinguino installer for GNU/Linux has been released ! Thanks to [@iz3gme](https://github.com/iz3gme) for the contribution. * New [pt-BR](/pt/) language translation for this website. Thanks to [@luzemario](https://github.com/luzemario) for their contribution. * Added a new [/pinguino-boards/buy](/pinguino-boards/buy) page. If you want to see your Pinguino Board in this page for sell, contact us. * We have a new [Community page](https://github.com/PinguinoIDE/pinguinoide.github.io/discussions) ! diff --git a/site/language-reference/wiring-base.md b/site/language-reference/wiring-base.md index b4b95bda4..4774ecfd7 100644 --- a/site/language-reference/wiring-base.md +++ b/site/language-reference/wiring-base.md @@ -80,7 +80,7 @@ else digitalWrite(0,LOW); // else reset pin 0 LOW IDE defined 'pins' that can read an analog value depend on the device. Typically, if one pin is used as analog input, all remaining analog pins are configured as analog inputs. -See [Pinguino Boards page](/pinguino-boards) for details of pin mapping. +See [Pinguino Boards page](/pinguino-boards/) for details of pin mapping. NB - exceeding an input voltage of 5v (P8) or 3.3v (P32) is likely to destroy the device. ### Relates @@ -265,7 +265,7 @@ void loop() ### Notes The parameter `pin` refers to the IDE defined 'pin', which typically differs from the device physical pin. -See [Pinguino Boards page](/pinguino-boards) for details of pin mapping. +See [Pinguino Boards page](/pinguino-boards/) for details of pin mapping. The relevant pin should be configured as input using `pinMode()`. ### Relates @@ -315,7 +315,7 @@ void loop() { ### Notes The parameter `pin` refers to the IDE defined 'pin', which typically differs from the device physical pin. -See [Pinguino Boards page](/pinguino-boards) for details of pin mapping. +See [Pinguino Boards page](/pinguino-boards/) for details of pin mapping. The parameter `LOW` sets the pin nominally to 0 volts (P8 and P32). The parameter `HIGH` sets the pin nominally to 5 volts (P8) or 3.3 volts (P32). ### Relates diff --git a/site/pt/boards/index.md b/site/pt/boards/index.md index 9fb549bad..d90568f58 100644 --- a/site/pt/boards/index.md +++ b/site/pt/boards/index.md @@ -2,7 +2,7 @@ ::: tip Essa seção é sobre a construção de uma placa. Se você quiser **comprar uma placa**, por favor vá para -[getting-started/02-boards page](/getting-started/02-pinguino-boards). +[getting-started/02-boards page](/pinguino-boards/). ::: O diagrama, formato físico e tamanho de uma placa pode variar e depende de como cada pessoa a desenhou, diff --git a/site/pt/getting-started/index.md b/site/pt/getting-started/index.md index efe84af6b..758135d4e 100644 --- a/site/pt/getting-started/index.md +++ b/site/pt/getting-started/index.md @@ -25,13 +25,13 @@ na sua casa. O IDE do Pinguino é cross-platform, ele roda em Linux, Windows e Mac OS X. Com esse IDE, você pode escrever, compilar e carregar código na sua placa. -[Baixe e instale](/download/) para começar. -Leia mais sobre [Pinguino IDE v13](/getting-started/01-pinguino-ide) para aprender. +[Baixe e instale](/getting-started/download.md) para começar. +Leia mais sobre [Pinguino IDE v13](/pinguino-ide-v13/) para aprender. ## Placas Pinguino As placas Pinguino são uma platafroma de prototipagem eletrônica de hardware aberto, que podem ser -[compradas](/getting-started/02-pinguino-boards), ou [feitas por conta pŕopria (DIY)](/boards). +[compradas](/pinguino-boards/buy.md), ou [feitas por conta pŕopria (DIY)](/pinguino-boards/DIY.md). O Pinguino vem com um USB Bootloader também. Esse pequeno programa rodando dentro do microcontrolador é responsável por transferir sua aplicação do PC para a memória do microcontrolador diff --git a/site/pt/news/index.md b/site/pt/news/index.md index 1f9c89b00..c0b2c1e94 100644 --- a/site/pt/news/index.md +++ b/site/pt/news/index.md @@ -30,4 +30,4 @@ Esperamos que esteja pronta em breve! *25/11/2020* -Já está disponível a versão em Protuguês do Brasil deste site. [Ver agora!](/pt_BR/) +Já está disponível a versão em Protuguês do Brasil deste site. [Ver agora!](/pt/) diff --git a/start b/start index 3104a7f17..06bdb04b9 100755 --- a/start +++ b/start @@ -1,3 +1,3 @@ #!/bin/bash # -pipenv run docker-compose up -d +docker compose up -d diff --git a/stop b/stop index 65920a072..394f5c967 100755 --- a/stop +++ b/stop @@ -1,3 +1,3 @@ #!/bin/bash # -pipenv run docker-compose stop +docker compose stop