Przeglądaj źródła

Docs: Changed absolute paths to relative paths.

Mr.doob 5 miesięcy temu
rodzic
commit
b4842384bc

+ 3 - 3
docs/index.html

@@ -4,9 +4,9 @@
 		<meta charset="utf-8">
 		<title>three.js docs</title>
 		<meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
-		<link rel="shortcut icon" href="/files/favicon_white.ico" media="(prefers-color-scheme: dark)"/>
-		<link rel="shortcut icon" href="/files/favicon.ico" media="(prefers-color-scheme: light)" />
-		<link rel="stylesheet" type="text/css" href="/files/main.css">
+		<link rel="shortcut icon" href="../files/favicon_white.ico" media="(prefers-color-scheme: dark)"/>
+		<link rel="shortcut icon" href="../files/favicon.ico" media="(prefers-color-scheme: light)" />
+		<link rel="stylesheet" type="text/css" href="../files/main.css">
 		<!-- console sandbox -->
 		<script type="module">
 			import * as THREE from '../build/three.module.js';

+ 5 - 5
docs/styles/page.css

@@ -28,7 +28,7 @@
 
 @font-face {
 	font-family: 'Roboto Mono';
-	src: local('Roboto Mono'), local('RobotoMono-Regular'), url('/files/RobotoMono-Regular.woff2') format('woff2');
+	src: local('Roboto Mono'), local('RobotoMono-Regular'), url('../../files/RobotoMono-Regular.woff2') format('woff2');
 	font-style: normal;
 	font-weight: 400;
 }
@@ -37,14 +37,14 @@
 	font-family: 'Inter';
 	font-style: normal;
 	font-weight: 400;
-	src: local('Inter-Regular'), url("/files/Inter-Regular.woff2?v=3.6") format("woff2");
+	src: local('Inter-Regular'), url("../../files/Inter-Regular.woff2?v=3.6") format("woff2");
 }
 
 @font-face {
 	font-family: 'Inter';
 	font-style: normal;
 	font-weight: 600;
-	src: local('Inter-SemiBold'), url("/files/Inter-SemiBold.woff2?v=3.6") format("woff2");
+	src: local('Inter-SemiBold'), url("../../files/Inter-SemiBold.woff2?v=3.6") format("woff2");
 }
 
 html {
@@ -169,7 +169,7 @@ body .copy-btn {
 	width: 24px;
 	height: 24px;
 	background-color: transparent;
-	background-image: url('/files/ic_copy_grey_24dp.svg');
+	background-image: url('../../files/ic_copy_grey_24dp.svg');
 	background-size: contain;
 	background-position: center;
 	background-repeat: no-repeat;
@@ -184,7 +184,7 @@ body .copy-btn:hover {
 body .copy-btn.copied {
 	pointer-events: none;
 	opacity: 1;
-	background-image: url('/files/ic_tick_green_24dp.svg');
+	background-image: url('../../files/ic_tick_green_24dp.svg');
 }
 
 body table {

+ 3 - 3
utils/docs/template/static/index.html

@@ -4,9 +4,9 @@
 		<meta charset="utf-8">
 		<title>three.js docs</title>
 		<meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
-		<link rel="shortcut icon" href="/files/favicon_white.ico" media="(prefers-color-scheme: dark)"/>
-		<link rel="shortcut icon" href="/files/favicon.ico" media="(prefers-color-scheme: light)" />
-		<link rel="stylesheet" type="text/css" href="/files/main.css">
+		<link rel="shortcut icon" href="../files/favicon_white.ico" media="(prefers-color-scheme: dark)"/>
+		<link rel="shortcut icon" href="../files/favicon.ico" media="(prefers-color-scheme: light)" />
+		<link rel="stylesheet" type="text/css" href="../files/main.css">
 		<!-- console sandbox -->
 		<script type="module">
 			import * as THREE from '../build/three.module.js';

+ 5 - 5
utils/docs/template/static/styles/page.css

@@ -28,7 +28,7 @@
 
 @font-face {
 	font-family: 'Roboto Mono';
-	src: local('Roboto Mono'), local('RobotoMono-Regular'), url('/files/RobotoMono-Regular.woff2') format('woff2');
+	src: local('Roboto Mono'), local('RobotoMono-Regular'), url('../../files/RobotoMono-Regular.woff2') format('woff2');
 	font-style: normal;
 	font-weight: 400;
 }
@@ -37,14 +37,14 @@
 	font-family: 'Inter';
 	font-style: normal;
 	font-weight: 400;
-	src: local('Inter-Regular'), url("/files/Inter-Regular.woff2?v=3.6") format("woff2");
+	src: local('Inter-Regular'), url("../../files/Inter-Regular.woff2?v=3.6") format("woff2");
 }
 
 @font-face {
 	font-family: 'Inter';
 	font-style: normal;
 	font-weight: 600;
-	src: local('Inter-SemiBold'), url("/files/Inter-SemiBold.woff2?v=3.6") format("woff2");
+	src: local('Inter-SemiBold'), url("../../files/Inter-SemiBold.woff2?v=3.6") format("woff2");
 }
 
 html {
@@ -169,7 +169,7 @@ body .copy-btn {
 	width: 24px;
 	height: 24px;
 	background-color: transparent;
-	background-image: url('/files/ic_copy_grey_24dp.svg');
+	background-image: url('../../files/ic_copy_grey_24dp.svg');
 	background-size: contain;
 	background-position: center;
 	background-repeat: no-repeat;
@@ -184,7 +184,7 @@ body .copy-btn:hover {
 body .copy-btn.copied {
 	pointer-events: none;
 	opacity: 1;
-	background-image: url('/files/ic_tick_green_24dp.svg');
+	background-image: url('../../files/ic_tick_green_24dp.svg');
 }
 
 body table {

粤ICP备19079148号