Skip to content

feat: render markdown#41

Merged
dbolson merged 3 commits intomainfrom
sc-237279/render-markdown
Mar 20, 2024
Merged

feat: render markdown#41
dbolson merged 3 commits intomainfrom
sc-237279/render-markdown

Conversation

@dbolson
Copy link
Copy Markdown
Contributor

@dbolson dbolson commented Mar 20, 2024

Render SDK instructions as markdown.

before:
Screenshot 2024-03-20 at 10 59 31 AM
after:
Screenshot 2024-03-20 at 10 59 41 AM

@shortcut-integration
Copy link
Copy Markdown

This pull request has been linked to Shortcut Story #237279: show sample code in setup wizard.

@dbolson dbolson changed the title Sc 237279/render markdown feat: render markdown Mar 20, 2024
Comment thread internal/setup/wizard.go
return fmt.Sprintf("\nstep %d of %d\n"+m.steps[m.currStep].View(), m.currStep+1, len(m.steps))
}

func (m WizardModel) renderMarkdown() string {
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

There's a good chance we could simplify this. We could also update this to get the markdown from github directly instead of keeping the files locally.

Copy link
Copy Markdown
Contributor

@k3llymariee k3llymariee left a comment

Choose a reason for hiding this comment

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

👏👏👏

just one small change show we can update the flag name in the instructions file

```go
const sdkKey = "1234567890abcdef"

const featureFlagKey = "my-flag"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

could we change this to my-flag-key so the strings.ReplaceAll works for this file also (below also)

@dbolson dbolson merged commit 83837ad into main Mar 20, 2024
@dbolson dbolson deleted the sc-237279/render-markdown branch March 20, 2024 18:42
This was referenced Mar 20, 2024
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