-
Notifications
You must be signed in to change notification settings - Fork 691
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
Setup .gitpod.yml for super simple web based editing and live preview. #134
Comments
So I tried out GitPod and it's really very cool -- but I feel weird adding another .yml file to the repo for a separate service that isn't in our main deploy path. What about adding it to the docs as an option, especially since you don't even need a .yml file -- connecting GitPod to your repo gives you the option to just copy/paste it into the prebuild UI. |
@emckean That's interesting, I didn't see the copy/paste option for that. I am also not sure how you update the version of Hugo specified or any of those other settings once you have done that, outside of modifying the .yml file in the repo. |
Only people who have write permissions for a given repo can do that. If you don't want the Another idea is a solution less known: https://github.com/gitpod-io/definitely-gp to store |
Yeah, my experience is that the gitpod.yml in the repo is valuable because it does define the build tools, docker file, etc. that are used in the development environment for editors/developers to use with the web IDE. If you don't have write permissions, Gitpod will automatically fork the repo and help set up a Merge/Pull Request from the personal fork back into the source repo. Making contributions back to the project super simple. I get the sensitivity to not including something that is not in the primary build tools, but I think that provides someone with an almost one-click option to greatly improve the developer experience which in my opinion is more important than the build tooling setup. This file will allow someone to click the button to use this template and then immediately jump into the web IDE and start working on their new site with live editing/preview. Without a moment spent installing anything on their machine, setting up the proper git permissions for the project locally, etc. It makes it too easy to use, and that's an important thing I look for in a template to help me get started. Having said all that, I'll defer to your choice. I will say that this file will definitely be in The Good Docs 'easy-button' project. 😊 |
Those are some good points ... 🤔 I'll bring this up w/some of the other folks and see what they think! |
It might be nice in this repo to provide a starting .gitpod.yml file that will run the example site in GitPod.io.
This would let people clone the site and then jump directly into editing and live preview of their new site without Docker, local installs of anything, etc.
Here is an example that works great with a Hugo+Docsy site I have setup.
Because I am using the klakegg/hugo image, I don't need to set
--bind=0.0.0.0
as a parameter for the command. Otherwise, the--bind
parameter is necessary to get Hugo's Live Reload feature to work correctly.The text was updated successfully, but these errors were encountered: