Skip to content

Commit

Permalink
Use HTML entity
Browse files Browse the repository at this point in the history
  • Loading branch information
JakeSCahill committed Aug 13, 2024
1 parent b815e55 commit f0b804b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
6 changes: 5 additions & 1 deletion src/css/header.css
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,11 @@ html.is-clipped--navbar {
}

.home .navbar-item,
.home .navbar-link {
.home .navbar-link,
.api .navbar-item,
.api .navbar-link,
.status-404 .navbar-item,
.status-404 .navbar-link {
color: #f5f5f5;
}

Expand Down
4 changes: 2 additions & 2 deletions src/helpers/get-api-slots.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ module.exports = (url, { data }) => {

function wrapHtmlWithSlot (htmlContent, slotName) {
if (slotName) {
// Replace all instances of '9' with '/'
const modifiedSlotName = slotName.replace(/9/g, '/')
// Replace all instances of '/' with '/'
const modifiedSlotName = slotName.replace(///g, '/')
return `<div slot="${modifiedSlotName}">${htmlContent}</div>`
}
// Return the content without wrapping if the slot does not match
Expand Down
2 changes: 1 addition & 1 deletion src/layouts/swagger.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
}
</style>
</head>
<body style="padding-top:0; height:100vh;">
<body style="padding-top:0; height:100vh;" class="api">
{{> header}}

<div class="rapidoc-container swagger">
Expand Down

0 comments on commit f0b804b

Please sign in to comment.