Skip to content
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

Add local editing workflow #3494

Merged
merged 1 commit into from
Dec 12, 2024
Merged

Add local editing workflow #3494

merged 1 commit into from
Dec 12, 2024

Conversation

hamishwillee
Copy link
Collaborator

@hamishwillee hamishwillee commented Dec 12, 2024

This adds code so that if you're previewing the docs locally you can click on the open in your editor link to open the page in your editor (previously the link was hard coded as an "open in Github" link.

This is only enabled when you're not in CI. The editor is set using an environment variable. For example, in windows you can do set EDITOR=code to open a previewed page in VS Code.

Note, the approach was kindly provided by the VitePress developers in vuejs/vitepress#4293

@hamishwillee hamishwillee merged commit 207cdbb into main Dec 12, 2024
1 check passed
@hamishwillee hamishwillee deleted the pr_add_local_edit_vscode branch December 12, 2024 03:38
Copy link

No flaws found

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