···11+---
22+title: Getting Started
33+---
44+55+Quickly display a link to some download asset on your Starlight site.
66+77+## Prerequisites
88+99+You will need to have a Starlight website set up.
1010+If you don't have one yet, you can follow the ["Getting Started"](https://starlight.astro.build/getting-started) guide in the Starlight docs to create one.
1111+1212+## Installation
1313+1414+import { Steps } from "@astrojs/starlight/components";
1515+import PackageManagers from "starlight-package-managers";
1616+1717+<Steps>
1818+1919+1. Install the Starlight Package Managers component using your favorite package manager:
2020+2121+ <PackageManagers pkg="starlight-download-link" />
2222+2323+2. Use the component in any MDX files of your Starlight documentation site.
2424+2525+ ```mdx title="src/content/docs/example.mdx"
2626+ import { DownloadLink } from "starlight-download-link";
2727+2828+ <DownloadLink title="Example PDF" href="../assets/example.pdf" />
2929+ ```
3030+3131+3. [Start the development server](https://starlight.astro.build/getting-started/#start-the-development-server) to preview the component.
3232+3333+</Steps>
3434+3535+The Starlight Download Link component has various [properties](/properties).
-11
docs/src/content/docs/guides/example.md
···11----
22-title: Example Guide
33-description: A guide in my new Starlight docs site.
44----
55-66-Guides lead a user through a specific task they want to accomplish, often with a sequence of steps.
77-Writing a good guide requires thinking about what your users are trying to do.
88-99-## Further reading
1010-1111-- Read [about how-to guides](https://diataxis.fr/how-to-guides/) in the Diátaxis framework
+14-14
docs/src/content/docs/index.mdx
···88 file: ../../assets/houston.webp
99 actions:
1010 - text: Example Guide
1111- link: /guides/example/
1111+ link: /getting-started/
1212 icon: right-arrow
1313 - text: Read the Starlight docs
1414 link: https://starlight.astro.build
···1616 variant: minimal
1717---
18181919-import { Card, CardGrid } from '@astrojs/starlight/components';
1919+import { Card, CardGrid } from "@astrojs/starlight/components";
20202121## Next steps
22222323<CardGrid stagger>
2424- <Card title="Update content" icon="pencil">
2525- Edit `src/content/docs/index.mdx` to see this page change.
2626- </Card>
2727- <Card title="Add new content" icon="add-document">
2828- Add Markdown or MDX files to `src/content/docs` to create new pages.
2929- </Card>
3030- <Card title="Configure your site" icon="setting">
3131- Edit your `sidebar` and other config in `astro.config.mjs`.
3232- </Card>
3333- <Card title="Read the docs" icon="open-book">
3434- Learn more in [the Starlight Docs](https://starlight.astro.build/).
3535- </Card>
2424+ <Card title="Update content" icon="pencil">
2525+ Edit `src/content/docs/index.mdx` to see this page change.
2626+ </Card>
2727+ <Card title="Add new content" icon="add-document">
2828+ Add Markdown or MDX files to `src/content/docs` to create new pages.
2929+ </Card>
3030+ <Card title="Configure your site" icon="setting">
3131+ Edit your `sidebar` and other config in `astro.config.mjs`.
3232+ </Card>
3333+ <Card title="Read the docs" icon="open-book">
3434+ Learn more in [the Starlight Docs](https://starlight.astro.build/).
3535+ </Card>
3636</CardGrid>
+7
docs/src/content/docs/properties.mdx
···11+---
22+title: Available Properties
33+---
44+55+import { DownloadLink } from "starlight-download-link";
66+77+<DownloadLink title="Example PDF" href="../assets/example.pdf" />
-11
docs/src/content/docs/reference/example.md
···11----
22-title: Example Reference
33-description: A reference page in my new Starlight docs site.
44----
55-66-Reference pages are ideal for outlining how things work in terse and clear terms.
77-Less concerned with telling a story or addressing a specific use case, they should give a comprehensive outline of what you're documenting.
88-99-## Further reading
1010-1111-- Read [about reference](https://diataxis.fr/reference/) in the Diátaxis framework