mirror of
https://github.com/apache/superset.git
synced 2026-05-08 09:25:56 +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
2.9 KiB
Plaintext
67 lines
2.9 KiB
Plaintext
---
|
|
id: import-themes-from-a-zip-file
|
|
title: "Import themes from a ZIP file"
|
|
description: "Import themes from a ZIP file"
|
|
sidebar_label: "Import themes from a ZIP file"
|
|
hide_title: true
|
|
hide_table_of_contents: true
|
|
api: eJzFV21P5DYQ/ivWqNKBGlg4tRLyiQ9A73TQ04G6S1uVIM6bzJKAY/tsZyGN8t+rsbPZF7bV9b7waR17Zvw8z4zH3hYsfq3R+VOdN8BbyLTyqDwNq1r60gjrRzNtq71ceEHTLiuwCiNjtUHrS3T0RUa/9DY0Fh44TEslbAMJ+MYgcHDeluoeugT0HO2TLT2S/cZqN9jr6QNmHjqaIqSlxRy4tzWGCWe0cnH7twcHG/iFMbLMhC+1Gj04rf4LfIXOiftvw5IAPovKSFxzXDp0CeToMlsa2ho4TAqskJWV0dZjTgF+em2wpyJnfeY5O1dzIcucGWFFhR6tY8bqeZkT2Jd0Vnwjl8PX5XKtRO0Lbcu/MefspPYFKt/vz4ai2UJk1TEwefv2tZkYqzP6nEpkxMI3nP1OyYls0Fptt1E507XMmdKe9RF6b9rq59cutnPl0SohmUM7RxtZcHaiWK3w2WDmM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_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={"Import themes from a ZIP file"}
|
|
>
|
|
</Heading>
|
|
|
|
<MethodEndpoint
|
|
method={"post"}
|
|
path={"/api/v1/theme/import/"}
|
|
context={"endpoint"}
|
|
>
|
|
|
|
</MethodEndpoint>
|
|
|
|
|
|
|
|
Import themes from a ZIP file
|
|
|
|
<Heading
|
|
id={"request"}
|
|
as={"h2"}
|
|
className={"openapi-tabs__heading"}
|
|
>
|
|
<Translate id="theme.openapi.request.title">Request</Translate>
|
|
</Heading>
|
|
|
|
<ParamsDetails>
|
|
|
|
</ParamsDetails>
|
|
|
|
<RequestSchema
|
|
{...require("./import-themes-from-a-zip-file.RequestSchema.json")}
|
|
>
|
|
|
|
</RequestSchema>
|
|
|
|
<StatusCodes
|
|
{...require("./import-themes-from-a-zip-file.StatusCodes.json")}
|
|
>
|
|
|
|
</StatusCodes>
|