This repository uses Bun for workspace and dependency management. To get started, run the following commands:
bun install
The repository is structured as follows:
api
: The API server which is served viahttps://api.docs.page
. This is an express application which handles tasks such as fetching content from GitHub and markdown parsing.og
: A Next.js application which serves the Open Graph images for documentation pages.website
: A Next.js application which serves the mainhttps://docs.page
website, and the documentation rendering for each repository.packages/cli
: A CLI for running various commands and scripts for initialization, checking etc. Used locally and on CI environments.
Generally, you'll want to interface with the website and api. To run these concurrently, you can use the following command:
bun dev
This will start the website on http://localhost:3000
and the api on http://localhost:8080
.
The API requires a
GITHUB_APP_ID
andGITHUB_APP_PRIVATE_KEY
to be set in your environment. These are used to authenticate with the GitHub API. You can create a GitHub App in your GitHub account settings.