Skip to content

Commit 03c94cc

Browse files
committed
Docs: Add some details
Added release date badge in homepage Marked some commands with "New" badge.
1 parent e330189 commit 03c94cc

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

website/docs/guides/commands.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,8 @@ All game modes (TDM, Arena, etc.) are already included in the vote list.
8787

8888
* <Badge type='new'/> `sv_ag_vote_oldstyle 0` — Sets the style of the vote. Old text style or the new HUD style.
8989
* <Badge type='new'/> `sv_ag_vote_duration 30` — Duration of vote in seconds.
90+
* <Badge type='new'/> `sv_ag_disabled_votes` — Set what votes are disabled. For example: `sv_ag_disabled_votes "agstart;agabort"` will disable `agstart` and `agabort`.
91+
* <Badge type='new'/> `sv_ag_vote_allow_bots 0` — Allow bots to vote. Debug purposes only.
9092
* `sv_ag_allow_vote 1` — Allow vote.
9193
* `sv_ag_vote_setting 1` — Allow vote `ag_xxx` and `mp_xxx` settings.
9294
* `sv_ag_vote_gamemode 1` — Allow vote of game modes.
@@ -95,8 +97,6 @@ All game modes (TDM, Arena, etc.) are already included in the vote list.
9597
* `sv_ag_vote_start 1` — Allow vote agstart.
9698
* `sv_ag_vote_allow 1` — Allow vote agallow.
9799
* `sv_ag_vote_failed_time 15` — Cooldown for next vote if previous one failed.
98-
* `sv_ag_vote_allow_bots 0` — Allow bots to vote. Debug purposes only.
99-
* `sv_ag_disabled_votes` — Set what votes are disabled. For example: `sv_ag_disabled_votes "agstart;agabort"` will disable `agstart` and `agabort`.
100100
* <Badge type='deprecated'/> `sv_ag_vote_admin 0` — Allow vote for player admin. Dropped in favour of AMXX admin system.
101101

102102
**Multiplayer**

website/src/_constants.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
export const AGMODX_VERSION = '2.6.2';
1+
export const AGMODX_VERSION = '2.6.2';
2+
export const AGMODX_RELEASE_DATE = '21/10/2024';

website/src/pages/index.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import Heading from '@theme/Heading';
66
import styles from './index.module.css';
77
import { Icon, InlineIcon } from '@iconify/react';
88
import IconExternalLink from "@theme/Icon/ExternalLink";
9-
import { AGMODX_VERSION } from '@site/src/_constants';
9+
import { AGMODX_VERSION, AGMODX_RELEASE_DATE } from '@site/src/_constants';
1010

1111
function HomepageHeader() {
1212
const { siteConfig } = useDocusaurusContext();
@@ -31,6 +31,9 @@ function HomepageHeader() {
3131
<span class="badge badge--info" style={{ fontSize: '80%', margin: '0.5rem', userSelect: 'text' }}>
3232
🚀 Latest version: {AGMODX_VERSION}
3333
</span>
34+
<span class="badge badge--info" style={{ fontSize: '80%', margin: '0.5rem', userSelect: 'text', backgroundColor: '#bcd1f0', borderColor: '#bcd1f0'}}>
35+
📅 Release date: {AGMODX_RELEASE_DATE}
36+
</span>
3437
<Link
3538
className={clsx("button button--sm button--warning")}
3639
style={{ padding: "var(--ifm-badge-padding-vertical) var(--ifm-badge-padding-horizontal)", lineHeight: "1.0", fontSize: "80%", margin: '0.5rem', color: 'var(--ifm-color-gray-900)' }}

0 commit comments

Comments
 (0)