-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sponsor-link
hidden when ad block
present
#866
Comments
sponsor-link
hidden when add block
presentsponsor-link
hidden when ad block
present
Then |
because it is not an ad, and shouldnt be removed |
It |
so if you add sponsor-link to all buttons links in the docs, it is an error or just ads? you should change the name or provide a way to allow ppl configure those links always visible |
Glad we didn't.
The users can always update their matching rules, your proposed solution is not effective always. CSS modules may help (they can still be matched by other ways), but it is still ad from my view, and |
why is it an ad? we are adding the sponsor links for ppl that build the docs for free, we are not linking to external sites, the sponsor links are part of the docs (we want the sponsor links to be on the docs). |
This issue is about the I understand that there may be private sites using VitePress for the purpose you describe, but from the point of view of open source projects it makes no sense to me that we block the links to sponsor the people who have made the website |
Never mind, it's just my personal view, for the team, it seems they want to display sponsor links and also carbon ads always. I suggest to use CSS module for it if you want. |
The same issue happened to https://github.com/antfu/sponsorkit. @JounQin if a project decides to include sponsors links, they shouldn't count as an ad. |
Thanks for the quick fix @brc-dd! |
Describe the bug
When adding
VPTeamMembers
with members with sponsor entry, all sponsor links will be hidden if thead block
addon present in the browser.Reproduction
The branch on Vitest repo: https://github.com/vitest-dev/vitest/tree/userquin/docs-update-theme
If vitest-dev/vitest#1547 merged, just use the main branch.
The
ad block
addon must be installed in the browser to reproduce the issue.Check also last comments on previous PR, failing in Chrome in MacOS.
Remove the
SponsorLinkFix
plugin fromdocs/vite.config.ts
, then:pnpm install
pnpm run docs:serve
Expected behavior
The
sponsor-link
should be always visible.System Info
Additional context
The
SponsorLinkFix
plugin in the Vitest repo just rename any class with thesponsor
key toxsponsor
inVPTeamMembersItem
component: the solution should avoid using thesponsor
key.Validations
The text was updated successfully, but these errors were encountered: