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.1 KiB
Plaintext
69 lines
3.1 KiB
Plaintext
---
|
|
id: set-a-theme-as-the-system-dark-theme
|
|
title: "Set a theme as the system dark theme"
|
|
description: "Set a theme as the system dark theme"
|
|
sidebar_label: "Set a theme as the system dark theme"
|
|
hide_title: true
|
|
hide_table_of_contents: true
|
|
api: eJzFV21v2zYQ/iuHw4AlmBI3WQsEKvohDVq0WZEGtbMXREFKS+eIjUSyJOXGE/TfhyNl+SUesLUf8skWeXe657lXtWiEFTV5sg7T6xYLcrmVxkutMMVJSeBLqglkgQlKPjPCl5igEjXx0z0maOlrIy0VmHrbUIIuL6kWmLboF4alpPJ0Rxa77oalndHKkWOB42fP+CfXypPy/FcYU8lcsAejL47daNcMGqsNWS+jtix2vSS8oqn82p3zVqo77LpkeaKnXyj3LEwPojYVLe0drdRXal3ymJmawDV5Ts7NmqpagCMPwoFbOE81FMLes/XnPwSwJufEHf1/JIMivhYFcIDI+RTeq7moZAGrqIOxei4LKnahXNONWI6eFsuVEo0vtZV/U5HCaeNLUr5/PwxZuAPIumJE8uvTInmr7VQWBakU/tINFFr97KEUcwJDtpbOMSKvQYQEA19KB5acbmxOuwAO9iK650+L7kJ7mOlG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VVw0+YcPOOH2XdDWdnaHbBk3hxmucUWvFS5dG6wWk1tIHLK444b85rXA5x7/+w9Z3utG2UiN2zG7wLU4cd7Lp/ACPD/qs=
|
|
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 dark theme"}
|
|
>
|
|
</Heading>
|
|
|
|
<MethodEndpoint
|
|
method={"put"}
|
|
path={"/api/v1/theme/{pk}/set_system_dark"}
|
|
context={"endpoint"}
|
|
>
|
|
|
|
</MethodEndpoint>
|
|
|
|
|
|
|
|
Set a theme as the system dark 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-dark-theme.ParamsDetails.json")}
|
|
>
|
|
|
|
</ParamsDetails>
|
|
|
|
<RequestSchema
|
|
{...require("./set-a-theme-as-the-system-dark-theme.RequestSchema.json")}
|
|
>
|
|
|
|
</RequestSchema>
|
|
|
|
<StatusCodes
|
|
{...require("./set-a-theme-as-the-system-dark-theme.StatusCodes.json")}
|
|
>
|
|
|
|
</StatusCodes>
|