From cb8eb00605b8b970ec7561eaaa6d045f91e1e6e6 Mon Sep 17 00:00:00 2001 From: rodolphe Date: Sun, 9 Apr 2023 13:52:41 +0200 Subject: [PATCH] (Grav GitSync) Automatic Commit from rodolphe --- .../01.deploiement-du-serveur/docs.md | 2 +- .../documentations-linux07/images/clippy.svg | 3 + .../documentations-linux07/images/favicon.png | Bin 0 -> 3566 bytes .../images/favicon.png.old | Bin 0 -> 1177 bytes themes/documentations-linux07/images/logo.png | Bin 0 -> 3566 bytes .../images/logo.png.old | Bin 0 -> 1215 bytes .../partials/analytics.html.twig | 10 ++ .../partials/base.html.twig | 102 ++++++++++++++++++ .../partials/github_link.html.twig | 1 + .../partials/github_note.html.twig | 7 ++ .../partials/logo.html.twig | 9 ++ .../partials/page.html.twig | 6 ++ .../partials/search.html.twig | 6 ++ .../partials/sidebar.html.twig | 68 ++++++++++++ 14 files changed, 213 insertions(+), 1 deletion(-) create mode 100644 themes/documentations-linux07/images/clippy.svg create mode 100644 themes/documentations-linux07/images/favicon.png create mode 100644 themes/documentations-linux07/images/favicon.png.old create mode 100644 themes/documentations-linux07/images/logo.png create mode 100644 themes/documentations-linux07/images/logo.png.old create mode 100644 themes/documentations-linux07/partials/analytics.html.twig create mode 100644 themes/documentations-linux07/partials/base.html.twig create mode 100644 themes/documentations-linux07/partials/github_link.html.twig create mode 100644 themes/documentations-linux07/partials/github_note.html.twig create mode 100644 themes/documentations-linux07/partials/logo.html.twig create mode 100644 themes/documentations-linux07/partials/page.html.twig create mode 100644 themes/documentations-linux07/partials/search.html.twig create mode 100644 themes/documentations-linux07/partials/sidebar.html.twig diff --git a/pages/02.l-infrastructure/01.deploiement-du-serveur/docs.md b/pages/02.l-infrastructure/01.deploiement-du-serveur/docs.md index 0161c16..c6d7d61 100644 --- a/pages/02.l-infrastructure/01.deploiement-du-serveur/docs.md +++ b/pages/02.l-infrastructure/01.deploiement-du-serveur/docs.md @@ -74,7 +74,7 @@ UUID=4a5b5a94-88ea-4328-a05b-4a3fae339ed2 /mnt/media ext4 defaults,nofail 0 UUID=d0294479-075c-480b-972e-0131fef47a5d /var/mail ext4 defaults0 1 # partition apps cryptpad et etherpad_mypads UUID=983ea66d-4732-431a-9d31-86eb85bb9431 /mnt/pad ext4 defaults,nofail 0 0 -/mnt/pad/cryptpad /var/www/cryptpad none defaults,bind 0 0 +# /mnt/pad/cryptpad /var/www/cryptpad none defaults,bind 0 0 /mnt/pad/etherpad_mypads /var/www/etherpad_mypads none defaults,bind 0 0 /mnt/pad/libreto /var/www/libreto none defaults,bind 0 0 # partition swap diff --git a/themes/documentations-linux07/images/clippy.svg b/themes/documentations-linux07/images/clippy.svg new file mode 100644 index 0000000..e1b1703 --- /dev/null +++ b/themes/documentations-linux07/images/clippy.svg @@ -0,0 +1,3 @@ + + + diff --git a/themes/documentations-linux07/images/favicon.png b/themes/documentations-linux07/images/favicon.png new file mode 100644 index 0000000000000000000000000000000000000000..6c55289c2494030bfe566f3152e2683028dd353b GIT binary patch literal 3566 zcma)9XEYlO7fvFGSh06&#BPbA6tzkkLX=i%tyoo~q^&(;6m12sS=4TAYSe3wm{qfO zgP?Cwv8zETKJVY}`}6&{_c`Y|_s2cYbMCq4d3gtOn;FUv1pold1}HtV3&j6h5W0)r zt!Y1a0Sq|QgXaJM&5wTzSRZ8OeleV9pr>=s|Lv9ybA_P3kX^?eHl1G5q3!2j%hJcsgK|1>ET$2x9Rf>d)WZp4#mpyIF*s%BCI$H}glc~g; z>9^nW2-h8SK@W%d?RY-&^jq8}x1EsAV2Qbs;loKVwhXbd?=78WikH^+59ndjMV>SnRlsZjy!Z*fKdo zHzMh4L;Jg?Bc>b{EvtE9ofkxb%y%{XY!01xllCTUTniRQSfXS!>ZizQ2=fJhs5!dI z04#RQO)9T*=x|pl@vq%GJnJUXGn&}TUlDu z!9NRy`K&8VSTMmV{V7?nRvzX9QQ{aQ|HFp+2*w-*vuPk0$oZ&FSk1^y{Xr}DlS%D*-pH)E&15HhySCcg6|sr$VFnLRW*`n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V?d00001 diff --git a/themes/documentations-linux07/images/favicon.png.old b/themes/documentations-linux07/images/favicon.png.old new file mode 100644 index 0000000000000000000000000000000000000000..ec645f19245eef8402ba367897f622e0ddbf3ac4 GIT binary patch literal 1177 zcmV;K1ZMk*P)dbVG7wVRUJ4ZXi@?ZDjy4F)uSOF*Inm5byv11M*2k zK~z|U&6m$hD_0c9KNIH>l~34N==gj?n@5#C6 zen-M06h-+2=m%Z{Ex;?_W&ZI6@E+I$-T^@ vm{l`Igq0HeT{zzd6duYq5I?}ZS1 zj}o9L%16Ktz_(U}njiCVx0PJ=|)RtyxveXzjJ2!}ay`>EwVVa)904-3Mdxcmed=(0Y3T z0)c=&4u`{*$RB~%HnfYyfV#Rm!|tDn9H7O9cB>gsUw_*Q(&;o?TU*a1;FXQrD^(wY z>uX$HT`@mDZzkXuA;ixT=-2TsCfD)(8}UZq>FFuCTn>lBfh-$ObSjl%Vq${zb%O)D zK@MmWLhO|RsHz%wyWO7x1?3)##n{~3q_wq`s;XP3CP@+%6%|xgRu)uyG#X`me4J1y zWVZV^LWo%~I-=i!uhATf0f|I{m6a9F&d#W=t~PZ=(P)&pxjCk%r#U$}F(Z!vU#Y74 z4?KY>1xO~793CEWe0*H$H7I3D?}+$MZFxbf$_I3!rRu2=LECvjMHcOq`4oA8pU^7y rvB>4u@D%$hg8%c!X%QjM@_GI*xczz=s|Lv9ybA_P3kX^?eHl1G5q3!2j%hJcsgK|1>ET$2x9Rf>d)WZp4#mpyIF*s%BCI$H}glc~g; z>9^nW2-h8SK@W%d?RY-&^jq8}x1EsAV2Qbs;loKVwhXbd?=78WikH^+59ndjMV>SnRlsZjy!Z*fKdo zHzMh4L;Jg?Bc>b{EvtE9ofkxb%y%{XY!01xllCTUTniRQSfXS!>ZizQ2=fJhs5!dI z04#RQO)9T*=x|pl@vq%GJnJUXGn&}TUlDu z!9NRy`K&8VSTMmV{V7?nRvzX9QQ{aQ|HFp+2*w-*vuPk0$oZ&FSk1^y{Xr}DlS%D*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80cg4s&ugt{{glXn$!RQ literal 0 HcmV?d00001 diff --git a/themes/documentations-linux07/images/logo.png.old b/themes/documentations-linux07/images/logo.png.old new file mode 100644 index 0000000000000000000000000000000000000000..287a4e75663e15355dc39d890be7ee98096b4f5d GIT binary patch literal 1215 zcmV;w1VHdbVG7wVRUJ4ZXi@?ZDjy4F)uSOF*Inm5byv11Q1c+|hXl@EY)f6`>|jfG*%z!0VZ{ETFlgvjOM^wy%*m6(OKK;Pnh< z70}$#xf}QrxO1JzmoWo85%79?O$BHx|2`XeW$|VjD#|Fyx3iQ;FddCCFgC$>Bx9CS zMeIq=gf2k)=KYwYUABoF+S$O&bKqaxJd7x*UYp&;BdJ=3HyCv zNgFtxiM*krj8_jIV3REAV}qj;ymzjjbC*ZB8D9b*SC)9_o=T2Baz9O#4t&8sIQeyN z>U7BvG|p!Qt-_6yQe%*jA!`Z$*LEzv<=Fcm1nPOlwsIKMs$PP?S~UP>WT$ zgj!zHD%_FQMx7k2kpuJ%jb@F}AOr0pYHd%$kzI}Y^}y(aCGs_(O+;-h1~^L#4XfWE za)2fgwW}FWSH4BRUb>awd}w5&1XPKvv{W4>Nx$4=be;umw{HLnr0g-b2YZgpV>_Hk zqR7O|92fpFtpxx`sAj^Dh2#oWT98MsELqM%+m0$;KKMAG7OR#MZ>|;|6;Yjx0l$u4 zUr}fid3gKXmdF8Y;z~Ue#jG}BNJOI(;l=&Cvx*P|sK2YsDtR2}wuSw^n8W3+2O5)~CKQFAuZ3|p z)gakK1OXnb-pbyZZOp`OG8UO-DWUd!dydSbHBP+k``BM!tX3uhs*5% zcBV#NnTl}!@(8U}6$UdR2m*PzGWoeVX}f)B@&+$`@C6r#O&e2J!0R~$Mo085a2VCG z7%&-~=gh@HZp_8lTC~~J6%9{D=sMfSiBEe7&qU40L%^Z1-?s?sU`m$-{xWu*tJD9i z_8P2aN|QwVr?y;7jnV@4pr&fQ5JFvfnomm;potg+T7b7uckEiBXmhk=Iu*hH`EZ&+ d$c7xx{{?Scb>GrZH2VMm002ovPDHLkV1k0+9PR)B literal 0 HcmV?d00001 diff --git a/themes/documentations-linux07/partials/analytics.html.twig b/themes/documentations-linux07/partials/analytics.html.twig new file mode 100644 index 0000000..53107dc --- /dev/null +++ b/themes/documentations-linux07/partials/analytics.html.twig @@ -0,0 +1,10 @@ + diff --git a/themes/documentations-linux07/partials/base.html.twig b/themes/documentations-linux07/partials/base.html.twig new file mode 100644 index 0000000..05c6183 --- /dev/null +++ b/themes/documentations-linux07/partials/base.html.twig @@ -0,0 +1,102 @@ +{% set theme_config = attribute(config.themes, config.system.pages.theme) %} +{% set github_link_position = github_link_position is defined ? github_link_position : theme_config.github.position %} + + + +{% block head %} + + {% if header.title %}{{ header.title }} | {% endif %}{{ site.title }} + {% include 'partials/metadata.html.twig' %} + + + + + + {% block stylesheets %} + {% do assets.addCss('theme://css-compiled/nucleus.css',102) %} + {% do assets.addCss('theme://css-compiled/theme.css',101) %} + {% do assets.addCss('theme://css/custom.css',100) %} + {% do assets.addCss('theme://css/font-awesome.min.css',100) %} + {% do assets.addCss('theme://css/featherlight.min.css') %} + + {% if browser.getBrowser == 'msie' and browser.getVersion >= 8 and browser.getVersion <= 9 %} + {% do assets.addCss('theme://css/nucleus-ie9.css') %} + {% do assets.addCss('theme://css/pure-0.5.0/grids-min.css') %} + {% do assets.addJs('theme://js/html5shiv-printshiv.min.js') %} + {% endif %} + {% endblock %} + + {% block javascripts %} + {% do assets.addJs('jquery',101) %} + {% do assets.addJs('theme://js/modernizr.custom.71422.js',100) %} + {% do assets.addJs('theme://js/featherlight.min.js') %} + {% do assets.addJs('theme://js/clipboard.min.js') %} + {% do assets.addJs('theme://js/jquery.scrollbar.min.js') %} + {% do assets.addJs('theme://js/learn.js') %} + {% endblock %} + + {% block assets deferred %} + {{ assets.css()|raw }} + {{ assets.js()|raw }} + {% endblock %} + +{% endblock head %} + + + {% block sidebar %} + + {% endblock %} + + {% block body %} +
+
+ +
+ + + {% block topbar %}{% if github_link_position == 'top' or config.plugins.breadcrumbs.enabled %} +
+ {% if github_link_position == 'top' %} + + {% endif %} + + {% if config.plugins.breadcrumbs.enabled %} + {% include 'partials/breadcrumbs.html.twig' %} + {% endif %} +
+ {% endif %}{% endblock %} + + {% block content %}{% endblock %} + + {% block footer %} + {% if github_link_position == 'bottom' %} + {% include 'partials/github_note.html.twig' %} + {% endif %} + {% endblock %} + +
+ {% block navigation %}{% endblock %} +
+ {% endblock %} + + {% block analytics %} + {% if theme_config.google_analytics_code %} + {% include 'partials/analytics.html.twig' %} + {% endif %} + {% endblock %} + + {% block bottom %} + {{ assets.js('bottom')|raw }} + {% endblock %} + + diff --git a/themes/documentations-linux07/partials/github_link.html.twig b/themes/documentations-linux07/partials/github_link.html.twig new file mode 100644 index 0000000..f39c4ab --- /dev/null +++ b/themes/documentations-linux07/partials/github_link.html.twig @@ -0,0 +1 @@ + {{ 'THEME_LEARN2_GITHUB_EDIT_THIS_PAGE'|t }} diff --git a/themes/documentations-linux07/partials/github_note.html.twig b/themes/documentations-linux07/partials/github_note.html.twig new file mode 100644 index 0000000..8198220 --- /dev/null +++ b/themes/documentations-linux07/partials/github_note.html.twig @@ -0,0 +1,7 @@ +
+

