Commit a4ed39ca authored by colmoneill's avatar colmoneill

Merge branch 'master' of gitlab.com:bemaker/eu.bemaker.flask

parents da3b0e73 def0373e
......@@ -12,7 +12,7 @@ badge: 3dprint
cat: usinage
type: tutoriel
folderImg : 3dprint
desc: introduction à l'impression 3d
desc: À la découverte de l'impression 3D
...
[TOC]
......
......@@ -7,7 +7,7 @@ import yaml
import os
from glob import glob
PATH_TO_REPO_HOME = '/home/colm/git/bemaker/eu.bemaker.flask/'
PATH_TO_REPO_HOME = '/home/zvevqx/LAB/work/www/eu.bemaker.flask/'
print('parsing all .md files in md_sources folder')
......@@ -21,12 +21,15 @@ for file in inputMd:
# outputFile = open('pages/_PARSED_'+fileName[0]+'.md', 'w')
outputFile = open(PATH_TO_REPO_HOME +'app/pages/'+'_PARSED_'+fileName[0]+'.md', 'w')
yamlData = yaml.load(str(input.partition('...')[2].partition('...')[0]))
folderName = yamlData['folderImg']
outputMd = re.sub(r'(?:!\[(.*)\]\()(.*)(\/)(.*)(?:\))', r'![\1](http://localhost:5000/static/page_images/%s/\4)'%(folderName), input )
if yamlData['folderImg']:
folderName = yamlData['folderImg']
# rsync local image folders to app/static ?
os.system('rsync -rv media/%s ../static/media/'%(folderName) )
outputMd = re.sub(r'(?:!\[(.*)\]\()(.*)(\/)(.*)(?:\))', r'![\1](/static/media/%s/\4)'%(folderName), input )
outputMd = re.sub(r'(\.\.\.)\n','', outputMd )
outputFile.write(outputMd)
outputFile.close()
# rsync local image folders to app/static ?
print('.md files _PARSED_ to pages folder')
......@@ -43,7 +43,7 @@ Ensuite, les élèves retournent en classe pour un atelier participatif où ils
### Tuto, quizz et projet en ligne
Via notre **plateforme web**, nous proposons aux jeunes de continuer leur parcours makers. Des tutoriels en ligne leur permettront d'approfondir les techniques appréhendées lors de la visite du tech truck(impression 3D, laser, CNC, etc.) et des quizzs challegeront leur apprentissage.
Via notre **plateforme web**, nous proposons aux jeunes de continuer leur parcours makers. Des tutoriels en ligne leur permettront d'approfondir les techniques appréhendées lors de la visite du tech truck(impression 3D, laser, CNC, etc.) et des quizzs challengeront leur apprentissage.
Grâce à des exemples de projets à réaliser, le maker en herbe peut également se lancer dans la réalisation de prototype concret.
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
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