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.2 KiB
Plaintext
69 lines
3.2 KiB
Plaintext
---
|
|
id: set-a-theme-as-the-system-default-theme
|
|
title: "Set a theme as the system default theme"
|
|
description: "Set a theme as the system default theme"
|
|
sidebar_label: "Set a theme as the system default theme"
|
|
hide_title: true
|
|
hide_table_of_contents: true
|
|
api: eJzFV21v2zYQ/iuHw4AlmBI3XQcUKvohDVq0XZEGtbMXREFKS+eIjUSyJOXGE/TfhyMl+SUesK0f8skWdXe657lXtmiEFTV5sg7TqxYLcrmVxkutMMVZSeBLqglkgQlKPjPCl5igEjXx0x0maOlrIy0VmHrbUIIuL6kWmLboV4alpPJ0Sxa77pqlndHKkWOBp0+e8E+ulSfl+a8wppK5YA8mXxy70W4YNFYbsl5GbVns+0j4RFP5jXfOW6luseuS4UTPv1DuWZjuRW0qGuydrNXXal3ykJmawDV5Ts4tmqpagSMPwoFbOU81FLQQbKRL8Nl3YazJOXFL/x3MqIivRAEcI3I+hXdqKSpZwDrwYKxeyoKKfUA3dCOWk8fFcqlE40tt5V9UpHDa+JKU778PYyLuAbKpGJH8/LhI3mg7l0VBKoU/dQOFVj96KMWSwJCtpXOMyGsQIcfAl9KBJacbm9M+gKO9iO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+AkT7uXxstZdc46Gxhc8iS9O85xCZx5UHuwgnFxjP7i45LjzOr1B5xj9/g9b3+tO20aJ2Em70bswhNjBrvsbSfUI0g==
|
|
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={"Set a theme as the system default theme"}
|
|
>
|
|
</Heading>
|
|
|
|
<MethodEndpoint
|
|
method={"put"}
|
|
path={"/api/v1/theme/{pk}/set_system_default"}
|
|
context={"endpoint"}
|
|
>
|
|
|
|
</MethodEndpoint>
|
|
|
|
|
|
|
|
Set a theme as the system default theme
|
|
|
|
<Heading
|
|
id={"request"}
|
|
as={"h2"}
|
|
className={"openapi-tabs__heading"}
|
|
>
|
|
<Translate id="theme.openapi.request.title">Request</Translate>
|
|
</Heading>
|
|
|
|
<ParamsDetails
|
|
{...require("./set-a-theme-as-the-system-default-theme.ParamsDetails.json")}
|
|
>
|
|
|
|
</ParamsDetails>
|
|
|
|
<RequestSchema
|
|
{...require("./set-a-theme-as-the-system-default-theme.RequestSchema.json")}
|
|
>
|
|
|
|
</RequestSchema>
|
|
|
|
<StatusCodes
|
|
{...require("./set-a-theme-as-the-system-default-theme.StatusCodes.json")}
|
|
>
|
|
|
|
</StatusCodes>
|