backstage
backstage copied to clipboard
diff's in docs site shouldn't include '+' when copying
See https://backstage.io/docs/auth/#adding-the-provider-to-the-sign-in-page
+ import { githubAuthApiRef } from '@backstage/core-plugin-api';
+ import { SignInProviderConfig, SignInPage } from '@backstage/core-components';
+ const githubProvider: SignInProviderConfig = {
+ id: 'github-auth-provider',
+ title: 'GitHub',
+ message: 'Sign in using GitHub',
+ apiRef: githubAuthApiRef,
+};
Feature Suggestion
When I copy config from the docs I should not have the '+' in my copy
Possible Implementation
Haven't looked but I've seen other tools have this feature, GitHub does it I believe
Context
Copy paste from docs without annoying me
Totally agree, but might be tricky to fix 😅, kind of at the mercy of Docusaurus here. We're currently on v1 and it's possible that v2 has a fix for this, but ofc it might not too. I'd avoid any big customizations that aren't also compatible with v2 atm though, as we ofc do want to move over at some point.
@Rugvip , in the v1 Docusaurus documentation they link to a set of instructions for adding a copy button to code blocks. But the final comment on the instructions say, "Please upgrade to Docusaurus v2 instead!". So I suspect that upgrading might be the move!
As an aside, I added the copy button from those instructions to the microsite, and it still copied the + of the diffs. 🥴
Edit: migration to Docusaurus v2 can be tracked in issue #8329.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
not stale
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
not stale
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Go away
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.