Skip to content

docs: add optional gitignore step to manual setup - #14671

Merged
ArmandPhilippot merged 2 commits into
withastro:mainfrom
pruthvi2103:docs/manual-setup-gitignore
Oct 7, 2026
Merged

ArmandPhilippot merged 2 commits into
withastro:mainfrom
pruthvi2103:docs/manual-setup-gitignore

Conversation

@pruthvi2103

@pruthvi2103 pruthvi2103 commented Oct 6, 2026 •

Copy link
Copy Markdown
Contributor

Description (required)

Adds an optional .gitignore step to Manual Setup with .astro/, .env, dist/, and node_modules/ to exclude Astro's generated files, installed dependencies, and the local environment file from version control. Clarifies that users should extend this list for any other files they wish to exclude, including additional environment files that can contain secrets. Includes .gitignore in the final project tree.

References

Validation

  • git diff --check passes.
  • Reviewed the four ignore entries, step numbering, and final project tree.
  • Confirmed the added environment variables link points to the existing .env files section.
  • Site build not run locally.

@astrobot-houston

astrobot-houston commented Oct 6, 2026 •

Copy link
Copy Markdown
Contributor

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 tracking.ignoredKeywords 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

File Note
install-and-setup.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.

@astrobot-houston

Copy link
Copy Markdown
Contributor

Hello! Thank you for opening your first PR to Astro’s Docs! 🎉

Here’s what will happen next:

  1. Our GitHub bots will run to check your changes.
    If they spot any broken links you will see some error messages on this PR.
    Don’t hesitate to ask any questions if you’re not sure what these mean!

  2. Once a maintainer approves our workflows, you’ll be able to see a preview of your changes on Cloudflare 🥳.

  3. One or more of our maintainers will take a look and may ask you to make changes.
    We try to be responsive, but don’t worry if this takes a few days.

@github-actions

github-actions Bot commented Oct 6, 2026 •

Copy link
Copy Markdown

Preview deployment

✅ Deployment complete!

@ArmandPhilippot ArmandPhilippot left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, @pruthvi2103! I left a suggestion to move "contain secrets" and to suggest users to complete that list. I think this can be helpful for people new with version control, and this remains short enough.

@ArmandPhilippot ArmandPhilippot added the improve or update documentation Enhance / update existing documentation (e.g. add example, improve description, update for changes) label Oct 6, 2026

@ArmandPhilippot ArmandPhilippot left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks again, and welcome to Docs contributors! 🥳

@ArmandPhilippot
ArmandPhilippot merged commit 5b1aeb6 into withastro:main Oct 7, 2026
9 checks passed
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.

.gitignore guidance missing from manual setup steps

3 participants