Skip to content

Commit 3ef4c00

Browse files
authored
docs(README): improve README.md formatting and add images (#34)
1 parent 47c3c5f commit 3ef4c00

File tree

7 files changed

+56
-5
lines changed

7 files changed

+56
-5
lines changed

.config/typedoc.css

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ pre {
3434
content: "";
3535
height: 100%;
3636
z-index: -1;
37+
-webkit-backdrop-filter: blur(6px);
3738
backdrop-filter: blur(6px);
3839
}
3940

@@ -84,6 +85,7 @@ pre > button {
8485
padding: 6px 12px;
8586
border-radius: 4px;
8687
cursor: pointer;
88+
-webkit-backdrop-filter: blur(6px);
8789
backdrop-filter: blur(6px);
8890
max-height: calc(100% - 8px * 2);
8991
display: flex;
@@ -204,9 +206,29 @@ h6:not(.tsd-anchor-link, .tsd-returns-title) > a:hover:before {
204206
}
205207

206208
#tsd-search.has-focus .results {
209+
-webkit-backdrop-filter: blur(6px);
207210
backdrop-filter: blur(6px);
208211
}
209212

210213
.container-main {
211214
margin-top: 16px;
212215
}
216+
217+
img[src="assets/logo.roundEdges.png"],
218+
img[src="assets/logo.png"] {
219+
box-shadow: 0px 4px 12px 0px rgb(0 0 0 / 16%), 0px 8px 64px 0px rgb(0 0 0 / 24%);
220+
border-radius: 14px;
221+
}
222+
223+
div[align="center"] > img[alt="Star please"][src="assets/star.please.roundEdges.png"] ~ p[align="right"],
224+
div[align="center"] > img[alt="Star please"][src="assets/star.please.png"] ~ p[align="right"] {
225+
max-width: 360px;
226+
}
227+
div[align="center"] > img[alt="Star please"][src="assets/star.please.roundEdges.png"] ~ p[align="right"]>*,
228+
div[align="center"] > img[alt="Star please"][src="assets/star.please.png"] ~ p[align="right"]>* {
229+
display: none;
230+
}
231+
div[align="center"] > img[alt="Star please"][src="assets/star.please.roundEdges.png"] ~ p[align="right"]>:first-of-type,
232+
div[align="center"] > img[alt="Star please"][src="assets/star.please.png"] ~ p[align="right"]>:first-of-type {
233+
display: block;
234+
}

README.md

Lines changed: 21 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
<div align="center">
2+
<img alt="node-llama-cpp Logo" src="assets/logo.roundEdges.png" width="360px" />
3+
<h1>Node Llama.cpp</h1>
4+
<p>Node.js bindings for llama.cpp</p>
5+
<sub>Pre-built bindings are provided with a fallback to building from source with node-gyp</sub>
6+
<p></p>
7+
</div>
28

3-
# Node Llama.cpp
4-
Node.js bindings for llama.cpp.
5-
6-
<sub>Pre-built bindings are provided with a fallback to building from source with `node-gyp`.<sub>
9+
<div align="center">
710

811
[![Build](https://github.com/withcatai/node-llama-cpp/actions/workflows/build.yml/badge.svg)](https://github.com/withcatai/node-llama-cpp/actions/workflows/build.yml)
912
[![License](https://badgen.net/badge/color/MIT/green?label=license)](https://www.npmjs.com/package/node-llama-cpp)
@@ -312,3 +315,17 @@ Options:
312315
-h, --help Show help [boolean]
313316
-v, --version Show version number [boolean]
314317
```
318+
319+
## Acknowledgements
320+
* llama.cpp: [ggerganov/llama.cpp](https://github.com/ggerganov/llama.cpp)
321+
322+
323+
<br />
324+
325+
<div align="center" width="360">
326+
<img alt="Star please" src="assets/star.please.roundEdges.png" width="360px" margin="auto" />
327+
<br/>
328+
<p align="right">
329+
<i>If you like this repo, star it ✨</i>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
330+
</p>
331+
</div>

assets/logo.png

Lines changed: 3 additions & 0 deletions
Loading

assets/logo.roundEdges.png

Lines changed: 3 additions & 0 deletions
Loading

assets/star.please.png

Lines changed: 3 additions & 0 deletions
Loading

assets/star.please.roundEdges.png

Lines changed: 3 additions & 0 deletions
Loading

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
"prebuild": "rm -rf ./dist ./tsconfig.tsbuildinfo",
4545
"build": "tsc --build tsconfig.json --force",
4646
"addPostinstallScript": "npm pkg set scripts.postinstall=\"node ./dist/cli/cli.js postinstall\"",
47-
"generate-docs": "typedoc",
47+
"generate-docs": "typedoc && cp -r ./assets/*.png ./docs/assets/",
4848
"prewatch": "rm -rf ./dist ./tsconfig.tsbuildinfo",
4949
"watch": "tsc --build tsconfig.json --watch --force",
5050
"node-gyp-llama": "cd llama && node-gyp",

0 commit comments

Comments
 (0)