Skip to content

Commit b484238

Browse files
committed
Docs: Changed absolute paths to relative paths.
1 parent 6618a69 commit b484238

File tree

4 files changed

+16
-16
lines changed

4 files changed

+16
-16
lines changed

docs/index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
<meta charset="utf-8">
55
<title>three.js docs</title>
66
<meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
7-
<link rel="shortcut icon" href="/files/favicon_white.ico" media="(prefers-color-scheme: dark)"/>
8-
<link rel="shortcut icon" href="/files/favicon.ico" media="(prefers-color-scheme: light)" />
9-
<link rel="stylesheet" type="text/css" href="/files/main.css">
7+
<link rel="shortcut icon" href="../files/favicon_white.ico" media="(prefers-color-scheme: dark)"/>
8+
<link rel="shortcut icon" href="../files/favicon.ico" media="(prefers-color-scheme: light)" />
9+
<link rel="stylesheet" type="text/css" href="../files/main.css">
1010
<!-- console sandbox -->
1111
<script type="module">
1212
import * as THREE from '../build/three.module.js';

docs/styles/page.css

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828

2929
@font-face {
3030
font-family: 'Roboto Mono';
31-
src: local('Roboto Mono'), local('RobotoMono-Regular'), url('/files/RobotoMono-Regular.woff2') format('woff2');
31+
src: local('Roboto Mono'), local('RobotoMono-Regular'), url('../../files/RobotoMono-Regular.woff2') format('woff2');
3232
font-style: normal;
3333
font-weight: 400;
3434
}
@@ -37,14 +37,14 @@
3737
font-family: 'Inter';
3838
font-style: normal;
3939
font-weight: 400;
40-
src: local('Inter-Regular'), url("/files/Inter-Regular.woff2?v=3.6") format("woff2");
40+
src: local('Inter-Regular'), url("../../files/Inter-Regular.woff2?v=3.6") format("woff2");
4141
}
4242

4343
@font-face {
4444
font-family: 'Inter';
4545
font-style: normal;
4646
font-weight: 600;
47-
src: local('Inter-SemiBold'), url("/files/Inter-SemiBold.woff2?v=3.6") format("woff2");
47+
src: local('Inter-SemiBold'), url("../../files/Inter-SemiBold.woff2?v=3.6") format("woff2");
4848
}
4949

5050
html {
@@ -169,7 +169,7 @@ body .copy-btn {
169169
width: 24px;
170170
height: 24px;
171171
background-color: transparent;
172-
background-image: url('/files/ic_copy_grey_24dp.svg');
172+
background-image: url('../../files/ic_copy_grey_24dp.svg');
173173
background-size: contain;
174174
background-position: center;
175175
background-repeat: no-repeat;
@@ -184,7 +184,7 @@ body .copy-btn:hover {
184184
body .copy-btn.copied {
185185
pointer-events: none;
186186
opacity: 1;
187-
background-image: url('/files/ic_tick_green_24dp.svg');
187+
background-image: url('../../files/ic_tick_green_24dp.svg');
188188
}
189189

190190
body table {

utils/docs/template/static/index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
<meta charset="utf-8">
55
<title>three.js docs</title>
66
<meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
7-
<link rel="shortcut icon" href="/files/favicon_white.ico" media="(prefers-color-scheme: dark)"/>
8-
<link rel="shortcut icon" href="/files/favicon.ico" media="(prefers-color-scheme: light)" />
9-
<link rel="stylesheet" type="text/css" href="/files/main.css">
7+
<link rel="shortcut icon" href="../files/favicon_white.ico" media="(prefers-color-scheme: dark)"/>
8+
<link rel="shortcut icon" href="../files/favicon.ico" media="(prefers-color-scheme: light)" />
9+
<link rel="stylesheet" type="text/css" href="../files/main.css">
1010
<!-- console sandbox -->
1111
<script type="module">
1212
import * as THREE from '../build/three.module.js';

utils/docs/template/static/styles/page.css

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828

2929
@font-face {
3030
font-family: 'Roboto Mono';
31-
src: local('Roboto Mono'), local('RobotoMono-Regular'), url('/files/RobotoMono-Regular.woff2') format('woff2');
31+
src: local('Roboto Mono'), local('RobotoMono-Regular'), url('../../files/RobotoMono-Regular.woff2') format('woff2');
3232
font-style: normal;
3333
font-weight: 400;
3434
}
@@ -37,14 +37,14 @@
3737
font-family: 'Inter';
3838
font-style: normal;
3939
font-weight: 400;
40-
src: local('Inter-Regular'), url("/files/Inter-Regular.woff2?v=3.6") format("woff2");
40+
src: local('Inter-Regular'), url("../../files/Inter-Regular.woff2?v=3.6") format("woff2");
4141
}
4242

4343
@font-face {
4444
font-family: 'Inter';
4545
font-style: normal;
4646
font-weight: 600;
47-
src: local('Inter-SemiBold'), url("/files/Inter-SemiBold.woff2?v=3.6") format("woff2");
47+
src: local('Inter-SemiBold'), url("../../files/Inter-SemiBold.woff2?v=3.6") format("woff2");
4848
}
4949

5050
html {
@@ -169,7 +169,7 @@ body .copy-btn {
169169
width: 24px;
170170
height: 24px;
171171
background-color: transparent;
172-
background-image: url('/files/ic_copy_grey_24dp.svg');
172+
background-image: url('../../files/ic_copy_grey_24dp.svg');
173173
background-size: contain;
174174
background-position: center;
175175
background-repeat: no-repeat;
@@ -184,7 +184,7 @@ body .copy-btn:hover {
184184
body .copy-btn.copied {
185185
pointer-events: none;
186186
opacity: 1;
187-
background-image: url('/files/ic_tick_green_24dp.svg');
187+
background-image: url('../../files/ic_tick_green_24dp.svg');
188188
}
189189

190190
body table {

0 commit comments

Comments
 (0)