Skip to content

[project-structure] update FileTree example to show content collections#9572

Merged
sarah11918 merged 3 commits into
mainfrom
project-structure
Oct 7, 2024
Merged

[project-structure] update FileTree example to show content collections#9572
sarah11918 merged 3 commits into
mainfrom
project-structure

Conversation

@sarah11918
Copy link
Copy Markdown
Member

Description (required)

Updates the Project Structure page in the Basics section:

<FileTree> updates:

  • shows the three markdown posts as a collection, instead of located in /pages/posts/ as a more realistic/helpful example
  • adds an example of more helpful pages (about, RSS, and dynamic routing)
  • bolds index.astro

src/pages updates:

  • moves it to be the first example, as the most important one (do not care that this breaks alpha order)
  • Simplifies the (not entirely accurate/comprehensive) wording and emphasizes the link to Pages basic guide instead

Caveats:

  • This will may need to be slightly tweaked again for v5 beta when content collections rules change, but this is much more future proof for that branch and isn't technically wrong.

Fun fact:

  • First test of submitting a PR through IDX!

@netlify
Copy link
Copy Markdown

netlify Bot commented Oct 5, 2024

Deploy Preview for astro-docs-2 ready!

Name Link
🔨 Latest commit 71b7c4d
🔍 Latest deploy log https://app.netlify.com/sites/astro-docs-2/deploys/6703c0f557139600084194c8
😎 Deploy Preview https://deploy-preview-9572--astro-docs-2.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@astrobot-houston
Copy link
Copy Markdown
Contributor

astrobot-houston commented Oct 5, 2024

Lunaria Status Overview

🌕 This pull request will trigger status changes.

Learn more

By default, every PR changing files present in the Lunaria configuration's files property will be considered and trigger status changes accordingly.

You can change this by adding one of the keywords present in the ignoreKeywords property in your Lunaria configuration file in the PR's title (ignoring all files) or by including a tracker directive in the merged commit's description.

Tracked Files

Locale File Note
en basics/project-structure.mdx Source changed, localizations will be marked as outdated.
Warnings reference
Icon Description
🔄️ The source for this localization has been updated since the creation of this pull request, make sure all changes in the source have been applied.

@sarah11918 sarah11918 changed the title [project-structure] update FileTree example to show component [project-structure] update FileTree example to show content collections Oct 5, 2024
@sarah11918 sarah11918 added the improve or update documentation Enhance / update existing documentation (e.g. add example, improve description, update for changes) label Oct 7, 2024
@sarah11918 sarah11918 merged commit 00ea452 into main Oct 7, 2024
@sarah11918 sarah11918 deleted the project-structure branch October 7, 2024 11:14
ArmandPhilippot added a commit to ArmandPhilippot/astro-docs that referenced this pull request Oct 8, 2024
yanthomasdev added a commit that referenced this pull request Oct 8, 2024
* i18n(fr): update `basics/project-structure.mdx`

See #9572

* fix broken anchor link

---------

Co-authored-by: Yan <61414485+yanthomasdev@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

improve or update documentation Enhance / update existing documentation (e.g. add example, improve description, update for changes)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants