Skip to content
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

Automation script to generate new docs version #540

Merged
merged 3 commits into from
Apr 30, 2024

Conversation

elevran
Copy link
Collaborator

@elevran elevran commented Apr 25, 2024

Automate the creation of a new documentation version.
Process is documented and implemented in hack/gen-doc-version.sh

Needs improvement:

  • order param.versions array correctly (main, new version, previous version, ...) - sed seems limited for this and go-toml packages do not handle comments ;-( Maybe awk or perl could be used or maybe we use Go for all (use os package o run git, https://github.com/adrg/frontmatter for frontmatter, etc.) and clean up comments from the file?
  • add (git) release version to script parameters so it can be auto updated as well?
  • auto update the docs/${NEW_DOCS_VERSION}/_index,md file's frontmatter

Fixes #531

@elevran elevran requested a review from michalmalka as a code owner April 25, 2024 14:31
@elevran elevran requested a review from kfirtoledo April 25, 2024 14:31
@kfirtoledo
Copy link
Collaborator

As we discussed need to open an issue for the manual steps.

elevran added 3 commits April 30, 2024 10:17
Signed-off-by: Etai Lev Ran <elevran@gmail.com>
- TODO: order params.versions correctly (main, new version, previous version, ...)

Signed-off-by: Etai Lev Ran <elevran@gmail.com>
Signed-off-by: Etai Lev Ran <elevran@gmail.com>
@elevran elevran force-pushed the feat/generate-doc-version branch from eac2061 to c3eeaee Compare April 30, 2024 07:17
@elevran elevran merged commit cb085cb into clusterlink-net:main Apr 30, 2024
9 checks passed
@elevran elevran deleted the feat/generate-doc-version branch April 30, 2024 07:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Document/automate process for creating a new release version
2 participants