Skip to content

i18n(es): update cli.mdx#109

Merged
Adammatthiesen merged 1 commit into
mainfrom
es-03
Apr 21, 2025
Merged

i18n(es): update cli.mdx#109
Adammatthiesen merged 1 commit into
mainfrom
es-03

Conversation

@dreyfus92
Copy link
Copy Markdown
Member

@dreyfus92 dreyfus92 commented Apr 21, 2025

Description

  • What does this PR change? Give us a brief description.
    Updates cli.mdx

Summary by CodeRabbit

  • Documentation
    • Significantly expanded and reorganized the Spanish documentation for StudioCMS CLI tools.
    • Added detailed sections for studiocms, create-studiocms, and the new @studiocms/upgrade commands, including usage examples and options.
    • Improved navigation with a badge for updated content and an enhanced table of contents.
    • Updated references for environment variables and clarified installation instructions.

@dreyfus92 dreyfus92 requested a review from a team as a code owner April 21, 2025 00:23
@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented Apr 21, 2025

Walkthrough

The Spanish documentation for StudioCMS CLI tools was extensively revised and expanded. The update introduces a sidebar badge, a detailed table of contents, and reorganizes the CLI tool sections. The documentation now covers three main commands: studiocms, create-studiocms, and the new @studiocms/upgrade. Each command section provides comprehensive usage details, options, and arguments. The environment variables documentation was removed from this file and replaced with a reference to a dedicated page. Installation instructions and example usages were also updated for clarity and completeness.

Changes

File(s) Change Summary
src/content/docs/es/how-it-works/cli.mdx Major reorganization and expansion of Spanish CLI documentation: added sidebar badge, table of contents, new @studiocms/upgrade command section, expanded studiocms and create-studiocms command details, removed inline environment variable docs.

Sequence Diagram(s)

sequenceDiagram
    participant User
    participant CLI_Docs

    User->>CLI_Docs: Access CLI documentation
    CLI_Docs-->>User: Show sidebar badge and table of contents
    User->>CLI_Docs: View 'studiocms' command details
    CLI_Docs-->>User: Display commands, options, and usage
    User->>CLI_Docs: View 'create-studiocms' command details
    CLI_Docs-->>User: Display interactive options and flags
    User->>CLI_Docs: View '@studiocms/upgrade' section
    CLI_Docs-->>User: Show upgrade instructions and examples
    User->>CLI_Docs: Follow reference to environment variables page
Loading

Possibly related PRs

Suggested labels

i18n

Suggested reviewers

  • Adammatthiesen

Tip

⚡💬 Agentic Chat (Pro Plan, General Availability)
  • We're introducing multi-step agentic chat in review comments and issue comments, within and outside of PR's. This feature enhances review and issue discussions with the CodeRabbit agentic chat by enabling advanced interactions, including the ability to create pull requests directly from comments and add commits to existing pull requests.

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@studiocms-no-reply
Copy link
Copy Markdown
Member

Lunaria Status Overview

🌕 This pull request will trigger status changes.

Learn more

By default, every PR changing files present in the Lunaria configuration's files property will be considered and trigger status changes accordingly.

You can change this by adding one of the keywords present in the ignoreKeywords property in your Lunaria configuration file in the PR's title (ignoring all files) or by including a tracker directive in the merged commit's description.

Tracked Files

File Note
es/how-it-works/cli.mdx Localization changed, will be marked as complete.
Warnings reference
Icon Description
🔄️ The source for this localization has been updated since the creation of this pull request, make sure all changes in the source have been applied.

Copy link
Copy Markdown
Contributor

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🔭 Outside diff range comments (1)
src/content/docs/es/how-it-works/cli.mdx (1)

119-124: ⚠️ Potential issue

⚠️ Inconsistencia en el nombre del comando get-turso.
El título de sección usa get-turso, la lista de comandos también, pero el bloque de uso muestra getTurso. Esto podría confundir al usuario. Unifica a uno de los dos formatos (recomiendo kebab-case: get-turso).

Also applies to: 127-133

🧹 Nitpick comments (14)
src/content/docs/es/how-it-works/cli.mdx (14)

