Skip to content

renderer: add background colors to callouts#11

Merged
bobheadxi merged 1 commit into
mainfrom
renderer-colors
May 10, 2024
Merged

renderer: add background colors to callouts#11
bobheadxi merged 1 commit into
mainfrom
renderer-colors

Conversation

@bobheadxi

@bobheadxi bobheadxi commented May 10, 2024

Copy link
Copy Markdown
Member

Makes things a little more striking, and closer to how GitHub renders callouts.

Closes #10

Tested in https://github.com/sourcegraph/sourcegraph/pull/62607:

image

@jac jac left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

looks great!

@bobheadxi bobheadxi merged commit b46cb3d into main May 10, 2024
bobheadxi added a commit to sourcegraph/sourcegraph-public-snapshot that referenced this pull request May 10, 2024
…ic formatting (#62607)

Closes CORE-20: adds a small per-service "incident response" section near the alerts reference section of each service, providing some simple starter context and linking to other relevant guidance.

This change also makes some Notion-oriented formatting tweaks: putting all paragraphs on a single line (because of sourcegraph/notionreposync#9) and also rendering callouts with appropriate background colors (sourcegraph/notionreposync#11).

## Test plan

Golden tests, roll out to Notion:

```sh
GITHUB_ACTIONS=true sg msp ops generate-handbook-pages
```

Incident response:

![image](https://github.com/sourcegraph/sourcegraph/assets/23356519/d07e0071-870f-4acb-b4a4-2246b40850a3)

Callouts:

![image](https://github.com/sourcegraph/sourcegraph/assets/23356519/6ec7dbea-cafd-40e0-b50c-780c4e9cbd22)
@bobheadxi bobheadxi deleted the renderer-colors branch May 13, 2024 18:27

@unknwon unknwon left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Nice!

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.

renderer: GitHub-admonition-translated-callouts should have an appropriate background color

3 participants