From b2c0f0db5f5b35f502d26b88bd9658fc3271a1c9 Mon Sep 17 00:00:00 2001 From: Rohit Paul Kuruvilla Date: Wed, 11 Mar 2015 13:09:34 +0530 Subject: [PATCH 1/2] Delete old files that aren't used anymore --- .gitignore | 1 - www/repos/%repo.spt | 16 ---------------- www/repos/index.spt | 8 -------- 3 files changed, 25 deletions(-) delete mode 100644 www/repos/%repo.spt delete mode 100644 www/repos/index.spt diff --git a/.gitignore b/.gitignore index 7d012ed..19e10dc 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,4 @@ /env *.pyc local.env -/repos *.egg-info diff --git a/www/repos/%repo.spt b/www/repos/%repo.spt deleted file mode 100644 index 80124c0..0000000 --- a/www/repos/%repo.spt +++ /dev/null @@ -1,16 +0,0 @@ -import commands -import os -from os.path import realpath, join - -from aspen import Response - -[---] -request.allow('POST') -repo_name = path['repo'] -repo_names = os.listdir(website.repo_root) -if repo_name not in repo_names: - raise Response(400, "Bad repo name: {}.".format(repo_name)) -repo_path = realpath(join(website.repo_root, repo_name)) -output = commands.getoutput('cd {} && git pull'.format(repo_path)) -[---] text/plain -{{ output }} diff --git a/www/repos/index.spt b/www/repos/index.spt deleted file mode 100644 index 02d2ed0..0000000 --- a/www/repos/index.spt +++ /dev/null @@ -1,8 +0,0 @@ -import os -from os.path import realpath, join -[---] -repo_names = os.listdir(website.repo_root) -[---] text/plain -POST to the following to do a `git pull`: -{% for repo in repo_names %} -/repos/{{ repo }}{% endfor %} From 0382f560d91bed9556d6433a08947db3f42f15e9 Mon Sep 17 00:00:00 2001 From: Rohit Paul Kuruvilla Date: Wed, 11 Mar 2015 14:05:29 +0530 Subject: [PATCH 2/2] Add links to index for headings --- www/index.spt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/index.spt b/www/index.spt index b0e4df0..76582d3 100644 --- a/www/index.spt +++ b/www/index.spt @@ -11,7 +11,7 @@ nav_children = ['big-picture', 'howto', 'appendices']
{% for node in nav_current.values() %}
-

{{ node.title }}

+

{{ node.title }}