fix: code blocks rendering + consistent styling with ciphera-website /learn
- Convert MDX CodeBlock components to standard markdown code fences - Add rehype-mdx-code-props to pass filename meta to code components - Custom pre/code MDX components map fences to CodeBlock - Add brand color badges (product + category) matching /learn layout - Match prose styling: orange inline code, orange links, white strong - Remove brand color background glow (not in /learn)
This commit is contained in:
@@ -16,7 +16,8 @@ Add the Pulse script to your application layout with a production environment gu
|
||||
|
||||
Use an `if` guard to only load the script in production.
|
||||
|
||||
<CodeBlock filename="app/views/layouts/application.html.erb">{`<!DOCTYPE html>
|
||||
```erb filename="app/views/layouts/application.html.erb"
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
@@ -37,6 +38,7 @@ Use an `if` guard to only load the script in production.
|
||||
<body>
|
||||
<%= yield %>
|
||||
</body>
|
||||
</html>`}</CodeBlock>
|
||||
</html>
|
||||
```
|
||||
|
||||
For more details, see the [Rails layout docs](https://guides.rubyonrails.org/layouts_and_rendering.html).
|
||||
|
||||
Reference in New Issue
Block a user