tynet-lichat/shirakumo - IRC Chatlog
Search
10:09:31
Lichatter ctvo4h5p
Posted a question here about staple the other day. Had to leave before I could follow up
10:10:13
Lichatter ctvo4h5p
I am happy to write a staple.ext.lisp. In it I have (defmethod staple:packages ((system (eql (asdf:find-system :small))))
(list (find-package :small)))
(defmethod staple:packages ((system (eql (asdf:find-system :small-dna))))
(list (find-package :small-dna)))
10:18:03
Lichatter ctvo4h5p
Ok, so if I have two .asd files, one with :small and one with :small-dna, and the staple.ext.lisp I provided, if I try to run (staple:generate :small) i get no such package errors.
10:18:16
Lichatter ctvo4h5p
How do you want the documentation to be generated, and how are you currently doing it.
10:22:27
Lichatter ctvo4h5p
I have a base system that i would like documentation for (it have some classes and some functions for linear algebra) Ideally i would like a section (core) with each of the file core uses to have its documentation in on a per file basis (not all exported symbols in core lumped). Then i have extensions (small-dna) that also have various files. I would like these things defined in files to be grouped here as well, ideally with one page (small-dna) and different sections for the things exported in different files that make up small-dna. Similarly I have other, non-dna extenstions that i would like to include this way
10:23:23
Lichatter ctvo4h5p
I want to add my own .md writeups as well so im fine with writing the .ext.lisp file
10:24:09
shinmera
Ok, so what you want is significantly different to what staple does by default. You're going to have to create your own PAGE instances manually to tell it what to do how.
10:28:04
shinmera
You'll have to override staple:find-project, cerate a staple:simple-project instance and push the appropraite page instances to it.
10:28:26
shinmera
I don't have the time to put together a more elaborate example right now I'm afraid
10:32:29
Lichatter ctvo4h5p
Even in the current setup why would staple not generate docs for small-dna.
10:33:02
Lichatter ctvo4h5p
those are my files. sorry if these are rookie questions, still getting used to packaging projects is cl
10:33:05
shinmera
because when you (staple:generate :small) it only looks at that system, and not also small-dna.