-
Notifications
You must be signed in to change notification settings - Fork 126
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
Website setup #798
Comments
Sounds like a good approach, I like it! |
Signed-off-by: Simon Schrottner <[email protected]>
I also like the approach since it:
Great suggestion @aepfli 🚀 |
this is something, which might now be a little bit controversial, but I'll put it here anyways :) it is just a brain dump :) Do we need our dedicated documentation repository for the content? eg. Jekyll and github_pages have their pages branch where they keep the content. Pros:
Cons:
|
Signed-off-by: Simon Schrottner <[email protected]>
I think i discussed that with someone already 🤔 |
We two talked about this. I would only put the webpage into this branch - no other source code, just the page. In our initial discussion, we discussed a long-living branch per minor version, which would be a lot to maintain. This way, the documentation is the only content in there. and instead of copying it to another repository, we would write it to the same repo in another branch. This was a fancy idea of reducing the number of repositories and keeping the source of truth within one. |
Signed-off-by: Simon Schrottner <[email protected]>
Theory craftingWe do have our dev docs within the release workflowAs soon as a new release is created, the docs folder of this release is moved to the If the release is tagged as latest release:
change the version menu generator to look for all docs folders and add them based on their version file, but .
Following snippet would be a version menu created based on folders, rather than configuration
|
3 unrefined versions of building a verison menu:
|
Signed-off-by: Simon Schrottner <[email protected]>
Added Netlify documentation and basic setup for documentation build. relates: keptn#798 Signed-off-by: Simon Schrottner <[email protected]>
Added Netlify documentation and basic setup for documentation build. relates: keptn#798 Signed-off-by: Simon Schrottner <[email protected]>
Added Netlify documentation and basic setup for documentation build. relates: keptn#798 Signed-off-by: Simon Schrottner <[email protected]>
only thing missing before closing this issue is the migration to the live url |
The current website setup needs to be more straightforward and has many unknowns for new users.
Overall the initial setup is fine, but it adds a lot of boilerplate for building it, and pull request verification is also challenging.
Goal
We want to make the Developer Experience for the documentation smoother. Ideally, we separate the content from the layout. And reduce the obvious boilerplate for developers.
Proposal
As Hugo is powerful, we can leverage a lot of Hugo functionality to achieve a leaner structure.
we make the documentation build within this repository with Hugo features, instead of a
git clone
we will include the layout with Hugomodules.config.yaml
todoc
directory and a proper go.mod file (https://gohugo.io/getting-started/configuration/#merge-configuration-from-themes important for proper merging) docs: website build improvements #806use the outcome of the first one to generate an integrated build pipeline within the this repository
improve the main site build
what do we solve with this?
The build is self-contained even in this repository.
We can easily verify that our current version is in a proper status without invoking another repository or build.
Our adaptions within this repository are still relatively low (3 additional files (
go.mod
,go.sum
,config.yaml
) and reduce makefile logic.Additionally, we reduce the need to copy/paste the main branch.
Discuss
related prs:
The text was updated successfully, but these errors were encountered: