Skip to content

Commit 162bb0c

Browse files
committed
fix: use absolute link to webres to remove it as a local build requirement
1 parent 1ac8761 commit 162bb0c

File tree

4 files changed

+12
-12
lines changed

4 files changed

+12
-12
lines changed

_includes/head.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
{%- endif -%}
4747
<link href="{{ docFullPath }}{{ targetUrl }}" rel="canonical">
4848

49-
{%- assign assetsPath = '/webres/wwwroot' -%}
49+
{%- assign assetsPath = 'https://www.dynamsoft.com/webres/wwwroot' -%}s
5050

5151
<link rel="preload" as="font" href="{{ site.assets }}font-face/Oswald-Regular.ttf" type="font/ttf" crossorigin="anonymous">
5252
<link rel="preload" as="font" href="{{ site.assets }}font-face/OpenSans-Regular.woff" type="font/woff" crossorigin="anonymous">

_includes/trialLicense.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{%- assign assetsPath = '/webres/wwwroot' -%}
1+
{%- assign assetsPath = 'https://www.dynamsoft.com/webres/wwwroot' -%}
22
<link href="{{assetsPath}}/css/intlTelInput.min.css" rel="stylesheet" />
33
<script src="{{assetsPath}}/js/intlTelInput.min.js"></script>
44
<script src="{{assetsPath}}/js/docs/dayjs.min.js"></script>
@@ -335,4 +335,4 @@
335335
</div>
336336
</div>
337337

338-
<script src="{{ assetsPath }}/js/docs/trialLicense.js"></script>
338+
<script src="{{ assetsPath }}/js/docs/trialLicense.js"></script>

_layouts/default-layout.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
{{ content }}
5151
</article>
5252
</div>
53-
{%- assign assetsPath = '/webres/wwwroot' -%}
53+
{%- assign assetsPath = 'https://www.dynamsoft.com/webres/wwwroot' -%}
5454
<div class="rightSideMenu col-xs-12 col-md-12 col-lg-3 col-xl-2 hide-md hide-sm hide-xs showRightSideMenu">
5555
<div class="rightSideMenuContent">
5656
{%- unless site.useVersionTreeV2 -%}
@@ -158,7 +158,7 @@
158158
var arr, reg = new RegExp("(^| )" + name + "=([^;]*)(;|$)");
159159
return (arr = document.cookie.match(reg)) ? unescape(arr[2]) : null;
160160
}
161-
161+
162162
$('#txtSearch').keydown(function(e) {
163163
if (e.keyCode == 13) {
164164
let product = getUrlVars(document.URL)["product"] ? getUrlVars(document.URL)["product"] : getCurrentUrlProductName(document.URL)
@@ -215,8 +215,8 @@
215215
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
216216
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
217217
'//www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
218-
})(window,document,'script','dataLayer','GTM-538F83');</script>
218+
})(window,document,'script','dataLayer','GTM-538F83');</script>
219219
<!-- End Google Tag Manager -->
220220
</body>
221221

222-
</html>
222+
</html>

_layouts/search-layout.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@
2121
<title>{{title}}</title>
2222
<meta name="description" content="{{description}}">
2323
<meta name="keywords" content="{{page.keywords}}">
24-
{%- assign assetsPath = '/webres/wwwroot' -%}
24+
{%- assign assetsPath = 'https://www.dynamsoft.com/
2525
{%- assign docFullPath = site.docFullPath -%}
2626
{%- assign docFullPathLastChar = docFullPath | split:'' | last -%}
27-
{%- if docFullPathLastChar contains '/' -%}
27+
{%- if docFullPathLastChar contains '/' -%}
2828
{%- assign truncateDocHomePageSize = docFullPath | size | minus:1 -%}
2929
{%- assign docFullPath = docFullPath | slice: 0, truncateDocHomePageSize -%}
3030
{%- endif -%}
@@ -144,7 +144,7 @@ <h1 class="h2 fontOswald tc">{{page.h1}}</h1>
144144
<div class="hit-content">${components.Snippet({ hit, attribute: 'content' })}</div>
145145
</div>
146146
`
147-
}
147+
}
148148
}
149149
}),
150150

@@ -176,7 +176,7 @@ <h1 class="h2 fontOswald tc">{{page.h1}}</h1>
176176
<div class="hit-content">${components.Snippet({ hit, attribute: 'content' })}</div>
177177
</div>
178178
`
179-
}
179+
}
180180
}
181181
}),
182182

@@ -243,4 +243,4 @@ <h1 class="h2 fontOswald tc">{{page.h1}}</h1>
243243
{%- include livehelp.html -%}
244244
</body>
245245

246-
</html>
246+
</html>

0 commit comments

Comments
 (0)