Skip to content

Commit

Permalink
CS2News Update for this day. :-)
Browse files Browse the repository at this point in the history
  • Loading branch information
mrc4tt committed Jan 30, 2025
1 parent 6e28490 commit 05e3615
Show file tree
Hide file tree
Showing 5 changed files with 191 additions and 69 deletions.
18 changes: 18 additions & 0 deletions cs2update/2025-jan-30.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
title: "Pro CS2 - Competition Server Updates"
hide_table_of_contents: true
date: 2025-01-30 09:05
---

**Custom Configs & Improvements** 🎉<br/>

### 🚀 **New Features**
**Config Change Requests for RetakesAllocator & MultiAddonManager**
- Users can now request configuration changes on the RetakesAllocator directly for their own CS2 servers. And MultiAddonManager, allowing for easy customization of specific plugins or any other server-dependent requirements.

**MatchZy Practice Mode Enhancement**
- Implemented `.breakrestore` command for smoother practice sessions, allowing player to quickly reset its state (props, particles, etc)

### 🛠️ **Technical Fixes**
**MatchZy Warmup Optimization:**
- Updated `warmup.cfg` to enforce competitive integrity during warmup phases by properly restricting grenade access, trajectory displays, and grenade-cam features
35 changes: 35 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
"prism-react-renderer": "^2.4.1",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-markdown": "^9.0.3",
"rehype": "^13.0.2",
"remark": "^15.0.1",
"rss": "^1.2.2",
Expand Down
86 changes: 51 additions & 35 deletions src/components/CommandSearch.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React, { useState } from 'react';
import ReactMarkdown from 'react-markdown';

