fix(docs): regenerate 6.1.0 snapshots with depth-aware import rewriter

The previous import-path fixer only matched two-level relative paths
(`../../src/` and `../../data/`), missing files at deeper nesting in the
section tree. After the 6.1.0 cut for developer_docs, ~50 component MDX
files at depth 3 still referenced `../../../src/components/StorybookWrapper`
(should have been `../../../../src/...`), and the components Button page
referenced `../../../superset-frontend/...` (should have been
`../../../../superset-frontend/...`). The Docusaurus production build
failed with module-not-found errors as a result.

Replace the pattern-specific regex with a depth-aware walker that
- counts the file's nesting depth within the snapshot,
- bumps any relative import whose `../` count exceeds that depth (i.e.
  the import escapes the section root and so must compensate for the
  extra `version-X.X.X/` directory the snapshot lives under),
- skips fenced code blocks so documented sample imports (e.g. Playwright
  page-object examples in developer_docs/testing/e2e-testing.md) are not
  rewritten.

Re-cut all four sections under the new fixer. yarn build now passes
locally.
This commit is contained in:
Superset Dev
2026-05-04 08:53:25 -07:00
parent 752ebd47cb
commit 5a5a0e70fc
355 changed files with 3748 additions and 368 deletions

View File

@@ -0,0 +1,68 @@
---
id: get-security-user-registrations
title: "Get security user registrations"
description: "Get a list of models"
sidebar_label: "Get security user registrations"
hide_title: true
hide_table_of_contents: true
api: eJzFWG1PGzkQ/iuWddKBLhDg2gpt1Q8poi0t16IC15MISp3dSeLitbe2N5Cu9r+fxt7deJMNB+WkfkrWL+N55uWZsQuagIk1zyxXkkb0LVjCiODGEjUhqUpAGNqjGdMsBQva0OiqoLGSFqSlUUFZlgkeM9ze/2ZQRkFNPIOU4b9Mqwy05WDwK1YiT6X7yy2k7o9dZEAjaqzmckrLXj3AtGYL/J5w4c8NNq2J7ZSkMt05PmciB6e7XHyaOEDVGpmnY9C07K3vakbGSglg0g01Cj1N0vUa7Ouy7FEN33OuIaHRlcPoEdX6Xzd71PgbxLbLdjewaBsOZJ6iOHTwqHZHjyqdgA6+BRuDCL6DGAlXoRDLrQDao1LJUKfN/gzP6nabW5BwDbEPyqXazMSVNp1HZWwKgUguLUydE9zMyPAfG6YNCIiXBnlEfJarXuhRb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gCyHcnsoM82l3ap13MUw3treDlG/Z3N27uInQN4aXLpJSYPgG8DslnFLJmDjmcP7dLRFC3JUf5NVfyL2r7VLC4/7wsH+6neU+IM2eDmUXu+EWdbovGKRapESsCvUdAuXbr90l70U7ExV0e+eV7DvoA9BhJZzmewzIddo2E770NUcPsVpksAchMpSkLbiBOc3L6jItLIqVqKM+v0CRZVRgcFZrkk7yo1VaS0CXyU0R+qsu1Inxne3E+ZqtFMTu/HqNl994o9BXmjLf3dxcUYaOWWPojZteQ3eNeXOPdnhHLYlRGlycuYeArBLbwnpNFW1360uS/RY7ZNzpGoP0tFeQccuXt7Ufez7LxfoI7cMH3nc7PKy4UCXPdw80jDR4HvXnxHinhMmav0GcZ5noA2EvWYwhLHj1833vUmMTZmrQ1ULh4+ANV68/WqySsmt84Lytun9sNLbwp3tZ4Jx1wq6kCuq4L+iLOOo3T4NqotvpNcqAkaLD4crWhRjZuBSi7LEYX9BwtTYqOMmfW5g4V5jmhdC6nK1DmxX4nrUk4g7wW8YxDE4Rqt3rVX4Vsa/PUbXYvMTlPXGwdWf4CWRyUUguyj8Cs9KmJVeCUfO7t2w/BcEkpbh
sidebar_class_name: "get api-method"
info_path: developer-docs/api/superset
custom_edit_url: null
hide_send_button: true
show_extensions: true
---
import MethodEndpoint from "@theme/ApiExplorer/MethodEndpoint";
import ParamsDetails from "@theme/ParamsDetails";
import RequestSchema from "@theme/RequestSchema";
import StatusCodes from "@theme/StatusCodes";
import OperationTabs from "@theme/OperationTabs";
import TabItem from "@theme/TabItem";
import Heading from "@theme/Heading";
import Translate from "@docusaurus/Translate";
<Heading
as={"h1"}
className={"openapi__heading"}
children={"Get security user registrations"}
>
</Heading>
<MethodEndpoint
method={"get"}
path={"/api/v1/security/user_registrations/"}
context={"endpoint"}
>
</MethodEndpoint>
Get a list of models
<Heading
id={"request"}
as={"h2"}
className={"openapi-tabs__heading"}
>
<Translate id="theme.openapi.request.title">Request</Translate>
</Heading>
<ParamsDetails
{...require("./get-security-user-registrations.ParamsDetails.json")}
>
</ParamsDetails>
<RequestSchema
{...require("./get-security-user-registrations.RequestSchema.json")}
>
</RequestSchema>
<StatusCodes
{...require("./get-security-user-registrations.StatusCodes.json")}
>
</StatusCodes>