Skip to content

Commit e757f6e

Browse files
committed
refactor(docs): remove PerWorlds API section from Worlds documentation
1 parent c5bed68 commit e757f6e

File tree

2 files changed

+88
-48
lines changed

2 files changed

+88
-48
lines changed
Lines changed: 88 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,88 @@
1+
---
2+
title: Repository
3+
description: How to add the PerWorlds API to your project.
4+
---
5+
6+
import { Tab, Tabs } from "fumadocs-ui/components/tabs"
7+
import { DynamicCodeBlock } from "fumadocs-ui/components/dynamic-codeblock"
8+
import { latestVersion } from "@/lib/api"
9+
export const version = await latestVersion("per-worlds")
10+
11+
## Add our Repository
12+
13+
To start, add our repository to your project:
14+
15+
<Tabs defaultIndex='1' groupId="language" items={['Maven', 'Gradle Kotlin', 'Gradle Groovy', 'SBT']}>
16+
<Tab id="maven" value="Maven">
17+
```xml
18+
<repository>
19+
<id>thenextlvl-releases</id>
20+
<name>TheNextLvl</name>
21+
<url>https://repo.thenextlvl.net/releases</url>
22+
</repository>
23+
```
24+
</Tab>
25+
<Tab id="kotlin" value="Gradle Kotlin">
26+
```kts
27+
maven {
28+
name = "thenextlvlReleases"
29+
url = uri("https://repo.thenextlvl.net/releases")
30+
}
31+
```
32+
</Tab>
33+
<Tab id="groovy" value="Gradle Groovy">
34+
```groovy
35+
maven {
36+
name "thenextlvlReleases"
37+
url "https://repo.thenextlvl.net/releases"
38+
}
39+
```
40+
</Tab>
41+
<Tab id="sbt" value="SBT">
42+
```scala
43+
resolvers +=
44+
"thenextlvl-releases"
45+
at "https://repo.thenextlvl.net/releases"
46+
```
47+
</Tab>
48+
</Tabs>
49+
50+
## Add the PerWorlds API
51+
52+
Add the PerWorlds API as a dependency:
53+
54+
<Tabs
55+
defaultIndex="1"
56+
groupId="language"
57+
items={["Maven", "Gradle Kotlin", "Gradle Groovy", "SBT"]}
58+
>
59+
<Tab id="maven" value="Maven">
60+
<DynamicCodeBlock
61+
lang="xml"
62+
code={`<dependency>
63+
<groupId>net.thenextlvl</groupId>
64+
<artifactId>per-worlds</artifactId>
65+
<version>${version}</version>
66+
</dependency>`}
67+
/>
68+
</Tab>
69+
<Tab id="kotlin" value="Gradle Kotlin">
70+
<DynamicCodeBlock lang="kts" code={`implementation("net.thenextlvl:per-worlds:${version}")`} />
71+
</Tab>
72+
<Tab id="groovy" value="Gradle Groovy">
73+
<DynamicCodeBlock
74+
lang="groovy"
75+
code={`implementation "net.thenextlvl:per-worlds:${version}"`}
76+
/>
77+
</Tab>
78+
<Tab id="sbt" value="SBT">
79+
<DynamicCodeBlock lang="scala" code={`"net.thenextlvl" %% "per-worlds" %% "${version}"`} />
80+
</Tab>
81+
</Tabs>
82+
83+
<Callout type="info" title="Note">
84+
85+
The version of the PerWorlds API is the same as the version of the PerWorlds plugin.
86+
You can find all versions on the [repository](https://repo.thenextlvl.net/#/releases/net/thenextlvl/per-worlds).
87+
88+
</Callout>

content/docs/worlds/api/repository.mdx

Lines changed: 0 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import { Tab, Tabs } from "fumadocs-ui/components/tabs"
77
import { DynamicCodeBlock } from "fumadocs-ui/components/dynamic-codeblock"
88
import { latestVersion } from "@/lib/api"
99
export const worldsVersion = await latestVersion("worlds")
10-
export const perWorldsVersion = await latestVersion("per-worlds")
1110

1211
## Add our Repository
1312

@@ -86,54 +85,7 @@ Add Worlds' API codebase as a dependency:
8685

8786
<Callout type="info" title="Note">
8887

89-
PerWorlds is provided in Worlds since 2.2.0 so you don't need to include it as a dependency in newer versions.
9088
The version of the Worlds API is the same as the version of the Worlds plugin.
9189
You can find all versions on the [repository](https://repo.thenextlvl.net/#/releases/net/thenextlvl/worlds).
9290

9391
</Callout>
94-
95-
## Add the PerWorlds API
96-
97-
If you only want to use the PerWorlds API, you can add its dependency directly:
98-
99-
<Tabs
100-
defaultIndex="1"
101-
groupId="language"
102-
items={["Maven", "Gradle Kotlin", "Gradle Groovy", "SBT"]}
103-
>
104-
<Tab id="maven" value="Maven">
105-
<DynamicCodeBlock
106-
lang="xml"
107-
code={`<dependency>
108-
<groupId>net.thenextlvl</groupId>
109-
<artifactId>per-worlds</artifactId>
110-
<version>${perWorldsVersion}</version>
111-
</dependency>`}
112-
/>
113-
</Tab>
114-
<Tab id="kotlin" value="Gradle Kotlin">
115-
<DynamicCodeBlock
116-
lang="kts"
117-
code={`implementation("net.thenextlvl:per-worlds:${perWorldsVersion}")`}
118-
/>
119-
</Tab>
120-
<Tab id="groovy" value="Gradle Groovy">
121-
<DynamicCodeBlock
122-
lang="groovy"
123-
code={`implementation "net.thenextlvl:per-worlds:${perWorldsVersion}"`}
124-
/>
125-
</Tab>
126-
<Tab id="sbt" value="SBT">
127-
<DynamicCodeBlock
128-
lang="scala"
129-
code={`"net.thenextlvl" %% "per-worlds" %% "${perWorldsVersion}"`}
130-
/>
131-
</Tab>
132-
</Tabs>
133-
134-
<Callout type="info" title="Note">
135-
136-
The version of the PerWorlds API is the same as the version of the PerWorlds plugin.
137-
You can find all versions on the [repository](https://repo.thenextlvl.net/#/releases/net/thenextlvl/per-worlds).
138-
139-
</Callout>

0 commit comments

Comments
 (0)