Overview
| Comment: | Allow here-output-path even when no metas are available |
|---|---|
| Timelines: | family | ancestors | descendants | both | trunk |
| Files: | files | file ages | folders |
| SHA3-256: |
bd48c56a0502cf339932d7f33da50b2a |
| User & Date: | joel on 2019-07-05 03:27:59 |
| Other Links: | manifest | tags |
Context
|
2019-07-10
| ||
| 01:29 | Make parallel processing in Pollen setup explicit check-in: 7d4de0ec user: joel tags: trunk | |
|
2019-07-05
| ||
| 03:27 | Allow here-output-path even when no metas are available check-in: bd48c56a user: joel tags: trunk | |
|
2019-07-04
| ||
| 18:19 | Add close-head? to page header function check-in: 5fc9abc0 user: joel tags: trunk | |
Changes
Modified code-docs/dust.scrbl from [aa4ce70b] to [d5eab31d].
| ︙ | |||
58 59 60 61 62 63 64 | 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 | - - + + - - + + |
document contained in @racket[articles-folder], and @racket[series-pagetree] contains a pagenode for
every Pollen document in @racket[series-folder]. The pagenodes themselves point to the rendered
@tt{.html} targets of the source documents.
@defproc[(here-output-path) path?]
Returns the path to the current output file, relative to @racket[current-project-root]. If no metas
|
| ︙ |
Modified dust.rkt from [30ceaf46] to [4209ef85].
| ︙ | |||
61 62 63 64 65 66 67 | 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 | - + |
;; except this is an actual path, not a string.
(define (here-output-path)
(cond [(current-metas)
(define-values (_ rel-path-parts)
(drop-common-prefix (explode-path (current-project-root))
(explode-path (string->path (select-from-metas 'here-path (current-metas))))))
(->output-path (apply build-path rel-path-parts))]
|
| ︙ |