mirror of
https://github.com/apache/superset.git
synced 2026-05-08 01:15:46 +00:00
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.
67 lines
3.1 KiB
Plaintext
67 lines
3.1 KiB
Plaintext
---
|
|
id: create-security-groups
|
|
title: "Create security groups"
|
|
description: "Create security groups"
|
|
sidebar_label: "Create security groups"
|
|
hide_title: true
|
|
hide_table_of_contents: true
|
|
api: eJztWFtv2zYU/ivEwYAmmBLbwQIUKvqQBOmarmuC2t0GREFKSye2GopUSMqJJui/D4eUZPmGoU2BvvQpJnku/L5z4VEq0PhQoLGnKikhrCBW0qK09JPnuUhjblMlB1+MkrRn4jlmnH7lWuWobYqGVgmaWKc5yW4s4Xetipz19wLI+NN7lDM7h/B4dBRAlsp2PQxAFkLwqUAIrS4wAFvmCCEYq1M5gzoAwacodnnyhys+RsfDr/YheYa7XLizVQ/DVQ+jLRa1Elvoakz6wwBSi5kTatRTaXGGmvSbHa41L2ldGNQ77fnDr7BHF8SHItWYQHjt4d90Qmr6BWMLAdjUEmney5Uyduxzog4An3iWiy2kNRR0cVtueJKX64ai69FNB+96dFPT5VZN/qkSFKzJx/7NKZoOismVNJ7vo+HoGcmt0RTC/kz6n0m/mfT1uuxqGSxT57kF0asHKoeNevD4Y43cYkK3+G04fEbOZ2gMn2GPwjai/4O4U4RTnrDmdQnZh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mM+ha6iqKTf4SYu6pu2HAnXph+I2jd3LHIBvVq7U7rF0U8uy7bisF4Ub/9fHE6opr3ESx+ja7m7Zm14boF4JAUybf6BkKiEdzR8pOPwRQgAaCkjbf03Snm/+hZ9dvE1KD5oVe+x1adT8IFTt54ssezesKi/huy7Vvofi3imo6YPhP1evJ8Y=
|
|
sidebar_class_name: "post 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={"Create security groups"}
|
|
>
|
|
</Heading>
|
|
|
|
<MethodEndpoint
|
|
method={"post"}
|
|
path={"/api/v1/security/groups/"}
|
|
context={"endpoint"}
|
|
>
|
|
|
|
</MethodEndpoint>
|
|
|
|
|
|
|
|
Create security groups
|
|
|
|
<Heading
|
|
id={"request"}
|
|
as={"h2"}
|
|
className={"openapi-tabs__heading"}
|
|
>
|
|
<Translate id="theme.openapi.request.title">Request</Translate>
|
|
</Heading>
|
|
|
|
<ParamsDetails>
|
|
|
|
</ParamsDetails>
|
|
|
|
<RequestSchema
|
|
{...require("./create-security-groups.RequestSchema.json")}
|
|
>
|
|
|
|
</RequestSchema>
|
|
|
|
<StatusCodes
|
|
{...require("./create-security-groups.StatusCodes.json")}
|
|
>
|
|
|
|
</StatusCodes>
|