Skip to content

Commit 96bee61

Browse files
nik9000delvedor
authored andcommitted
Docs: Fix ingest doc links (#801)
The ingest docs in Elasticsearch doing point to the actual ingest APIs. This makes up generate links to the real APIs instead, fixing some broken links in the 5.x docs in the process.
1 parent 1551c9c commit 96bee61

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

scripts/utils/generateDocs.js

+6-2
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,12 @@ const LINK_OVERRIDES = {
152152
'license.post_start_basic': '{ref}/start-basic.html',
153153
'license.post_start_trial': '{ref}/start-trial.html',
154154
'migration.deprecations': '{ref}/migration-api-deprecation.html',
155-
'monitoring.bulk': '{ref}/es-monitoring.html'
155+
'monitoring.bulk': '{ref}/es-monitoring.html',
156+
'ingest.delete_pipeline': '{ref}/delete-pipeline-api.html',
157+
'ingest.get_pipeline': '{ref}/get-pipeline-api.html',
158+
'ingest.put_pipeline': '{ref}/put-pipeline-api.html',
159+
'ingest.simulate': '{ref}/simulate-pipeline-api.html',
160+
'ingest.processor_grok': '{ref}/grok-processor.html#grok-processor-rest-get'
156161
}
157162
// Fixes bad urls in the JSON spec
158163
function fixLink (name, str) {
@@ -168,7 +173,6 @@ function fixLink (name, str) {
168173
str = str.replace(/frozen\.html/, 'freeze-index-api.html')
169174
str = str.replace(/ml-file-structure\.html/, 'ml-find-file-structure.html')
170175
str = str.replace(/security-api-get-user-privileges\.html/, 'security-api-get-privileges.html')
171-
str = str.replace(/security-api-get-user-privileges\.html/, 'security-api-get-privileges.html')
172176

173177
return str
174178
}

0 commit comments

Comments
 (0)