From 05e36157d35c1982f070e0f9ef734c131f08bf5d Mon Sep 17 00:00:00 2001 From: Miksen Date: Thu, 30 Jan 2025 08:41:21 +0100 Subject: [PATCH] CS2News Update for this day. :-) --- cs2update/2025-jan-30.md | 18 +++++ package-lock.json | 35 ++++++++++ package.json | 1 + src/components/CommandSearch.js | 86 +++++++++++++---------- src/css/custom.css | 120 +++++++++++++++++++++++--------- 5 files changed, 191 insertions(+), 69 deletions(-) create mode 100644 cs2update/2025-jan-30.md diff --git a/cs2update/2025-jan-30.md b/cs2update/2025-jan-30.md new file mode 100644 index 0000000..6e927f1 --- /dev/null +++ b/cs2update/2025-jan-30.md @@ -0,0 +1,18 @@ +--- +title: "Pro CS2 - Competition Server Updates" +hide_table_of_contents: true +date: 2025-01-30 09:05 +--- + +**Custom Configs & Improvements** 🎉
+ +### 🚀 **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 diff --git a/package-lock.json b/package-lock.json index 0798af6..49b7084 100644 --- a/package-lock.json +++ b/package-lock.json @@ -29,6 +29,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", @@ -10437,6 +10438,15 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/html-url-attributes": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/html-url-attributes/-/html-url-attributes-3.0.1.tgz", + "integrity": "sha512-ol6UPyBWqsrO6EJySPz2O7ZSr856WDrEzM5zMqp+FJJLGMW35cLYmmZnl0vztAZxRUoNZJFTCohfjuIJ8I4QBQ==", + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, "node_modules/html-void-elements": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/html-void-elements/-/html-void-elements-3.0.0.tgz", @@ -16814,6 +16824,31 @@ "webpack": ">=4.41.1 || 5.x" } }, + "node_modules/react-markdown": { + "version": "9.0.3", + "resolved": "https://registry.npmjs.org/react-markdown/-/react-markdown-9.0.3.tgz", + "integrity": "sha512-Yk7Z94dbgYTOrdk41Z74GoKA7rThnsbbqBTRYuxoe08qvfQ9tJVhmAKw6BJS/ZORG7kTy/s1QvYzSuaoBA1qfw==", + "dependencies": { + "@types/hast": "^3.0.0", + "devlop": "^1.0.0", + "hast-util-to-jsx-runtime": "^2.0.0", + "html-url-attributes": "^3.0.0", + "mdast-util-to-hast": "^13.0.0", + "remark-parse": "^11.0.0", + "remark-rehype": "^11.0.0", + "unified": "^11.0.0", + "unist-util-visit": "^5.0.0", + "vfile": "^6.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + }, + "peerDependencies": { + "@types/react": ">=18", + "react": ">=18" + } + }, "node_modules/react-router": { "version": "5.3.4", "resolved": "https://registry.npmjs.org/react-router/-/react-router-5.3.4.tgz", diff --git a/package.json b/package.json index 5977916..d790e59 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/src/components/CommandSearch.js b/src/components/CommandSearch.js index 80c8706..5434a5c 100644 --- a/src/components/CommandSearch.js +++ b/src/components/CommandSearch.js @@ -1,4 +1,5 @@ import React, { useState } from 'react'; +import ReactMarkdown from 'react-markdown'; export default function CommandSearch({ commandCategories }) { const [search, setSearch] = useState(''); @@ -49,42 +50,57 @@ export default function CommandSearch({ commandCategories }) { filteredCategories.map((category, index) => (

{category.title}

-
)) ) : ( diff --git a/src/css/custom.css b/src/css/custom.css index 5a12e43..af3eca2 100644 --- a/src/css/custom.css +++ b/src/css/custom.css @@ -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 { @@ -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 */ @@ -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; @@ -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; } @@ -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; } @@ -279,29 +346,15 @@ 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; } @@ -309,10 +362,9 @@ table { .navbar__inner { align-items: center; } -} -@media (max-width: 996px){ +@media (max-width: 996px) { .navbar__search-input { - width: 2rem; + width: 2rem; } }