feat(site): Certificate dev links#4390
Merged
Merged
Conversation
…rtifcate-links
Contributor
There was a problem hiding this comment.
Pull request overview
Adds a new Certificates.dev partnership promotion to the VitePress docs theme by rendering a framework-specific link/image in the page aside.
Changes:
- Add a new
CertificatesLinkVue component that selects a Certificates.dev URL based on the current docs route. - Inject the new component into the VitePress theme layout via the
aside-ads-beforeslot. - Update docs head config to include an additional third-party script tag.
Reviewed changes
Copilot reviewed 4 out of 8 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| docs/.vitepress/transformPageData.ts | Changes the VitePress PageData import (currently introduces a runtime import issue). |
| docs/.vitepress/theme/index.ts | Registers CertificatesLink into the docs theme layout (aside-ads-before). |
| docs/.vitepress/theme/components/guide/CertificatesLink.vue | New aside component rendering a framework-specific Certificates.dev link. |
| docs/.vitepress/getHeadConfig.ts | Adds an additional external script to the global head config. |
Comments suppressed due to low confidence (1)
docs/.vitepress/transformPageData.ts:6
PageDatais only used as a type annotation here, but it’s imported as a runtime value. VitePress exportsPageDataas a type-only symbol, so this can lead to a runtime import error or unnecessary JS output. Switch back to a type-only import (e.g.import type { PageData } from 'vitepress').
import { PageData } from 'vitepress';
import getStructuredData from './getStructuredData';
import { createGeneralOGImage, createIconOGImage } from './createOGImage';
export async function transformPageData(pageData: PageData) {
pageData.frontmatter.head ??= [];
💡 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.
Closed partnership with Certificates.dev, added certificates dev links to the aside in pages