Skip to content

Commit 1273111

Browse files
committed
Add IBM Plex mono font
1 parent 8c28162 commit 1273111

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

packages/webdoc-default-template/src/app/components/Header/Search.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,16 @@ export default function Search({
1010
React.useEffect(
1111
() => {
1212
if (!ref.current || enabled.current) {
13+
console.log("Input not found for search");
1314
return;
1415
}
1516
if (integration.provider === "algolia") {
1617
if (!window.docsearch) {
1718
throw new Error("docsearch should be in global scope");
1819
}
1920

21+
console.log("Initializing search");
22+
2023
window.docsearch({
2124
apiKey: integration.apiKey,
2225
appId: integration.appId,

packages/webdoc-default-template/static/scripts/default-template.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9600,6 +9600,7 @@ function Search(_ref) {
96009600
var enabled = external_React_default.a.useRef(false);
96019601
external_React_default.a.useEffect(function () {
96029602
if (!ref.current || enabled.current) {
9603+
console.log("Input not found for search");
96039604
return;
96049605
}
96059606

@@ -9608,6 +9609,7 @@ function Search(_ref) {
96089609
throw new Error("docsearch should be in global scope");
96099610
}
96109611

9612+
console.log("Initializing search");
96119613
window.docsearch({
96129614
apiKey: integration.apiKey,
96139615
appId: integration.appId,

packages/webdoc-default-template/tmpl/layout.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const integrations = JSON.stringify(config.integrations);
1616

1717
<link type="text/css" rel="stylesheet" href="/<?js= sitePrefix ?>styles/index.css" />
1818
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700&display=swap" />
19-
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto+Mono:300,400,500,700&display=swap" />
19+
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=IBM+Plex+Mono&family=Roboto+Mono&display=swap" />
2020
<link type="text/css" rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/10.0.3/styles/googlecode.min.css">
2121

2222
<script>

0 commit comments

Comments
 (0)