Set up Preview
Ingress.Wiki is built with Starlight and Astro. To be able to preview your contribution before contributing to our GitHub repo, you need to set up a development environment.
You can set up environment on your own computer if you plan to contribute often or already have most of the tools, but if you’re not into programming, you can use a cloud-based development environment like GitHub Codespaces.
-
We use pnpm as our package manager. Even though npm will happily install the dependencies, we recommend using pnpm to avoid potential dependency version issues.
-
Clone our GitHub repo. If you are not familiar with Git, we recommend GitHub Desktop for it’s relatively easy-to-use interface.
Repo URL:
https://github.com/Ingress-wiki/IngressWiki
-
Run
pnpm install
in the repo directory to install the dependencies. -
Run
pnpm dev
to start the development server. You should see something like this:astro v5.2.5 ready in 1473 ms┃ Local http://localhost:4321/┃ Network use --host to exposeOpen the URL after
Local
in your browser to see the site.
-
Open the GitHub repo in your browser.
-
Click the “Code” button, select “Codespaces” tab and create a new Codespace.
-
Wait for it to load. If it recommends you to install Astro extension, click “Install”.
-
In the terminal, run
pnpm install
to install the dependencies. -
Run
pnpm dev
to start the dev server. -
You should see a popup saying something like:
Your application running on port 4321 is available.
Click “Open in Browser” to see the site.
Now you can start contributing by editing the Markdown files in the src/content/docs
directory. The site will automatically update when you save the file. Afterwards you can submit your changes by creating a pull request on GitHub.