Here is the setup I am asking questions against, scroll down to see the questions
set up ------------------------------------------------------------------------
I have split my new package into three directories, like those I see in the distribution:
§lambda1:/home/deep> ls -1
...
liquid
liquid-doc
liquid-lib
...
I then copied over and modified the info.rkt file:
§lambda1:/home/deep/liquid> ls
info.rkt LICENSE.txt
§lambda1:/home/deep/liquid> cat info.rkt
#lang info
(define collection 'multi)
(define deps '("liquid-lib" "liquid-doc"))
(define implies '("liquid-lib" "liquid-doc"))
(define pkg-desc "Framework for developing experimental deep web search engines.")
(define pkg-authors '(twlynch))
I placed my racket file in liquid-lib:
§lambda1:/home/deep> ls liquid-lib
compiled examples info.rkt liquid
§lambda1:/home/deep> cat liquid-lib/info.rkt
#lang info
(define collection 'multi)
(define deps `("scheme-lib" "base" ))
(define pkge-desc "implementation (no documentation) part of \"liquid\"")
(define pkg-authors '(twlynch))
§lambda1:/home/deep> ls liquid-lib/liquid
compiled dbi-dblp.rkt ...
I placed the scribble files in liquid-doc:
§lambda1:/home/deep> ls liquid-doc
example.scrbl info.rkt LICENSE.txt liquid
§lambda1:/home/deep> cat liquid-doc/info.rkt
#lang info
(define collection 'multi)
(define deps '("base"))
(define build-deps '("scheme-lib"
"racket-doc"
"syntax-color-doc"
"liquid-lib"
"scribble-lib"))
(define pkg-desc "documentation part of \"liquid\"")
(define pkg-authors '(twlynch))
§lambda1:/home/deep> ls liquid-doc/liquid/
compiled http-server.scrbl liquid.scrbl realtime.scrbl
db-lib.scrbl info.rkt query-parser.scrbl tokens.scrbl
§lambda1:/home/deep> cat liquid-doc/liquid/liquid.scrbl
#lang scribble/doc
@(require scribble/manual scribble/struct scribble/xref
(for-label scheme/base
scheme/contract
liquid/db-lib
))
@title{LIQUID -- Framework for Developing Deep Web Search Programs and Servers}
@author["Thomas Walker Lynch and Andrea Calì"]
@table-of-contents[]
@include-section{"db-lib.scrbl"}
@include-section{"http-server.scrbl"}
@include-section{"query-parser.scrbl"}
@include-section{"realtime.scrbl"}
@include-section{"tokens.scrbl"}
questions:-----------------------------------------------------------------------------------
1. when trying to make the new package locally. .. so what is the proper way to handle the dependencies? I don't know if I should run raco pkg install on the liquid-doc and liquid-lib directories first, but haven't done that because I want these to be auto loaded and not directly in the catalog.
§lambda1:/home/deep/liquid> raco pkg install
raco pkg install: missing dependencies;
specify `--deps search-auto' to install them, or
specify `--deps search-ask' to be asked about installing them
for package: /home/deep/liquid/
missing packages:
liquid-lib
liquid-doc
2. when trying to build the docs standalone .. so how can one do this?
§lambda1:/home/deep/liquid-doc/liquid> scribble --htmls liquid.scrb
default-load-handler: cannot open module file
module path: #<path:/home/deep/liquid-doc/liquid/liquid.scrb>
path: /home/deep/liquid-doc/liquid/liquid.scrb
system error: No such file or directory; errno=2
context...:
standard-module-name-resolver
/usr/share/racket/pkgs/scribble-lib/scribble/run.rkt: [running body]