diff options
author | Arun Isaac | 2023-01-29 16:23:45 +0000 |
---|---|---|
committer | Arun Isaac | 2023-01-29 16:46:38 +0000 |
commit | 8516e5d0f5b64c681d31efa2944bb9a9de32dbbc (patch) | |
tree | e8def557954f95796cb419ada71a7ed5346533c2 /doc | |
parent | d5adbcf983bb2d83fd46041ad3226dd8912266a6 (diff) | |
download | tissue-8516e5d0f5b64c681d31efa2944bb9a9de32dbbc.tar.gz tissue-8516e5d0f5b64c681d31efa2944bb9a9de32dbbc.tar.lz tissue-8516e5d0f5b64c681d31efa2944bb9a9de32dbbc.zip |
document: Inter snippet source text into the xapian index.
We store snippet source text in a slot of the <document> class thus
interring into the xapian index. This allows us to render search
snippets using only the xapian index without referring back to the git
repository.
* tissue/document.scm (<document>)[snippet-source-text]: New slot.
* tissue/document.scm (document-snippet-source-text): Delete method.
(document-html-snippet): Remove blank lines from snippet source text
before generating a snippet.
* tissue/commit.scm (document-snippet-source-text): Delete method.
(repository-commits): Initialize snippet-source-text.
* tissue/skribilo.scm (fragment-text): New function.
(document-fragment): Initialize snippet-source-text.
(document-text): Use fragment-text.
(document-snippet-source-text): Delete method.
* tissue/file-document.scm (file-text): New function.
(document-text): Use file-text.
(read-gemtext-document): Initialize snippet-source-text.
* tissue/issue.scm (read-gemtext-issue): Initialize
snippet-source-text.
* issues/skribilo-fragment-snippets-need-code-from-repo.gmi: Close
issue.
Diffstat (limited to 'doc')
0 files changed, 0 insertions, 0 deletions