-
Notifications
You must be signed in to change notification settings - Fork 0
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
Improve shortcomings of current setup #2
Comments
We could use Disadvantages:
Advantages:
That's quite a different set-up than this template mechanism though. |
Thanks, good suggestion!
The current setup also doesn't do this, but when a build is triggered in a repository it will automatically pick up any changes to the VuePress setup. I do like the idea of pointing to a branch with a git submodule, I actually didn't know that was possible. Still, we'd have to take into account that a push to a repository needs to trigger a rebuild of the site. In a way this feels pretty close to the current setup, while not solving the two pain points of running a doc site locally and importing Vue components with dependencies, so not sure if it's worth the effort. |
Yeah, I agree. I though it pertinent to mention git submodules, as they're a good fit for some of the things we do here. However, it doesn't solve the the issue of being able to run a doc site locally. However, it does allow you to run the main docs locally, with an updated git submodule reference to your branch. Then you can make local changes, push to your branch, run the full docs build and see your changes relatively easily. No need to perform any actions that permanently change anything to any deployed environment. Maybe that's a slight improvement over the current set-up. You won't have to copy files over manually multiple times, only change the git submodule reference once. |
I have another idea to solve this: Why not add a docker-compose file into repo developer.bcc.no which clones bcc-documentation-base into the container and mapps the local data (e.g. developer.bcc.no) into the pace where you need it? @laurensgroeneveld |
Doesn't sound like a bad idea 👍 |
The current setup is fairly simple:
bcc-documentation-base
(this repository)vuepress
folder inbcc-documentation-base
This works quite well for basic documentation that is attached to a repo. To add a VuePress site is only three steps. However there are several shortcomings with this approach:
package.json
in that repository and instead use that one in thevuepress
folder.I'm curious how we can improve on this setup. I think we should keep in mind the following goals for this setup:
I would rather not include VuePress as a dependency in all the other repositories, as it rather defeats the "frictionless" goal (especially when your code isn't Javascript and doesn't have a
package.json
already).One final thing to consider is that some of this sprang forth from a discussion on the developer.bcc.no repository: bcc-code/developer.bcc.no#57 - this repository is a special case as it's intended as a website with generic documentation, without any attached code. Perhaps this repository should not use the same setup as the other repositories. Still, other repositories would benefit from us solving the problems with local running and including Vue components.
The text was updated successfully, but these errors were encountered: