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

Fix rendering ERB partial #2575

Merged
merged 1 commit into from
Nov 29, 2023
Merged

Fix rendering ERB partial #2575

merged 1 commit into from
Nov 29, 2023

Conversation

dannymidnight
Copy link
Contributor

@dannymidnight dannymidnight commented Nov 29, 2023

@gchan recently noticed that we've got a some ERB tags rendering on https://buildkite.com/docs/apis/rest-api/builds.

I believe this broke quite a while back. Most likely when we renamed all the md.erb files to .md.

Since there was no markdown in this partial, this PR updates the file extension and md -> html.erb in order for the ERB processor to kick in, and fixes the issue.

We have a single ERB partial that renders a relative timestamps as example input.

This change updates the `render_markdown` partial to support rendering ERB html templates.
@buildkite-docs-bot
Copy link
Contributor

Preview URL: https://2575--bk-docs-preview.netlify.app

Copy link
Contributor

@gchan gchan left a comment

Choose a reason for hiding this comment

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

@dannymidnight dannymidnight merged commit ed403ae into main Nov 29, 2023
1 check passed
@dannymidnight dannymidnight deleted the fix-erb-partial branch November 29, 2023 22:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants