File tree 4 files changed +24
-11
lines changed
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 {
170
170
display : grid;
171
171
grid-template-columns : 1fr 6fr ;
172
172
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 */
173
176
}
174
177
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
+ }
175
184
176
185
177
186
/* Sidebar styles */
@@ -185,7 +194,12 @@ header {
185
194
/* Hide sidebar on smaller screens */
186
195
@media (max-width : 768px ) {
187
196
.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 */
189
203
}
190
204
191
205
.sidebar-left {
@@ -239,11 +253,4 @@ header {
239
253
padding-bottom : 0 ;
240
254
margin : 0 ;
241
255
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 92
92
{% endfor %}
93
93
</ ul >
94
94
</ nav >
95
- < main >
95
+ < div id =" main-content " >
96
96
{{ content }}
97
- </ main >
97
+ </ div >
98
98
</ div >
99
99
100
100
< footer >
101
101
< div class ="inner ">
102
102
< p > Copyright © {{ year }} Multi Theft Auto team and contributors</ p >
103
103
< 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 >
104
105
</ div >
105
106
</ footer >
106
107
Original file line number Diff line number Diff line change @@ -181,6 +181,7 @@ def parse_function_preview_images(self, function):
181
181
182
182
def render_page (self , title , content ):
183
183
return self .layout_template .render (
184
+ wiki_version = self .wiki_version ,
184
185
preview_mode = os .environ .get ('CI_PREVIEW' , True ),
185
186
year = date .today ().year ,
186
187
title = title ,
@@ -424,6 +425,9 @@ def create_pages(self):
424
425
}
425
426
]
426
427
428
+ with open (os .path .join (DOCS_REPO_PATH , 'VERSION' ), 'r' ) as file :
429
+ self .wiki_version = file .read ().strip ()
430
+
427
431
def create_item (item ):
428
432
if 'article' in item :
429
433
self .create_article (item ['article' ]['name' ], item ['article' ]['folder' ], item ['path_html' ])
You can’t perform that action at this time.
0 commit comments