Skip to content

Commit f1b53b0

Browse files
Merge pull request #49 from makeplane/preview
Promote: Preview to Master
2 parents 173d0bc + 299895b commit f1b53b0

File tree

13 files changed

+56
-49
lines changed

13 files changed

+56
-49
lines changed

markdoc/tags.js

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ const tags = {
6161
attributes: {
6262
href: { type: String, default: '' },
6363
target: { type: String, default: '_self' },
64-
heading: {type: Boolean, default: false}
64+
heading: { type: Boolean, default: false },
6565
},
6666
render: Link,
6767
},
@@ -74,8 +74,9 @@ const tags = {
7474
collapsedTitle: { type: String },
7575
href: { type: String, default: '' },
7676
addAfter: { type: String, default: '' },
77-
link: { type: String, default: '' },
7877
target: { type: String, default: '_self' },
78+
textColor: { type: String },
79+
content: { type: String, default: '' },
7980
},
8081
render: ExpansionTile,
8182
},
@@ -87,10 +88,10 @@ const tags = {
8788
},
8889
'inline-code': {
8990
attributes: {
90-
textColor: { type: String, default: 'text-[#FFFFFF]'}
91+
textColor: { type: String, default: 'text-[#FFFFFF]' },
9192
},
92-
render: InlineCode
93-
}
93+
render: InlineCode,
94+
},
9495
}
9596

9697
export default tags

src/components/ExpansionTile.jsx

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
11
import { useState } from 'react'
22
import { Icon } from './Icon'
3+
import { InlineCode } from './Inline-code'
34

