Skip to content

Commit

Permalink
Fix relative links
Browse files Browse the repository at this point in the history
  • Loading branch information
TheLazySquid committed Jan 21, 2025
1 parent 708cbbb commit ede97fc
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 18 deletions.
3 changes: 2 additions & 1 deletion site/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
"start": "astro dev",
"build": "astro build",
"preview": "astro preview",
"astro": "astro"
"astro": "astro",
"generateDocs": "node scripts/generateDocs.js"
},
"dependencies": {
"@astrojs/starlight": "^0.31.0",
Expand Down
2 changes: 1 addition & 1 deletion site/scripts/generateDocs.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ for(let page of pages) {
while(match = linkRegex.exec(text)) {
let index = match.index + 2;
let end = text.indexOf("Api", index);
text = text.slice(0, index) + text.slice(index, end).toLowerCase() + text.slice(end);
text = text.slice(0, index) + './' + text.slice(index, end).toLowerCase() + text.slice(end);
}

text = text.replaceAll("Api.md", "");
Expand Down
16 changes: 8 additions & 8 deletions site/src/content/docs/api/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ The api is accessible via the global variable `GL`. Scripts are also able to use

### hotkeys

> `static` **hotkeys**: `Readonly`\<[`HotkeysApi`](hotkeys)\>
> `static` **hotkeys**: `Readonly`\<[`HotkeysApi`](./hotkeys)\>
Functions to listen for key combinations

Expand All @@ -35,15 +35,15 @@ Gets the exported values of a library

### libs

> `static` **libs**: `Readonly`\<[`LibsApi`](libs)\>
> `static` **libs**: `Readonly`\<[`LibsApi`](./libs)\>
Methods for getting info on libraries

***

### net

> `static` **net**: `Readonly`\<[`NetApi`](net) & `Connection`\>
> `static` **net**: `Readonly`\<[`NetApi`](./net) & `Connection`\>
Ways to interact with the current connection to the server,
and functions to send general requests
Expand All @@ -52,15 +52,15 @@ and functions to send general requests

### parcel

> `static` **parcel**: `Readonly`\<[`ParcelApi`](parcel)\>
> `static` **parcel**: `Readonly`\<[`ParcelApi`](./parcel)\>
Functions used to modify Gimkit's internal modules

***

### patcher

> `static` **patcher**: `Readonly`\<[`PatcherApi`](patcher)\>
> `static` **patcher**: `Readonly`\<[`PatcherApi`](./patcher)\>
Functions for intercepting the arguments and return values of functions

Expand All @@ -86,23 +86,23 @@ Gets the exported values of a plugin, if it has been enabled

### plugins

> `static` **plugins**: `Readonly`\<[`PluginsApi`](plugins)\>
> `static` **plugins**: `Readonly`\<[`PluginsApi`](./plugins)\>
Methods for getting info on plugins

***

### storage

> `static` **storage**: `Readonly`\<[`StorageApi`](storage)\>
> `static` **storage**: `Readonly`\<[`StorageApi`](./storage)\>
Functions for persisting data between reloads

***

### UI

> `static` **UI**: `Readonly`\<[`UIApi`](ui)\>
> `static` **UI**: `Readonly`\<[`UIApi`](./ui)\>
Functions for interacting with the DOM

Expand Down
16 changes: 8 additions & 8 deletions site/src/content/docs/api/scopedapi.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ A scoped api can be created with `new GL()` within a plugin or library.

### hotkeys

> **hotkeys**: `Readonly`\<[`ScopedHotkeysApi`](scopedhotkeys)\>
> **hotkeys**: `Readonly`\<[`ScopedHotkeysApi`](./scopedhotkeys)\>
Functions to listen for key combinations

Expand All @@ -35,15 +35,15 @@ Gets the exported values of a library

### libs

> **libs**: `Readonly`\<[`LibsApi`](libs)\> = `Api.libs`
> **libs**: `Readonly`\<[`LibsApi`](./libs)\> = `Api.libs`
Methods for getting info on libraries

***

### net

> **net**: `Readonly`\<[`ScopedNetApi`](scopednet) & `Connection`\>
> **net**: `Readonly`\<[`ScopedNetApi`](./scopednet) & `Connection`\>
Ways to interact with the current connection to the server,
and functions to send general requests
Expand Down Expand Up @@ -90,15 +90,15 @@ This function is not available for libraries

### parcel

> **parcel**: `Readonly`\<[`ScopedParcelApi`](scopedparcel)\>
> **parcel**: `Readonly`\<[`ScopedParcelApi`](./scopedparcel)\>
Functions used to modify Gimkit's internal modules

***

### patcher

> **patcher**: `Readonly`\<[`ScopedPatcherApi`](scopedpatcher)\>
> **patcher**: `Readonly`\<[`ScopedPatcherApi`](./scopedpatcher)\>
Functions for intercepting the arguments and return values of functions

Expand All @@ -124,23 +124,23 @@ Gets the exported values of a plugin, if it has been enabled

### plugins

> **plugins**: `Readonly`\<[`PluginsApi`](plugins)\> = `Api.plugins`
> **plugins**: `Readonly`\<[`PluginsApi`](./plugins)\> = `Api.plugins`
Methods for getting info on plugins

***

### storage

> **storage**: `Readonly`\<[`ScopedStorageApi`](scopedstorage)\>
> **storage**: `Readonly`\<[`ScopedStorageApi`](./scopedstorage)\>
Functions for persisting data between reloads

***

### UI

> **UI**: `Readonly`\<[`ScopedUIApi`](scopedui)\>
> **UI**: `Readonly`\<[`ScopedUIApi`](./scopedui)\>
Functions for interacting with the DOM

Expand Down

0 comments on commit ede97fc

Please sign in to comment.