Skip to content

i18n(es): translate studiocms-markdoc, studiocms-mdx , and rendering.mdx documentation files#28

Merged
dreyfus92 merged 2 commits into
mainfrom
es-04
Mar 30, 2025
Merged

i18n(es): translate studiocms-markdoc, studiocms-mdx , and rendering.mdx documentation files#28
dreyfus92 merged 2 commits into
mainfrom
es-04

Conversation

@dreyfus92
Copy link
Copy Markdown
Member

@dreyfus92 dreyfus92 commented Mar 30, 2025

Description

  • What does this PR change? Give us a brief description.
    Translates missing files to spanish 🫡

Summary by CodeRabbit

  • Documentation
    • Added new user guides for integrating the Markdoc plugin, featuring clear installation steps and configuration instructions.
    • Introduced detailed documentation for the MDX plugin, including setup guidance and integration tips.
    • Released a comprehensive overview of the content rendering system, explaining how dynamic pages are retrieved and displayed for a smooth end-user experience.

@dreyfus92 dreyfus92 requested a review from a team as a code owner March 30, 2025 16:17
@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented Mar 30, 2025

Walkthrough

This pull request introduces three new Markdown documentation files for StudioCMS. Two files under the plugins section detail the integration and configuration for the @studiocms/markdoc and @studiocms/mdx plugins with installation instructions and metadata. Another file in the utils folder documents the rendering system, outlining how StudioCMS fetches and processes page data, including handling a 404 scenario.

Changes

File(s) Change Summary
src/.../studiocms-plugins/studiocms-markdoc.mdx
src/.../studiocms-plugins/studiocms-mdx.mdx
New documentation files for StudioCMS plugins, including metadata, installation instructions, and configuration examples.
src/.../utils/rendering.mdx New documentation file describing the StudioCMS rendering workflow, page retrieval, and error handling.

Sequence Diagram(s)

sequenceDiagram
  participant U as User
  participant R as Router
  participant S as StudioCMS SDK
  participant L as Layout Component

  U->>R: Request page (with slug)
  R->>S: Fetch page data using slug
  alt Page exists
      S-->>R: Return page data
      R->>L: Render page with StudioCMSRenderer
      L-->>U: Display rendered content
  else Page not found
      S-->>R: No page found
      R->>U: Redirect to 404 page
  end
Loading

Suggested labels

i18n

Suggested reviewers

  • Adammatthiesen

Poem

I'm a rabbit, hopping with glee,
New docs and plugins for all to see.
Commands and config in a tidy line,
Rendering flows, simply divine.
Code and carrots, today we dine!


🪧 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 plan to trigger planning for file edits and PR creation.
  • @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

studiocms-no-reply commented Mar 30, 2025

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/package-catalog/studiocms-plugins/studiocms-markdoc.mdx Localization added, will be marked as complete.
es/package-catalog/studiocms-plugins/studiocms-mdx.mdx Localization added, will be marked as complete.
es/utils/rendering.mdx Localization added, 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: 0

🧹 Nitpick comments (5)
src/content/docs/es/package-catalog/studiocms-plugins/studiocms-markdoc.mdx (2)

1-11: Frontmatter Metadata and i18n Settings
The YAML frontmatter is well-structured and correctly enables internationalization with i18nReady: true. One small suggestion: consider whether the anglicism “Plugin” used in the sidebar badge (line 9) should be replaced with a fully Spanish term (e.g. “Complemento”) for consistency in a localized document.


16-19: Introduction Text Tone
The introduction text clearly explains the purpose of the MarkDoc integration. For a more consistent and formal presentation, consider replacing “plugin” with “complemento” if that fits your style guidelines.

🧰 Tools
🪛 LanguageTool

[style] ~18-~18: Considere alternativas para este anglicismo (recomendable sobre todo en contextos más formales).
Context: ...ight/components'; # Introducción Este plugin habilita el soporte de MarkDoc dentro d...

(ES_SIMPLE_REPLACE_ANGLICISM_PREMIUM_PLUGIN)

src/content/docs/es/package-catalog/studiocms-plugins/studiocms-mdx.mdx (2)

1-11: Frontmatter Metadata and Localization
The frontmatter correctly marks the document as ready for i18n and contains clear metadata. Similar to the MarkDoc file, consider if the anglicism “Plugin” in the sidebar badge (line 9) should be localized to “Complemento” to maintain consistent language style.


16-19: Introduction and Description Clarity
The introduction succinctly states that the MDX integration is enabled for StudioCMS. As with the previous file, consider adopting a more formal localized term (e.g. “complemento”) for “plugin” if consistency with documentation style is desired.

🧰 Tools
🪛 LanguageTool

[style] ~18-~18: Considere alternativas para este anglicismo (recomendable sobre todo en contextos más formales).
Context: ...ight/components'; # Introducción Este plugin habilita el soporte de MDX dentro de St...

(ES_SIMPLE_REPLACE_ANGLICISM_PREMIUM_PLUGIN)

src/content/docs/es/utils/rendering.mdx (1)

