summaryrefslogtreecommitdiff
path: root/app/builder
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf.net>2020-08-06 22:12:11 -0400
committerluxagraf <sng@luxagraf.net>2020-08-06 22:12:11 -0400
commitb21ee9e325cd71e2061222b06b7929068bdb79ae (patch)
treeca0f5d6ad34eaf4dbf155d8249af0b91c7862591 /app/builder
parent21b0006e218f27af8eb7cba81a1b854892bfd5a8 (diff)
added builder for src and guides via posts
Diffstat (limited to 'app/builder')
-rw-r--r--app/builder/views.py15
1 files changed, 4 insertions, 11 deletions
diff --git a/app/builder/views.py b/app/builder/views.py
index a32d384..7203d41 100644
--- a/app/builder/views.py
+++ b/app/builder/views.py
@@ -1,7 +1,6 @@
from django.shortcuts import render
from django.template import RequestContext
from builder.base import BuildWriting, BuildWritingFeed, BuildMap, BuildPhotos, BuildProjects, BuildSitemap
-from src.build import builder as src_builder
from jrnl.build import archive_builder, detail_builder, home_builder, rss_builder, map_builder
from resume.build import pub_builder, resume_builder
from books.build import builder as book_builder
@@ -11,7 +10,7 @@ from notes.build import builder as notes_builder
from pages.build import builder as page_builder
from fieldnotes.build import builder as fieldnotes_builder
from photos.build import dailybuilder
-from posts.build import posts_builder
+from posts.build import src_builder, guide_builder
options = {
'writing': BuildWriting,
@@ -55,18 +54,15 @@ def do_build(request):
elif section == 'src':
context = {'message': 'Writing src section to Disk'}
src_builder()
+ elif section == 'guide':
+ context = {'message': 'Writing guide section to Disk'}
+ guide_builder()
elif section == 'luxphotos':
context = {'message': 'Writing galleries to Disk'}
photo_builder()
- elif section == 'dailyphotos':
- context = {'message': 'Writing galleries to Disk'}
- photo_builder()
elif section == 'figments':
context = {'message': 'Writing figments to Disk'}
figments_builder()
- elif section == 'notes':
- context = {'message': 'Writing notes to Disk'}
- notes_builder()
elif section == 'pages':
context = {'message': 'Writing Pages to Disk'}
page_builder()
@@ -76,9 +72,6 @@ def do_build(request):
elif section == 'fieldnotes':
context = {'message': 'Writing FieldNotes to Disk'}
fieldnotes_builder()
- elif section == 'buildposts':
- context = {'message': 'Writing Posts to Disk'}
- posts_builder()
else:
options[section]().build()
context = {'message': 'Writing %s to Disk' % section}