Files
superset2/docs/developer_docs_versioned_docs/version-6.1.0/api/export-dashboard-as-example-bundle.api.mdx
Superset Dev 5a5a0e70fc 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.
2026-05-04 08:53:25 -07:00

69 lines
3.5 KiB
Plaintext

---
id: export-dashboard-as-example-bundle
title: "Export dashboard as example bundle"
description: "Exports a dashboard with its charts and datasets in the example format used by the Superset example loading system. The export includes Parquet data files and YAML configuration files."
sidebar_label: "Export dashboard as example bundle"
hide_title: true
hide_table_of_contents: true
api: eJzVV21v2zYQ/iuHw4AlmBonWwcUKvoh69LXrAtqF10XBSktnS02EqmSlBNX0H8fjpTkl7hBuw0r9skWX+6e53h3fNhgRjY1snJSK4zx5KbSxlkQkAmbT7UwGVxLl4N0FtJc+DmVQSacsOQsSAUuJ6AbUVYFwUybUjioLWUwXfqpcV2RseSGNYUWmVRzsEvrqDyAid/PfkGqtKgzsnAmzMeanPcDM1lQcPvu+LdTSLWayXltBGMOkwcYYSWMKMmRsRifN1u82MeKkcwwQsnjlXA5RqhESfx1hREa+lhLQxnGztQUoU1zKgXGDbplxaukcjQng20bbbt5m5PLyYDTPZUdTHrfH2syy5XzEIJLXofrXjOaibpwPZwOxFTrgoTaBeJU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dYujEBLrSuEvlU6xBe2+JnOFHTR3kErbAVu7rv7Pyr8Lr6MbN6oKIb3C8JXRdIV6jqKSHMQjDkHPDyOMveS/Va8YIad2yN1zbJqpsPTGFG3Lw0Ep+0eGtFw8GcYzUVi6I7xf+jLYyeWKlrceCAtR1LzSt4Evx/H1j4M7EG2+EVaILlZ95SvDtPe6k8j7sOPJthNKNyjUch1DD7G6wvaC25C/STyaMHGcpuQvtn7L9itlo+s/PeHKZoW+JtGG+u7+sPGdaJomrAg3UzuA81c042vbvwA/ZGS5
sidebar_class_name: "get 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={"Export dashboard as example bundle"}
>
</Heading>
<MethodEndpoint
method={"get"}
path={"/api/v1/dashboard/{pk}/export_as_example/"}
context={"endpoint"}
>
</MethodEndpoint>
Exports a dashboard with its charts and datasets in the example format used by the Superset example loading system. The export includes Parquet data files and YAML configuration files.
<Heading
id={"request"}
as={"h2"}
className={"openapi-tabs__heading"}
>
<Translate id="theme.openapi.request.title">Request</Translate>
</Heading>
<ParamsDetails
{...require("./export-dashboard-as-example-bundle.ParamsDetails.json")}
>
</ParamsDetails>
<RequestSchema
{...require("./export-dashboard-as-example-bundle.RequestSchema.json")}
>
</RequestSchema>
<StatusCodes
{...require("./export-dashboard-as-example-bundle.StatusCodes.json")}
>
</StatusCodes>