@mui/internal-code-infra 0.0.4-canary.9 → 0.0.4-canary.90

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (140) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +19 -8
  3. package/build/babel-config.d.mts +5 -1
  4. package/build/brokenLinksChecker/crawlWorker.d.mts +1 -0
  5. package/build/brokenLinksChecker/index.d.mts +45 -2
  6. package/build/changelog/types.d.ts +3 -1
  7. package/build/cli/cmdArgosPush.d.mts +2 -2
  8. package/build/cli/cmdBuild.d.mts +3 -2
  9. package/build/cli/cmdCopyFiles.d.mts +2 -2
  10. package/build/cli/cmdExtractErrorCodes.d.mts +2 -2
  11. package/build/cli/cmdGenerateChangelog.d.mts +2 -2
  12. package/build/cli/cmdGithubAuth.d.mts +2 -2
  13. package/build/cli/cmdListWorkspaces.d.mts +6 -4
  14. package/build/cli/cmdNetlifyIgnore.d.mts +3 -2
  15. package/build/cli/cmdPublish.d.mts +4 -2
  16. package/build/cli/cmdPublishCanary.d.mts +3 -3
  17. package/build/cli/cmdPublishNewPackage.d.mts +4 -2
  18. package/build/cli/cmdSetVersionOverrides.d.mts +2 -2
  19. package/build/cli/cmdVale.d.mts +46 -0
  20. package/build/cli/cmdValidateBuiltTypes.d.mts +2 -2
  21. package/build/eslint/baseConfig.d.mts +3 -1
  22. package/build/eslint/mui/rules/disallow-react-api-in-server-components.d.mts +2 -2
  23. package/build/eslint/mui/rules/docgen-ignore-before-comment.d.mts +2 -2
  24. package/build/eslint/mui/rules/no-floating-cleanup.d.mts +5 -0
  25. package/build/eslint/mui/rules/no-guarded-throw.d.mts +31 -0
  26. package/build/eslint/mui/rules/no-presentation-role.d.mts +5 -0
  27. package/build/eslint/mui/rules/no-restricted-resolved-imports.d.mts +2 -2
  28. package/build/eslint/mui/rules/nodeEnvUtils.d.mts +18 -0
  29. package/build/remark/config.d.mts +43 -0
  30. package/build/remark/createLintTester.d.mts +10 -0
  31. package/build/remark/firstBlockHeading.d.mts +4 -0
  32. package/build/remark/gitDiff.d.mts +2 -0
  33. package/build/remark/noSpaceInLinks.d.mts +2 -0
  34. package/build/remark/straightQuotes.d.mts +2 -0
  35. package/build/remark/tableAlignment.d.mts +2 -0
  36. package/build/remark/terminalLanguage.d.mts +2 -0
  37. package/build/utils/babel.d.mts +1 -1
  38. package/build/utils/build.d.mts +56 -37
  39. package/build/utils/git.d.mts +7 -0
  40. package/build/utils/github.d.mts +1 -1
  41. package/build/utils/pnpm.d.mts +81 -2
  42. package/build/utils/testUtils.d.mts +7 -0
  43. package/build/utils/typescript.d.mts +6 -16
  44. package/package.json +74 -50
  45. package/src/babel-config.mjs +3 -1
  46. package/src/brokenLinksChecker/crawlWorker.mjs +240 -0
  47. package/src/brokenLinksChecker/index.mjs +263 -188
  48. package/src/changelog/fetchChangelogs.mjs +8 -2
  49. package/src/changelog/renderChangelog.mjs +1 -1
  50. package/src/changelog/types.ts +3 -1
  51. package/src/cli/cmdBuild.mjs +51 -85
  52. package/src/cli/cmdListWorkspaces.mjs +12 -27
  53. package/src/cli/cmdNetlifyIgnore.mjs +34 -93
  54. package/src/cli/cmdPublish.mjs +95 -20
  55. package/src/cli/cmdPublishCanary.mjs +128 -132
  56. package/src/cli/cmdPublishNewPackage.mjs +27 -6
  57. package/src/cli/cmdSetVersionOverrides.mjs +8 -9
  58. package/src/cli/cmdVale.mjs +513 -0
  59. package/src/cli/index.mjs +2 -0
  60. package/src/cli/packageJson.d.ts +1 -1
  61. package/src/eslint/baseConfig.mjs +51 -19
  62. package/src/eslint/docsConfig.mjs +2 -1
  63. package/src/eslint/mui/config.mjs +24 -4
  64. package/src/eslint/mui/index.mjs +6 -0
  65. package/src/eslint/mui/rules/no-floating-cleanup.mjs +187 -0
  66. package/src/eslint/mui/rules/no-guarded-throw.mjs +115 -0
  67. package/src/eslint/mui/rules/no-presentation-role.mjs +60 -0
  68. package/src/eslint/mui/rules/nodeEnvUtils.mjs +52 -0
  69. package/src/eslint/mui/rules/require-dev-wrapper.mjs +25 -40
  70. package/src/estree-typescript.d.ts +1 -1
  71. package/src/remark/config.mjs +157 -0
  72. package/src/remark/createLintTester.mjs +19 -0
  73. package/src/remark/firstBlockHeading.mjs +87 -0
  74. package/src/remark/gitDiff.mjs +43 -0
  75. package/src/remark/noSpaceInLinks.mjs +42 -0
  76. package/src/remark/straightQuotes.mjs +31 -0
  77. package/src/remark/tableAlignment.mjs +23 -0
  78. package/src/remark/terminalLanguage.mjs +19 -0
  79. package/src/untyped-plugins.d.ts +11 -11
  80. package/src/utils/build.mjs +604 -270
  81. package/src/utils/git.mjs +27 -7
  82. package/src/utils/pnpm.mjs +277 -10
  83. package/src/utils/testUtils.mjs +18 -0
  84. package/src/utils/typescript.mjs +23 -42
  85. package/vale/.vale.ini +1 -0
  86. package/vale/styles/MUI/CorrectReferenceAllCases.yml +42 -0
  87. package/vale/styles/MUI/CorrectRererenceCased.yml +14 -0
  88. package/vale/styles/MUI/GoogleLatin.yml +11 -0
  89. package/vale/styles/MUI/MuiBrandName.yml +22 -0
  90. package/vale/styles/MUI/NoBritish.yml +112 -0
  91. package/vale/styles/MUI/NoCompanyName.yml +17 -0
  92. package/build/markdownlint/duplicate-h1.d.mts +0 -56
  93. package/build/markdownlint/git-diff.d.mts +0 -11
  94. package/build/markdownlint/index.d.mts +0 -52
  95. package/build/markdownlint/straight-quotes.d.mts +0 -11
  96. package/build/markdownlint/table-alignment.d.mts +0 -11
  97. package/build/markdownlint/terminal-language.d.mts +0 -11
  98. package/src/brokenLinksChecker/__fixtures__/static-site/broken-links.html +0 -20
  99. package/src/brokenLinksChecker/__fixtures__/static-site/broken-targets.html +0 -22
  100. package/src/brokenLinksChecker/__fixtures__/static-site/example.md +0 -20
  101. package/src/brokenLinksChecker/__fixtures__/static-site/external-links.html +0 -21
  102. package/src/brokenLinksChecker/__fixtures__/static-site/ignored-page.html +0 -17
  103. package/src/brokenLinksChecker/__fixtures__/static-site/index.html +0 -28
  104. package/src/brokenLinksChecker/__fixtures__/static-site/known-targets.json +0 -5
  105. package/src/brokenLinksChecker/__fixtures__/static-site/nested/page.html +0 -21
  106. package/src/brokenLinksChecker/__fixtures__/static-site/orphaned-page.html +0 -20
  107. package/src/brokenLinksChecker/__fixtures__/static-site/page-with-api-links.html +0 -20
  108. package/src/brokenLinksChecker/__fixtures__/static-site/page-with-custom-targets.html +0 -24
  109. package/src/brokenLinksChecker/__fixtures__/static-site/page-with-ignored-content.html +0 -28
  110. package/src/brokenLinksChecker/__fixtures__/static-site/page-with-known-target-links.html +0 -19
  111. package/src/brokenLinksChecker/__fixtures__/static-site/unclosed-tags.html +0 -1
  112. package/src/brokenLinksChecker/__fixtures__/static-site/valid.html +0 -20
  113. package/src/brokenLinksChecker/__fixtures__/static-site/with-anchors.html +0 -31
  114. package/src/brokenLinksChecker/index.test.ts +0 -261
  115. package/src/changelog/categorizeCommits.test.ts +0 -319
  116. package/src/changelog/filterCommits.test.ts +0 -363
  117. package/src/changelog/parseCommitLabels.test.ts +0 -509
  118. package/src/changelog/renderChangelog.test.ts +0 -378
  119. package/src/changelog/sortSections.test.ts +0 -199
  120. package/src/eslint/mui/rules/add-undef-to-optional.test.mjs +0 -361
  121. package/src/eslint/mui/rules/consistent-production-guard.test.mjs +0 -162
  122. package/src/eslint/mui/rules/disallow-active-elements-as-key-event-target.test.mjs +0 -66
  123. package/src/eslint/mui/rules/disallow-react-api-in-server-components.test.mjs +0 -305
  124. package/src/eslint/mui/rules/docgen-ignore-before-comment.test.mjs +0 -52
  125. package/src/eslint/mui/rules/flatten-parentheses.test.mjs +0 -245
  126. package/src/eslint/mui/rules/mui-name-matches-component-name.test.mjs +0 -247
  127. package/src/eslint/mui/rules/no-empty-box.test.mjs +0 -40
  128. package/src/eslint/mui/rules/no-styled-box.test.mjs +0 -73
  129. package/src/eslint/mui/rules/require-dev-wrapper.test.mjs +0 -265
  130. package/src/eslint/mui/rules/rules-of-use-theme-variants.test.mjs +0 -149
  131. package/src/eslint/mui/rules/straight-quotes.test.mjs +0 -67
  132. package/src/markdownlint/duplicate-h1.mjs +0 -69
  133. package/src/markdownlint/git-diff.mjs +0 -31
  134. package/src/markdownlint/index.mjs +0 -62
  135. package/src/markdownlint/straight-quotes.mjs +0 -26
  136. package/src/markdownlint/table-alignment.mjs +0 -42
  137. package/src/markdownlint/terminal-language.mjs +0 -19
  138. package/src/utils/build.test.mjs +0 -705
  139. package/src/utils/template.test.mjs +0 -133
  140. package/src/utils/typescript.test.mjs +0 -380
