Files
superset2/docs/developer_docs_versioned_docs/version-6.1.0/api/get-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
3.4 KiB
Plaintext

---
id: get-a-theme
title: "Get a theme"
description: "Get an item model"
sidebar_label: "Get a theme"
hide_title: true
hide_table_of_contents: true
api: eJzdWG1v2zYQ/isEsQ8JpsR24GSZin5ws7RN17VF7awD4sClpbOlmiIVknLiCfrvw5GSLdnKS7sBAfbJ5ssd7zk+fHhUTkPQgYpTE0tBffoGDGGCxAYSksgQOPVoyhRLwIDS1L/KaYzzUmYi6lHBEsDWgnpUwU0WKwipb1QGHtVBBAmjfk7NKsVZsTAwB0WLwstpIIUBYXCYpSmPA4YRdL5pDCOvGadKpqBMDBpbgeRZIuxfjFHX3GujYjGnhVd1MKXYCtsLWDUtQGQJ9a+ojuTtpHLp1VNR6+VsCrzWtkYmNhwwAVIAvfYei2HTIaffIDDUo86DT+dgJhjYpIRc4GSb45sM1GqT5BtaXGOWdSqFdtk46nZdUn4ol21w70n4xMWQb7FlFAGp9ZCZVMREQJwRQaND8iXmnEyBGMWE5sxASKYrMsWsUo/CHUtSm4gB+RA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C2LDZmBCSIL7buA5Q10ftUm27uEML9WG5U7iCOL8KuzKPAH4b4YCxciXqnr8LbAl5Mkh0Mu53s4df+FfQwnYCIZuke0/VCBpSJtBp+niwJTYo+NI26mMGOtwOn2gXmPwySEJXCZJiBMeQDthjhHeaqkkYHkhd/p5Oiq8HMkWLHj7SzTRiaVC48umYpRp6pXp3Xjyq2y7LBhYi1XfrIom/hjj2XT/9vR6BNZ+yk8itE0/a3x7gQ3dMqCY1jLEKnIxSd0gliaTlpTVdrb2UWB+1OpyzBwMuKXGpPTqWXH66pOf/dlRMsvRvb9YEc3NaoFjY+JWzNRMFOgox91Yj+uzORudT3MUlAa6sV/rQu54+Ytey4l2iTMin5Z99kvZ8RybjsztXuj9QNbGaCBO9NJOYttaWu5lZecvqIsjTGMXlVuUo/66QIZ4Lb4iub5lGm4VLwosNt9PUK63xvLfUsvYGW/NyE/eYbj9rRVZHVOY3vBhtSfMa7hAcR7n8uCaJ/ct2D1ChKr+ppVIOmCFtfIZas7dnU3MAgCsHpXmezcyQ2ReHOO/MACrP5UrVhS/kHvreHkuZvhhKxYR2elGwMsin8AfSdZMg==
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 a theme"}
>
</Heading>
<MethodEndpoint
method={"get"}
path={"/api/v1/theme/{pk}"}
context={"endpoint"}
>
</MethodEndpoint>
Get an item model
<Heading
id={"request"}
as={"h2"}
className={"openapi-tabs__heading"}
>
<Translate id="theme.openapi.request.title">Request</Translate>
</Heading>
<ParamsDetails
{...require("./get-a-theme.ParamsDetails.json")}
>
</ParamsDetails>
<RequestSchema
{...require("./get-a-theme.RequestSchema.json")}
>
</RequestSchema>
<StatusCodes
{...require("./get-a-theme.StatusCodes.json")}
>
</StatusCodes>