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
f41bd69a
Commit
f41bd69a
authored
Jan 08, 2021
by
Administrator
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: m3p2.ljbac.com -> gitlab.m3p2.com
parent
ffd25334
Pipeline
#3723
failed with stage
Changes
11
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
20 additions
and
19 deletions
+20
-19
.gitlab-ci.yml
.gitlab-ci.yml
+1
-1
.gitmodules
.gitmodules
+1
-1
Dockerfile
Dockerfile
+3
-3
README.md
README.md
+4
-4
git-sync.yaml
user/config/plugins/git-sync.yaml
+2
-2
pages
user/pages
+1
-1
blueprints.yaml
user/plugins/gitlab-markdown-adapter/blueprints.yaml
+1
-1
blueprints.yaml
user/plugins/m3-p2/blueprints.yaml
+1
-1
m3-p2.php
user/plugins/m3-p2/m3-p2.php
+1
-1
blueprints.yaml
user/plugins/markdown-underline/blueprints.yaml
+1
-1
footer.html.twig
user/themes/textbook/templates/partials/footer.html.twig
+4
-3
No files found.
.gitlab-ci.yml
View file @
f41bd69a
...
...
@@ -33,7 +33,7 @@ build:
# - php bin/composer.phar install
-
rm -R user/pages
-
git clone https://
m3p2.ljbac
.com/m3p2/courses.git user/pages
-
git clone https://
gitlab.m3p2
.com/m3p2/courses.git user/pages
script
:
-
pwd
...
...
.gitmodules
View file @
f41bd69a
[submodule "user/pages"]
path = user/pages
url = https://
m3p2.ljbac
.com/m3p2/courses.git
url = https://
gitlab.m3p2
.com/m3p2/courses.git
Dockerfile
View file @
f41bd69a
...
...
@@ -54,7 +54,7 @@ USER www-data
# Install grav todo: shallow clone?
WORKDIR
/var/www
RUN
git clone https://
m3p2.ljbac
.com/m3p2/grav-website.git grav
\
RUN
git clone https://
gitlab.m3p2
.com/m3p2/grav-website.git grav
\
&&
mv
-T
/var/www/grav /var/www/html
# curl -o grav-admin.zip -SL https://getgrav.org/download/core/grav-admin/${GRAV_VERSION} && \
# echo "$GRAV_SHA1 grav-admin.zip" | sha1sum -c - && \
...
...
@@ -71,7 +71,7 @@ RUN php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" \
# Grab the courses, since we're not using submodules (yet)
WORKDIR
/var/www/html
RUN
rm
-R
user/pages
\
&&
git clone https://
m3p2.ljbac
.com/m3p2/courses.git user/pages
&&
git clone https://
gitlab.m3p2
.com/m3p2/courses.git user/pages
#RUN bin/clone_courses.sh
# Grav will handle "composer install" internally
...
...
@@ -85,4 +85,4 @@ USER root
# COPY docker-entrypoint.sh /entrypoint.sh
# ENTRYPOINT ["/entrypoint.sh"]
# CMD ["apache2-foreground"]
\ No newline at end of file
# CMD ["apache2-foreground"]
README.md
View file @
f41bd69a
...
...
@@ -14,7 +14,7 @@ PHP `7.1.3` (or above) is required.
Clone this repository:
git clone --recursive https://
m3p2.ljbac
.com/m3p2/m3p2-html-generator.git m3p2-html-generator
git clone --recursive https://
gitlab.m3p2
.com/m3p2/m3p2-html-generator.git m3p2-html-generator
Enter the project:
...
...
@@ -83,7 +83,7 @@ Clone your project
*
Shift+Right click where you want to put m3p2 to "Open Command line here"
*
use the command:
git clone --recursive https://
m3p2.ljbac
.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
...
...
@@ -112,11 +112,11 @@ Put m3p2 "online"
This may come in handy when we'll want offline access
wget -mkxKE -e robots=off https://
courses.m3p2.ljbac
.com
wget -mkxKE -e robots=off https://
m3p2
.com
And then to browse locally, for example :
cd
courses.m3p2.ljbac
.com
cd
m3p2
.com
firefox index.html
...
...
user/config/plugins/git-sync.yaml
View file @
f41bd69a
...
...
@@ -8,7 +8,7 @@ sync:
# cron_enabled (pls)
cron_enable
:
false
cron_at
:
'
0
12,23
*
*
*'
repository
:
'
https://
m3p2.ljbac
.com/m3p2/courses.git'
repository
:
'
https://
gitlab.m3p2
.com/m3p2/courses.git'
user
:
Goutte
password
:
webhook
:
/git-sync
...
...
@@ -22,6 +22,6 @@ git:
author
:
gituser
message
:
'
(Grav
GitSync)
Automatic
Commit'
name
:
GitSync
email
:
m3p2-bot@ljbac
.com
email
:
bot@m3p2
.com
bin
:
git
logging
:
false
pages
@
8b6220f8
Subproject commit
c224285fe23da3c7f8ff8b0b1328aee0deb76461
Subproject commit
8b6220f82ebb9e9bec20cb787f1e8eec1c6b7e27
user/plugins/gitlab-markdown-adapter/blueprints.yaml
View file @
f41bd69a
...
...
@@ -6,7 +6,7 @@ author:
name
:
Antoine Goutenoir
email
:
antoine@goutenoir.com
homepage
:
https://github.com/goutte/grav-plugin-gitlab-markdown-adapter
demo
:
https://
m3p2.ljbac
.com
demo
:
https://
gitlab.m3p2
.com
keywords
:
grav, plugin, gitlab, markdown, mermaid, latex
bugs
:
https://github.com/goutte/grav-plugin-gitlab-markdown-adapter/issues
docs
:
https://github.com/goutte/grav-plugin-gitlab-markdown-adapter/blob/develop/README.md
...
...
user/plugins/m3-p2/blueprints.yaml
View file @
f41bd69a
...
...
@@ -6,7 +6,7 @@ author:
name
:
Antoine Goutenoir
email
:
antoine@goutenoir.com
homepage
:
https://github.com/goutte/grav-plugin-m3p2
demo
:
http://
courses.m3p2.ljbac
.com
demo
:
http://
m3p2
.com
keywords
:
grav, plugin, etc
bugs
:
https://github.com/goutte/grav-plugin-m3p2/issues
docs
:
https://github.com/goutte/grav-plugin-m3p2/blob/develop/README.md
...
...
user/plugins/m3-p2/m3-p2.php
View file @
f41bd69a
...
...
@@ -131,7 +131,7 @@ class M3P2Plugin extends Plugin
public
function
getWebIdeUrlForPage
(
Page
$page
)
{
$url
=
"https://
m3p2.ljbac
.com/-/ide/project/m3p2/courses/edit/master/-/"
;
# todo: move to YAML config
$url
=
"https://
gitlab.m3p2
.com/-/ide/project/m3p2/courses/edit/master/-/"
;
# todo: move to YAML config
$url
.=
substr
(
$page
->
filePathClean
(),
11
);
// 11==strlen('/user/pages')
return
$url
;
...
...
user/plugins/markdown-underline/blueprints.yaml
View file @
f41bd69a
...
...
@@ -8,7 +8,7 @@ author:
name
:
Antoine Goutenoir
email
:
antoine@goutenoir.com
homepage
:
https://github.com/Goutte/grav-plugin-markdown-underline
demo
:
https://
courses.m3p2.ljbac
.com
demo
:
https://
m3p2
.com
keywords
:
grav, plugin, markdown, underline, override, inline, block
bugs
:
https://github.com/Goutte/grav-plugin-markdown-underline/issues
docs
:
https://github.com/Goutte/grav-plugin-markdown-underline/blob/develop/README.md
...
...
user/themes/textbook/templates/partials/footer.html.twig
View file @
f41bd69a
...
...
@@ -3,10 +3,11 @@
<p>
<i
class=
"fa fa-code"
></i>
with
<i
class=
"fa fa-heart-o pulse"
></i>
by
<a
href=
"/authors"
class=
"science"
><i
class=
"fa fa-flask"
></i></a>
.
by
<a
href=
"/authors"
class=
"science"
><i
class=
"fa fa-flask"
></i></a>
and
<a
href=
"https://antoine.goutenoir.com"
class=
"ljbac"
><i
class=
"fa fa-cube"
></i></a>
.
{%
if
false
%}
<a
href=
"/admin"
class=
"admin-link"
>
Access admin page
</a>
.
{%
else
%}
—
<a
href=
"/admin"
class=
"admin-link"
>
Admin
</a>
{%
endif
%}
</p>
</section>
...
...
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