9-12: Explanatory Text and Style Considerations
The descriptive text (especially around line 11) provides a good overview of how the rendering system works in StudioCMS. However, consider:

  • Punctuation: There may be an opportunity to improve readability by adding a comma in complex sentences where appropriate.
  • Anglicisms: Terms like “Layout” and “plugin de constructor de páginas (pageBuilder)” are used; while “Layout” is a component name and may be kept as is, you might review “plugin” for a more formal Spanish alternative if desired.
🧰 Tools
🪛 LanguageTool

[uncategorized] ~11-~11: Probablemente falta una coma.
Context: ...ión de la página, y envolviéndolo en un Layout como lo hacemos con el plugin `@studioc...

(AI_ES_HYDRA_LEO_MISSING_COMMA)


[style] ~11-~11: Considere alternativas para este anglicismo (recomendable sobre todo en contextos más formales).
Context: ...olo en un Layout como lo hacemos con el plugin @studiocms/blog. Por ejemplo, un plug...

(ES_SIMPLE_REPLACE_ANGLICISM_PREMIUM_PLUGIN)


[style] ~11-~11: Considere alternativas para este anglicismo (recomendable sobre todo en contextos más formales).
Context: ...ugin @studiocms/blog. Por ejemplo, un plugin de constructor de páginas (pageBuilder)...

(ES_SIMPLE_REPLACE_ANGLICISM_PREMIUM_PLUGIN)

📜 Review details

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

📥 Commits

Reviewing files that changed from the base of the PR and between b3c2466 and 145c056.

📒 Files selected for processing (3)
  • src/content/docs/es/package-catalog/studiocms-plugins/studiocms-markdoc.mdx (1 hunks)
  • src/content/docs/es/package-catalog/studiocms-plugins/studiocms-mdx.mdx (1 hunks)
  • src/content/docs/es/utils/rendering.mdx (1 hunks)
🧰 Additional context used
🪛 LanguageTool
src/content/docs/es/utils/rendering.mdx

[uncategorized] ~11-~11: Probablemente falta una coma.
Context: ...ión de la página, y envolviéndolo en un Layout como lo hacemos con el plugin `@studioc...

(AI_ES_HYDRA_LEO_MISSING_COMMA)


[style] ~11-~11: Considere alternativas para este anglicismo (recomendable sobre todo en contextos más formales).
Context: ...olo en un Layout como lo hacemos con el plugin @studiocms/blog. Por ejemplo, un plug...

(ES_SIMPLE_REPLACE_ANGLICISM_PREMIUM_PLUGIN)


[style] ~11-~11: Considere alternativas para este anglicismo (recomendable sobre todo en contextos más formales).
Context: ...ugin @studiocms/blog. Por ejemplo, un plugin de constructor de páginas (pageBuilder)...

(ES_SIMPLE_REPLACE_ANGLICISM_PREMIUM_PLUGIN)

src/content/docs/es/package-catalog/studiocms-plugins/studiocms-markdoc.mdx

[style] ~18-~18: Considere alternativas para este anglicismo (recomendable sobre todo en contextos más formales).
Context: ...ight/components'; # Introducción Este plugin habilita el soporte de MarkDoc dentro d...

(ES_SIMPLE_REPLACE_ANGLICISM_PREMIUM_PLUGIN)

src/content/docs/es/package-catalog/studiocms-plugins/studiocms-mdx.mdx

[style] ~18-~18: Considere alternativas para este anglicismo (recomendable sobre todo en contextos más formales).
Context: ...ight/components'; # Introducción Este plugin habilita el soporte de MDX dentro de St...

(ES_SIMPLE_REPLACE_ANGLICISM_PREMIUM_PLUGIN)

🔇 Additional comments (6)
src/content/docs/es/package-catalog/studiocms-plugins/studiocms-markdoc.mdx (2)

13-15: Import Statements Clarity
The import statements are clear and use proper package references. There are no issues with these lines.


20-37: Installation Instructions and Configuration Example
The installation steps are presented in a clear, step-by-step manner. The embedded configuration snippet (lines 28–37) is well-formatted, demonstrating how to import and use the plugin within the Astro configuration file. No changes required here.

src/content/docs/es/package-catalog/studiocms-plugins/studiocms-mdx.mdx (2)

13-15: Import Statements Validity
The imports for PackageManagers and UI components are accurate and well-organized.


20-37: Installation Steps and Code Example
The instructions for installing the MDX package are detailed and the configuration code block (lines 28–37) clearly demonstrates the integration process. Everything looks accurate and easy to follow.

src/content/docs/es/utils/rendering.mdx (2)

1-7: YAML Frontmatter for Rendering Document
The frontmatter is complete and sets a clear title and description for the rendering system documentation. No issues noted here.


13-39: Astro Code Snippet for Dynamic Routing and Rendering
The Astro component code block is clear and follows best practices:

  • It correctly extracts and defaults the slug parameter.
  • The use of studioCMS_SDK.GET.databaseEntry.pages.bySlug(slug) properly retrieves the page data.
  • The redirection to a 404 page when the page is not found is handled logically.
  • The Layout component wraps the content appropriately, and StudioCMSRenderer receives the page data without issues.
    Everything is well-implemented.

@dreyfus92 dreyfus92 merged commit 91ca02a into main Mar 30, 2025
@dreyfus92 dreyfus92 deleted the es-04 branch March 30, 2025 16:31
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