@@ -0,0 +1,112 @@
1
+ extends: substitution
2
+ message: Use the US spelling '%s' instead of the British '%s'
3
+ link: https://www.notion.so/mui-org/Writing-style-guide-2a957a4168a54d47b14bae026d06a24b?pvs=4#25755bff02764565b954631236ab183d
4
+ level: error
5
+ ignorecase: true
6
+ swap:
7
+ aeon: eon
8
+ aeroplane: airplane
9
+ ageing: aging
10
+ aluminium: aluminum
11
+ anaemia: anemia
12
+ anaesthesia: anesthesia
13
+ analyse: analyze
14
+ annexe: annex
15
+ apologise: apologize
16
+ authorisation: authorization
17
+ authorise: authorize
18
+ authorised: authorized
19
+ authorising: authorizing
20
+ behaviour: behavior
21
+ bellow: below
22
+ busses: buses
23
+ calibre: caliber
24
+ categorise: categorize
25
+ categorised: categorized
26
+ categorises: categorizes
27
+ categorising: categorizing
28
+ centre: center
29
+ cheque: check
30
+ civilisation: civilization
31
+ civilise: civilize
32
+ colour: color
33
+ cosy: cozy
34
+ cypher: cipher
35
+ defence: defense
36
+ dependant: dependent
37
+ distil: distill
38
+ draught: draft
39
+ encyclopaedia: encyclopedia
40
+ enquiry: inquiry
41
+ enrol: enroll
42
+ enrolment: enrollment
43
+ enthral: enthrall
44
+ favourite: favorite
45
+ fibre: fiber
46
+ fillet: filet
47
+ flavour: flavor
48
+ fulfil: fulfill
49
+ furore: furor
50
+ gaol: jail
51
+ grey: gray
52
+ honour: honor
53
+ humour: humor
54
+ initialled: initialed
55
+ initialling: initialing
56
+ instil: instill
57
+ jewellery: jewelry
58
+ labelled: labeled
59
+ labelling: labeling
60
+ labour: labor
61
+ libellous: libelous
62
+ licence: license
63
+ likeable: likable
64
+ liveable: livable
65
+ lustre: luster
66
+ manoeuvre: maneuver
67
+ marvellous: marvelous
68
+ meagre: meager
69
+ metre: meter
70
+ modelling: modeling
71
+ moustache: mustache
72
+ neighbour: neighbor
73
+ normalise: normalize
74
+ offence: offense
75
+ optimise: optimize
76
+ optimised: optimized
77
+ optimising: optimizing
78
+ organise: organize
79
+ orientated: oriented
80
+ paralyse: paralyze
81
+ plough: plow
82
+ pretence: pretense
83
+ programme: program
84
+ pyjamas: pajamas
85
+ rateable: ratable
86
+ realise: realize
87
+ recognise: recognize
88
+ reconnoitre: reconnoiter
89
+ rumour: rumor
90
+ sabre: saber
91
+ saleable: salable
92
+ saltpetre: saltpeter
93
+ sceptic: skeptic
94
+ sepulchre: sepulcher
95
+ signalling: signaling
96
+ sizeable: sizable
97
+ skilful: skillful
98
+ smoulder: smolder
99
+ sombre: somber
100
+ speciality: specialty
101
+ spectre: specter
102
+ splendour: splendor
103
+ standardise: standardize
104
+ standardised: standardized
105
+ sulphur: sulfur
106
+ theatre: theater
107
+ travelled: traveled
108
+ traveller: traveler
109
+ travelling: traveling
110
+ unshakeable: unshakable
111
+ wilful: willful
112
+ yoghurt: yogurt
@@ -0,0 +1,17 @@
1
+ extends: existence
2
+ message: We avoid referencing the company name '%s'. Instead you can reference a product or the team.
3
+ level: warning
4
+ ignorecase: false
5
+ tokens:
6
+ - 'MUI \w+'
7
+ exceptions:
8
+ - 'MUI X'
9
+ - 'MUI System'
10
+ - 'MUI Store'
11
+ - 'MUI Core'
12
+ - 'MUI Connect'
13
+ # valid use of a regular space
14
+ - 'MUI organization'
15
+ - 'MUI ecosystem'
16
+ - 'MUI products'
17
+ - 'MUI team'
@@ -1,56 +0,0 @@
1
- /**
2
- * @typedef {[string, string]} Attr
3
- */
4
- export type Attr = [string, string];
5
- export type Token = {
6
- type: string;
7
- info: string;
8
- tag: string;
9
- content: string;
10
- lineNumber: number;
11
- attrs: Attr[];
12
- };
13
- export type OnErrorObj = {
14
- lineNumber: number;
15
- detail?: string;
16
- };
17
- export type OnError = (err: OnErrorObj) => void;
18
- export type MdParams = {
19
- name: string;
20
- lines: string[];
21
- tokens: Token[];
22
- };
23
- /**
24
- * @typedef {Object} Token
25
- * @property {string} type
26
- * @property {string} info
27
- * @property {string} tag
28
- * @property {string} content
29
- * @property {number} lineNumber
30
- * @property {Attr[]} attrs
31
- */
32
- /**
33
- * @typedef {Object} OnErrorObj
34
- * @property {number} lineNumber
35
- * @property {string} [detail]
36
- */
37
- /**
38
- * @typedef {(err: OnErrorObj) => void} OnError
39
- */
40
- /**
41
- * @typedef {Object} MdParams
42
- * @property {string} name
43
- * @property {string[]} lines
44
- * @property {Token[]} tokens
45
- */
46
- declare const _default: {
47
- names: string[];
48
- description: string;
49
- tags: string[];
50
- /**
51
- * @param {import('./duplicate-h1.mjs').MdParams} params
52
- * @param {import('./duplicate-h1.mjs').OnError} onError
53
- */
54
- function: (params: MdParams, onError: OnError) => void;
55
- };
56
- export default _default;
@@ -1,11 +0,0 @@
1
- declare const _default: {
2
- names: string[];
3
- description: string;
4
- tags: string[];
5
- /**
6
- * @param {import('./duplicate-h1.mjs').MdParams} params
7
- * @param {import('./duplicate-h1.mjs').OnError} onError
8
- */
9
- function: (params: import("./duplicate-h1.mjs").MdParams, onError: import("./duplicate-h1.mjs").OnError) => void;
10
- };
11
- export default _default;
@@ -1,52 +0,0 @@
1
- import straightQuotes from './straight-quotes.mjs';
2
- /**
3
- * Create a base configuration for markdownlint.
4
- * @param {Object} options
5
- * @param {(typeof straightQuotes)[]} [options.rules] - An array of custom rules to include.
6
- * @param {string[]} [options.ignores] - An array of glob patterns to ignore.
7
- * @returns
8
- */
9
- export declare function createBaseConfig(options?: {
10
- rules?: (typeof straightQuotes)[];
11
- ignores?: string[];
12
- }): {
13
- config: {
14
- default: boolean;
15
- MD004: boolean;
16
- MD009: {
17
- br_spaces: number;
18
- strict: boolean;
19
- list_item_empty_lines: boolean;
20
- };
21
- MD013: boolean;
22
- MD014: boolean;
23
- MD024: {
24
- siblings_only: boolean;
25
- };
26
- MD025: {
27
- level: number;
28
- front_matter_title: string;
29
- };
30
- MD033: boolean;
31
- MD034: boolean;
32
- MD028: boolean;
33
- MD029: boolean;
34
- MD031: boolean;
35
- MD036: boolean;
36
- MD051: boolean;
37
- MD052: boolean;
38
- MD059: boolean;
39
- straightQuotes: boolean;
40
- gitDiff: boolean;
41
- tableAlignment: boolean;
42
- terminalLanguage: boolean;
43
- duplicateH1: boolean;
44
- };
45
- customRules: {
46
- names: string[];
47
- description: string;
48
- tags: string[];
49
- function: (params: import("./duplicate-h1.mjs").MdParams, onError: import("./duplicate-h1.mjs").OnError) => void;
50
- }[];
51
- ignores: string[];
52
- };
@@ -1,11 +0,0 @@
1
- declare const _default: {
2
- names: string[];
3
- description: string;
4
- tags: string[];
5
- /**
6
- * @param {import('./duplicate-h1.mjs').MdParams} params
7
- * @param {import('./duplicate-h1.mjs').OnError} onError
8
- */
9
- function: (params: import("./duplicate-h1.mjs").MdParams, onError: import("./duplicate-h1.mjs").OnError) => void;
10
- };
11
- export default _default;
@@ -1,11 +0,0 @@
1
- declare const _default: {
2
- names: string[];
3
- description: string;
4
- tags: string[];
5
- /**
6
- * @param {import('./duplicate-h1.mjs').MdParams} params
7
- * @param {import('./duplicate-h1.mjs').OnError} onError
8
- */
9
- function: (params: import("./duplicate-h1.mjs").MdParams, onError: import("./duplicate-h1.mjs").OnError) => void;
10
- };
11
- export default _default;
@@ -1,11 +0,0 @@
1
- declare const _default: {
2
- names: string[];
3
- description: string;
4
- tags: string[];
5
- /**
6
- * @param {import('./duplicate-h1.mjs').MdParams} params
7
- * @param {import('./duplicate-h1.mjs').OnError} onError
8
- */
9
- function: (params: import("./duplicate-h1.mjs").MdParams, onError: import("./duplicate-h1.mjs").OnError) => void;
10
- };
11
- export default _default;
@@ -1,20 +0,0 @@
1
- <!DOCTYPE html>
2
- <html lang="en">
3
- <head>
4
- <meta charset="UTF-8" />
5
- <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
- <title>Page with Broken Links</title>
7
- </head>
8
- <body>
9
- <h1>Page with Broken Links</h1>
10
- <p>This page contains links to non-existent pages.</p>
11
- <nav>
12
- <ul>
13
- <li><a href="/">Home (valid)</a></li>
14
- <li><a href="/does-not-exist.html">This page does not exist</a></li>
15
- <li><a href="/another-missing-page.html">Another missing page</a></li>
16
- <li><a href="/valid.html">Valid link</a></li>
17
- </ul>
18
- </nav>
19
- </body>
20
- </html>
@@ -1,22 +0,0 @@
1
- <!DOCTYPE html>
2
- <html lang="en">
3
- <head>
4
- <meta charset="UTF-8" />
5
- <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
- <title>Page with Broken Targets</title>
7
- </head>
8
- <body>
9
- <h1>Page with Broken Targets</h1>
10
- <p>This page contains links to valid pages but with invalid hash targets.</p>
11
- <nav>
12
- <ul>
13
- <li><a href="/">Home (valid)</a></li>
14
- <li><a href="/with-anchors.html#section1">Valid anchor</a></li>
15
- <li><a href="/with-anchors.html#nonexistent">Non-existent anchor</a></li>
16
- <li><a href="/valid.html#missing-target">Valid page, missing target</a></li>
17
- <li><a href="/with-anchors.html#section2">Another valid anchor</a></li>
18
- <li><a href="/with-anchors.html#also-missing">Also missing</a></li>
19
- </ul>
20
- </nav>
21
- </body>
22
- </html>
@@ -1,20 +0,0 @@
1
- # Example Markdown File
2
-
3
- This is a markdown file with links:
4
-
5
- - [Link to valid page](/valid.html)
6
- - [Link to page with anchors](/with-anchors.html#section1)
7
- - [Broken markdown link](/broken-from-markdown.html)
8
- - [Relative link to valid page](valid.html)
9
- - [Relative link with dot-slash](./with-anchors.html)
10
- - [Relative broken link](broken-relative.html)
11
-
12
- ## Markdown Section
13
-
14
- This section has an anchor target (`#markdown-section`) generated by rehype-slug.
15
-
16
- This is a code block with a link that should NOT be extracted:
17
-
18
- ```html
19
- <a href="/this-should-not-be-checked.html">Link in code block</a>
20
- ```
@@ -1,21 +0,0 @@
1
- <!DOCTYPE html>
2
- <html lang="en">
3
- <head>
4
- <meta charset="UTF-8" />
5
- <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
- <title>Page with External Links</title>
7
- </head>
8
- <body>
9
- <h1>Page with External Links</h1>
10
- <p>This page contains external links that should be ignored.</p>
11
- <nav>
12
- <ul>
13
- <li><a href="/">Home (valid internal)</a></li>
14
- <li><a href="https://example.com">External link 1</a></li>
15
- <li><a href="https://github.com/mui">External link 2</a></li>
16
- <li><a href="http://localhost:9999/fake">External localhost</a></li>
17
- <li><a href="/valid.html">Valid internal link</a></li>
18
- </ul>
19
- </nav>
20
- </body>
21
- </html>
@@ -1,17 +0,0 @@
1
- <!DOCTYPE html>
2
- <html lang="en">
3
- <head>
4
- <meta charset="UTF-8" />
5
- <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
- <title>Ignored Page</title>
7
- </head>
8
- <body>
9
- <h1>Ignored Page</h1>
10
- <p>This page should be ignored by the crawler.</p>
11
- <nav>
12
- <ul>
13
- <li><a href="/this-link-should-not-be-checked.html">Should not be checked</a></li>
14
- </ul>
15
- </nav>
16
- </body>
17
- </html>
@@ -1,28 +0,0 @@
1
- <!DOCTYPE html>
2
- <html lang="en">
3
- <head>
4
- <meta charset="UTF-8" />
5
- <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
- <title>Test Site Home</title>
7
- </head>
8
- <body>
9
- <h1>Test Site Home</h1>
10
- <nav>
11
- <ul>
12
- <li><a href="/valid.html">Valid Page</a></li>
13
- <li><a href="/with-anchors.html">Page with Anchors</a></li>
14
- <li><a href="/broken-links.html">Page with Broken Links</a></li>
15
- <li><a href="/broken-targets.html">Page with Broken Targets</a></li>
16
- <li><a href="/external-links.html">Page with External Links</a></li>
17
- <li><a href="/nested/page.html">Nested Page</a></li>
18
- <li><a href="/ignored-page.html">Ignored Page</a></li>
19
- <li><a href="/page-with-ignored-content.html">Page with Ignored Content</a></li>
20
- <li><a href="/page-with-custom-targets.html">Page with Custom Targets</a></li>
21
- <li><a href="/page-with-known-target-links.html">Page with Known Target Links</a></li>
22
- <li><a href="/page-with-api-links.html">Page with API Links</a></li>
23
- <li><a href="/example.md">Example Markdown</a></li>
24
- <li><a href="/unclosed-tags.html">Page with Unclosed Tags</a></li>
25
- </ul>
26
- </nav>
27
- </body>
28
- </html>
@@ -1,5 +0,0 @@
1
- {
2
- "targets": {
3
- "/api-page.html": ["#method1", "#method2", "#method3"]
4
- }
5
- }
@@ -1,21 +0,0 @@
1
- <!DOCTYPE html>
2
- <html lang="en">
3
- <head>
4
- <meta charset="UTF-8" />
5
- <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
- <title>Nested Page</title>
7
- </head>
8
- <body>
9
- <h1>Nested Page</h1>
10
- <p>This is a page in a nested directory.</p>
11
- <nav>
12
- <ul>
13
- <li><a href="/">Home</a></li>
14
- <li><a href="/valid.html">Valid page</a></li>
15
- <li><a href="/with-anchors.html#section1">Link to anchor</a></li>
16
- <li><a href="../valid.html">Relative link to valid page</a></li>
17
- <li><a href="../broken-relative-html.html">Relative broken link from HTML</a></li>
18
- </ul>
19
- </nav>
20
- </body>
21
- </html>
@@ -1,20 +0,0 @@
1
- <!DOCTYPE html>
2
- <html lang="en">
3
- <head>
4
- <meta charset="UTF-8" />
5
- <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
- <title>Orphaned Page</title>
7
- </head>
8
- <body>
9
- <h1>Orphaned Page</h1>
10
- <p>This page is not linked from anywhere and can only be discovered via seedUrls.</p>
11
- <nav>
12
- <ul>
13
- <li><a href="/valid.html">Valid Page</a></li>
14
- <li><a href="/valid.html/">Valid Page with trailing slash</a></li>
15
- <li><a href="/orphaned-broken-link.html">Broken link from orphaned page</a></li>
16
- <li><a href="/example.md">Markdown file with HTML snippet</a></li>
17
- </ul>
18
- </nav>
19
- </body>
20
- </html>
@@ -1,20 +0,0 @@
1
- <!DOCTYPE html>
2
- <html lang="en">
3
- <head>
4
- <meta charset="UTF-8" />
5
- <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
- <title>Page with API Links</title>
7
- </head>
8
- <body>
9
- <h1>Page with API Links</h1>
10
- <p>This page links to API documentation with known targets.</p>
11
- <nav>
12
- <ul>
13
- <li><a href="/">Home</a></li>
14
- <li><a href="/api-page.html#method1">API Method 1 (known)</a></li>
15
- <li><a href="/api-page.html#method2">API Method 2 (known)</a></li>
16
- <li><a href="/api-page.html#unknown-method">Unknown API method</a></li>
17
- </ul>
18
- </nav>
19
- </body>
20
- </html>
@@ -1,24 +0,0 @@
1
- <!DOCTYPE html>
2
- <html lang="en">
3
- <head>
4
- <meta charset="UTF-8" />
5
- <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
- <title>Page with Custom Targets</title>
7
- </head>
8
- <body>
9
- <h1>Page with Custom Targets</h1>
10
- <nav>
11
- <ul>
12
- <li><a href="/">Home</a></li>
13
- <li><a href="#custom-id">Link to custom ID</a></li>
14
- <li><a href="#__should-be-ignored">Link to ignored ID</a></li>
15
- </ul>
16
- </nav>
17
- <section id="custom-id">
18
- <h2>Custom ID Section</h2>
19
- </section>
20
- <section id="__should-be-ignored">
21
- <h2>This target should be ignored</h2>
22
- </section>
23
- </body>
24
- </html>
@@ -1,28 +0,0 @@
1
- <!DOCTYPE html>
2
- <html lang="en">
3
- <head>
4
- <meta charset="UTF-8" />
5
- <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
- <title>Page with Ignored Content</title>
7
- </head>
8
- <body>
9
- <h1>Page with Ignored Content</h1>
10
- <nav>
11
- <ul>
12
- <li><a href="/">Home</a></li>
13
- </ul>
14
- </nav>
15
- <aside class="sidebar">
16
- <h2>Sidebar (should be ignored)</h2>
17
- <ul>
18
- <li><a href="/sidebar-broken-link.html">Broken link in sidebar</a></li>
19
- </ul>
20
- </aside>
21
- <main>
22
- <p>Main content</p>
23
- <p>
24
- <a href="/broken-link-with-sidebar-class.html" class="sidebar">Link with sidebar class directly</a>
25
- </p>
26
- </main>
27
- </body>
28
- </html>
@@ -1,19 +0,0 @@
1
- <!DOCTYPE html>
2
- <html lang="en">
3
- <head>
4
- <meta charset="UTF-8" />
5
- <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
- <title>Page with Known Target Links</title>
7
- </head>
8
- <body>
9
- <h1>Page with Known Target Links</h1>
10
- <p>This page links to external pages with known targets.</p>
11
- <nav>
12
- <ul>
13
- <li><a href="/">Home</a></li>
14
- <li><a href="/external-page.html#valid-target">Valid external target</a></li>
15
- <li><a href="/external-page.html#invalid-target">Invalid external target</a></li>
16
- </ul>
17
- </nav>
18
- </body>
19
- </html>
@@ -1 +0,0 @@
1
- <!DOCTYPE html><html lang="en"><head><meta charset="UTF-8"><title>Unclosed Tags</title></head><body><div class="wrapper"><main class="content"><a href="/broken-inside-unclosed-main.html">Broken link inside unclosed main</a><a href="/valid.html">Valid link inside unclosed main</a></main></div></body></html>
@@ -1,20 +0,0 @@
1
- <!DOCTYPE html>
2
- <html lang="en">
3
- <head>
4
- <meta charset="UTF-8" />
5
- <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
- <title>Valid Page</title>
7
- </head>
8
- <body>
9
- <h1>Valid Page</h1>
10
- <p>This page has only valid internal links.</p>
11
- <nav>
12
- <ul>
13
- <li><a href="/">Home</a></li>
14
- <li><a href="/with-anchors.html#section1">Link to section 1</a></li>
15
- <li><a href="/with-anchors.html#section2">Link to section 2</a></li>
16
- <li><a href="/nested/page.html">Nested page</a></li>
17
- </ul>
18
- </nav>
19
- </body>
20
- </html>
@@ -1,31 +0,0 @@
1
- <!DOCTYPE html>
2
- <html lang="en">
3
- <head>
4
- <meta charset="UTF-8" />
5
- <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
- <title>Page with Anchors</title>
7
- </head>
8
- <body>
9
- <h1>Page with Anchors</h1>
10
- <nav>
11
- <ul>
12
- <li><a href="/">Home</a></li>
13
- <li><a href="#section1">Jump to section 1</a></li>
14
- <li><a href="#section2">Jump to section 2</a></li>
15
- <li><a href="#section3">Jump to section 3</a></li>
16
- </ul>
17
- </nav>
18
- <section id="section1">
19
- <h2>Section 1</h2>
20
- <p>Content for section 1</p>
21
- </section>
22
- <section id="section2">
23
- <h2>Section 2</h2>
24
- <p>Content for section 2</p>
25
- </section>
26
- <section id="section3">
27
- <h2>Section 3</h2>
28
- <p>Content for section 3</p>
29
- </section>
30
- </body>
31
- </html>