-
Notifications
You must be signed in to change notification settings - Fork 31
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
Suggestions for keeping website latest #145
Comments
@LiZhenCheng9527 @hzxuzhonghu what you all think, |
This opensource project https://github.com/prometheus-operator/prometheus-operator, also uses the same approach |
We have script that automatically generate markdown files based on kmeshctl comments. https://github.com/kmesh-net/kmesh/blob/main/hack/gen-kmeshctl-doc.sh What we need is to synchronize these files to the website. Do you have good idea? |
during generating the site |
Taken refrence from the prometheus-operator project https://github.com/prometheus-operator/website/blob/main/synchronize.sh |
@Jayesh0167 can you come up with the plan of how should we implement this, you can take refrence from https://github.com/prometheus-operator/prometheus-operator/tree/main/Documentation and https://github.com/prometheus-operator/website |
@yp969803 hey , yash you can see https://github.com/jayesh9747/kmesh-website-v2/tree/kmesh-v2 . it is same like you want, like me command documentation, and it will build the site, i used docusurus for build the web and maintain comman documentation folder. |
@jayesh9747 i didnt see any method you are using to synchronize the docs from kmesh repository,
|
@jayesh9747 https://github.com/prometheus-operator/website/blob/main/synchronize.sh see this script from the prometheus-operator project, what they are doing is during production or local development, cloning lastest project repository and coping markdown from the project to the content of the website repository. We want a solution like this |
Discussion of automatically synchronizing the documentation for the Kmesh main repo. @yp969803 @jayesh9747 |
@LiZhenCheng9527 as with the solutions i have discussed above, the docs will be only in the kmesh repo , and the migration from the kmesh repo to the website repo will happen using using a script schronize.sh at the time of deployment triggerd by Github actions workflow in kmesh repo. I will come with a end to end plan with automation of most of the stuffs soon currently busy with my exam. |
The contents for the website are stored in https://github.com/kmesh-net/website/tree/main/content
Meanwhile the latests docs are stored in https://github.com/kmesh-net/kmesh/tree/main/docs
Use docs folder from kmesh repo, as a content for the website
If the files in the docs folder is edited, just do Continous Deployment of the website, hence the website will be updated with latest stuffs.
for ex: If a contributor contributes any feature in kmesh, he have to just edit the markdown in the docs folder and the changes are updated to website realtime.
Also generating markdown with comments in gofile, created the issue for this kmesh-net/kmesh#1264
The text was updated successfully, but these errors were encountered: