Skip to content

Commit 741d761

Browse files
committed
chore: migrate to docusaurus
1 parent 5c3f41d commit 741d761

File tree

406 files changed

+42282
-14
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

406 files changed

+42282
-14
lines changed

.github/workflows/ci.yml

Lines changed: 17 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -16,22 +16,27 @@ jobs:
1616
runs-on: ubuntu-latest
1717
timeout-minutes: 15
1818
steps:
19-
- name: Checkout code
19+
- name: 📥 Checkout repository
2020
uses: actions/checkout@v4
2121
with:
2222
fetch-depth: 2
2323

24-
- name: Set up Node.js
24+
- name: 📦 Setup pnpm package manager
25+
uses: pnpm/action-setup@v4
26+
with:
27+
run_install: false
28+
29+
- name: 🟢 Setup Node.js runtime
2530
uses: actions/setup-node@v4
2631
with:
27-
node-version: "22"
32+
node-version: 22
33+
cache: 'pnpm'
34+
35+
- name: 📚 Install project dependencies
36+
run: pnpm install --frozen-lockfile
37+
38+
- name: ✅ Check types
39+
run: pnpm typecheck
2840

29-
- name: Check for broken links
30-
run: |
31-
set -e
32-
output=$(npx mint broken-links)
33-
echo "$output"
34-
if ! echo "$output" | grep -q '^success '; then
35-
echo "Error: Broken links found! Fix the broken links listed above before merging."
36-
exit 1
37-
fi
41+
- name: 🏗️ Build
42+
run: pnpm build

.gitignore

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,9 @@ yarn-error.log*
2828
# local env files
2929
.env*.local
3030
.env
31+
3132
# vercel
3233
.vercel
3334

34-
# lock files
35-
package-lock.json
35+
# docusaurus
36+
/.docusaurus

CONTRIBUTING.md

Lines changed: 118 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,118 @@
1+
# Contribution Guide
2+
3+
Thank you for considering contributing to the Plane developer documentation!
4+
Your contributions help improve the quality and accessibility of our
5+
documentation for all users. Please follow the guidelines outlined below to
6+
ensure a smooth contribution process.
7+
8+
## 1. Create a new issue
9+
10+
If you encounter a problem or wish to suggest an improvement in the
11+
documentation that hasn't been addressed yet, please create a [new issue](https://github.com/makeplane/developer-docs/issues/new). Be sure
12+
to check existing [issues](https://github.com/makeplane/developer-docs/issues) to avoid duplication. Include a clear description of
13+
the problem or enhancement you're suggesting.
14+
15+
## 2. Contributing
16+
17+
To contribute your changes, you have two options:
18+
19+
1. Edit the files directly on Github
20+
- Perfect for small, single-file changes. This is the easiest option but you
21+
won't be able quickly iterate on your changes with a running server.
22+
1. Run this site locally
23+
- Excellent for any size of change.
24+
25+
## Option 1 - Edit on Github
26+
27+
1. While viewing our docs on [developers.plane.so](https://developers.plane.so), navigate to the page you want to change. Scroll to the bottom and click the 'Edit this page' link.
28+
2. If prompted, click the 'Fork this repository' button
29+
3. Make your edits
30+
4. Click the 'Commit changes' button
31+
5. Fill out the form, making sure the 'Commit message' is short and meaningful.
32+
In the 'Extended description' field, be sure to reference the related issue
33+
using GitHub's syntax (`#123`). This links your Pull Request to the
34+
issue and helps us understand your reason for the changes.
35+
6. Click 'Propose changes'
36+
7. Click the 'Create pull request' button
37+
38+
## Option 2 - Edit locally
39+
40+
Follow these steps to run this site and make your changes locally.
41+
42+
### 1. Clone this repository
43+
44+
```bash
45+
git clone [email protected]:makeplane/developer-docs.git && cd developer-docs
46+
```
47+
48+
### 2. Create a new branch
49+
50+
Before making any changes, create a new branch from the `main` branch. This
51+
branch will contain your proposed changes and keep the `main` branch clean for
52+
stable releases.
53+
54+
```bash
55+
git checkout main
56+
git pull origin main
57+
git checkout -b <branch-name>
58+
```
59+
60+
Next, install the dependencies.
61+
62+
```bash
63+
corepack enable pnpm
64+
pnpm install
65+
```
66+
67+
### 3. Run the site locally
68+
69+
Start up a local development server so you can preview your changes before submitting them for review.
70+
71+
```bash
72+
pnpm dev
73+
```
74+
75+
This command starts a local development server and opens up a browser window. Most changes are reflected live without having to restart the server.
76+
77+
#### About this site
78+
79+
This site is built using [Docusaurus](https://docusaurus.io/), an open source
80+
static website generator along with
81+
[docusaurus-openapi-docs](https://github.com/PaloAltoNetworks/docusaurus-openapi-docs).
82+
83+
To find out which directories are served at which routes, [read this](https://docusaurus.io/docs/next/advanced/routing).
84+
85+
### 4. Make changes
86+
87+
Open the relevant documentation file and make your changes. Using your local
88+
browser, review that your changes look as you expect and they align with our
89+
current styles and tone across the documentation.
90+
91+
**Warning**: All files in `docs/api/*` are auto-generated. Do not edit by hand.
92+
93+
### 5. Commit your changes
94+
95+
When committing your changes, leave a clear and concise message that links to
96+
the corresponding issue (if applicable) and explains the fix or enhancement
97+
you've made.
98+
99+
```bash
100+
git add .
101+
git commit -m "Fixes #<issue-number>: Description of the fix or enhancement"
102+
```
103+
104+
### 6. Link the Issue to the Pull Request
105+
106+
In your pull request description, be sure to reference the related issue using GitHub's syntax (`#<issue-number>`). This links the PR to the issue and helps maintain context.
107+
108+
### 7. Sign the Contributor License Agreement (CLA)
109+
110+
Before we can merge your contribution, you must sign our contributor license agreement (CLA). This agreement ensures that your contributions comply with our licensing terms.
111+
112+
### 8. Reviews
113+
114+
Once your Pull Request is submitted, a member of our team will be assigned to review your changes. They will provide feedback and may request revisions if necessary. Please respond promptly to any review comments to expedite the review and acceptance process.
115+
116+
## Thank you!
117+
118+
Thank you for contributing to our documentation! We greatly appreciate your efforts to help improve the Plane community.

README.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Plane developer documentation
2+
3+
This repository hosts comprehensive developer documentation for Plane, accessible at [developers.plane.so](https://developers.plane.so). If you are looking for the product documentation, see [Plane documentation](https://github.com/makeplane/docs).
4+
5+
## Raising issues
6+
7+
If you encounter any issues with our documentation or have suggestions for improvements, we encourage you to follow these steps:
8+
9+
1. **Check existing issues**: Before raising a new issue, please verify if a [similar issue](https://github.com/makeplane/developer-docs/issues) already exists.
10+
2. **Raise an issue**: If you don't find an existing issue that matches your concern, feel free to [create a new one](https://github.com/makeplane/developer-docs/issues/new). Provide as much detail as possible to clearly explain the problem or enhancement you're proposing.
11+
12+
## Contributing
13+
14+
Are you interested in contributing to our documentation? We welcome contributions from the community! You can contribute by:
15+
16+
- Fixing bugs in the existing documentation
17+
- Adding new guides or tutorials
18+
19+
To get started with contributing, please refer to our [Contribution Guide](/CONTRIBUTING.md). We appreciate contributions related to self-hosting, core product functionality, and integrations with other applications.

_category_.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"label": "Overview",
3+
"position": 1,
4+
"collapsible": false,
5+
"collapsed": false,
6+
"link": {
7+
"type": "generated-index"
8+
}
9+
}

0 commit comments

Comments
 (0)