diff --git a/build_theme_index.py b/build_theme_index.py index e5a067d..5ed5367 100644 --- a/build_theme_index.py +++ b/build_theme_index.py @@ -3,31 +3,29 @@ import os keywords = "keywords.md" with open(keywords) as f: - content = f.readlines() - content = [y for x in content for y in x.strip().split(':') ] + lines = f.readlines() + for line in lines: + content = [y for y in line.strip().split(':') ] + keyword = content[0] + directory = "content/" + content[0] + filename = content[1].replace("content", "") + htmlfilename = filename.replace(".md", ".html") + article = content[2] - keyword = content[0] - directory = "content/" + content[0] - filename = content[1].replace("content", "") - htmlfilename = filename.replace(".md", ".html") - article = content[2] + if os.path.exists(directory + ".md"): + os.remove(directory + ".md") + if os.path.exists(directory + ".html"): + os.remove(directory + ".html") - if os.path.exists(directory + "/index.md"): - os.remove(directory + "/index.md") - if os.path.exists(directory + "/index.html"): - os.remove(directory + "/index.html") - if os.path.exists(directory): - os.rmdir(directory) + fileindex=directory + ".md" - if not os.path.exists(directory): - os.makedirs(directory) + with open(fileindex, 'a') as keywordFile: + if keywordFile.tell() == 0: + keywordFile.write('---\ntitle: ' + keyword.capitalize() + "\n---\n") + print("tel 0 ?") + print(keyword + " article : " + article + " html : " + htmlfilename) + keywordFile.write("- [" + article + "](" + htmlfilename + ")\n") - fileindex=directory + "/index.md" - with open(fileindex, 'a') as f: - if f.tell() == 0: - f.write('---\ntitle: ' + keyword.capitalize() + "\n---\n") - f.write("- [" + article + "](" + htmlfilename + ")\n") - - fileindexhtml=directory + "/index.html" - os.system('pandoc --template=lib/template.html -c lib/pandoc.css ' + fileindex + ' -o ' + fileindexhtml) + fileindexhtml=directory + ".html" + os.system('pandoc --template=lib/template.html -c lib/pandoc.css ' + fileindex + ' -o ' + fileindexhtml) diff --git a/content/2009/2009-01-10-ruby-et-les-frameworks-web.md b/content/2009/2009-01-10-ruby-et-les-frameworks-web.md index 7bb47bd..dc39763 100644 --- a/content/2009/2009-01-10-ruby-et-les-frameworks-web.md +++ b/content/2009/2009-01-10-ruby-et-les-frameworks-web.md @@ -1,8 +1,5 @@ --- -layout: post title: Ruby et les frameworks web -keywords: - - ruby --- Pour noël on a eu le droit à une annonce très bruyante (mais plus très fraïche maintenant). diff --git a/content/2015/2015-08-11-fin-de-mission.md b/content/2015/2015-08-11-fin-de-mission.md new file mode 100644 index 0000000..abfeacc --- /dev/null +++ b/content/2015/2015-08-11-fin-de-mission.md @@ -0,0 +1,23 @@ +--- +title: Fin de mission +--- + +Je suis arrivé avant que les portes soient ouvertes chez mon client... Le +client final est en mode pas content: le produit n'est pas *fini*. Il découvre +des régressions, râle, sans être trop agressif je trouve, mais je sens une +tension dans la pièce. En plus il y fait chaud. + +Je reste assez silencieux: je n'ai pas participé la semaine dernière, et hier +j'ai juste reparé un soucis. Pas vraiment le sentiment d'avoir apporté une +influence sur ce sprint. Ça me va bien. Je laisse les autres dérouler leur +processus. + +A la pause, le client final me prend à part pour me parler du projet, de la +deception qu'il a. Il évoque aussi le fait que l'équipe est meilleur maintenant +qu'au début. Je lui explique que c'est tout à fait vrai, que chez les éditeurs +il y a y soucis de ne pas avoir trop de turn over car les équipes deviennent +meilleurs avec le temps. Elles apprenent à travailler comme un groupe et en +plus apprennent le métier. + +La cérémonie se déroule, la rétro passe presque inaperçu. J'apprend qu'il y +aura une cérémonie vendredi, en fin de journée, je n'y serais pas. diff --git a/content/ruby/index.html b/content/ruby/index.html deleted file mode 100644 index d91024e..0000000 --- a/content/ruby/index.html +++ /dev/null @@ -1,34 +0,0 @@ - - - - - Yannick François - Elsif.fr - - - - - - - - - - - - - - - - -
-

Ruby

- -
- - - - diff --git a/content/ruby/index.md b/content/ruby/index.md deleted file mode 100644 index 5e3bd8d..0000000 --- a/content/ruby/index.md +++ /dev/null @@ -1,4 +0,0 @@ ---- -title: Ruby ---- -- [Ruby et les frameworks web](/2009/2009-01-10-ruby-et-les-frameworks-web.html) diff --git a/keywords.md b/keywords.md deleted file mode 100644 index 1a8722f..0000000 --- a/keywords.md +++ /dev/null @@ -1 +0,0 @@ -ruby:content/2009/2009-01-10-ruby-et-les-frameworks-web.md:Ruby et les frameworks web diff --git a/lib/extract-keywords.md b/lib/extract-keywords.md deleted file mode 100644 index dc824ca..0000000 --- a/lib/extract-keywords.md +++ /dev/null @@ -1,3 +0,0 @@ -$for(keywords)$ -$keywords$:$sourcefile$:$title$ -$endfor$ diff --git a/pana.sh b/pana.sh index 7b80e1d..a25a762 100755 --- a/pana.sh +++ b/pana.sh @@ -1,14 +1,10 @@ #!/bin/sh -# # Ligne complète pour pandoc: # pandoc --template=lib/template.html -c lib/pandoc.css -H lib/head.html -B lib/header.html -A lib/footer.html "$mdfile" -o "$htmlfile" MARKDOWN_FILES=$(find content -name \*.md) FEED_FILE=content/feed.xml -KEYWORDS=keywords.md - -cat "" > $KEYWORDS echo "## Generate HTML files for each markdown files" @@ -18,19 +14,8 @@ for mdfile in $MARKDOWN_FILES; do echo "--> generate with pandoc '$htmlfile' from '$mdfile'" pandoc --template=lib/template.html -c lib/pandoc.css "$mdfile" -o "$htmlfile" fi - pandoc --template=lib/extract-keywords.md "$mdfile" >> $KEYWORDS done echo "## END" -echo "## Build keywords pages" -python build_theme_index.py - -if [ ! -f "$htmlfile" ] || [ "$htmlfile" -ot "$mdfile" ]; then - echo "--> generate with pandoc '$htmlfile' from '$mdfile'" - pandoc --template=lib/template.html -c lib/pandoc.css "$mdfile" -o "$htmlfile" -fi -echo "## END" - - exit 0