Commit e56b0c34 authored by Administrator's avatar Administrator 💬

chore: dust up while reviewing

parent 99f9b084
...@@ -22,19 +22,19 @@ RUN apt-get update && apt-get install -y \ ...@@ -22,19 +22,19 @@ RUN apt-get update && apt-get install -y \
# set recommended PHP.ini settings # set recommended PHP.ini settings
# see https://secure.php.net/manual/en/opcache.installation.php # see https://secure.php.net/manual/en/opcache.installation.php
RUN { \ RUN { \
echo 'opcache.memory_consumption=128'; \ echo 'opcache.memory_consumption=512'; \
echo 'opcache.interned_strings_buffer=8'; \ echo 'opcache.interned_strings_buffer=8'; \
echo 'opcache.max_accelerated_files=4000'; \ echo 'opcache.max_accelerated_files=4000'; \
echo 'opcache.revalidate_freq=2'; \ echo 'opcache.revalidate_freq=2'; \
echo 'opcache.fast_shutdown=1'; \ echo 'opcache.fast_shutdown=1'; \
echo 'opcache.enable_cli=1'; \ echo 'opcache.enable_cli=1'; \
echo 'upload_max_filesize=128M'; \ echo 'upload_max_filesize=512M'; \
echo 'post_max_size=128M'; \ echo 'post_max_size=512M'; \
} > /usr/local/etc/php/conf.d/php-recommended.ini } > /usr/local/etc/php/conf.d/php-recommended.ini
# provide container inside image for data persistance # Provide container inside image for data persistance
# VOLUME /var/www/html # VOLUME /var/www/html
# We are using docker-compose for volumes : # Instead, we are using docker-compose for volumes :
# - /var/docker-volumes/courses/pages:/var/www/html/user/pages:Z # - /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/accounts:/var/www/html/user/accounts:Z
# - /var/docker-volumes/courses/data:/var/www/html/user/data:Z # - /var/docker-volumes/courses/data:/var/www/html/user/data:Z
......
...@@ -8,10 +8,17 @@ Only the php vendors are not included. ...@@ -8,10 +8,17 @@ Only the php vendors are not included.
## Run locally for fast development ## Run locally for fast development
### LINUX/MAC ### PHP
PHP `7.1.3` (or above) is required. PHP `7.1.3` (or above) is required.
We usually use `phpenv` for this:
phpenv install 7.4.29
### LINUX/MAC
Clone this repository: Clone this repository:
git clone --recursive https://gitlab.m3p2.com/m3p2/m3p2-html-generator.git m3p2-html-generator git clone --recursive https://gitlab.m3p2.com/m3p2/m3p2-html-generator.git m3p2-html-generator
...@@ -57,7 +64,7 @@ Download php 7.xx ...@@ -57,7 +64,7 @@ Download php 7.xx
Create C:\php7\ Create C:\php7\
Add "C:\php7\" to environnement variable Add "C:\php7\" to environnement variable
* Right click "computer" * Right click "computer"
* "Properties" * "Properties"
* "Advanced parameters" (on the left part) * "Advanced parameters" (on the left part)
...@@ -81,8 +88,8 @@ Install git ...@@ -81,8 +88,8 @@ Install git
Clone your project Clone your project
* Shift+Right click where you want to put m3p2 to "Open Command line here" * 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 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 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 ...@@ -90,21 +97,21 @@ Download https://getcomposer.org/composer.phar and copy it in m3p2-html-generato
Install grav: Install grav:
* go inside m3p2-html-generator folder * go inside m3p2-html-generator folder
* Shift+Right click to "Open Command line here" * Shift+Right click to "Open Command line here"
* use the command: * use the command:
php bin/grav install php bin/grav install
Add the courses from the other repository, if you did not use `git clone --recursive`: Add the courses from the other repository, if you did not use `git clone --recursive`:
* go inside m3p2-html-generator folder * go inside m3p2-html-generator folder
* Shift+Right click to "Open Command line here" * Shift+Right click to "Open Command line here"
* Use command: * Use command:
php bin/clone_courses php bin/clone_courses
Put m3p2 "online" Put m3p2 "online"
* go inside m3p2-html-generator folder * go inside m3p2-html-generator folder
* Shift+Right click to "Open Command line here" * Shift+Right click to "Open Command line here"
* use the command: * use the command:
php -S localhost:8000 system/router.php php -S localhost:8000 system/router.php
...@@ -117,7 +124,7 @@ This may come in handy when we'll want offline access ...@@ -117,7 +124,7 @@ This may come in handy when we'll want offline access
And then to browse locally, for example : And then to browse locally, for example :
cd m3p2.com cd m3p2.com
firefox index.html firefox index.html
......
<?php
phpinfo();
\ No newline at end of file
...@@ -17,5 +17,3 @@ ...@@ -17,5 +17,3 @@
overflow-y: initial; overflow-y: initial;
} }
} }
...@@ -56,8 +56,7 @@ details summary { ...@@ -56,8 +56,7 @@ details summary {
/**********************************************************************************************************************/ /**********************************************************************************************************************/
/* Hotfix for https://github.com/getgrav/grav-theme-quark/issues/9 */ /* 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; } section#header { z-index: 2; }
#header > .container { #header > .container {
...@@ -308,7 +307,6 @@ iframe.geogebra { ...@@ -308,7 +307,6 @@ iframe.geogebra {
/*.dropdown-selector .btn {*/ /*.dropdown-selector .btn {*/
/*.dropdown-selector > .btn:first-child {*/ /*.dropdown-selector > .btn:first-child {*/
.dropdown-menu-button { .dropdown-menu-button {
/*float: left;*/ /*float: left;*/
position: relative; position: relative;
display: inline-block; display: inline-block;
...@@ -333,19 +331,12 @@ iframe.geogebra { ...@@ -333,19 +331,12 @@ iframe.geogebra {
border: 1px solid #ccc; 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:hover ~ *,
.dropdown-menu-button:focus ~ * { .dropdown-menu-button:focus ~ * {
display: block !important; display: block !important;
visibility: visible !important; visibility: visible !important;
} }
.dropdown-selector .dropdown-menu { .dropdown-selector .dropdown-menu {
display: none; /* shown by hover or focus on elder sibling btn */ display: none; /* shown by hover or focus on elder sibling btn */
position: absolute; position: absolute;
...@@ -372,16 +363,6 @@ iframe.geogebra { ...@@ -372,16 +363,6 @@ iframe.geogebra {
right: 2%; 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:focus-within .dropdown-menu, /* allows keyboard tabbing inside the menu */
.dropdown-selector .dropdown-menu:focus-within, .dropdown-selector .dropdown-menu:focus-within,
.dropdown-selector .dropdown-menu:hover, .dropdown-selector .dropdown-menu:hover,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment