Skip to content

Commit 6884c27

Browse files
Move images to Astro src/assets/images
1 parent 5ced68d commit 6884c27

18 files changed

+10
-9
lines changed

elements/Server/console.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ description: |
77
You can view all latest available server console commands by entering **"help"** into the server console window.
88
99
preview_images:
10-
- path: '/assets/server_console_help.jpg'
10+
- path: 'server_console_help.jpg'
1111
description: 'Help output inside server console:'
1212

1313
# see_also:

functions/Cursor/getCursorAlpha.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ client:
44
description: |
55
This function is used to get the client's cursor alpha (transparency).
66
preview_images:
7-
- path: '/assets/cursor-alpha.jpg'
7+
- path: 'cursor-alpha.jpg'
88
description: 'Visual representation of the cursor alpha:'
99
returns:
1010
description: |

functions/Cursor/setCursorAlpha.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ client:
44
description: |
55
This function is used to change alpha (transparency) of the client's cursor.
66
preview_images:
7-
- path: '/assets/cursor-alpha.jpg'
7+
- path: 'cursor-alpha.jpg'
88
description: 'Visual representation of the cursor alpha:'
99
parameters:
1010
- name: 'alpha'

functions/Fire/createFire.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,5 @@ client:
2424
- path: 'examples/createFire-1.lua'
2525
description: This example adds a `/fire` command, which creates a patch of fire in the position of the player that types it.
2626
preview_images:
27-
- path: '/assets/fire.png'
27+
- path: 'fire_particles.png'
2828
description: Fire with default size (1.8)

web/astro.config.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ export default defineConfig({
2222
title: SITE_TITLE,
2323
logo: {
2424
replacesTitle: true,
25-
light: './src/assets/logo-black.png',
26-
dark: './src/assets/logo-white.png',
25+
light: './src/assets/images/logo-black.png',
26+
dark: './src/assets/images/logo-white.png',
2727
},
2828
social: [
2929
{ icon: 'github', label: 'GitHub', href: 'https://github.com/multitheftauto/wiki.multitheftauto.com' },

web/src/assets/houston.webp

-96.2 KB
Binary file not shown.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

web/src/pages/Element_tree.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import StarlightPage from '@astrojs/starlight/components/StarlightPage.astro';
22
import { getSeeAlsoLinksFromList } from '@src/utils/general';
33
import SeeAlsoSection from '@src/components/SeeAlsoSection.astro';
44
import { Image } from 'astro:assets';
5-
import treeImage from '../../../assets/element_tree.webp';
5+
import treeImage from '@src/assets/images/element_tree.webp';
66

77
<StarlightPage frontmatter={{
88
template: 'doc',

web/src/pages/OOP_Introduction.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import StarlightPage from '@astrojs/starlight/components/StarlightPage.astro';
22
import { Image } from 'astro:assets';
3-
import imageDiagram from '../../../assets/oop_intro_diagram.png';
3+
import imageDiagram from '@src/assets/images/oop_intro_diagram.png';
44
import { getSeeAlsoLinksFromList } from '@src/utils/general';
55
import SeeAlsoSection from '@src/components/SeeAlsoSection.astro';
66

web/src/pages/index.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import StarlightPage from '@astrojs/starlight/components/StarlightPage.astro';
33
import { Image } from 'astro:assets';
44
55
// IMAGES
6-
import image_mtaLogo from '../../../assets/index/mta_logo.png';
6+
import image_mtaLogo from '@src/assets/images/mta_logo.png';
77
88
import { MTA_CURRENT_VERSION } from '@src/content.constants';
99
import { Icon } from '@astrojs/starlight/components';

web/src/utils/general.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import { getFunctionsByTypeByCategory } from '@src/utils/functions';
44
import { getEventsByTypeByCategory } from '@src/utils/events';
55
import { getElementsByCategory, getElementCategory } from '@src/utils/elements';
66

7+
78
export function renderInlineMarkdown(markdown: string): string | Promise<string> {
89
const html = marked.parseInline(markdown);
910
return html;

0 commit comments

Comments
 (0)