Skip to content
Snippets Groups Projects
Commit ad8b540b authored by FORESTIER Fabien's avatar FORESTIER Fabien
Browse files

Use nginx to serve the builded documentation instead of using the dev server

parent b0476833
No related branches found
No related tags found
No related merge requests found
Pipeline #1026 passed
FROM python:3.6.8-alpine3.9 FROM python:3.6.8-alpine3.9 as builder
# Set build directory # Set build directory
WORKDIR /app WORKDIR /app
# add the current directory to the container as /app # add the current directory to the container as /app
ADD . /docs ADD . /app
# Perform build and cleanup artifacts # Perform build and cleanup artifacts
RUN pip install mkdocs && pip install mkdocs-material && pip install plantuml-markdown RUN pip install mkdocs && pip install mkdocs-material && pip install plantuml-markdown
# build the documentation site
RUN mkdocs build
# Set working directory FROM nginx
WORKDIR /docs
# Expose MkDocs development server port COPY --from=builder /app/site /usr/share/nginx/html
EXPOSE 8000 RUN ls -l /usr/share/nginx/html
EXPOSE 80
# Start development server by default CMD ["nginx", "-g", "daemon off;"]
ENTRYPOINT ["mkdocs"]
CMD ["serve", "--dev-addr=0.0.0.0:8000"]
\ No newline at end of file
version: '3.6' version: '3.1'
services: services:
mkdocs: mkdocs:
build: build:
context: ./ context: ./
ports: ports:
- 2077:8000 - 2077:80
logging: logging:
driver: "json-file" driver: "json-file"
options: options:
......
material_theme_override/assets/images/favicon.ico

14.7 KiB | W: | H:

material_theme_override/assets/images/favicon.ico

31.3 KiB | W: | H:

material_theme_override/assets/images/favicon.ico
material_theme_override/assets/images/favicon.ico
material_theme_override/assets/images/favicon.ico
material_theme_override/assets/images/favicon.ico
  • 2-up
  • Swipe
  • Onion skin
material_theme_override/assets/images/favicon.png

1.24 KiB | W: | H:

material_theme_override/assets/images/favicon.png

630 B | W: | H:

