Skip to content

Docs: Fix rendering {{.RepoName}} in generated samplerepo markdown#10233

Open
jere357 wants to merge 1 commit into
treeverse:masterfrom
jere357:fix/samplerepo-markdown-RepoName-bugfix
Open

Docs: Fix rendering {{.RepoName}} in generated samplerepo markdown#10233
jere357 wants to merge 1 commit into
treeverse:masterfrom
jere357:fix/samplerepo-markdown-RepoName-bugfix

Conversation

@jere357
Copy link
Copy Markdown

@jere357 jere357 commented Mar 6, 2026

Closes #NaN

Change Description

Small samplerepo markdown template rendering fix

Background

I encountered this markdown rendering bug when i created my first lakefs repository and decided to add the sample data, hooks, and configuration stuff.
The first 4 chapters correctly rendered my repository name as test-repo-1, meaning the rendered commands were correctly written as lakefs://test-repo1/main.
In the Configuring the actions chapter the templated commands fell back to lakefs://quickstart/add_action which is incorrect.
Some tokens later i located the markdown template and changed it so that it correctly renders your .RepoName in that chapter + testing the action chapter as well.

Bug Fix

In the pkg/samplerepo/assets/sample/README.md.tmpl Configuring the actions + testing the action chapter.

Changed hardcoded quickstart string to {{.RepoName}} to mimic behavior/templating from the chapters that come before it.

How were the changes tested?

i locally rendered the markdowns and it made sense to me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants