Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M3P2 HTML Generator
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
12
Issues
12
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
M3P2
M3P2 HTML Generator
Commits
e56b0c34
Commit
e56b0c34
authored
Aug 27, 2024
by
Administrator
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: dust up while reviewing
parent
99f9b084
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
23 additions
and
40 deletions
+23
-40
Dockerfile
Dockerfile
+5
-5
README.md
README.md
+17
-10
oai2.php
oai2.php
+0
-3
columns.css
user/themes/textbook/css/columns.css
+0
-2
custom.css
user/themes/textbook/css/custom.css
+1
-20
No files found.
Dockerfile
View file @
e56b0c34
...
...
@@ -22,19 +22,19 @@ RUN apt-get update && apt-get install -y \
# set recommended PHP.ini settings
# see https://secure.php.net/manual/en/opcache.installation.php
RUN
{
\
echo
'opcache.memory_consumption=
128
'
;
\
echo
'opcache.memory_consumption=
512
'
;
\
echo
'opcache.interned_strings_buffer=8'
;
\
echo
'opcache.max_accelerated_files=4000'
;
\
echo
'opcache.revalidate_freq=2'
;
\
echo
'opcache.fast_shutdown=1'
;
\
echo
'opcache.enable_cli=1'
;
\
echo
'upload_max_filesize=
128
M'
;
\
echo
'post_max_size=
128
M'
;
\
echo
'upload_max_filesize=
512
M'
;
\
echo
'post_max_size=
512
M'
;
\
}
>
/usr/local/etc/php/conf.d/php-recommended.ini
#
p
rovide container inside image for data persistance
#
P
rovide container inside image for data persistance
# VOLUME /var/www/html
#
W
e are using docker-compose for volumes :
#
Instead, w
e are using docker-compose for volumes :
# - /var/docker-volumes/courses/pages:/var/www/html/user/pages:Z
# - /var/docker-volumes/courses/accounts:/var/www/html/user/accounts:Z
# - /var/docker-volumes/courses/data:/var/www/html/user/data:Z
...
...
README.md
View file @
e56b0c34
...
...
@@ -8,10 +8,17 @@ Only the php vendors are not included.
## Run locally for fast development
###
LINUX/MAC
###
PHP
PHP
`7.1.3`
(or above) is required.
We usually use
`phpenv`
for this:
phpenv install 7.4.29
### LINUX/MAC
Clone this repository:
git clone --recursive https://gitlab.m3p2.com/m3p2/m3p2-html-generator.git m3p2-html-generator
...
...
@@ -57,7 +64,7 @@ Download php 7.xx
Create C:
\p
hp7
\
Add "C:
\p
hp7
\"
to environnement variable
Add "C:
\p
hp7
\"
to environnement variable
*
Right click "computer"
*
"Properties"
*
"Advanced parameters" (on the left part)
...
...
@@ -81,8 +88,8 @@ Install git
Clone your project
*
Shift+Right click where you want to put m3p2 to "Open Command line here"
*
use the command:
*
use the command:
git clone --recursive https://gitlab.m3p2.com/m3p2/grav-website.git m3p2-html-generator
Download https://getcomposer.org/composer.phar and copy it in m3p2-html-generator/bin
...
...
@@ -90,21 +97,21 @@ Download https://getcomposer.org/composer.phar and copy it in m3p2-html-generato
Install grav:
*
go inside m3p2-html-generator folder
*
Shift+Right click to "Open Command line here"
*
use the command:
*
use the command:
php bin/grav install
Add the courses from the other repository, if you did not use
`git clone --recursive`
:
*
go inside m3p2-html-generator folder
*
Shift+Right click to "Open Command line here"
*
Use command:
*
Use command:
php bin/clone_courses
Put m3p2 "online"
*
go inside m3p2-html-generator folder
*
Shift+Right click to "Open Command line here"
*
use the command:
*
use the command:
php -S localhost:8000 system/router.php
...
...
@@ -117,7 +124,7 @@ This may come in handy when we'll want offline access
And then to browse locally, for example :
cd m3p2.com
firefox index.html
...
...
oai2.php
deleted
100644 → 0
View file @
99f9b084
<?php
phpinfo
();
\ No newline at end of file
user/themes/textbook/css/columns.css
View file @
e56b0c34
...
...
@@ -17,5 +17,3 @@
overflow-y
:
initial
;
}
}
user/themes/textbook/css/custom.css
View file @
e56b0c34
...
...
@@ -56,8 +56,7 @@ details summary {
/**********************************************************************************************************************/
/* Hotfix for https://github.com/getgrav/grav-theme-quark/issues/9 */
/* Must be below 3 or mobile will glitch
*/
/* Must be below 3 or mobile will glitch */
section
#header
{
z-index
:
2
;
}
#header
>
.container
{
...
...
@@ -308,7 +307,6 @@ iframe.geogebra {
/*.dropdown-selector .btn {*/
/*.dropdown-selector > .btn:first-child {*/
.dropdown-menu-button
{
/*float: left;*/
position
:
relative
;
display
:
inline-block
;
...
...
@@ -333,19 +331,12 @@ iframe.geogebra {
border
:
1px
solid
#ccc
;
}
/*#language-selector-button:hover ~ *,
#language-selector-button:focus ~ *,
#lesson-selector-button:hover ~ *,
#lesson-selector-button:focus ~ *,*/
/* class only won't work, we need an id here for some reason */
.dropdown-menu-button
:hover
~
*,
.dropdown-menu-button
:focus
~
*
{
display
:
block
!important
;
visibility
:
visible
!important
;
}
.dropdown-selector
.dropdown-menu
{
display
:
none
;
/* shown by hover or focus on elder sibling btn */
position
:
absolute
;
...
...
@@ -372,16 +363,6 @@ iframe.geogebra {
right
:
2%
;
}
/*#language-selector-dropdown:focus-within,
#language-selector-dropdown:hover,
#language-selector-dropdown:focus,
#lesson-selector-dropdown:focus-within,
#lesson-selector-dropdown:hover,
#lesson-selector-dropdown:focus,*/
/* same, id is required somehow -- try again later, smells like cache shenanigans */
/* nah, it was just BAD DESIGN © */
.dropdown-selector
:focus-within
.dropdown-menu
,
/* allows keyboard tabbing inside the menu */
.dropdown-selector
.dropdown-menu
:focus-within
,
.dropdown-selector
.dropdown-menu
:hover
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment