A place for developers interested in start.gg's API
Great question!
- Fork/checkout this repo.
- Add your .md file in the correct place in the
/docsdirectory - Add the path to your doc file in website/sidebars.json
- Open a pull request with these changes and wait for approval :)
Here are some quick tips for your docs!
- Make sure to use H2's as these are used for page nav
- If you are linking to an external page (ie not on developer.start.gg/*) please have these open in a new tab using
<a href="https://external-site.example" target="_blank">Hyperlink text</a> - If you are linking to a page within developer.start.gg,
please link it as
[hyperlink text](/page)instead of[hyperlink text](https://developer.start.gg/page) - Try to keep your characters per line to around 80. This helps prevent merge conflicts and is generally better for version control.
For those of you using Visual Studio Code, there are two recommended extensions:
- Markdown All In One: This extension allows for easy preview and editing.
- Markdownlint: For good quality Markdown files and warnings when breaking style rules.
The /projects page is generated from the Community API Projects Google Sheet.
You do not need a pull request to update it — just edit the sheet and trigger a rebuild.
How it works: website/fetch-projects.js reads the sheet and writes
website/data/projects.js. It runs automatically as the prebuild step, so
every production build refreshes the list from the sheet. If the fetch fails
(missing key, API error, empty result) the build keeps the last committed
data/projects.js, so a bad build never takes the site down.
To publish sheet edits:
- Edit the Google Sheet.
- Trigger a Netlify rebuild (see below). The next build pulls the latest data.
- Add the API key (Site configuration → Environment variables):
SHEETS_API_KEY= a Google Cloud API key with the Google Sheets API enabled and read access to the sheet. (Restrict the key by API + optionally by referrer.) - Create a Build Hook (Site configuration → Build & deploy → Build hooks). POST to that URL — or bookmark and open it — to rebuild on demand after editing the sheet.
- (Optional) Auto-refresh on a schedule: ping the Build Hook from any cron (e.g. a GitHub Actions scheduled workflow) so sheet edits go live automatically, e.g. nightly.
cd website
SHEETS_API_KEY=your_key yarn build # prebuild fetches fresh data, then builds
# or just regenerate data/projects.js without building:
SHEETS_API_KEY=your_key yarn fetch-projects
Without SHEETS_API_KEY, builds still work and simply use the committed data.