Skip to content

Commit bbfcefd

Browse files
Fix center alignment of IAM policy example label in BYOLLM docs (#43)
* Fix center alignment of IAM policy example label in BYOLLM docs Convert standalone bold text '**Example: AWS Bedrock minimum IAM policy**' to a proper '####' heading so Astro Starlight renders it left-aligned instead of centered. Co-Authored-By: Oz <oz-agent@warp.dev> * Fix all code blocks center-aligned due to figure CSS rule The .sl-markdown-content figure rule in custom.css applied text-align: center to all figures, including the <figure> elements that Expressive Code renders for code blocks. This caused every code block on the site to be center-aligned. Fix by scoping the rule to exclude .expressive-code figures, so only image figures (used for screenshot captions) get the centered treatment. Co-Authored-By: Oz <oz-agent@warp.dev> --------- Co-authored-by: Oz <oz-agent@warp.dev>
1 parent 4cf06d5 commit bbfcefd

2 files changed

Lines changed: 6 additions & 5 deletions

File tree

src/content/docs/enterprise/enterprise-features/bring-your-own-llm.mdx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,7 @@ In the [Admin Panel](/enterprise/team-management/admin-panel/), configure which
8181

8282
Grant your team members the necessary permissions in AWS. Use least-privilege IAM policies.
8383

84-
**Example: AWS Bedrock minimum IAM policy**
85-
86-
```json
84+
```json title="Example: AWS Bedrock minimum IAM policy"
8785
{
8886
"Version": "2012-10-17",
8987
"Statement": [

src/styles/custom.css

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -277,8 +277,11 @@ body {
277277
278278
Caption editorial rules (see AGENTS.md § "Image caption guidelines"):
279279
Orient the reader, don't instruct. Keep under ~20 words. No marketing
280-
language. Don't repeat surrounding prose or list everything visible. */
281-
.sl-markdown-content figure {
280+
language. Don't repeat surrounding prose or list everything visible.
281+
282+
Exclude Expressive Code figures (code blocks) — they render inside a
283+
`.expressive-code` wrapper and must not be center-aligned. */
284+
.sl-markdown-content figure:not(.expressive-code figure) {
282285
margin: 1.5em 0;
283286
text-align: center;
284287
}

0 commit comments

Comments
 (0)