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
2.8 KiB
Plaintext
67 lines
2.8 KiB
Plaintext
---
|
|
id: create-a-theme
|
|
title: "Create a theme"
|
|
description: "Create a theme"
|
|
sidebar_label: "Create a theme"
|
|
hide_title: true
|
|
hide_table_of_contents: true
|
|
api: eJzNV21P5DYQ/ivWqNKBGlhArYR84sOCOB30dCB2aSsRxHmTgQQS22c7C9so/70aO5vNvlD1jkrXT+vYM+N5nnk89tZg8GuF1h2rdAa8hkRJh9LRUGhd5IlwuZKDR6skzdkkw1LQSBul0bgcLX3R+l0qnF9yM43AwTqTywdoInAZlngnRYkblpvI55AbTIHf9CIt+d1Gcz81ecTE0WruCpoYk9UVWjfU+a5W1tGW+CJKXeBKbvNNl1NapNJEkKJNTK4J9Tw2a1H3E3WmQp+51UraQMLB3v4bKMzTHjmyKidoIOxQFe5/z3izar1cAwK33wfzLUV5pSqJQeEwpZ1+2dt7A/MlWiseXmHqn1B1jnAsUtaeJM7O5FQUecq0MKJEh8YybdQ0TynZdTQ934DlLSr6D7BcS1G5TJn8L0w5G1YuQ+na/VknnA1A+o4eycHBj0aijUroc1IgIxRuxtnvVJyABo1RZhOUE1UVKZPKsTZC601b/fqjxXYmHRopCmbRT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oPgrBZrbpmn+Bt1z4xA=
|
|
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 a theme"}
|
|
>
|
|
</Heading>
|
|
|
|
<MethodEndpoint
|
|
method={"post"}
|
|
path={"/api/v1/theme/"}
|
|
context={"endpoint"}
|
|
>
|
|
|
|
</MethodEndpoint>
|
|
|
|
|
|
|
|
Create a theme
|
|
|
|
<Heading
|
|
id={"request"}
|
|
as={"h2"}
|
|
className={"openapi-tabs__heading"}
|
|
>
|
|
<Translate id="theme.openapi.request.title">Request</Translate>
|
|
</Heading>
|
|
|
|
<ParamsDetails>
|
|
|
|
</ParamsDetails>
|
|
|
|
<RequestSchema
|
|
{...require("./create-a-theme.RequestSchema.json")}
|
|
>
|
|
|
|
</RequestSchema>
|
|
|
|
<StatusCodes
|
|
{...require("./create-a-theme.StatusCodes.json")}
|
|
>
|
|
|
|
</StatusCodes>
|