find path relative to file including image
[ozzloy@gmail.com/scribble-multiple-dir-example] / top-level.scrbl
CommitLineData
6c341162 1#! /usr/bin/env racket
2#lang scribble/base
3
4@title{top level document}
5
6@include-section{subdir/some-section.scrbl}
7
8@;{
9when i try to build this document, i get an error that image.png isn't
10found at the top level. i would expect that scribble would look for it
11in subdir/image.png and not just image.png. can i make scribble look
12image.png in subdir? do i want to, or am i maybe not fully
13understanding something about scribble document building process?
14
15$ make
16scribble top-level.scrbl
17 [Output to top-level.html]
18open-input-file: cannot open input file
19 path: /home/ozzloy/scribble-multiple-dir-example/image.png
20 system error: No such file or directory; errno=2
21 context...:
22 /usr/share/racket/collects/racket/private/kw-file.rkt:102:2: call-with-input-file*61
23 /usr/share/racket/pkgs/scribble-lib/scribble/html-render.rkt:1213:4: render-content method in ...bble/html-render.rkt:267:2
24 /usr/share/racket/pkgs/scribble-lib/scribble/base-render.rkt:888:4: render-content method in render%
25 /usr/share/racket/pkgs/scribble-lib/scribble/html-render.rkt:1167:4: do-render-paragraph method in ...bble/html-render.rkt:267:2
26 /usr/share/racket/pkgs/scribble-lib/scribble/html-render.rkt:1154:6: loop
27 /usr/share/racket/pkgs/scribble-lib/scribble/html-render.rkt:1090:4: render-part-content method in ...bble/html-render.rkt:267:2
28 /usr/share/racket/pkgs/scribble-lib/scribble/html-render.rkt:1090:4: render-part-content method in ...bble/html-render.rkt:267:2
29 /usr/share/racket/pkgs/scribble-lib/scribble/html-render.rkt:813:4: render-one-part method in ...bble/html-render.rkt:267:2
30 loop
31 /usr/share/racket/pkgs/scribble-lib/scribble/render.rkt:33:0: render56
32 /usr/share/racket/pkgs/scribble-lib/scribble/run.rkt: [running body]
33Makefile:4: recipe for target 'test' failed
34make: *** [test] Error 1
35$ mv subdir/image.png .
36$ make
37scribble top-level.scrbl
38 [Output to top-level.html]
39}