From 6f7c59e8c59837144c3d4f0f92e9051993efac0a Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Fri, 24 Mar 2017 18:01:05 +0100 Subject: [PATCH] Cleaning architecture --- analyze.py => pullrequests/analyze.py | 0 {data => pullrequests/data}/.gitkeep | 0 fetch.py => pullrequests/fetch.py | 0 publish.py => pullrequests/publish.py | 6 +++--- repos.json => pullrequests/repos.json | 0 refresh.sh | 8 ++++++++ roadmap/publish.py | 2 +- www/{template.html => template_pullrequests.html} | 0 ...mplate_roadmapdashboard.html => template_roadmap.html} | 0 9 files changed, 12 insertions(+), 4 deletions(-) rename analyze.py => pullrequests/analyze.py (100%) rename {data => pullrequests/data}/.gitkeep (100%) rename fetch.py => pullrequests/fetch.py (100%) rename publish.py => pullrequests/publish.py (87%) rename repos.json => pullrequests/repos.json (100%) create mode 100755 refresh.sh rename www/{template.html => template_pullrequests.html} (100%) rename www/{template_roadmapdashboard.html => template_roadmap.html} (100%) diff --git a/analyze.py b/pullrequests/analyze.py similarity index 100% rename from analyze.py rename to pullrequests/analyze.py diff --git a/data/.gitkeep b/pullrequests/data/.gitkeep similarity index 100% rename from data/.gitkeep rename to pullrequests/data/.gitkeep diff --git a/fetch.py b/pullrequests/fetch.py similarity index 100% rename from fetch.py rename to pullrequests/fetch.py diff --git a/publish.py b/pullrequests/publish.py similarity index 87% rename from publish.py rename to pullrequests/publish.py index 820ba03..13b3988 100755 --- a/publish.py +++ b/pullrequests/publish.py @@ -9,10 +9,10 @@ from ansi2html.style import get_styles ############################################################################### -output_dir = "./www/" +output_dir = "../www/" -template_path = os.path.join(output_dir,"template.html") -output_path = os.path.join(output_dir,"index.html") +template_path = os.path.join(output_dir,"template_pullrequests.html") +output_path = os.path.join(output_dir,"pullrequests.html") summary_path = os.path.join("./", "summary.json") diff --git a/repos.json b/pullrequests/repos.json similarity index 100% rename from repos.json rename to pullrequests/repos.json diff --git a/refresh.sh b/refresh.sh new file mode 100755 index 0000000..d42b140 --- /dev/null +++ b/refresh.sh @@ -0,0 +1,8 @@ +cd roadmap +./fetch.py +./analayze.py +./publish.py +cd pullrequests +./fetch.py +./analayze.py +./publish.py diff --git a/roadmap/publish.py b/roadmap/publish.py index 73db258..71afc64 100755 --- a/roadmap/publish.py +++ b/roadmap/publish.py @@ -11,7 +11,7 @@ from ansi2html.style import get_styles output_dir = "../www/" -template_path = os.path.join(output_dir,"template_roadmapdashboard.html") +template_path = os.path.join(output_dir,"template_roadmap.html") output_path = os.path.join(output_dir,"roadmap.html") summary_path = os.path.join("./", "summary.json") diff --git a/www/template.html b/www/template_pullrequests.html similarity index 100% rename from www/template.html rename to www/template_pullrequests.html diff --git a/www/template_roadmapdashboard.html b/www/template_roadmap.html similarity index 100% rename from www/template_roadmapdashboard.html rename to www/template_roadmap.html