This is the repository for Nepalcodes website. Its built with Astro.
Of course you are welcome to contribute to this, please check the contributing section below. If you need help setting up project, contributing, or anything else please don't hesitate join us on Discord.
Inside of this Astro project, you'll see the following folders and files:
├── public/
├── src/
│ ├── components/
│ ├── templates/
│ ├── layouts/ // How markdown pages are rendered
│ └── pages/ // Folder/File based routing
├── astro.config.mjs
├── README.md
├── package.json
└── tsconfig.json
Astro looks for .astro
or .md
files in the src/pages/
directory. Each page is exposed as a route based on its file name.
There's nothing special about src/components/
, but that's where we like to put any Astro/React/Vue/Svelte/Preact components.
Any static assets, like images, can be placed in the public/
directory.
All commands are run from the root of the project, from a terminal:
Command | Action |
---|---|
pnpm install |
Installs dependencies |
pnpm run dev |
Starts local dev server at localhost:4321 |
pnpm run build |
Build your production site to ./dist/ |
pnpm run preview |
Preview your build locally, before deploying |
pnpm run astro ... |
Run CLI commands like astro add , astro check |
pnpm run astro -- --help |
Get help using the Astro CLI |
pnpm install
- Make sure you are on the most recent/updated version:
git fetch
- Create a new branch (Make sure you are NOT on the
main
branch!!) - Make your changes
- Commit all your code
- Push it to GitHub:
git push
- Create a pull request (on GitHub)
- Test it at
<your branch name>.nepalingo.pages.dev
or the link created by the cloudflare pages bot - Once its been approved, merge it to
main
in GitHub
https://github.com/nepalcodes/nepal-codes.github.io/graphs/contributors