summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* ui: serve: Respect site configuration and default options.David Thompson2015-04-111-4/+7
| | | | | * haunt/ui/serve.scm (%default-options): Fix alist. (haunt-serve): Use site config file to determine web server root.
* ui: Fix load-config.David Thompson2015-04-111-2/+3
| | | | | * haunt/ui.scm (load-config): Use an absolute path when calling 'load'. Fix typo in error message.
* site: Tweak log output when building.David Thompson2015-04-111-3/+2
| | | | * haunt/site.scm (build-site): Change log message text.
* ui: Remove use of defunct haunt-error.David Thompson2015-04-111-1/+1
| | | | * haunt/ui.scm (run-haunt-command): Remove call to 'haunt-error'.
* page: Ensure output directory exists before writing.David Thompson2015-04-112-2/+31
| | | | | * haunt/utils.scm (mkdir-p): New procedure. * haunt/page.scm (write-page): Create missing directories before writing.
* ui: Improve option processing and help output.David Thompson2015-04-112-28/+89
| | | | | | | | | | | | | | * haunt/ui.scm (%common-options, %default-common-options): New variables. (simple-args-fols, show-common-options-help, leave, string->number*, load-config): New procedures. (haunt-error): Remove. (show-version-and-exit): Actually exit. Add 'name' argument. (haunt-main): Use new 'show-version-and-exit'. * haunt/ui/serve.scm (show-server-help): Remove. (show-help): New procedure. (%options, %default-options): New variables. (haunt-serve): Use SRFI-37 option processing.
* site: Add build-site procedure.David Thompson2015-04-112-2/+34
| | | | | * haunt/utils.scm (absolute-file-name, clean-directory): New procedures. * haunt/site.scm (build-site): New procedure.
* page: Change sxml field to contents.David Thompson2015-04-111-4/+4
| | | | | | | | | | Naming the field 'sxml' is a poor choice because it may contain any type of data that the writer procedure accepts. * haunt/page.scm (<page>): Replace 'sxml' field with 'contents'. (page-sxml): Delete accessor. (page-contents): New accessor. (write-page): s/sxml/contents/
* reader: Add read-posts procedure.David Thompson2015-04-111-0/+21
| | | | * haunt/reader.scm (read-posts): New procedure.
* reader: Add html-reader.David Thompson2015-04-111-0/+23
| | | | | * haunt/reader.scm (read-html-post): New procedure. (html-reader): New variable.
* Add utils module.David Thompson2015-04-112-0/+59
| | | | | * haunt/utils.scm: New file. * Makefile.am (SOURCES): Add it.
* reader: Remove stray 'n'.David Thompson2015-04-111-1/+1
| | | | * haunt/reader.scm: Remove stray 'n' character.
* Add site module.David Thompson2015-04-112-0/+65
| | | | | * haunt/site.scm: New file. * Makefile.am (SOURCES): Add it.
* Add SXML to HTML conversion module.David Thompson2015-04-102-0/+371
| | | | | * haunt/build/html.scm: New file. * Makefile.am (SOURCES): Add it.
* Add page module.David Thompson2015-04-102-0/+50
| | | | | * haunt/page.scm: New file. * Makefile.am (SOURCES): Add it.
* Add reader module.David Thompson2015-04-102-0/+76
| | | | | * haunt/reader.scm: New file. * Makefile.am (SOURCES): Add it.
* Add post module.David Thompson2015-04-102-0/+44
| | | | | * haunt/post.scm: New file. * Makefile.am (SOURCES): Add it.
* ui: Display version information.David Thompson2015-01-045-4/+25
| | | | | | | | | | | * haunt/config.scm: Delete. * haunt/config.scm.in: New file. * haunt/ui.scm (show-version-and-exit): New procedure. (program-name): Change default value. (haunt-main): Add version option. * haunt/ui/serve.scm (haunt-serve): Likewise. * configure.ac (AC_CONFIG_FILES): Add 'haunt/config.scm'. * .gitignore: Ignore 'haunt/config.scm'.
* Add serve command.David Thompson2015-01-046-4/+832
| | | | | | | | | | | | * haunt/config.scm: New file. * haunt/serve/mime-types.scm: New file. * haunt/serve/web-server.scm: New file. * haunt/ui/serve.scm: New file. * haunt/ui.scm (commands, program-name): New variables. (show-haunt-help): Display possible commands. (run-haunt-command): New procedure. (haunt-main): Run subcommands. * Makefile.am (SOURCES): Add files.
* First commit.David Thompson2015-01-048-0/+871