Skip to content

Commit

Permalink
Merge pull request #123 from CMon/create-adoc-reference-for-dataassets
Browse files Browse the repository at this point in the history
add an anchor to the dataasset
  • Loading branch information
ezavgorodniy authored Dec 7, 2024
2 parents 6af24f5 + 5990bbe commit cc1543d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/report/adocReport.go
Original file line number Diff line number Diff line change
Expand Up @@ -798,7 +798,7 @@ func (adoc adocReport) assetRegister(f *os.File) {
writeLine(f, "")

for _, dataAsset := range sortedDataAssetsByTitle(adoc.model) {
writeLine(f, "<<"+dataAsset.Id+",*"+dataAsset.Title+"*"+">>::")
writeLine(f, "<<dataAsset:"+dataAsset.Id+",*"+dataAsset.Title+"*"+">>::")
writeLine(f, " "+dataAsset.Description)
writeLine(f, "")
}
Expand Down Expand Up @@ -1899,6 +1899,7 @@ func (adoc adocReport) dataAssets(f *os.File) {
suffix += "s"
}
writeLine(f, "<<<")
writeLine(f, "[[dataAsset:"+dataAsset.Id+"]]")
writeLine(f, "== "+colorPrefix+dataAsset.Title+": "+suffix+colorSuffix)
writeLine(f, fixBasicHtml(dataAsset.Description)+"\n\n")

Expand Down

0 comments on commit cc1543d

Please sign in to comment.