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

feat: refactor ADR(s) to conform with MADR style #8

Merged
merged 22 commits into from
Jul 18, 2024

Conversation

abhijith-darshan
Copy link
Contributor

@abhijith-darshan abhijith-darshan commented Jul 15, 2024

This PR aims to follow open ADR standards by following the style of MADR backed by a tooling to easily initialize new ADR(s) with a pre-defined template. There is also the possibility of building a static site out of this and deploy it to GitHub Pages as well.

  • Refactors all available ADR(s) to conform to the style of MADR
  • Uses log4brains tooling to init new ADR(s) with a pre-defined template
  • Fixes several typos
  • Minimal documentation on how to get started to write new ADR(s)

Makefile Usage:

documentation % make init TITLE=test-new-adr PREFIX=cloudoperators

Checking for Node.js...
Checking for log4brains...
Next ADR index: 006
Creating new ADR with title prefix 006-cloudoperators-test-new-adr.md

initialize adr folder with log4brains
update README with how to use log4brains
revert to adr file name consisting three digits
refactor the ADR template to be compatible with the styel of MADR https://adr.github.io/madr/
ADR-1 is refactored to conform with MADR style
Add gitignore file with common ignoring for editor configs
ADR-2 is refactored to conform with MADR style
ADR-3 is refactored to conform with MADR style
ADR-5 is refactored to conform with MADR style. Misc style changes are introduced in this commit for all ADR(s).
When visualized via log4brains UI an index page is added to describe greenhouse ADR(s)
keeps file names in example in lowercase
@abhijith-darshan
Copy link
Contributor Author

@auhlig - Since the ADR(s) were moved from internal repository, I am missing timeline of the created ADR(s). Could you point me to the internal repository, if it exists? Then I can update the timeline of the ADR(s). Currently they all point to yesterday's date.

@abhijith-darshan abhijith-darshan self-assigned this Jul 15, 2024
@abhijith-darshan abhijith-darshan added documentation Improvements or additions to documentation enhancement New feature or request labels Jul 15, 2024
abhijith-darshan and others added 5 commits July 15, 2024 10:17
Add the missing repository and ref to checkout action
Adds creation date of ADR(s)
Adds Makefile to easily lint and create new ADR(s) and updates README for Makefile usage
@abhijith-darshan abhijith-darshan marked this pull request as ready for review July 17, 2024 19:54
@abhijith-darshan abhijith-darshan requested a review from a team as a code owner July 17, 2024 19:54
Copy link
Contributor

@uwe-mayer uwe-mayer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some comments, no blockers.

Nice tooling!


### Team Sync during Deployment

![](./assets/a0b55e95-8ded-47bb-96ce-67729b3f123c.png)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This does not resolve properly when running
log4brains preview
as it tries to serve the image from ./assets
Not sure we can solve this and keep the image in the markdown intact?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, one of the drawbacks...

In a deployed version we would need to copy the assets into .log4brains/out/l4b-static/ and in the markdown reference it as ![my-image](/l4b-static/images/my-image.png)

This will automatically append the next index and `greenhouse` prefix for the ADR and create a new ADR file with the provided title.

> NOTE: You can also override the prefix by passing PREFIX=<greenhouse | cloudoperators | ...>

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Start the webserver

log4brains provides the possibility to serve a web ui showcasing all ADRs in this directory.

Start the web ui from repository root directory as such:

log4brains preview

This will bring up an UI on localhost:4004

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I removed this due to the fact that tables in log4brains and images don't work well. Instead focusing on standardizing ADR(s) template.

These markdowns can be visualized way better in Hugo if we decide to merge the docs and adrs in one location or separately in something like MkDocs in the future.

@abhijith-darshan abhijith-darshan merged commit daf781e into main Jul 18, 2024
1 check passed
@abhijith-darshan abhijith-darshan deleted the feat/refactor-adrs branch July 18, 2024 13:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants