Skip to content

Commit

Permalink
fix(website): valtio.dev code display issue (#1022)
Browse files Browse the repository at this point in the history
* fixed homepage code example

* added declaration files to get counter example to build

* removed empty declaration files
  • Loading branch information
overthemike authored Dec 18, 2024
1 parent 24753f6 commit f6e424d
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 6 deletions.
2 changes: 2 additions & 0 deletions examples/counter/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@
"preview": "vite preview"
},
"dependencies": {
"@types/lowlight": "^0.0.7",
"highlight.js": "^11.11.0",
"lowlight": "^3.3.0",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-lowlight": "^3.0.1",
Expand Down
35 changes: 35 additions & 0 deletions examples/counter/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 7 additions & 6 deletions website/styles/prism-theme.css
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,14 @@ pre {
}

:not(pre) > code[class*="language-"],
code {
pre[class*="language-"] {
background: #2e3440;
padding: 1em;
}

code:not([class*="language-"]) {
padding: 0.1em 0.3em;
background: #2e3440;
padding: 0.1em;
}

code {
Expand Down Expand Up @@ -164,7 +169,3 @@ blockquote {
.important {
border-left: 5px solid #a3be8c;
}

code {

}

0 comments on commit f6e424d

Please sign in to comment.