mirror of
https://github.com/apache/superset.git
synced 2026-05-08 09:25:56 +00:00
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:
@@ -0,0 +1,68 @@
|
||||
---
|
||||
id: get-security-groups
|
||||
title: "Get security groups"
|
||||
description: "Get a list of models"
|
||||
sidebar_label: "Get security groups"
|
||||
hide_title: true
|
||||
hide_table_of_contents: true
|
||||
api: eJzFWG1v2zYQ/isHYsASTI2TYB0CFf2QBmmaLmuLOlkHxIFLS2dbDUWqJOXEFfTfhyMlWbLlLGkH9JMtkne8514eHlmwGE2kk8wmSrKQnaEFDiIxFtQUUhWjMCxgGdc8RYvasPC6YJGSFqVlYcF4lokk4iQ++GJIR8FMNMeU079Mqwy1TdDQV6REnkr3N7GYuj92mSELmbE6kTNWBvUA15ov6XuaCL9vS2hDba8mlene8QUXOTrb5fL91AGq1sg8naBmZbAp1YxMlBLIpRtqDPoxTTcbsG/KMmAav+aJxpiF1w6jR1Tbf9PIqMkXjGyf725x2XUcyjwldRTgcR2OgCkdo259Cz5B0fpu5Uh7FSmxiRXIAiaVbNu0PZ7tvfrD5hbEicbIJ+XKbG6iyprerTI+w5bKRFqcuSC4mbFJvm2ZNigwWjnkCflZrkchYN4jIZuhHTsXVeVQ0uKEiuxr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ttZ3AVDiUNAW5A8jueWJiijeYO4/chLDoww/ob1uNGeD/XoSs81ksH9bOXKOmHcL8YSW9rzC1v7FzzQrVICdwTarZDS3dfuDtiinauqmx2rzLUVLBtKMhDrgh9ZueaHNjrB7Zefhc0DTEuUKgsRWmrcnbx8YqKTCurIiXKcDAoSFUZFpR45Ya2k9xYldYq6AFDJ8R6dUPl1Pj2dcrd8erMpMa9uvhXn/Tjarur/83l5Qdo9JQBI2u6+hq8G8YNPU/RHHUUoDScf3BvBtTQd5T0uqqSd6vLkqJUx2FILOtBOsYq2MTlyGulU0763n66pBi5ZfQe5GZX9xIHugxIeKxxqtHMv1eJe3mYqs3LxjDPUBtst4WtIcodv25x4F1ibMrdEVJ1X/ReWOOFhlbXriHNabTtebGy1eK9HWSCJ65zc2lWVEl+zXiWkEUHrHUYBKzZkrLCh/2aFcWEG7zSoixp2N+ZqAS22rXNhltcugea5tGQuTqsE9idQgHzBOF28ALHUYSOoWqpjUO4U81npxRC6k9aJ28TyOpP63GRy2VLd1H4FZ5xqPq8EY5s3VNi+S/VWJQk
|
||||
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 groups"}
|
||||
>
|
||||
</Heading>
|
||||
|
||||
<MethodEndpoint
|
||||
method={"get"}
|
||||
path={"/api/v1/security/groups/"}
|
||||
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-groups.ParamsDetails.json")}
|
||||
>
|
||||
|
||||
</ParamsDetails>
|
||||
|
||||
<RequestSchema
|
||||
{...require("./get-security-groups.RequestSchema.json")}
|
||||
>
|
||||
|
||||
</RequestSchema>
|
||||
|
||||
<StatusCodes
|
||||
{...require("./get-security-groups.StatusCodes.json")}
|
||||
>
|
||||
|
||||
</StatusCodes>
|
||||
Reference in New Issue
Block a user