+ {{ 'THEME_LEARN2_GITHUB_NOTE'|t }} + + {% include 'partials/github_link.html.twig' %} +

+
diff --git a/themes/documentations-linux07/partials/logo.html.twig b/themes/documentations-linux07/partials/logo.html.twig new file mode 100644 index 0000000..45f5912 --- /dev/null +++ b/themes/documentations-linux07/partials/logo.html.twig @@ -0,0 +1,9 @@ + + + + + + diff --git a/themes/documentations-linux07/partials/page.html.twig b/themes/documentations-linux07/partials/page.html.twig new file mode 100644 index 0000000..d2614a1 --- /dev/null +++ b/themes/documentations-linux07/partials/page.html.twig @@ -0,0 +1,6 @@ +
+

{{ page.title }}

+

+ {{ page.content|raw }} +

+
diff --git a/themes/documentations-linux07/partials/search.html.twig b/themes/documentations-linux07/partials/search.html.twig new file mode 100644 index 0000000..f48565c --- /dev/null +++ b/themes/documentations-linux07/partials/search.html.twig @@ -0,0 +1,6 @@ + diff --git a/themes/documentations-linux07/partials/sidebar.html.twig b/themes/documentations-linux07/partials/sidebar.html.twig new file mode 100644 index 0000000..ae90804 --- /dev/null +++ b/themes/documentations-linux07/partials/sidebar.html.twig @@ -0,0 +1,68 @@ +{% macro loop(page, parent_loop) %} + {% import _self as self %} + + {% if parent_loop|length > 0 %} + {% set data_level = parent_loop %} + {% else %} + {% set data_level = 0 %} + {% endif %} + {% for p in page.children.visible %} + {% set parent_page = p.activeChild ? ' parent' : '' %} + {% set current_page = p.active ? ' active' : '' %} +
  • + + + {% if data_level == 0 %}{{ loop.index }}. {% endif %}{{ p.menu }} + + {% if p.children.count > 0 %} +
      + {{ self.loop(p, parent_loop|default(0)+loop.index) }} +
    + {% endif %} +
  • + {% endfor %} +{% endmacro %} + +{% macro version(p) %} + {% set parent_page = p.activeChild ? ' parent' : '' %} + {% set current_page = p.active ? ' active' : '' %} +
    + {% if p.activeChild or p.active %} + + {% else %} + + {% endif %} + {{ p.menu }} +
    +{% endmacro %} + +{% import _self as macro %} + +
    +
    + {% if theme_config.top_level_version %} + {% for slug, ver in pages.children %} + {{ macro.version(ver) }} +
      + {{ macro.loop(ver, '') }} +
    + {% endfor %} + {% else %} +
      + {% if theme_config.root_page %} + {{ macro.loop(page.find(theme_config.root_page), '') }} + {% else %} + {{ macro.loop(pages, '') }} + {% endif %} +
    + {% endif %} +
    + + {{ 'THEME_LEARN2_CLEAR_HISTORY'|t }}
    + + +
    +