Skip to content

Moving external example code to the examples folder #2452

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

Merged
merged 27 commits into from
Jan 26, 2020
Merged

Moving external example code to the examples folder #2452

merged 27 commits into from
Jan 26, 2020

Conversation

garethx
Copy link
Contributor

@garethx garethx commented Jan 22, 2020

@NataliaTepluhina Per my DM, this PR begins to implement the idea of transitioning external code examples to the examples folder to reduce the bus-factor and improve maintainability. These then use CodeSandbox's 'Import from GitHub' feature to load the examples, so people can experiment with the code and running version of the app, while the underlying code for them is in a place anyone can access and edit.

One question about using the examples folder and https://vuejs.org/v2/examples/ - do you know if having folders inside the examples folder will cause issues with the menu of examples on the examples page?

Adding package.json required for import
@garethx
Copy link
Contributor Author

garethx commented Jan 22, 2020

Hmm, https://deploy-preview-2452--vuejs.netlify.com/v2/examples/ looks ok at least.

@NataliaTepluhina
Copy link
Member

@garethx no, we have Hexo where menu is not generated automatically so it should be fine, I will check manually just in case

@NataliaTepluhina
Copy link
Member

@garethx sorry for the delay, just finished a review! Thank you so much for your work, I will go ahead and merge it to master to test if sandboxes are generated properly

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.

2 participants