Age | Commit message (Collapse) | Author |
|
The new listen specification unifies unix sockets, IP addresses and
ports, all into one string.
* bin/tissue (address->socket-address): Delete function.
(listen->socket-address): New function.
(tissue-run-web): Use listen->socket-address instead of
address->socket-address. Specify default listen instead of default
address and port.
|
|
* bin/tissue (invalid-operand): Delete function.
(tissue-run-web): Read address and port from configuration file.
|
|
* tissue/web/server.scm (%css): Make CSS representationally more
concise by removing blank lines and squeezing one-rule blocks into a
single line.
|
|
* tissue/web/server.scm (%css)[.search-results]: Do not pad.
|
|
* tissue/web/server.scm (make-search-page): Add class "search-results"
to search results ul.
|
|
* tissue/web/server.scm: Import (xapian wrap). Import parse-query
from (xapian xapian) renaming it to xapian:parse-query.
(make-search-page): Display estimated number of matches.
(handler): Pass estimated number of matches to make-search-page.
|
|
* tissue/search.scm: Import parse-query from (xapian xapian) renaming
it to xapian:parse-query.
(parse-query): New public function.
(search-fold): Use parse-query.
|
|
* tissue/web/server.scm (make-search-page): Re-indent.
|
|
* Makefile (scmdir, godir): Remove top_level_module_dir suffix.
|
|
* Makefile (install): Preserve directory structure when installing
sources and objects.
|
|
* Makefile (install): Remove dependencies.
|
|
* tissue/web/server.scm (make-search-page): Self-document search
filters.
(%css)[.search-hint, .search-filter]: New rules.
|
|
Xapian doesn't seem to like hyphens.
* tissue/search.scm (search-fold): Rename last-updater to lastupdater.
|
|
* tissue/search.scm (search-fold, search-map): Set default value of
#:maximum-items argument to all documents.
* bin/tissue (tissue-search): Do not pass #:maximum-items to
search-map.
|
|
* tissue/web/server.scm (handler): List search results even on home
page.
|
|
* tissue/web/server.scm (make-search-page): Accept query argument.
(handler): Pass query argument to make-search-page.
|
|
* tissue/web/server.scm (%css)[.search-result-title,
.search-result-document, .search-result-issue,
.search-result-open-issue, .search-result-closed-issue]: New rules.
|
|
* tissue/issue.scm (document->sxml): Remove space at the beginning of
search result metadata.
|
|
* tissue/document.scm (document->sxml): Add search result title CSS
class.
* tissue/issue.scm (document->sxml): Add search result title CSS
class.
|
|
* tissue/document.scm (document->sxml): Add search-result-document
class.
* tissue/issue.scm (document->sxml): Add search-result-issue and
search-result-open-issue/search-result-closed-issue classes.
|
|
* tissue/search.scm (search-fold): AND is:open filter with search
query.
|
|
* tissue/document.scm (print): Print DOCUMENT identifier.
* tissue/issue.scm (print): Print ISSUE identifier.
|
|
* bin/tissue (tissue-search): Page results, and do not limit number of
results.
|
|
* tissue/document.scm (print): Accept port argument.
* tissue/issue.scm (print): Accept port argument.
|
|
* tissue/utils.scm (call-with-output-pipe): New function.
|
|
* tissue/document.scm (print): Remove blank line between title and
snippet.
|
|
A div is already a block element. There is no need to use a span and
then make it a block element.
* tissue/document.scm (document->sxml): Use div instead of span for
snippets and metadata.
* tissue/issue.scm (document->sxml): Use div instead of span for
snippets and metadata.
* tissue/web/server.scm (%css)[.search-result-metadata]: Remove
"display: block" property.
|
|
Blank lines waste precious space in search snippets.
* tissue/document.scm (document-html-snippet): Remove blank lines in
search snippets.
|
|
* tissue/document.scm (document-html-snippet): New function.
(document-snippet, document-sxml-snippet): Use document-html-snippet.
|
|
* bin/tissue (tissue-index): New function.
(print-usage): List `tissue index' subcommand.
(main): Call tissue-index.
|
|
* tissue/search.scm (search-fold, search-map): Accept maximum number
of search results and offset as arguments.
* bin/tissue (tissue-search): Do not print number of search
results. Use search-map instead of search-fold.
|
|
* tissue/search.scm (search-fold, search-map): Accept search query as
a single string instead of a list of strings.
* bin/tissue (tissue-search): Pass a single search string to
search-fold.
* tissue/web/server.scm (handler): Pass a single search string to
search-map.
|
|
* tissue/web/server.scm: New file.
* tissue/document.scm (document-sxml-snippet): New public function.
(document->sxml): New generic method.
* tissue/issue.scm: Import (web uri).
(document->sxml): New generic method.
* bin/tissue: Import (system repl server) and (tissue web server).
(address->socket-address, tissue-run-web): New function.
(print-usage): List `tissue run-web' subcommand.
(main): Call tissue-run-web.
|
|
* tissue/document.scm (<document>)[web-uri]: New slot.
* bin/tissue (main): Set web-uri slot before indexing document.
|
|
* tissue/document.scm: Import (htmlprag).
(document-snippet): New public function.
(print): Use document-snippet.
* tissue/issue.scm (print): Use document-snippet.
|
|
* tissue/web/static.scm (sanitize-string): Move to tissue/issue.scm.
|
|
* tissue/document.scm (slot-set): New public function.
|
|
* bin/tissue (tissue-search): Add missing argument to format.
|
|
* tissue/search.scm (search-map): New function.
|
|
* tissue/document.scm: Import (srfi srfi-1).
(write): New generic method.
|
|
* bin/tissue (tissue-search): Separate out search functionality into
search-fold in (tissue search).
* tissue/search.scm: New file.
|
|
* tissue/issue.scm (index-person): Rename to index-person!.
(document-term-generator): Update invocations of index-person.
|
|
* tissue/issue.scm (unix-time->date): Delete function.
|
|
* tissue/document.scm: Do not import (srfi srfi-9). Import (srfi
srfi-19), (ice-9 match) and (oop goops).
(<document>): Delete type.
(<document>, <file-document>): New classes.
(date->alist, alist->date, object->scm, scm->object): New functions.
(document->alist, alist->document, print-document): Delete functions.
(document-term-generator, document-type, document-id-term,
document-text, print): New generic methods.
(read-gemtext-document): Return <file-document> object.
(index-document): Delete function.
* tissue/issue.scm: Do not import (srfi srfi-9) and (srfi
srfi-19). Import (oop goops) and (tissue document).
(date->iso-8601, iso-8601->date): Move to tissue/document.scm.
(<issue>, <post>): Re-implement as class.
(issue->alist, post->alist, alist->issue, alist->post, index-issue):
Delete functions.
(print-issue): Rename to print, a generic method.
(print): Use document-title and file-document-path instead of
issue-title and issue-file respectively. Accept mset argument.
(print-issue-to-gemtext): Use document-title instead of issue-title.
(read-gemtext-issue): Return a <issue> object.
(document-term-generator): New generic methods.
* bin/tissue: Import (tissue document) without a prefix.
(print-document, alist->document, document->text, index-document):
Delete functions.
(tissue-search): Use the print generic function.
(main): Use the document-type, document-id-term,
document-term-generator generic functions and replace-document!
instead of index-document.
* tissue/conditions.scm (&unknown-document-type-violation): Delete
condition.
|
|
* tissue/web.scm: Rename to tissue/web/static.scm.
* bin/tissue: Import (tissue web static) instead of (tissue web).
* Makefile (sources): Add sources in tissue/web/.
|
|
* bin/tissue: Do not import (srfi srfi-19).
(print-issue, print-issue-to-gemtext): Move to tissue/issue.scm.
(human-date-string): Move to tissue/utils.scm.
* tissue/issue.scm: Import (term ansi-color).
* tissue/utils.scm: Import (srfi srfi-19).
|
|
* tissue/issue.scm (%issue-files): Delete parameter.
(issues): Delete function.
(read-gemtext-issue): New public function.
(file-modification-table-for-current-repository): New function.
* bin/tissue (main): Do not parameterize %issue-files.
|
|
* tissue/tissue.scm (<tissue-configuration>)[issue-files]: Delete
field.
[indexed-documents]: New field.
* tissue/tissue.scm (tissue-configuration): Remove issue-files
argument. Add indexed-documents argument.
* bin/tissue: Import (tissue document) with doc: prefix.
(print-document, alist->document, document->text, index-document): New
functions.
(tissue-search): Display search results for generalized documents
using print-document, alist->document and document->text.
(main): Index generalized documents using index-document.
|
|
* tissue/conditions.scm (&unknown-document-type-violation): New
condition type.
|
|
* tissue/conditions.scm (&issue-file-not-found): Rename to
&issue-file-not-found-error.
|