Skip to content

Commit b5ad26e

Browse files
authored
Merge pull request #2 from grid-x/feat/layout-updates
feat: Match API spec navigation color to theme
2 parents 3649d0c + 5ed55a1 commit b5ad26e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

javascripts/discourse/api-initializers/discourse-rapidoc-theme-component.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,10 @@ async function applyRapidoc(element) {
4545
allow-api-list-style-selection="false"
4646
allow-spec-file-download="true"
4747
allow-authentication="true"
48+
show-method-in-nav-bar="true"
4849
theme="${theme === "dark" ? "dark" : "light"}"
50+
nav-bg-color="${theme === "dark" ? "#323334" : "#ebeced"}"
51+
4952
>
5053
</rapi-doc>
5154
<br/>

0 commit comments

Comments
 (0)