Docs Updates #1 - Dependencies#662
Open
bryantgillespie wants to merge 4 commits into
Open
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
There was a problem hiding this comment.
Pull request overview
This PR modernizes the docs site by upgrading dependencies (notably Nuxt), migrating from @nuxt/ui-pro to @nuxt/ui, and improving Open Graph image generation to include richer per-page metadata.
Changes:
- Upgraded Nuxt and related dependencies, including moving from
@nuxt/ui-proto@nuxt/ui. - Refactored page-level metadata (headline/breadcrumb) and updated OG image generation to be more dynamic.
- Updated configuration and styling to align with the new dependency set (Nuxt config, CSS imports, runtime options).
Reviewed changes
Copilot reviewed 12 out of 13 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
server/utils/directus-server.ts |
Simplifies Directus SDK imports and re-exports helper functions/types. |
pnpm-workspace.yaml |
Adds pnpm build-allowlist configuration for native/binary deps. |
package.json |
Updates dependencies/devDependencies and adjusts pnpm overrides. |
nuxt.config.ts |
Migrates module usage/config, adds OG/sitemap zero-runtime, refactors runtime/build settings. |
app/pages/tutorials/[category]/[...slug].vue |
Updates breadcrumb/OG metadata derivation for tutorial pages. |
app/pages/[...slug].vue |
Updates headline/breadcrumb resolution and adds OG metadata for content pages. |
app/components/OgImage/Default.takumi.vue |
Enhances OG image template (optional fields, background, truncation, styling). |
app/components/CopyDocButton.vue |
Refactors UI composition and navigation-to-external actions. |
app/assets/css/main.css |
Switches UI CSS import to @nuxt/ui and normalizes formatting. |
app/app.vue |
Sets default OG image definition via the new component-based approach. |
app/app.config.ts |
Removes uiPro config and reformats related config blocks. |
.env.example |
Adds NUXT_PUBLIC_SITE_URL example value. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR updates all the dependencies to latest versions (mostly to update the Nuxt packages and ditch Nuxt UI PRO now that it's all free) and makes any adjustments to make those updates work. Also fixes the OG images as well. But honestly I'll probably move that to a separate Cloudflare worker in the future because it totally kills the build time.
This pull request makes several improvements and refactors to the documentation site. The most significant changes include switching from
@nuxt/ui-proto@nuxt/ui, enhancing Open Graph (OG) image generation with more dynamic and informative content, and cleaning up related code and configuration. Additionally, the pull request improves code style consistency and error handling throughout the codebase.Migration from
@nuxt/ui-proto@nuxt/ui:@nuxt/ui-prowith@nuxt/uiacross configuration files and CSS imports, simplifying dependencies and aligning with the current UI library. [1] [2]Open Graph (OG) image improvements:
OgImage/Default.takumi.vue) to support optionaltitle,description, andbreadcrumb, added a background image, and improved text styling and truncation. The OG image now dynamically displays relevant page data. [1] [2] [3]Configuration and environment updates:
NUXT_PUBLIC_SITE_URLto.env.examplefor improved environment configuration.app.config.tsandnuxt.config.tsfor better readability and maintainability. [1] [2] [3]Component and code refactoring:
CopyDocButton.vuefor improved readability, consistent use of navigation options, and replacedUButtonGroupwithUFieldGroupfor better UI semantics. [1] [2] [3]Code style and minor improvements:
These changes collectively modernize the codebase, improve maintainability, and enhance the user experience with richer social sharing features and a more robust UI foundation.