-
Notifications
You must be signed in to change notification settings - Fork 76
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Mike Diarmid <[email protected]>
- Loading branch information
Showing
294 changed files
with
11,498 additions
and
26,995 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
name: Code quality | ||
|
||
on: | ||
pull_request: | ||
|
||
jobs: | ||
quality: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Setup Biome | ||
uses: biomejs/setup-biome@v2 | ||
with: | ||
version: latest | ||
- name: Run Biome | ||
run: biome ci . |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# Contributing | ||
|
||
This repository uses [Bun](https://bun.sh/) for workspace and dependency management. To get started, run the following commands: | ||
|
||
```bash | ||
bun install | ||
``` | ||
|
||
The repository is structured as follows: | ||
|
||
- `api`: The API server which is served via `https://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 Remix application which serves the main `https://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. | ||
|
||
## Running docs.page | ||
|
||
Generally, you'll want to interface with the website and api. To run these concurrently, you can use the following command: | ||
|
||
```bash | ||
bun dev | ||
``` | ||
|
||
This will start the website on `http://localhost:5173` and the api on `http://localhost:8080`. | ||
|
||
> The API requires a `GITHUB_APP_ID` and `GITHUB_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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
export class BundlerError extends Error { | ||
code: number; | ||
name: string; | ||
source?: string; | ||
|
||
constructor({ | ||
code, | ||
name, | ||
message, | ||
source, | ||
}: { | ||
code: number; | ||
name: string; | ||
message: string; | ||
source?: string; | ||
}) { | ||
super(message); | ||
this.code = code; | ||
this.name = name; | ||
this.message = message; | ||
this.source = source; | ||
} | ||
} |
Oops, something went wrong.