default to main-doc if docs are in main-collects
svn: r8294
This commit is contained in:
parent
aa71be72cf
commit
c31c424086
|
@ -2,7 +2,8 @@
|
|||
|
||||
(require scribble/xref
|
||||
setup/getinfo
|
||||
setup/dirs)
|
||||
setup/dirs
|
||||
setup/main-collects)
|
||||
|
||||
(provide load-collections-xref)
|
||||
|
||||
|
@ -17,7 +18,8 @@
|
|||
(let-values ([(base name dir?) (split-path (car d))])
|
||||
(path-replace-suffix name #"")))])
|
||||
(build-path
|
||||
(if (memq 'main-doc flags)
|
||||
(if (or (memq 'main-doc flags)
|
||||
(pair? (path->main-collects-relative dir)))
|
||||
(build-path (find-doc-dir) name)
|
||||
(build-path dir "compiled" "doc" name))
|
||||
"out.sxref"))
|
||||
|
|
Loading…
Reference in New Issue
Block a user