Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove step 4 and 6 from the tutorial #8419

Merged
merged 2 commits into from
Jun 3, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 1 addition & 28 deletions src/content/docs/en/tutorial/5-astro-api/4.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -100,40 +100,13 @@ Individuals can subscribe to your feed in a feed reader, and receive a notificat
site: "https://example.com"
});
```

4. This `rss.xml` document is only created when your site is built, so you won't be able to see this page in your browser during development. Quit the dev server and run the following commands to first, build your site locally and then, view a preview of your build:

<PackageManagerTabs>
<Fragment slot="npm">
```shell
npm run build

npm run preview
```
</Fragment>
<Fragment slot="pnpm">
```shell
pnpm run build

pnpm run preview
```
</Fragment>
<Fragment slot="yarn">
```shell
yarn run build

yarn run preview
```
</Fragment>
</PackageManagerTabs>

5. Visit `http://localhost:4321/rss.xml` and verify that you can see (unformatted) text on the page with an `item` for each of your `.md` files. Each item should contain blog post information such as `title`, `url`, and `description`.
4. Visit `http://localhost:4321/rss.xml` and verify that you can see (unformatted) text on the page with an `item` for each of your `.md` files. Each item should contain blog post information such as `title`, `url`, and `description`.

:::tip[View your RSS feed in a reader]
Download a feed reader, or sign up for an online feed reader service and subscribe to your site by adding your own Netlify URL. You can also share this link with others so they can subscribe to your posts, and be notified when a new one is published.
:::

6. Be sure to quit the preview and restart the dev server when you want to view your site in development mode again.
</Steps>

<Box icon="check-list">
Expand Down
Loading