Skip to content

Commit

Permalink
Docs: Add some details
Browse files Browse the repository at this point in the history
Added release date badge in homepage
Marked some commands with "New" badge.
  • Loading branch information
rtxa committed Oct 29, 2024
1 parent e330189 commit 03c94cc
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
4 changes: 2 additions & 2 deletions website/docs/guides/commands.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,8 @@ All game modes (TDM, Arena, etc.) are already included in the vote list.

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

**Multiplayer**
Expand Down
3 changes: 2 additions & 1 deletion website/src/_constants.js
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
export const AGMODX_VERSION = '2.6.2';
export const AGMODX_VERSION = '2.6.2';
export const AGMODX_RELEASE_DATE = '21/10/2024';
5 changes: 4 additions & 1 deletion website/src/pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import Heading from '@theme/Heading';
import styles from './index.module.css';
import { Icon, InlineIcon } from '@iconify/react';
import IconExternalLink from "@theme/Icon/ExternalLink";
import { AGMODX_VERSION } from '@site/src/_constants';
import { AGMODX_VERSION, AGMODX_RELEASE_DATE } from '@site/src/_constants';

function HomepageHeader() {
const { siteConfig } = useDocusaurusContext();
Expand All @@ -31,6 +31,9 @@ function HomepageHeader() {
<span class="badge badge--info" style={{ fontSize: '80%', margin: '0.5rem', userSelect: 'text' }}>
🚀 Latest version: {AGMODX_VERSION}
</span>
<span class="badge badge--info" style={{ fontSize: '80%', margin: '0.5rem', userSelect: 'text', backgroundColor: '#bcd1f0', borderColor: '#bcd1f0'}}>
📅 Release date: {AGMODX_RELEASE_DATE}
</span>
<Link
className={clsx("button button--sm button--warning")}
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)' }}
Expand Down

0 comments on commit 03c94cc

Please sign in to comment.