Skip to content

Commit 9bd0f09

Browse files
Merge pull request #2439 from buildkite/main-id
Attempt to fix blank search records
2 parents 08a3382 + f232f8a commit 9bd0f09

File tree

4 files changed

+3
-10
lines changed

4 files changed

+3
-10
lines changed

app/models/page/renderer.rb

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -75,13 +75,6 @@ def add_automatic_ids_to_headings(doc)
7575
h2_ids = []
7676
h3s_with_manual_ids = []
7777

78-
# h1 headers
79-
doc.search('./h1').each do |header|
80-
if (id = header['id']).blank?
81-
id = header['id'] = header.text.to_url
82-
end
83-
end
84-
8578
# h2 headers
8679
doc.search('./h2').each do |h2|
8780
if (id = h2['id']).blank?

app/views/layouts/application.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<body class="<%= beta? ? 'beta' : ''-%>">
77
<%= render "site_header" %>
88

9-
<main id="main" role="main">
9+
<main id="__main" role="main">
1010
<div class="PageContainer">
1111
<div class="Page">
1212
<div class="Page__sidebar">

pages/agent/v3/gcloud.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ Metrics-server is running at https://34.71.166.83/api/v1/namespaces/kube-system/
5252
To further debug and diagnose cluster problems, use 'kubectl cluster-info dump'.
5353
```
5454

55-
Create a [secret](https://kubernetes.io/docs/concepts/configuration/secret/#using-secrets-as-environment-variables) with your [agent registration token](/docs/agent/v3/tokens#main):
55+
Create a [secret](https://kubernetes.io/docs/concepts/configuration/secret/#using-secrets-as-environment-variables) with your [agent registration token](/docs/agent/v3/tokens):
5656

5757
```shell
5858
$ kubectl create secret generic buildkite-agent --from-literal=token=INSERT-YOUR-AGENT-TOKEN-HERE

spec/models/page/renderer_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
MD
99

1010
html = <<~HTML
11-
<h1 id="page-title">Page title</h1>
11+
<h1>Page title</h1>
1212
1313
<p>Some description</p>
1414
HTML

0 commit comments

Comments
 (0)