This project is hosted at https://replace-me.mrs-electronics.dev
Follow these steps in every new docs repository.
- Use this template to create new repo - link
- Configure new repo with correct settings - docs
- Configure GitHub Pages
- "GitHub Actions" as source
- Add DNS config in AWS Route 53
- Add custom domain in GitHub
- Create a pull request
- Update the title in the README
- Update the URL in the README
- Update
astro.config.mjswith appropriate configuration - Update
src/content/docs/index.mdxwith appropriate information - Update
public/site.webmanifestwith appropriate information - Update
package.jsonwith project name - Add any initial content
- Remove the "New Project Checklist" from the README
- Merge the pull request
- Verify that deployment is successful
- Enable "Enforce HTTPS" in the GitHub pages settings (it does not seem you can do it until you have a deployment)
Starlight looks for .md or .mdx files in the src/content/docs/ directory. Each file is exposed as a route based on its file name.
Images can be added to src/assets/ and embedded in Markdown with a relative link.
Static assets, like favicons, can be placed in the public/ directory.
All commands are run from the root of the project, from a terminal:
| Command | Action |
|---|---|
npm install |
Installs dependencies |
npm run dev |
Starts local dev server at localhost:4321 |
npm run build |
Build your production site to dist/ |