Source files for documentation? #30

Closed
opened 10 years ago by MauricevanLeeuwen · 3 comments
MauricevanLeeuwen commented 10 years ago (Migrated from github.com)

Would it be possible to include the source files (*.pp, *.pm, directory-require.rkt) for the documentation?

This will result in a smoother learning curve because the Pollen documentation seems to use more functionality than is covered in the tutorials at this date. For example the (seemingly?) automatic numbering of chapters and paragraphs.

Would it be possible to include the source files (*.pp, *.pm, directory-require.rkt) for the documentation? This will result in a smoother learning curve because the Pollen documentation seems to use more functionality than is covered in the tutorials at this date. For example the (seemingly?) automatic numbering of chapters and paragraphs.
mbutterick commented 10 years ago (Migrated from github.com)

The source files for the documentation are included. But they’re not written in Pollen. Rather, they’re made with scribble/manual, Racket’s documentation language.

The source files for the documentation [are included](https://github.com/mbutterick/pollen/tree/master/scribblings). But they’re not written in Pollen. Rather, they’re made with `scribble/manual`, Racket’s documentation language.
mbutterick commented 10 years ago (Migrated from github.com)

PS. Though Pollen is derived from Scribble, it can’t do everything that Scribble can, nor vice versa. As a documentation language by design, Scribble has better capabilities in collecting cross-references, generating TOCs and indexes, etc. Pollen’s strength is its support for free-form markup and automation via tag functions.

I would consider adding chapter / paragraph numbering to Pollen. I’d just need a more concrete explanation of how the function ought to work. Compared to Scribble, Pollen tries to minimize entanglements between pages, which keeps things cleaner and also makes it possible to render each page independently.

For instance, with chapter numbering, it would be simple to add a function to directory-require.rkt that has a list of the chapter headings and computes title-to-number mapping on demand. When a page is rendered, it asks that function for the appropriate title and number.

PS. Though Pollen is derived from Scribble, it can’t do everything that Scribble can, nor vice versa. As a documentation language by design, Scribble has better capabilities in collecting cross-references, generating TOCs and indexes, etc. Pollen’s strength is its support for free-form markup and automation via tag functions. I would consider adding chapter / paragraph numbering to Pollen. I’d just need a more concrete explanation of how the function ought to work. Compared to Scribble, Pollen tries to minimize entanglements between pages, which keeps things cleaner and also makes it possible to render each page independently. For instance, with chapter numbering, it would be simple to add a function to `directory-require.rkt` that has a list of the chapter headings and computes title-to-number mapping on demand. When a page is rendered, it asks that function for the appropriate title and number.
mbutterick commented 10 years ago (Migrated from github.com)

It would also be simple to generate a number for a heading / page based on its position in index.ptree (or other pagetree file).

It would also be simple to generate a number for a heading / page based on its position in `index.ptree` (or other pagetree file).
Sign in to join this conversation.
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: mbutterick/pollen#30
Loading…
There is no content yet.