Overview
Comment: | Build up listing schema, use for RSS feed ([2f082139]) |
---|---|
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
d37552133761dc80fd424f07d8d82c03 |
User & Date: | joel on 2020-02-21 22:43:34 |
Other Links: | manifest | tags |
Context
2020-02-22
| ||
00:04 | Minor code doc edits check-in: e538e325 user: joel tags: trunk | |
2020-02-21
| ||
22:43 | Build up listing schema, use for RSS feed ([2f082139]) check-in: d3755213 user: joel tags: trunk | |
2020-02-20
| ||
08:30 | Update code docs to reflect [47d9eea54] check-in: b223c8a5 user: joel tags: trunk | |
Changes
Modified cache.rkt from [fa204a09] to [eeff2fe2].
︙ | |||
45 46 47 48 49 50 51 | 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 | - + | [published string/f] [updated string/f] [author string/f] [conceal string/f] [series-page symbol/f] [noun-singular string/f] [note-count integer/f] |
︙ | |||
86 87 88 89 90 91 92 | 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 | - - - + + + + + + | [entry string/f] [subentry string/f] [page symbol/f] [html-anchor string/f])) (define-schema listing #:virtual |
︙ | |||
137 138 139 140 141 142 143 | 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 | - + + + + - + + + - - + + - + + + + - - - - + + + + + + + + + - - - - + + + + + + + + + | ;; Needed to "parameterize" column names ;; see https://github.com/Bogdanp/deta/issues/14#issuecomment-573344928 (require (prefix-in ast: deta/private/ast)) ;; Builds a query to fetch articles (define (articles type #:series [s #t] #:limit [lim -1] #:order [ord 'desc]) |
︙ |
Modified code-docs/cache.scrbl from [bc3bc40e] to [1876eb41].
︙ | |||
88 89 90 91 92 93 94 | 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 | - + - + + + + + + + + - - - - + + + + + | Returns the HTML bodies for the articles and/or notes returned by @racket[_listing-query] as a list of strings. The @racket[_query] will usually be the result of a call to @racket[articles] or @racket[articles+notes], but can be any custom query that projects onto the @racket[listing] schema (see @racket[project-onto]). } |
︙ | |||
170 171 172 173 174 175 176 | 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 | - + | [published string/f] [updated string/f] [author string/f] [conceal string/f] [series-page string/f] [noun-singular string/f] [note-count integer/f] |
︙ | |||
226 227 228 229 230 231 232 | 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 | - - - + + + + + + - - + + + | [html-anchor string/f]) #:constructor-name make-cache:index-entry]{ Table holding cached information about index entries found in articles. } |
Modified crystalize.rkt from [783ca339] to [c9517191].
︙ | |||
56 57 58 59 60 61 62 | 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 | - + | #:published pubdate #:updated (maybe-meta 'updated) #:author (maybe-meta 'author default-authorname) #:conceal (maybe-meta 'conceal) #:series-page series-node #:noun-singular (maybe-meta 'noun (series-metas-noun)) #:note-count (length note-txprs) |
︙ |
Modified rss-feed.rkt from [c66da8d8] to [1e1d5b0c].
1 2 3 4 5 6 7 8 9 10 11 12 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | + - + | #lang racket/base ; SPDX-License-Identifier: BlueOak-1.0.0 ; This file is licensed under the Blue Oak Model License 1.0.0. ;; Generates an Atom feed from the SQLite cache (require txexpr deta racket/match racket/file racket/date racket/string |
︙ | |||
41 42 43 44 45 46 47 | 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 | - - - - - - + - - - - - - - + - - - - - - - - - + - - + + - - - + - - - - - - + + + + + - + - + - + | (define timestamp (parameterize [(date-display-format 'iso-8601)] (date->string now #t))) (string-append timestamp "Z")) ;; Get the data out of the SQLite cache as vectors (define (fetch-rows) |