material_theme_override/assets/images/favicon.png
material_theme_override/assets/images/favicon.png
material_theme_override/assets/images/favicon.png
material_theme_override/assets/images/favicon.png
  • 2-up
  • Swipe
  • Onion skin
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 23.0.2, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<svg version="1.1" id="b64850fe-2e14-40d7-8c6c-d81e0fedf6b3"
xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 509 48.1"
style="enable-background:new 0 0 509 48.1;" xml:space="preserve">
<style type="text/css">
.Style_x0020_graphique_x0020_2{fill:#FFFFFF;}
.Style_x0020_graphique{fill:#E93232;}
</style>
<title>logo_data_alpha</title>
<path class="Style_x0020_graphique" d="M457.1,10h37.8c7.8,0,14.1,6.3,14.1,14.1c0,0,0,0,0,0l0,0c0,7.8-6.3,14.1-14.1,14.2h-37.8
c-7.8-0.1-14.1-6.4-14.1-14.2l0,0C443,16.3,449.3,10,457.1,10L457.1,10z"/>
<path class="Style_x0020_graphique_x0020_2" d="M462,29.2h-1.9l-0.2-0.3l-0.7-2.1H455l-0.8,2.1l-0.2,0.3h-1.9l4-10.1h1.9L462,29.2z
M455.4,25.4h3.3l-1.3-3.4c0-0.2-0.1-0.3-0.1-0.5c-0.1-0.2-0.2-0.5-0.2-0.7c-0.1,0.2-0.2,0.5-0.2,0.7c-0.1,0.2-0.2,0.3-0.2,0.5
L455.4,25.4z"/>
<path class="Style_x0020_graphique_x0020_2" d="M464.9,27.6h4.1v1.6h-5.9V19.1h1.8V27.6z"/>
<path class="Style_x0020_graphique_x0020_2" d="M472.3,25.6v3.6h-1.9V19.1h3.3c0.6,0,1.2,0,1.7,0.2l1.3,0.7c0.3,0.3,0.5,0.6,0.7,1
c0.1,0.4,0.2,0.9,0.2,1.3c0,0.4-0.1,0.9-0.2,1.3c-0.1,0.4-0.4,0.8-0.8,1.1c-0.3,0.3-0.8,0.5-1.2,0.7c-0.5,0.2-1.1,0.2-1.7,0.2
L472.3,25.6z M472.3,24.2h1.4l0.9-0.2l0.6-0.3l0.4-0.6c0.1-0.3,0.1-0.5,0.1-0.8c0-0.2,0-0.5-0.1-0.7c0-0.2-0.2-0.5-0.4-0.6
c-0.1-0.2-0.4-0.3-0.6-0.4h-2.3V24.2z"/>
<path class="Style_x0020_graphique_x0020_2" d="M487.6,29.2h-1.9v-4.4H481v4.4h-1.9V19.1h1.9v4.3h4.7v-4.3h1.9V29.2z"/>
<path class="Style_x0020_graphique_x0020_2" d="M498.6,29.2h-1.9l-0.2-0.3l-0.7-2.1h-4.2l-0.8,2.1l-0.2,0.3h-1.9l4-10.1h1.9
L498.6,29.2z M492,25.4h3.3L494,22c0-0.2-0.1-0.3-0.1-0.5c-0.1-0.2-0.2-0.5-0.2-0.7c-0.1,0.2-0.2,0.5-0.2,0.7
c-0.1,0.2-0.2,0.3-0.2,0.5L492,25.4z"/>
<path class="Style_x0020_graphique" d="M24.5,36.5V0.1h-7.1v12c-1.1-0.4-2.6-0.8-4.5-0.8C5.8,11.3,1.3,16.6,1.3,25
c0,8.5,5,13.5,13.1,13.5C18.7,38.5,22.4,37.5,24.5,36.5z M17.4,32.7c-0.7,0.2-1.6,0.4-3,0.4c-4,0-6-3.2-6-8.4c0-4.9,1.6-8.3,5.8-8.3
c1.3,0,2.4,0.4,3.2,0.7V32.7z"/>
<path class="Style_x0020_graphique" d="M50.9,36.8V22.3c0-1.1,0-2.1-0.1-3.1c-0.6-5.4-4.1-8.1-10.3-8.1c-3.9,0-7.3,1-9.1,1.7
l1.2,5.1c1.7-0.8,4.2-1.5,6.9-1.5c3.5,0,4.5,1.9,4.6,4.7c-0.6,0-1.7-0.1-2.6,0c-6.6,0.4-12,2.6-12,8.9c0,5.9,4.1,8.4,11,8.4
C45,38.4,48.9,37.7,50.9,36.8z M44.2,33.1c-0.9,0.3-1.7,0.4-3.3,0.4c-2.8,0-4.6-1.1-4.6-3.7c0-3,2.3-3.9,5.1-4.2c1.1-0.1,2,0,2.8,0
V33.1z"/>
<path class="Style_x0020_graphique" d="M72.8,37.2c-0.2-1.7-0.4-3.4-0.6-5.1c-1.2,0.6-2.5,0.8-3.8,0.7c-2.3-0.2-2.7-1.7-2.7-5.3
V17.1h6.6v-5.4h-6.6V4.9h-7.1v6.9h-3.4v5.3h3.4c0,2.9,0,7.9,0.1,10.8c0.3,5.6,1.5,10.8,9.4,10.5C70.1,38.2,71.7,37.7,72.8,37.2z"/>
<path class="Style_x0020_graphique" d="M97.2,36.8V22.3c0-1.1,0-2.1-0.1-3.1c-0.6-5.4-4.1-8.1-10.3-8.1c-3.9,0-7.3,1-9.1,1.7
l1.2,5.1c1.7-0.8,4.2-1.5,6.9-1.5c3.5,0,4.5,1.9,4.6,4.7c-0.6,0-1.7-0.1-2.6,0c-6.6,0.4-12,2.6-12,8.9c0,5.9,4.1,8.4,11,8.4
C91.3,38.4,95.1,37.7,97.2,36.8z M90.4,33.1c-0.9,0.3-1.7,0.4-3.3,0.4c-2.8,0-4.6-1.1-4.6-3.7c0-3,2.3-3.9,5.1-4.2
c1.1-0.1,2,0,2.8,0V33.1z"/>
<path class="Style_x0020_graphique" d="M110.5,34.2c0-2.5-1.9-4.3-4.3-4.3c-2.4,0-4.3,1.8-4.3,4.3c0,2.5,2,4.2,4.3,4.2
C108.6,38.4,110.5,36.7,110.5,34.2z"/>
<path class="Style_x0020_graphique_x0020_2" d="M131.5,33.3c-1.1,0.8-3,1.5-5.1,1.5c-4.4,0-7.2-3.2-7.2-9.6c0-6.1,2.6-10.2,7.8-10.2
c2.2,0,3.6,0.2,4.6,0.7V33.3z M135.3,37.5V13.6c-1.7-0.8-4.4-1.6-8.4-1.6c-7.6,0-11.9,5.5-11.9,13.2c0,8.2,4.5,12.5,10.7,12.5
c2.8,0,4.8-0.9,5.8-1.4v1.6c0,2.4-0.7,4.1-2.2,5.2c-1.2,1.1-3,1.7-5.4,1.7c-2.4,0-4.9-0.7-6.3-1.4c-0.4,1.1-0.7,2.1-1,3.1
c1.9,0.9,4.6,1.5,7.9,1.5C131.6,48,135.3,44.6,135.3,37.5z"/>
<path class="Style_x0020_graphique_x0020_2" d="M156.4,12.5c-1.2-0.2-2.8-0.3-4.3-0.3h-0.6c-3.4,0.1-5.8,0.9-7.5,1.7v24.3h3.9V16
c0.6-0.3,1.9-0.8,3.7-0.8h0.7c1.2,0,2.2,0.1,3.2,0.4C155.9,14.6,156.1,13.5,156.4,12.5z"/>
<path class="Style_x0020_graphique_x0020_2" d="M175.1,35.1c-1.2,0.4-2.8,0.6-4.8,0.6c-3.8,0-6.1-1.4-6.1-5c0-4.1,3.1-5.3,6.9-5.8
c0.6,0,1.2-0.1,1.7-0.1c0.9,0,1.7,0.1,2.4,0.1V35.1z M178.9,37.1V23.3c0-1,0-1.9,0-2.8c-0.1-5.6-3.5-8.4-9.1-8.4
c-3.3,0-6,0.9-7.3,1.5l0.7,2.9c1.2-0.6,3.2-1.3,6.2-1.3c4.8,0,5.7,2.7,5.8,7.2c-0.7,0-1.8-0.1-2.9-0.1c-0.3,0-0.7,0-1,0
c-6.2,0.5-10.9,2.9-10.9,8.6c0,5.2,3.6,7.8,9.6,7.8C173.7,38.6,177.1,37.9,178.9,37.1z"/>
<path class="Style_x0020_graphique_x0020_2" d="M205.7,38.1V23.6c0-5.4-0.6-11.6-9.6-11.6c-4.4,0-7.5,0.7-9.6,1.7v24.3h3.9V15.9
c1-0.4,2.6-0.8,5.2-0.8c6,0,6.1,4.1,6.1,9.2v13.8H205.7z"/>
<path class="Style_x0020_graphique_x0020_2" d="M229.3,34.9c-0.9,0.4-2.3,0.7-4.6,0.7c-5.3,0-8-4-8-10.2c0-5.5,2-10.3,7.9-10.3
c1.9,0,3.6,0.7,4.7,1.2V34.9z M233.2,37V0.6h-3.9v12.8c-1.2-0.5-3-1.2-5.2-1.2c-7,0-11.3,5.2-11.3,13.4c0,7.9,4.4,13.1,11.9,13.1
C228.5,38.6,231.5,37.8,233.2,37z"/>
<path class="Style_x0020_graphique_x0020_2" d="M250.4,36.1c-3.4-1-4.2-1.5-4.2-9.3V0.6h-3.9V30c0,6.5,2.4,8.1,7.3,8.6L250.4,36.1z"
/>
<path class="Style_x0020_graphique_x0020_2" d="M273.5,12.5h-3.8c-1.7,6.5-3.2,12.1-5.2,18.1c-0.4,1.2-0.9,3.4-1.1,3.5
c-0.3-0.7-0.7-2.1-1.2-3.6c-2.3-6.2-4.3-12.4-5.7-18.1h-4.2c2.5,8.7,5.8,17.5,9.3,25.6c-0.6,1.9-1.3,5-3.3,5c-0.9,0-1.7-0.5-2.9-1.2
l-0.8,2.5c1,0.5,2.3,1.4,4.6,1.4c2.7,0,4-2.5,5.4-6.1C268,31.3,270.8,22.1,273.5,12.5z"/>
<path class="Style_x0020_graphique_x0020_2" d="M294.2,25.3c0,5.6-1.9,10.1-6.8,10.1c-4.9,0-6.9-4.6-6.9-10.1c0-5.5,2-10.3,6.9-10.3
C292.2,15,294.2,19.8,294.2,25.3z M298.1,25.3c0-7.8-3.9-13.3-10.8-13.3c-6.9,0-10.8,5.5-10.8,13.3c0,7.8,3.9,13.3,10.8,13.3
C294.2,38.6,298.1,33.1,298.1,25.3z"/>
<path class="Style_x0020_graphique_x0020_2" d="M325,38.1V23.6c0-5.4-0.6-11.6-9.6-11.6c-4.4,0-7.5,0.7-9.6,1.7v24.3h3.9V15.9
c1-0.4,2.6-0.8,5.2-0.8c6,0,6.1,4.1,6.1,9.2v13.8H325z"/>
<path class="Style_x0020_graphique_x0020_2" d="M338.4,35.7c0-1.6-1.2-2.8-2.8-2.8c-1.6,0-2.8,1.2-2.8,2.8c0,1.6,1.2,2.8,2.8,2.8
C337.2,38.5,338.4,37.3,338.4,35.7z"/>
<path class="Style_x0020_graphique_x0020_2" d="M360,37l-0.9-3c-1,0.6-2.6,1.3-4.8,1.3c-5.2,0-7.5-4.1-7.5-10.1
c0-6.1,2.3-10.1,7.3-10.1c2.3,0,3.6,0.5,4.7,1.2c0.3-1,0.6-1.9,1-2.8c-1.2-0.7-3.3-1.5-6.2-1.5c-6.6,0-10.8,5.2-10.8,13.3
c0,8.1,4.1,13.2,10.9,13.2C356.5,38.6,358.8,37.8,360,37z"/>
<path class="Style_x0020_graphique_x0020_2" d="M381.4,25.3c0,5.6-1.9,10.1-6.8,10.1c-4.9,0-6.9-4.6-6.9-10.1c0-5.5,2-10.3,6.9-10.3
C379.5,15,381.4,19.8,381.4,25.3z M385.4,25.3c0-7.8-3.9-13.3-10.8-13.3c-6.9,0-10.8,5.5-10.8,13.3c0,7.8,3.9,13.3,10.8,13.3
C381.5,38.6,385.4,33.1,385.4,25.3z"/>
<path class="Style_x0020_graphique_x0020_2" d="M426.6,38.1V23.6c0-5.2-0.3-11.6-8.8-11.6c-3.9,0-6.7,1.7-8.1,2.9
c-1.5-1.8-3.8-2.9-7.3-2.9c-4.4,0-7.1,0.8-9.3,1.6v24.4h3.9V15.9c1-0.4,2.6-0.8,5-0.8c5.6,0,5.9,3.5,5.9,9.1v13.9h3.9V24.7
c0-2.5-0.1-5.1-0.4-7.4c1.1-1.1,3.1-2.2,5.9-2.2c5.2,0,5.4,4,5.4,9.1v13.8H426.6z"/>
</svg>
material_theme_override/assets/images/logo_data_blanc_web.png

3.98 KiB

{#- <header class="md-header" data-md-component="header">
This file was automatically generated - do not edit <nav class="md-header-nav md-grid">
-#} <div class="md-flex">
<header class="md-header" data-md-component="header"> <div class="md-flex__cell md-flex__cell--shrink">
<nav class="md-header-nav md-grid"> <a href="https://data.alpha.grandlyon.com/en/accueil" title="{{ config.site_name }}"
<div class="md-flex"> class="md-header-nav__button md-logo">
<div class="md-flex__cell md-flex__cell--shrink">
<a href="https://data.alpha.grandlyon.com/en/accueil" title="{{ config.site_name }}" class="md-header-nav__button md-logo">
<img src="/assets/images/home_logo_data.svg" width="200" height="24"> </a> <img src="/assets/images/logo_data_blanc_web.png" width="200" height="24"> </a>
</div> </div>
<div class="md-flex__cell md-flex__cell--shrink"> <div class="md-flex__cell md-flex__cell--shrink">
<label class="md-icon md-icon--menu md-header-nav__button" for="__drawer"></label> <label class="md-icon md-icon--menu md-header-nav__button" for="__drawer"></label>
</div> </div>
<div class="md-flex__cell md-flex__cell--stretch"> <div class="md-flex__cell md-flex__cell--stretch">
<div class="md-flex__ellipsis md-header-nav__title" data-md-component="title">{%- if config.site_name == page.title -%} {{ config.site_name }} {%- else -%} <div class="md-flex__ellipsis md-header-nav__title" data-md-component="title">
<span class="md-header-nav__topic"> {%- if config.site_name == page.title -%} {{ config.site_name }} {%- else -%}
{{- config.site_name -}} <span class="md-header-nav__topic">
</span> {{- config.site_name -}}
<span class="md-header-nav__topic"> </span>
{%- if page and page.meta and page.meta.title -%} {{- page.meta.title -}} {%- else -%} {{- page.title -}} {%- endif -%} <span class="md-header-nav__topic">
</span>{%- endif -%}</div></div> {%- if page and page.meta and page.meta.title -%} {{- page.meta.title -}} {%- else -%}
<div class="md-flex__cell md-flex__cell--shrink">{%- if "search" in config["plugins"] -%} {{- page.title -}} {%- endif -%}
<label class="md-icon md-icon--search md-header-nav__button" for="__search"> </span>{%- endif -%}</div>
</div>
<div class="md-flex__cell md-flex__cell--shrink">{%- if "search" in config["plugins"] -%}
<label class="md-icon md-icon--search md-header-nav__button" for="__search">
</label> {%- include "partials/search.html" -%} {%- endif -%} </label> {%- include "partials/search.html" -%} {%- endif -%}
</div> </div>
{%- if config.repo_url -%}<div class="md-flex__cell md-flex__cell--shrink"> {%- if config.repo_url -%}<div class="md-flex__cell md-flex__cell--shrink">
<div class="md-header-nav__source">{%- include "partials/source.html" -%} <div class="md-header-nav__source">{%- include "partials/source.html" -%}
</div> </div>
</div> </div>
{%- endif -%} {%- endif -%}
</div> </div>
</nav> </nav>
</header> </header>
\ No newline at end of file \ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment