mirror of
https://github.com/apache/superset.git
synced 2026-05-08 09:25:56 +00:00
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.
This commit is contained in:
@@ -0,0 +1,66 @@
|
||||
---
|
||||
id: update-the-current-user
|
||||
title: "Update the current user"
|
||||
description: "Updates the current user's first name, last name, or password."
|
||||
sidebar_label: "Update the current user"
|
||||
hide_title: true
|
||||
hide_table_of_contents: true
|
||||
api: eJzFV1Fv2zYQ/ivEYUATTInroRgKFX1Igg5tV7RGbWMDoiClpbPNRiJVknKiCfrvw5GSLFlukS0D9iTpdHe877vj8VhBgibWIrdCSQhhmSfcomF2iywutEZpWWFQPzNsLbSxTPIMA5by7lVplnNj7pVOziEAjd8KNPZSJSWEFcRKWpSWXnmepyLmtNDkq6HVKjDxFjNOb7lWOWor0NCXW+uWFqCvYYiLH4UGAWT84QPKjd1C+OuLADIh289pALbMEUIwVgu5gToAQvL4hTrc/3idlqNHLdMqs7XSjBd2i9I21MHId91J1OorxpY0hE1JcOXdLg3qWWHnnuw6AHzgWZ7iIdOtywEre+Eewn7t2mdcaEwgtLpAJzC5ksZn8pfnz59QBxpNkdqxHDMuUnoZ8TysnNFvkfTEQlrcoHZyc8tjK3Z9q5VSKXLZ/pZKlpkqzHGNQR2Nq0xthLy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apW3OBSp3VN4m8Fajo2b/Yl7w7PAHyPctvyDkvaIr1u43ZIWlAko6GB9p+3uIhjdP31+7r9JjFbUpmsmgtcphIy0fyeLnf8HkKAAJTj1I/oJPNNvvADhXdJlUTzQX9cbiuueSFQzS8uy16AVeU1fK+lNuGRuPMI6pu6rv8G5r8OqQ==
|
||||
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={"Update the current user"}
|
||||
>
|
||||
</Heading>
|
||||
|
||||
<MethodEndpoint
|
||||
method={"put"}
|
||||
path={"/api/v1/me/"}
|
||||
context={"endpoint"}
|
||||
>
|
||||
|
||||
</MethodEndpoint>
|
||||
|
||||
|
||||
|
||||
Updates the current user's first name, last name, or password.
|
||||
|
||||
<Heading
|
||||
id={"request"}
|
||||
as={"h2"}
|
||||
className={"openapi-tabs__heading"}
|
||||
>
|
||||
<Translate id="theme.openapi.request.title">Request</Translate>
|
||||
</Heading>
|
||||
|
||||
<ParamsDetails>
|
||||
|
||||
</ParamsDetails>
|
||||
|
||||
<RequestSchema
|
||||
{...require("./update-the-current-user.RequestSchema.json")}
|
||||
>
|
||||
|
||||
</RequestSchema>
|
||||
|
||||
<StatusCodes
|
||||
{...require("./update-the-current-user.StatusCodes.json")}
|
||||
>
|
||||
|
||||
</StatusCodes>
|
||||
Reference in New Issue
Block a user