export default function CommandSearch({ commandCategories }) {
const [search, setSearch] = useState('');
Expand Down Expand Up @@ -49,42 +50,57 @@ export default function CommandSearch({ commandCategories }) {
filteredCategories.map((category, index) => (
<div key={index}>
<h3>{category.title}</h3>
<ul>
{category.commands.map((cmd, cmdIndex) => (
<li key={cmdIndex}>
<strong>{cmd.command}</strong>
{cmd.syntax && (
<div style={{ marginTop: '5px', color: '#1a73e8', fontStyle: 'italic' }}>
<strong>Syntax:</strong> {cmd.syntax}
</div>
)}
{cmd.aliases && Array.isArray(cmd.aliases) && cmd.aliases.length > 0 && (
<span style={{ marginLeft: '10px', color: '#888' }}>
(Aliases: {cmd.aliases.join(', ')})
</span>
)}
<br />
{cmd.description}
{cmd.example && (
<div style={{ marginTop: '5px', color: '#1a73e8', fontWeight: 'bold' }}>
<strong>Example:</strong> {cmd.example}
</div>
)}
{cmd.arguments && typeof cmd.arguments === 'object' && (
<div style={{ marginTop: '5px', color: '#555', fontStyle: 'italic' }}>
<strong>Arguments:</strong>
<ul style={{ margin: '5px 0 0 15px', padding: 0, listStyleType: 'disc' }}>
{Object.entries(cmd.arguments).map(([argName, argDesc], index) => (
<li key={index}>
<strong>{argName}</strong>: {argDesc}
</li>
))}
</ul>
</div>
<ul>
{category.commands.map((cmd, cmdIndex) => (
<li key={cmdIndex} style={{ marginBottom: '15px' }}>
<strong>{cmd.command}</strong> {/* Command Title */}

{/* Render description with Markdown */}
{cmd.description && (
<ReactMarkdown
components={{
p: ({ node, children }) => (
<div style={{ margin: '5px 0', color: '#888' }}>{children}</div>
),
}}
>
{cmd.description}
</ReactMarkdown>
)}
</li>
))}
</ul>

{cmd.syntax && ( /* Syntax block comes after description */
<div style={{ marginTop: '5px', color: '#1a73e8', fontStyle: 'italic' }}>
<strong>Syntax:</strong> {cmd.syntax}
</div>
)}

{cmd.aliases && Array.isArray(cmd.aliases) && cmd.aliases.length > 0 && (
<span style={{ marginLeft: '10px', color: '#888' }}>
(Aliases: {cmd.aliases.join(', ')})
</span>
)}

{cmd.example && (
<div style={{ marginTop: '5px', color: '#1a73e8', fontWeight: 'bold' }}>
<strong>Example:</strong> {cmd.example}
</div>
)}

{cmd.arguments && typeof cmd.arguments === 'object' && (
<div style={{ marginTop: '5px', color: '#555', fontStyle: 'italic' }}>
<strong>Arguments:</strong>
<ul style={{ margin: '5px 0 0 15px', padding: 0, listStyleType: 'disc' }}>
{Object.entries(cmd.arguments).map(([argName, argDesc], index) => (
<li key={index}>
<strong>{argName}</strong>: {argDesc}
</li>
))}
</ul>
</div>
)}
</li>
))}
</ul>
</div>
))
) : (
Expand Down
120 changes: 86 additions & 34 deletions src/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,71 @@ details {
--docusaurus-details-decoration-color: transparent; /* No decoration */
}

/********** Ensure long titles wrap properly **********/
.recent-posts li a {
display: block;
white-space: normal;
word-wrap: break-word;
overflow-wrap: anywhere;
line-height: 1.6;
}

/********** Fix layout and ensure spacing **********/
.main-container {
display: flex;
flex-wrap: nowrap;
}

.main-content {
flex-grow: 1;
overflow-y: auto;
}

/* Limit scrolling for main content */
.main-content {
margin-left: 320px; /* Matches sidebar width */
}

/*********** Consolidated Sidebar Styles ***********/
.sidebar {
width: 300px; /* Default width for desktop */
max-width: 300px;
padding-right: 10px;
overflow-y: auto;
position: relative; /* Fix layout issues */
}

/* Responsive sidebar for mobile view */
@media (max-width: 768px) {
.sidebar {
width: 100%; /* Full width on mobile */
position: static; /* Remove fixed position */
padding-bottom: 20px;
overflow-y: auto;
}

.main-content {
margin-left: 0;
overflow-y: visible;
}
}

/*********** Fix Content Layout ***********/
.main-container {
display: flex;
flex-wrap: nowrap;
}

.main-content {
flex-grow: 1;
overflow-y: auto;
padding: 20px;
}

/*********** Smooth Scrolling for Links ***********/
html {
scroll-behavior: smooth;
}

/* Add the vertical bar using a pseudo-element */
details::before {
Expand Down Expand Up @@ -132,11 +197,15 @@ img, iframe {
z-index: 100;
}

/********** Smooth Scrolling **********/
html {
scroll-behavior: smooth;
}

/* make tables fullwidth */
table {
display: table;
width: auto;
margin: 0 auto;
width: auto;
margin: 0 auto;
}

/* smaller edit button */
Expand All @@ -157,6 +226,13 @@ table {
font-size: 16px;
}

.sidebar-title {
font-size: 0.8rem;
letter-spacing: 0.05rem;
text-transform: uppercase;
font-weight: 600;
}

.menu>.menu__list .menu__list{
border-left: 2px solid var(--ifm-color-primary);
padding: 0px;
Expand All @@ -181,14 +257,6 @@ table {
vertical-align: middle;
}

.sidebar-title {
font-size: 0.8rem;
letter-spacing: 0.05rem;
text-transform: uppercase;
font-weight: 600;
color: var(--ifm-color-gray-600);
}

.sidebar-title:not(:first-child) {
margin-top: 25px;
}
Expand Down Expand Up @@ -268,8 +336,7 @@ table {
width: 100%;
}

/* Navigation Bar Scaling */
@media (max-width: 1550px) and (min-width: 996px){
@media (max-width: 1550px) and (min-width: 996px) {
.navbar {
height: auto;
}
Expand All @@ -279,40 +346,25 @@ table {
grid-template-columns: auto auto auto;
justify-items: right;
column-gap: 0px;
row-gap: 0px;
align-items: center;
padding: 0.3rem;
padding-top: 0px;
}

.navbar__items--right .navbarSearchContainer_node_modules-\@docusaurus-theme-classic-lib-theme-Navbar-Search-styles-module {
grid-row: 2;
grid-column: span 3;
}
}

@media (max-width: 1350px) and (min-width: 996px){
.navbar__items:not(.navbar__items--right) {
display: grid;
grid-template-columns: auto auto auto auto;
justify-content: left;
column-gap: 0px;
row-gap: 0px;
align-items: center;
padding: 0.3rem;
@media (max-width: 996px) {
.navbar__search-input {
width: 2rem;
}

}
.navbar__brand {
grid-row: span 2;
}

.navbar__inner {
align-items: center;
}
}

@media (max-width: 996px){
@media (max-width: 996px) {
.navbar__search-input {
width: 2rem;
width: 2rem;
}
}

0 comments on commit 05e3615

Please sign in to comment.