(id)
| 59 | const ids = new Set([...html.matchAll(/id=(?:"([^"]+)"|'([^']+)')/g)].map((m) => m[1] ?? m[2])) |
| 60 | const index = { modules: {}, types: {}, commands: {}, events: {} } |
| 61 | const href = (id) => `${base.replace(/#.*$/, '').replace(/\/?$/, '/')}#${id}` |
| 62 | for (const id of ids) { |
| 63 | const parts = id.split('-') |
| 64 | // `module-<domain>` (exactly; skip sub-sections like module-browser-commands). |