Skip to content

Commit 5da7568

Browse files
committed
Fix meta description selector
1 parent 8219fda commit 5da7568

File tree

2 files changed

+14
-6
lines changed

2 files changed

+14
-6
lines changed

.github/workflows/docsearchConfig.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,10 @@
4444
},
4545
"lvl1": "#___gatsby h1",
4646
"lvl2": {
47-
"selector": "meta[name=description]",
48-
"global": true
47+
"selector": "//meta[@property=\"description\")]/@content",
48+
"type": "xpath",
49+
"global": true,
50+
"default_value": "FIXME"
4951
},
5052
"lvl3": "#___gatsby h2",
5153
"lvl4": "#___gatsby h3",

src/components/Search/index.js

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -140,12 +140,12 @@ const PageHit = (clickHandler) => ({ hit }) => {
140140
)
141141
}
142142

143-
// TODO update to `dev-ethereum-org` once tested
143+
// TODO update to `prod-ethereum-org` once tested
144144
const indices = [
145145
{ name: `dev-ethereum-org`, title: `Pages`, hitComp: `PageHit` },
146146
]
147147

148-
// Validate agaisnt basic requirements of an address
148+
// Validate agaisnt basic requirements of an ETH address
149149
const isValidAddress = (address) => {
150150
return /^(0x)?[0-9a-f]{40}$/i.test(address)
151151
}
@@ -159,7 +159,10 @@ const Results = connectStateResults(
159159
return (
160160
<div>
161161
<p>
162-
<strong>No site search results</strong> found for "{state.query}"
162+
<strong>
163+
<Translation id="search-no-results" />
164+
</strong>{" "}
165+
"{state.query}"
163166
</p>
164167
<p>
165168
<Translation id="search-eth-address" />{" "}
@@ -173,7 +176,10 @@ const Results = connectStateResults(
173176
}
174177
return (
175178
<div>
176-
<Translation id="search-no-results" /> {state.query}
179+
<strong>
180+
<Translation id="search-no-results" />
181+
</strong>{" "}
182+
"{state.query}"
177183
</div>
178184
)
179185
}

0 commit comments

Comments
 (0)