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.
69 lines
3.1 KiB
Plaintext
69 lines
3.1 KiB
Plaintext
---
|
|
id: update-a-theme
|
|
title: "Update a theme"
|
|
description: "Update a theme"
|
|
sidebar_label: "Update a theme"
|
|
hide_title: true
|
|
hide_table_of_contents: true
|
|
api: eJzNV21v2zYQ/ivEYUATTImbrgMKFf2QBi3arkiD2NkLoiClxXPERiJZknLiCfrvw5GyLL9kWNsP2Sdb5N3xnudeeGzAcMsr9GgdpJcNSAUpGO4LSEDxCunrFhKw+LWWFgWk3taYgMsLrDikDfiFISmpPN6ghba9itLo/GstFiSSa+VRefrLjSllzr3UavTFaUVrK1vGaoPWS3T0RfvXgvvhMc5bqW6gTcAXWOF19HFrux16fDmwtKZ3lSz19PQL5p52pS9pYUJS5+j8sZGHpvZ0It7zypS44dryzHWPVp60CQh0uZWGQC9Nsw70JrPBcWe0cpGDZ0+f/gCDUgy4UXU1pQCFE+rS/98JbzeF10NA2I6GWL4lJg8EpTaCexR00vMfIr5C5/jNA0T9G6peEV5zwbo6Stl7NeelFGxVrcxYPZeCnN1GM9CNWI4eF8uF4rUvtJV/o0jZce0LVL47n/V5swPIUDEi+eVxkbzVdiqFQJWyv3TNhFZPPCv4HJlB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GOhEyzBAC0hkvHW450w8DsHfeTbT7bEX4upPdIleLkPdlTV+QUGOOL+72ivI1NLZwetwYtqiB4tbwQeUYNY7zHENjflj2atA6zi4oa6bdu73SglQsv6N3Kr+LPuoAOeRvWIu3Qx0Hk2iSEosG90GQ+gTs/hConSw0TZSIDbrtSQkXGfHStv8AXCm+cg==
|
|
sidebar_class_name: "put 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={"Update a theme"}
|
|
>
|
|
</Heading>
|
|
|
|
<MethodEndpoint
|
|
method={"put"}
|
|
path={"/api/v1/theme/{pk}"}
|
|
context={"endpoint"}
|
|
>
|
|
|
|
</MethodEndpoint>
|
|
|
|
|
|
|
|
Update a theme
|
|
|
|
<Heading
|
|
id={"request"}
|
|
as={"h2"}
|
|
className={"openapi-tabs__heading"}
|
|
>
|
|
<Translate id="theme.openapi.request.title">Request</Translate>
|
|
</Heading>
|
|
|
|
<ParamsDetails
|
|
{...require("./update-a-theme.ParamsDetails.json")}
|
|
>
|
|
|
|
</ParamsDetails>
|
|
|
|
<RequestSchema
|
|
{...require("./update-a-theme.RequestSchema.json")}
|
|
>
|
|
|
|
</RequestSchema>
|
|
|
|
<StatusCodes
|
|
{...require("./update-a-theme.StatusCodes.json")}
|
|
>
|
|
|
|
</StatusCodes>
|