28-33: Recomendación: Usar resaltado de sintaxis más adecuado.
Se está usando ```log como fence, pero para comandos CLI y scripts de terminal es más habitual bash o `shell`. Esto mejorará la legibilidad y accesibilidad:

-```log
+```bash

35-39: Consistencia en la traducción de opciones de color.
Se usa "forzar salida de color" y "deshabilitar salida de color". Para mayor coherencia, sugiero "forzar salida en color" / "deshabilitar salida en color" y unificar mayúsculas iniciales en las descripciones.


41-47: Nitpick: Puntuación y mayúsculas en la lista de comandos.

  • Algunas descripciones terminan con punto y otras no.
  • "Agregar complemento(s) de StudioCMS a tu proyecto" podría simplificarse a "Agregar complementos a tu proyecto".

56-67: Unificar ejecución de scripts entre gestores de paquetes.
Para coherencia, podrías usar npm run, pnpm run y yarn run o bien documentar por qué Yarn y pnpm no requieren run. Ejemplo:

-  pnpm studiocms [comando]
+  pnpm run studiocms [comando]

71-85: Capitalización de "Uso" y formato de argumentos.
En la sección de add usas uso: (minúscula) pero en otros lugares Uso: (mayúscula). Además, encerrar <plugins...> entre backticks garantiza que se destaque como código.


87-99: Ajuste de formato en sección crypto.
Revisa la jerarquía de títulos y asegúrate de que los bloques de código usen la misma convención de fence (bash/shell) y que los títulos “Opciones” y “Comandos” estén unificados con mayúsculas iniciales.


101-115: Mejorar legibilidad de opciones de crypto gen-jwt.
El alineado de descripciones de flags está poco uniforme. Podrías usar dos espacios para separar la bandera de la descripción o alinear manualmente las columnas para facilitar la lectura.


138-146: Verificar mayúsculas en descripciones de init.
Por ejemplo, Modo de prueba (capital M) vs habilitar modo de depuración (minúscula h). Sugiero uniformizar todas las descripciones con mayúscula inicial.


161-161: Consistencia en título de enlace de variables de entorno.
El texto “Variables de Entorno” está en mayúsculas pero la ruta usa minúsculas. Para coherencia editorial, usa “variables de entorno” en minúsculas dentro del texto.

🧰 Tools
🪛 LanguageTool

[typographical] ~161-~161: Mayúsculas y minúsculas recomendadas.
Context: ... entorno, consulta la [documentación de Variables de Entorno][environment-variables].</Re...

(AI_ES_GGEC_REPLACEMENT_CASING_UPPERCASE)


190-193: Asegurar estilo uniforme en lista de comandos de create-studiocms.
Al igual que con studiocms, revisa si el asterisco interactive* debería ir entre backticks o cómo presentas el comando predeterminado para mantener consistencia.


200-212: Agregar versión en Yarn para paridad con npm.
En npm incluyes @latest pero en Yarn omites la versión. Podrías indicar yarn create studiocms@latest para que los ejemplos sean paralelos.


217-231: Mejorar legibilidad de comandos con múltiples flags.
La línea de ejemplo con --template y --project-name es muy larga. Considera usar saltos de línea o mostrar cada flag en una línea separada dentro del bloque de código.


237-237: Nitpick: Simplificar descripción de plantillas.
Podrías acortar la frase eliminando “por ejemplo” o mover el ejemplo a un bloque separado para reducir la longitud del párrafo principal.

🧰 Tools
🪛 LanguageTool

[locale-violation] ~237-~237: Forma correcta si se usa voseo. Si no, utilice una forma alternativa.
Context: ..., disponibles en GitHub. Cuando se usa --template, la CLI busca las plantillas en el rep...

(VOSEO)


[uncategorized] ~237-~237: Probablemente hay un error. Considere aplicar la sugerencia.
Context: ...a studiocms/basics apunta al proyecto basics dentro de la carpeta studiocms...

(AI_ES_GGEC_REPLACEMENT_PUNCTUATION)


[uncategorized] ~237-~237: Probablemente hay un error. Considere aplicar la sugerencia.
Context: ... proyecto basics dentro de la carpeta studiocms en la raíz del repositorio. ### Desglo...

(AI_ES_GGEC_REPLACEMENT_PUNCTUATION)


314-317: Aclaración en descripción de la opción tag.
Podrías mencionar ejemplos de tags válidos (por ejemplo, beta, rc, etc.) para guiar al usuario y evitar confusiones.

🧰 Tools
🪛 LanguageTool

[misspelling] ~316-~316: Posible error de ortografía.
Context: ...### tag (opcional) Es posible pasar un tag específico para resolver paquetes. Si n...

(APOSTROFO_ACENTO)

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 077e53a and c93c94f.

📒 Files selected for processing (1)
  • src/content/docs/es/how-it-works/cli.mdx (3 hunks)
🧰 Additional context used
🪛 LanguageTool
src/content/docs/es/how-it-works/cli.mdx

[misspelling] ~18-18: El plural de las siglas no se marca gráficamente.
Context: ...rom '
/components/ReadMore.astro'; Las CLIs de StudioCMS son utilidades que te perm...

(SIGLAS)


[misspelling] ~20-~20: El plural de las siglas no se marca gráficamente.
Context: ...lidades útiles para StudioCMS. Hay dos CLIs diferentes que son parte del ecosistema...

(SIGLAS)


[uncategorized] ~152-~152: Probablemente hay un error. Considere aplicar la sugerencia.
Context: ...pciones para: - Usa una plantilla de .env de ejemplo - Usa el constructor inte...

(AI_ES_GGEC_REPLACEMENT_PUNCTUATION)


[uncategorized] ~152-~152: Probablemente hay un error. Considere aplicar la sugerencia.
Context: ...- Usa una plantilla de .env de ejemplo - Usa el constructor interactivo de .env...

(AI_ES_GGEC_REPLACEMENT_OTHER)


[uncategorized] ~153-~153: Probablemente hay un error. Considere aplicar la sugerencia.
Context: ... - Usa el constructor interactivo de .env que puede: - Configura una nu...

(AI_ES_GGEC_REPLACEMENT_PUNCTUATION)


[uncategorized] ~156-~156: Probablemente hay un error. Considere aplicar la sugerencia.
Context: ... de cifrado y otras variables requeridas - Omitir la creación del archivo de entorn...

(AI_ES_GGEC_REPLACEMENT_OTHER)


[typographical] ~161-~161: Mayúsculas y minúsculas recomendadas.
Context: ... entorno, consulta la [documentación de Variables de Entorno][environment-variables].</Re...

(AI_ES_GGEC_REPLACEMENT_CASING_UPPERCASE)


[typographical] ~215-~215: Mayúsculas y minúsculas recomendadas.
Context: ... create-studiocms se ejecuta automáticamente en modo _intera...

(AI_ES_GGEC_REPLACEMENT_CASING_LOWERCASE)


[typographical] ~235-~235: Símbolo desparejado: Parece que falta un ‘[’.
Context: ...em> [Consulta la lista completa][templates] de plantillas, disponibles e...

(ES_UNPAIRED_BRACKETS)


[locale-violation] ~237-~237: Forma correcta si se usa voseo. Si no, utilice una forma alternativa.
Context: ..., disponibles en GitHub. Cuando se usa --template, la CLI busca las plantillas en el rep...

(VOSEO)


[uncategorized] ~237-~237: Probablemente hay un error. Considere aplicar la sugerencia.
Context: ...a studiocms/basics apunta al proyecto basics dentro de la carpeta studiocms...

(AI_ES_GGEC_REPLACEMENT_PUNCTUATION)


[uncategorized] ~237-~237: Probablemente hay un error. Considere aplicar la sugerencia.
Context: ... proyecto basics dentro de la carpeta studiocms en la raíz del repositorio. ### Desglo...

(AI_ES_GGEC_REPLACEMENT_PUNCTUATION)


[uncategorized] ~272-~272: Probablemente hay un error. Considere aplicar la sugerencia.
Context: ...ocumentación][turso-docs] de Turso. :::note Windows requiere el uso de WSL según Tur...

(AI_ES_GGEC_REPLACEMENT_OTHER)


[uncategorized] ~289-~289: Probablemente hay un error. Considere aplicar la sugerencia.
Context: ... actualizar tu proyecto oficial de Astro, integraciones al mismo tiempo que actua...

(AI_ES_GGEC_REPLACEMENT_OTHER)


[misspelling] ~316-~316: Posible error de ortografía.
Context: ...### tag (opcional) Es posible pasar un tag específico para resolver paquetes. Si n...

(APOSTROFO_ACENTO)

⏰ Context from checks skipped due to timeout of 90000ms (1)
  • GitHub Check: Run Starlight Link Check
🔇 Additional comments (4)
src/content/docs/es/how-it-works/cli.mdx (4)

7-12: Bien hecho: Metadatos de frontmatter actualizados con ToC y badge.
La inclusión del badge “Actualizado” y la configuración de tableOfContents mejoran la navegación y visibilidad de la fecha de actualización.


22-24: Verificar enlaces internos de la lista de CLI.
Asegúrate de que el ancla #studiocms-upgrade coincide con el ID generado para la sección @studiocms/upgrade. Podría ser necesario ajustar el texto del enlace o el slug de la sección para evitar enlaces rotos.


296-309: Ejemplos de uso de @studiocms-upgrade claros.
Los comandos de npx, pnpm y yarn están bien presentados. Buen trabajo en mostrar las tres opciones.


321-333: Buena cobertura de ejemplos con tags.
La sección muestra correctamente cómo pasar un tag distinto para cada gestor de paquetes.

Comment thread src/content/docs/es/how-it-works/cli.mdx
@Adammatthiesen Adammatthiesen merged commit 274d898 into main Apr 21, 2025
8 checks passed
@Adammatthiesen Adammatthiesen deleted the es-03 branch April 21, 2025 00:47
@coderabbitai coderabbitai Bot mentioned this pull request May 10, 2025
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants