Skip to content

Commit f9e7e99

Browse files
feat: initial migration towards docusarus
1 parent 9f5b268 commit f9e7e99

File tree

554 files changed

+41024
-6450
lines changed

Some content is hidden

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

554 files changed

+41024
-6450
lines changed

.editorconfig

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# EditorConfig is awesome: https://EditorConfig.org
2+
3+
# top-most EditorConfig file
4+
root = true
5+
6+
[*]
7+
indent_style = space
8+
indent_size = 2
9+
end_of_line = lf
10+
charset = utf-8
11+
trim_trailing_whitespace = true
12+
insert_final_newline = true
13+
max_line_length = 80

.eslintrc.json

Lines changed: 0 additions & 3 deletions
This file was deleted.
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
applyTo: "docs/**/*.mdx, !docs/api/**/*.mdx"
3+
---
4+
5+
Focus on documentation clarity and accuracy, ensuring that instructions are easy
6+
to follow and understand by a technical audience. Avoid suggesting changes that
7+
involve deleting existing content unless it is outdated or incorrect.
8+
9+
When making changes to the documentation, be sure to honor the settings in .editorconfig.
10+
When editing markdown or .MDX files, ignore the line length limit in bullet points, tables,
11+
code blocks and front-matter.

.github/workflows/ci.yml

Lines changed: 21 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -16,22 +16,30 @@ 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"
28-
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
32+
node-version-file: ".nvmrc"
33+
cache: "pnpm"
34+
35+
- name: Enable Corepack
36+
run: corepack enable
37+
38+
- name: 📚 Install project dependencies
39+
run: pnpm install --frozen-lockfile
40+
41+
- name: ✅ Check types
42+
run: pnpm check:type
43+
44+
- name: 🏗️ Build
45+
run: pnpm build

.github/workflows/docs-to-vector.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,20 +24,20 @@ jobs:
2424
}')
2525
2626
echo "$payload" > /tmp/payload.json
27-
27+
2828
- name: Connect to company network
2929
uses: tailscale/github-action@v3
3030
with:
3131
oauth-client-id: ${{ secrets.TS_OAUTH_CLIENT_ID }}
3232
oauth-secret: ${{ secrets.TS_OAUTH_SECRET }}
3333
tags: tag:ci
34-
34+
3535
- name: Call Webhook (Preview)
3636
run: |
3737
payload=$(cat /tmp/payload.json)
3838
sig=$(printf '%s' "$payload" | \
3939
openssl dgst -sha256 -hmac "${{ secrets.VECTOR_WEBHOOK_SECRET_PREVIEW }}" -binary | xxd -p -c 256)
40-
40+
4141
curl -X POST \
4242
-H "Content-Type: application/json" \
4343
-H "X-Hub-Signature-256: sha256=$sig" \
@@ -50,7 +50,7 @@ jobs:
5050
payload=$(cat /tmp/payload.json)
5151
sig=$(printf '%s' "$payload" | \
5252
openssl dgst -sha256 -hmac "${{ secrets.VECTOR_WEBHOOK_SECRET }}" -binary | xxd -p -c 256)
53-
53+
5454
if [ "${{ secrets.VECTOR_WEBHOOK_URL }}" != "none" ]; then
5555
curl -X POST \
5656
-H "Content-Type: application/json" \

.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

.nvmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
lts/jod

.prettierignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
docs/api/
2+
api-spec/
3+
build/
4+
.docusaurus/
5+
node_modules/
6+
pnpm-lock.yaml
7+
static/**/*.webmanifest
8+
old/

.prettierrc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"printWidth": 120,
3+
"tabWidth": 2,
4+
"trailingComma": "es5"
5+
}

CONTRIBUTING.md

Lines changed: 93 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,52 +1,118 @@
1-
# Contribution Guide for Plane Docs
1+
# Contribution Guide
22

3-
Thank you for considering contributing to Plane docs! Your contributions help improve the quality and accessibility of our documentation for all users. Please follow the guidelines outlined below to ensure a smooth contribution process.
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.
47

5-
### 1. Create a New Issue (if it doesn't exist)
6-
If you encounter a problem or wish to suggest an improvement in the documentation that hasn't been addressed yet, please create a new issue. Be sure to check existing issues to avoid duplication. Include a clear description of the problem or enhancement you're suggesting.
8+
## 1. Create a new issue
79

8-
### 2. Create a New Branch from Master
9-
Before making any changes, create a new branch from the `master` branch. This branch will contain your proposed changes and keep the `master` branch clean for stable releases.
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
1043

1144
```bash
12-
git checkout master
13-
git pull origin master
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
1457
git checkout -b <branch-name>
1558
```
1659

17-
### 3. Make Changes in the Appropriate Page
18-
Navigate to the relevant documentation page in the repository and make your changes. Ensure that your changes align with our style guide and maintain consistency across the documentation.
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
1978

20-
### 4. Preview your changes
21-
Make sure you are visually happy with your changes.
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).
2282

23-
1. Run `npx mint dev`
24-
1. A url will be printed to your console. Open it in your browser.
25-
1. Visit your pages and confirm they look correct.
83+
To find out which directories are served at which routes, [read this](https://docusaurus.io/docs/next/advanced/routing).
2684

27-
### 5. Fix broken links
85+
### 4. Make changes
2886

29-
1. Run `npx mint broken-links`
30-
2. Fix all reported broken links
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.
3190

32-
### 6. Raise a Pull Request (PR)
33-
Once your changes are ready, raise a pull request (PR) to merge your branch into the `master` branch. Please provide a descriptive title and detailed description of your changes.
91+
**Warning**: All files in `docs/api/*` are auto-generated. Do not edit by hand.
3492

35-
### 7. Leave a Clear Commit Message
36-
When committing your changes, leave a clear and concise message that links to the corresponding issue (if applicable) and explains the fix or enhancement you've made.
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.
3798

3899
```bash
39100
git add .
40101
git commit -m "Fixes #<issue-number>: Description of the fix or enhancement"
41102
```
42103

43-
### 8. Link the Issue to the Pull Request
104+
### 6. Link the Issue to the Pull Request
105+
44106
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.
45107

46-
### 9. Sign the Contributor License Agreement (CLA)
108+
### 7. Sign the Contributor License Agreement (CLA)
109+
47110
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.
48111

49-
### 10. Assign a Reviewer from Our Team
50-
Once your PR 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 merging process.
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!
51117

52-
Thank you for contributing to our documentation! We appreciate your efforts in making our product documentation more comprehensive and user-friendly. If you have any questions or need assistance, feel free to reach out to our team. Happy contributing!
118+
Thank you for contributing to our documentation! We greatly appreciate your efforts to help improve the Plane community.

0 commit comments

Comments
 (0)