45
export function ExpansionTile({
56
children,
67
collapsedTitle,
78
href,
89
addAfter,
9-
link,
1010
target,
11+
textColor,
12+
content,
1113
}) {
1214
const [isExpanded, setIsExpanded] = useState(false)
1315

@@ -43,17 +45,21 @@ export function ExpansionTile({
4345
{addAfter !== '' ? (
4446
<div>
4547
{partBeforeFor}{' '}
46-
<a href={href} target={target}>
47-
{link}
48-
</a>{' '}
48+
{href === '' ? (
49+
<InlineCode textColor={textColor}>{content}</InlineCode>
50+
) : (
51+
<a href={href} target={target}>
52+
{content}
53+
</a>
54+
)}{' '}
4955
{partAfterFor}
5056
</div>
5157
) : (
5258
collapsedTitle
5359
)}
5460
</div>
5561
</div>
56-
{isExpanded && children}
62+
<div className="pl-6">{isExpanded && children}</div>
5763
</div>
5864
)
5965
}

src/components/Layout.jsx

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,18 @@ const navigation = [
1818
{ title: 'Home', href: '/' },
1919
{ title: 'Quick start', href: '/quick-start' },
2020
{ title: 'Sign up and sign in', href: '/sign-up-sign-in' },
21+
],
22+
},
23+
{
24+
title: 'Self-hosting',
25+
links: [
26+
{ title: 'Docker Compose', href: '/self-hosting/docker-compose' },
27+
{ title: 'Kubernetes', href: '/self-hosting/kubernetes' },
2128
{
22-
title: 'Self-hosting',
23-
href: '/self-hosting/self-hosting',
24-
links: [
25-
{ title: 'Docker Compose', href: '/self-hosting/docker-compose' },
26-
{ title: 'Kubernetes', href: '/self-hosting/kubernetes' },
27-
{ title: 'Instance admin and God Mode', href: '/instance-admin' },
28-
{ title: 'Reset password', href: '/self-hosting/reset-password' },
29-
],
29+
title: 'Instance admin and God Mode',
30+
href: '/self-hosting/instance-admin',
3031
},
32+
{ title: 'Reset password', href: '/self-hosting/reset-password' },
3133
],
3234
},
3335
{
@@ -158,15 +160,15 @@ function Header({ navigation }) {
158160
href="https://discord.com/invite/A92xrEGCge"
159161
className="group"
160162
aria-label="GitHub"
161-
target='_blank'
163+
target="_blank"
162164
>
163165
<DiscordIcon className="h-6 w-6 fill-slate-400 group-hover:fill-slate-500 dark:group-hover:fill-slate-300" />
164166
</Link>
165167
<Link
166168
href="https://github.com/makeplane/plane"
167169
className="group"
168170
aria-label="GitHub"
169-
target='_blank'
171+
target="_blank"
170172
>
171173
<GitHubIcon className="h-6 w-6 fill-slate-400 group-hover:fill-slate-500 dark:group-hover:fill-slate-300" />
172174
</Link>

src/components/link.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
import clsx from "clsx"
1+
import clsx from 'clsx'
22

33
function Link({ children, href = '', target = '_self', heading }) {
44
return (
55
<a
66
href={href}
77
target={target}
8-
className={heading !== null ? 'text-xl' : ''}
8+
className={heading !== null && heading === true ? 'text-xl' : ''}
99
>
1010
{children}
1111
</a>

src/pages/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Plane is a simple, extensible, open source project and product management tool.
1010

1111
{% quick-link title="Quick Start" icon="installation" href="/quick-start" description="Learn how to use Plane and follow the best practices of taking-off." /%}
1212

13-
{% quick-link title="Self-host Plane" icon="presets" href="/self-hosting" description="Run Plane on your computer or development machine." /%}
13+
{% quick-link title="Self-host Plane" icon="presets" href="/self-hosting/docker-compose" description="Run Plane on your computer or development machine." /%}
1414

1515
{% quick-link title="Integrations" icon="plugins" href="/integrations/about" description="Extend Plane with third-party plugins and integrations" /%}
1616

src/pages/quick-start.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ If you prefer to self-host Plane on your own machine, you can do so using
3535
Docker. However, please note that you'll need to add additional configurations
3636
for email, authentication, and storage services. Plane is open-sourced under
3737
Apache-2.0, and currently, we support self-hosting Plane using Docker. For
38-
detailed instructions, please refer to the [self-hosting](/self-hosting) section.
38+
detailed instructions, please refer to the [self-hosting](/self-hosting/docker-compose) section.
3939

4040
{% callout type="note" %}
4141
We are also working on making the self-hosting process smoother by introducing
@@ -49,7 +49,6 @@ configuration, please raise a feature request on our
4949

5050
Our new sign-up and sign-in flows make it easier for Instance admins to identify themselves and unlock security + governance features for their instance. Our Cloud users also enjoy easier sign-ups and sign-ins. See [Sign up and sign in](/sign-up-sign-in) for more.
5151

52-
5352
## Onboarding and Invitation
5453

5554
If you have signed up for the first time, the first step in Plane is to create a
File renamed without changes.

src/pages/self-hosting/docker-compose.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Let's get started!
1616

1717
{% expansion collapsedTitle="Option 1 - Using Cloud Server" %}
1818

19-
Best way to start is to create EC2 maching on AWS. It must of minimum `t3.medium/t3a.medium`
19+
Best way to start is to create EC2 machine on AWS. It must of minimum `t3.medium/t3a.medium`
2020

2121
Run the below command to install docker engine.
2222

File renamed without changes.

src/pages/self-hosting/reset-password.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,21 +8,21 @@ Users can reset their password through the terminal of the Plane Application. Yo
88

99
1. Get the container id for `plane-backend`
1010

11-
```jsx
12-
docker ps
13-
```
11+
```jsx
12+
docker ps
13+
```
1414

15-
1. Log in to the container
15+
2. Log in to the container
1616

17-
```jsx
18-
docker exec -it <container_id> /bin/sh
19-
```
17+
```jsx
18+
docker exec -it <container_id> /bin/sh
19+
```
2020

21-
1. Run the reset password command
21+
3. Run the reset password command
2222

23-
```jsx
24-
python manage.py reset_password <email>
25-
```
23+
```jsx
24+
python manage.py reset_password <email>
25+
```
2626

2727
{% callout type="note" %}
2828
The email should be of an already existing user on the Plane application. If the email is not attached to any user the command will throw an error.

0 commit comments

Comments
 (0)