File tree Expand file tree Collapse file tree 4 files changed +24
-11
lines changed Expand file tree Collapse file tree 4 files changed +24
-11
lines changed Original file line number Diff line number Diff line change 1+ v0.1.0-alpha
Original file line number Diff line number Diff line change @@ -170,8 +170,17 @@ header {
170170 display : grid;
171171 grid-template-columns : 1fr 6fr ;
172172 grid-template-rows : auto;
173+ max-width : 100% ; /* Prevents the grid container from exceeding the page width */
174+ overflow-x : hidden; /* Prevents horizontal scrolling */
175+ box-sizing : border-box; /* Ensures padding is included in width calculations */
173176}
174177
178+ /* Main content styles */
179+ # main-content {
180+ padding : 20px ;
181+ max-width : 100% ; /* Limits the width of the inner divs */
182+ box-sizing : border-box;
183+ }
175184
176185
177186/* Sidebar styles */
@@ -185,7 +194,12 @@ header {
185194/* Hide sidebar on smaller screens */
186195@media (max-width : 768px ) {
187196 .grid-container {
188- grid-template-columns : 1fr ;
197+ display : grid;
198+ grid-template-columns : 1fr ;
199+ grid-template-rows : auto;
200+ max-width : 100% ; /* Prevents the grid container from exceeding the page width */
201+ overflow-x : hidden; /* Prevents horizontal scrolling */
202+ box-sizing : border-box; /* Ensures padding is included in width calculations */
189203 }
190204
191205 .sidebar-left {
@@ -239,11 +253,4 @@ header {
239253 padding-bottom : 0 ;
240254 margin : 0 ;
241255 color : # 9F9FA2 ;
242- }
243-
244- /* Main content styles */
245- main {
246- padding : 20px ;
247- text-align : left;
248- position : relative;
249- }
256+ }
Original file line number Diff line number Diff line change 9292 {% endfor %}
9393 </ ul >
9494 </ nav >
95- < main >
95+ < div id =" main-content " >
9696 {{ content }}
97- </ main >
97+ </ div >
9898 </ div >
9999
100100 < footer >
101101 < div class ="inner ">
102102 < p > Copyright © {{ year }} Multi Theft Auto team and contributors</ p >
103103 < p > < i class ="fab fa-github "> </ i > < a href ="https://github.com/multitheftauto/mtasa-wiki " rel ="noopener " target ="_blank "> Wiki on GitHub</ a > | < a href ="/privacy "> Privacy policy</ a > </ p >
104+ < p > < small > {{ wiki_version }}</ small > </ p >
104105 </ div >
105106 </ footer >
106107
Original file line number Diff line number Diff line change @@ -181,6 +181,7 @@ def parse_function_preview_images(self, function):
181181
182182 def render_page (self , title , content ):
183183 return self .layout_template .render (
184+ wiki_version = self .wiki_version ,
184185 preview_mode = os .environ .get ('CI_PREVIEW' , True ),
185186 year = date .today ().year ,
186187 title = title ,
@@ -424,6 +425,9 @@ def create_pages(self):
424425 }
425426 ]
426427
428+ with open (os .path .join (DOCS_REPO_PATH , 'VERSION' ), 'r' ) as file :
429+ self .wiki_version = file .read ().strip ()
430+
427431 def create_item (item ):
428432 if 'article' in item :
429433 self .create_article (item ['article' ]['name' ], item ['article' ]['folder' ], item ['path_html' ])
You can’t perform that action at this time.
0 commit comments