Skip to content

Commit

Permalink
Add links to Markdown cheatsheet wherever missing
Browse files Browse the repository at this point in the history
  • Loading branch information
janslifka committed Jan 27, 2025
1 parent 0645a9c commit 55a5377
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ import String.Extra as String
import String.Format as String
import Uuid
import Wizard.Common.AppState as AppState exposing (AppState)
import Wizard.Common.GuideLinks as GuideLinks
import Wizard.Common.Html exposing (linkTo)
import Wizard.Common.Html.Attribute exposing (dataCy, tooltip)
import Wizard.Common.View.Flash as Flash
Expand Down Expand Up @@ -1708,7 +1709,10 @@ viewIntegrationEditor { appState, wrapMsg, eventMsg, integrationPrefabs, editorB
, responseItemId
, FormExtra.mdAfter (gettext "Use this to define an identifier for the item. This will be used in **Item URL** as `${id}` to compose a URL to the found item. You can use properties from the returned item in Jinja2 notation. For example, if the item has a field `id` use `{{item.id}}` here. You can also compose multiple fields together, e.g., `{{item.field1}}-{{item.field2}}`." appState.locale)
, responseItemTemplate
, FormExtra.mdAfter (gettext "This defines how the found items will be displayed for the user. You can use properties from the returned item in Jinja2 notation, you can also use Markdown for some formatting. For example, if the returned item has a field called name, you can use `**{{item.name}}**` to display the name in bold." appState.locale)
, FormExtra.mdAfter
(String.format (gettext "This defines how the found items will be displayed for the user. You can use properties from the returned item in Jinja2 notation, you can also use [Markdown](%s) for some formatting. For example, if the returned item has a field called name, you can use `**{{item.name}}**` to display the name in bold." appState.locale)
[ GuideLinks.markdownCheatsheet appState.guideLinks ]
)
]
]
, itemUrl
Expand Down
1 change: 0 additions & 1 deletion engine-wizard/elm/Wizard/KMEditor/Publish/View.elm
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,6 @@ formView appState form branch =
, Html.map FormMsg <| FormGroup.input appState form "description" <| gettext "Description" appState.locale
, FormExtra.textAfter <| gettext "Short description of the Knowledge Model." appState.locale
, Html.map FormMsg <| FormGroup.markdownEditor appState form "readme" <| gettext "Readme" appState.locale
, FormExtra.textAfter <| gettext "Describe the Knowledge Model, you can use Markdown." appState.locale
]


Expand Down

0 comments on commit 55a5377

Please sign in to comment.