Skip to content

Commit 8fc97c0

Browse files
Bump the eslint group across 1 directory with 3 updates (#2790)
Bumps the eslint group with 3 updates in the /src/Elastic.Documentation.Site directory: [@eslint/js](https://github.com/eslint/eslint/tree/HEAD/packages/js), [eslint](https://github.com/eslint/eslint) and [typescript-eslint](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/typescript-eslint). Updates `@eslint/js` from 9.39.2 to 10.0.1 - [Release notes](https://github.com/eslint/eslint/releases) - [Commits](https://github.com/eslint/eslint/commits/v10.0.1/packages/js) Updates `eslint` from 9.39.2 to 10.0.0 - [Release notes](https://github.com/eslint/eslint/releases) - [Commits](eslint/eslint@v9.39.2...v10.0.0) Updates `typescript-eslint` from 8.54.0 to 8.55.0 - [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases) - [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/typescript-eslint/CHANGELOG.md) - [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v8.55.0/packages/typescript-eslint) --- updated-dependencies: - dependency-name: "@eslint/js" dependency-version: 10.0.1 dependency-type: direct:development update-type: version-update:semver-major dependency-group: eslint - dependency-name: eslint dependency-version: 10.0.0 dependency-type: direct:development update-type: version-update:semver-major dependency-group: eslint - dependency-name: typescript-eslint dependency-version: 8.55.0 dependency-type: direct:development update-type: version-update:semver-minor dependency-group: eslint ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
1 parent cfb212c commit 8fc97c0

3 files changed

Lines changed: 250 additions & 228 deletions

File tree

src/Elastic.Documentation.Site/Assets/copybutton.ts

Lines changed: 1 addition & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,6 @@
33
// This is copied from legacy. It works, but we should rework this if we ever need to change it
44
import { $$ } from 'select-dom'
55

6-
const DOCUMENTATION_OPTIONS = {
7-
VERSION: '',
8-
LANGUAGE: 'en',
9-
COLLAPSE_INDEX: false,
10-
BUILDER: 'html',
11-
FILE_SUFFIX: '.html',
12-
LINK_SUFFIX: '.html',
13-
HAS_SOURCE: true,
14-
SOURCELINK_SUFFIX: '.txt',
15-
NAVIGATION_WITH_KEYS: false,
16-
SHOW_SEARCH_SUMMARY: true,
17-
ENABLE_SEARCH_SHORTCUTS: true,
18-
}
19-
206
const messages = {
217
en: {
228
copy: 'Copy',
@@ -70,12 +56,6 @@ if (
7056
locale = document.documentElement.lang
7157
}
7258

73-
let doc_url_root =
74-
'URL_ROOT' in DOCUMENTATION_OPTIONS ? DOCUMENTATION_OPTIONS.URL_ROOT : ''
75-
if (doc_url_root == '#') {
76-
doc_url_root = ''
77-
}
78-
7959
/**
8060
* SVG files for our copy buttons
8161
*/
@@ -200,14 +180,13 @@ const addCopyButtonToCodeCells = (
200180
}
201181

202182
const outputLines = []
203-
let promptFound = false
204183
let gotLineCont = false
205184
let gotHereDoc = false
206185
const lineGotPrompt = []
207186
for (const line of textContent.split('\n')) {
208187
match = line.match(regexp)
209188
if (match || gotLineCont || gotHereDoc) {
210-
promptFound = regexp.test(line)
189+
const promptFound = regexp.test(line)
211190
lineGotPrompt.push(promptFound)
212191
if (removePrompts && promptFound) {
213192
outputLines.push(match[2])

0 commit comments

Comments
 (0)