Skip to content

Commit 41cd3f7

Browse files
authored
Merge pull request #2 from ServerlessLLM/fix/relative_path
Fix/relative path
2 parents 6453212 + f03b6ae commit 41cd3f7

File tree

6 files changed

+51
-6
lines changed

6 files changed

+51
-6
lines changed

docs/README.md

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,19 @@ This command generates static content into the `build` directory, which can be s
3636

3737
### About the image path
3838

39-
Images are stored in `images` path. For example, we have an image called `a.jpg` in `images`. When we use this image in any position in the documents, we just use `/img/a.jpg`. (The document sync bot can copy `images` path into `img` folder in `serverlessllm.github.io` repo)
39+
Images are stored in the `images` directory alongside the documentation files. This ensures that each documentation version has its own images, preventing version conflicts.
40+
41+
**Usage:**
42+
- Store images in: `docs/images/` (for Latest) or `versioned_docs/version-X.X.X/images/` (for versioned docs)
43+
- Reference images using relative paths: `./images/filename.jpg`
44+
45+
**Examples:**
46+
```markdown
47+
<!-- Markdown syntax (no width control) -->
48+
![Alt text](./images/a.jpg)
49+
50+
<!-- HTML syntax with sizing (use require for Docusaurus) -->
51+
<img src={require('./images/a.jpg').default} alt="Description" width="256px"/>
52+
```
53+
54+
When you create a new documentation version using `npm run docusaurus docs:version X.X.X`, the images directory is automatically copied with the versioned docs.

docs/intro.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ sidebar_position: 0
55
# Serverless LLM
66

77
<!-- Scaled logo -->
8-
<img src="/img/serverlessllm.jpg" alt="ServerlessLLM" width="256px"/>
8+
<img src={require('./images/serverlessllm.jpg').default} alt="ServerlessLLM" width="256px"/>
99

1010
ServerlessLLM is a **fast** and **easy-to-use** serving system designed for **affordable** multi-LLM serving, also known as LLM-as-a-Service. ServerlessLLM is ideal for environments with multiple LLMs that need to be served on limited GPU resources, as it enables efficient dynamic loading of LLMs onto GPUs. By elastically scaling model instances and multiplexing GPUs, ServerlessLLM can significantly reduce costs compared to traditional GPU-dedicated serving systems while still providing low-latency (Time-to-First-Token, TTFT) LLM completions.
1111

versioned_docs/version-0.7.0/README.md

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,19 @@ This command generates static content into the `build` directory, which can be s
3636

3737
### About the image path
3838

39-
Images are stored in `images` path. For example, we have an image called `a.jpg` in `images`. When we use this image in any position in the documents, we just use `/img/a.jpg`. (The document sync bot can copy `images` path into `img` folder in `serverlessllm.github.io` repo)
39+
Images are stored in the `images` directory alongside the documentation files. This ensures that each documentation version has its own images, preventing version conflicts.
40+
41+
**Usage:**
42+
- Store images in: `docs/images/` (for Latest) or `versioned_docs/version-X.X.X/images/` (for versioned docs)
43+
- Reference images using relative paths: `./images/filename.jpg`
44+
45+
**Examples:**
46+
```markdown
47+
<!-- Markdown syntax (no width control) -->
48+
![Alt text](./images/a.jpg)
49+
50+
<!-- HTML syntax with sizing (use require for Docusaurus) -->
51+
<img src={require('./images/a.jpg').default} alt="Description" width="256px"/>
52+
```
53+
54+
When you create a new documentation version using `npm run docusaurus docs:version X.X.X`, the images directory is automatically copied with the versioned docs.

versioned_docs/version-0.7.0/intro.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ sidebar_position: 0
55
# Serverless LLM
66

77
<!-- Scaled logo -->
8-
<img src="/img/serverlessllm.jpg" alt="ServerlessLLM" width="256px"/>
8+
<img src={require('./images/serverlessllm.jpg').default} alt="ServerlessLLM" width="256px"/>
99

1010
ServerlessLLM is a **fast** and **easy-to-use** serving system designed for **affordable** multi-LLM serving, also known as LLM-as-a-Service. ServerlessLLM is ideal for environments with multiple LLMs that need to be served on limited GPU resources, as it enables efficient dynamic loading of LLMs onto GPUs. By elastically scaling model instances and multiplexing GPUs, ServerlessLLM can significantly reduce costs compared to traditional GPU-dedicated serving systems while still providing low-latency (Time-to-First-Token, TTFT) LLM completions.
1111

versioned_docs/version-0.8.0/README.md

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,19 @@ This command generates static content into the `build` directory, which can be s
3636

3737
### About the image path
3838

39-
Images are stored in `images` path. For example, we have an image called `a.jpg` in `images`. When we use this image in any position in the documents, we just use `/img/a.jpg`. (The document sync bot can copy `images` path into `img` folder in `serverlessllm.github.io` repo)
39+
Images are stored in the `images` directory alongside the documentation files. This ensures that each documentation version has its own images, preventing version conflicts.
40+
41+
**Usage:**
42+
- Store images in: `docs/images/` (for Latest) or `versioned_docs/version-X.X.X/images/` (for versioned docs)
43+
- Reference images using relative paths: `./images/filename.jpg`
44+
45+
**Examples:**
46+
```markdown
47+
<!-- Markdown syntax (no width control) -->
48+
![Alt text](./images/a.jpg)
49+
50+
<!-- HTML syntax with sizing (use require for Docusaurus) -->
51+
<img src={require('./images/a.jpg').default} alt="Description" width="256px"/>
52+
```
53+
54+
When you create a new documentation version using `npm run docusaurus docs:version X.X.X`, the images directory is automatically copied with the versioned docs.

versioned_docs/version-0.8.0/intro.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ sidebar_position: 0
55
# Serverless LLM
66

77
<!-- Scaled logo -->
8-
<img src="/img/serverlessllm.jpg" alt="ServerlessLLM" width="256px"/>
8+
<img src={require('./images/serverlessllm.jpg').default} alt="ServerlessLLM" width="256px"/>
99

1010
ServerlessLLM is a **fast** and **easy-to-use** serving system designed for **affordable** multi-LLM serving, also known as LLM-as-a-Service. ServerlessLLM is ideal for environments with multiple LLMs that need to be served on limited GPU resources, as it enables efficient dynamic loading of LLMs onto GPUs. By elastically scaling model instances and multiplexing GPUs, ServerlessLLM can significantly reduce costs compared to traditional GPU-dedicated serving systems while still providing low-latency (Time-to-First-Token, TTFT) LLM completions.
1111

0 commit comments

Comments
 (0)