Skip to content

fix: doc config for utoopack node api - #6

Merged
fireairforce merged 1 commit into
mainfrom
fix-docsss
Feb 24, 2026
Merged

fireairforce merged 1 commit into
mainfrom
fix-docsss

Conversation

@fireairforce

Copy link
Copy Markdown
Member

@vercel

vercel Bot commented Feb 24, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
site Ready Ready Preview, Comment Feb 24, 2026 7:40am

Request Review

@gemini-code-assist

Copy link
Copy Markdown

Summary of Changes

Hello @fireairforce, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request updates the documentation examples for the @utoo/pack Node.js API to align with recent changes in its configuration structure. The build and dev functions now expect their options to be encapsulated within a config object, ensuring the provided code snippets accurately reflect the current API usage.

Highlights

  • API Configuration Update: The build and dev functions from @utoo/pack now require their parameters to be nested within a config object.
  • Documentation Alignment: Updated the documentation examples for both English and Chinese versions to reflect the new API configuration structure.
  • mode parameter removal: The mode parameter (e.g., "production", "development") has been removed from the configuration examples, indicating it might no longer be directly passed or is handled implicitly.
Changelog
  • content/en/utoopack/index.mdx
    • Updated the build function call to wrap configuration parameters in a config object.
    • Updated the dev function call to wrap configuration parameters in a config object.
    • Removed the mode parameter from both build and dev function examples.
  • content/zh/utoopack/index.mdx
    • Updated the build function call to wrap configuration parameters in a config object.
    • Updated the dev function call to wrap configuration parameters in a config object.
    • Removed the mode parameter from both build and dev function examples.
Activity
  • No human activity has been recorded for this pull request.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution. ↩

@fireairforce

Copy link
Copy Markdown
Member Author

Thanks for the feedback from @chenjiahan

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Code Review

This pull request updates the documentation examples for the @utoo/pack build and dev functions, introducing a config object for their parameters. However, the mode property, which is essential for defining the build environment, was inadvertently removed from these examples and not re-included within the new config object. This creates an inconsistency with the config.mdx documentation, which currently shows mode as a top-level property for the programmatic API. The examples should be updated to correctly include the mode property, either within the config object (if the API has changed to fully nest all options) or at the top level, to ensure accurate API usage guidance.

Comment thread content/en/utoopack/index.mdx Resolved
Comment thread content/en/utoopack/index.mdx Resolved
Comment thread content/zh/utoopack/index.mdx Resolved
Comment thread content/zh/utoopack/index.mdx Resolved
@fireairforce
fireairforce merged commit f29cd0e into main Feb 24, 2026
2 checks passed

This branch was successfully deployed

1 active deployment
Preview — 10564151 Deployed Feb 24, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant