Files
superset2/docs/developer_docs_versioned_docs/version-6.1.0/api/delete-a-theme.api.mdx
Superset Dev 5a5a0e70fc 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.
2026-05-04 08:53:25 -07:00

69 lines
2.7 KiB
Plaintext

---
id: delete-a-theme
title: "Delete a theme"
description: "Delete a theme"
sidebar_label: "Delete a theme"
hide_title: true
hide_table_of_contents: true
api: eJzFVu9P5DYQ/VesUaWCGli4XiXk032gHOjuiq7odukPEcSZZCCGxPbZkz1olP+9Gjub3YWt1PYLn5I4nvF7M8/P7sAprxok9AHkRQfagASnqIIMjGqQv+4hA49fW+2xBEm+xQxCUWGjQHZAj45naUN4ix76/pJnB2dNwMATXu3t8aOwhtAQvyrnal0o0tZM7oI1PLZM6Lx16Emn6AZDULe4slIgr80t9H22GLHXd1gQ9Bngg2pcjWuBy4A+gxJD4bXjpUHCrMIGRYk1EpYc/3pv/2WxnhvVUmW9/gtLKQ5bqtDQsL4Ym7CBympgYvLjyzI5sf5alyUaKf60rSit+Z5EpeYoHPpGh8CMyApVFBiCoEoH4THY1he4ieCYL7F7/bLsPlkSN7Y1pRSzCmNnMBCWIwVRWgzCWBL4oANtYjTmiIxevXpp5TlvuRXqukbBqqNHKX5TtS6T+tB76zfxOLJtXUaqQ4Yhmpf66aU3/wdD6I2qRUA/R59YSHFoRGvwwWHBTYuDwhZF6/9he50oUvVYggwCFq1njmyad98I5MUlOx+pWzbS5CwBLjN42ClsidMILXlsrcwtSCjOP59CBrW6xnr5OWwACUXra7Hzh3h3fHo8OxY5VEROTia1LVRd2UDyYO/gYKKcnsz3J8TrTfZzEHmeGyF23oscDgdHiMWW4mdUHr347vDo6Hg6vZr9+svxpxygz0ZIZ49UWbMCahwYYenGWU8LwYfc5Gbh9uLtOLybPHWLoYh/jT1L0ytUJfrwtnvCIAcpchhY5CB+GLzjiuw9mj4327lxXhvaWiDaDaSoDVfcge1Voh/VXE1je1fIrg0u+2BNYL4jR/VNaRI3SEUV+f0ndl2i2CBVtmQ6qb1PucvFRPG0jVyEL4tOdqkAs8j/S4ro+cHFeJMbxm5r3K3t7dOabL8B1uu6yt/FrgklImjIIOEECamfkKW7gYR1dp2777lmcYslkbeeS7qxMvB02VP+LUqcY21dg4aGzRo7lhJ1zluyha17OZl0nKqXHSuxf5btqA1km0WKDObKa/a0MPhLTMPvJd6otqYBJmSApm148w6f/IhbeD3/+9nsTIx5+gwYzXq+ke8zcNPkQvyPr1fCevHhjJMwl/UkG0s1xMfZfbxrLZxoWiTLkYMfdXAdVXJifaM438ffZzBc3FjX6S+MPhpJ9xkHX3m88Riq/5ukz0CbG5vorKFvHfqAXBbSxFa9OsTaSfPm+6kkgRoVD4jhKvpMn2vpx0OC8IEmrlY63hWigLpBuBegnOa19hnDkEW6e25z6uMFdN21Cnju677n4a8tevb5y6WUosJLHY/KEuSNqgM+AzOeebD1ebi4bYtlqdZBDoPKPEbF1i1/QQb3+Jiu4P0lKy26Q1w9/TgsCox2tQh5drqyRMZdnMwGMuC74krBxjYOL7zARkRdl2Ykx+lHgNGBGWPf/w1ytTvf
sidebar_class_name: "delete 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={"Delete a theme"}
>
</Heading>
<MethodEndpoint
method={"delete"}
path={"/api/v1/theme/{pk}"}
context={"endpoint"}
>
</MethodEndpoint>
Delete a theme
<Heading
id={"request"}
as={"h2"}
className={"openapi-tabs__heading"}
>
<Translate id="theme.openapi.request.title">Request</Translate>
</Heading>
<ParamsDetails
{...require("./delete-a-theme.ParamsDetails.json")}
>
</ParamsDetails>
<RequestSchema
{...require("./delete-a-theme.RequestSchema.json")}
>
</RequestSchema>
<StatusCodes
{...require("./delete-a-theme.StatusCodes.json")}
>
</StatusCodes>