Ir al contenido principal

Ralsina.Me — El sitio web de Roberto Alsina

Se llamará Bookrest, y tiene una vista "outline".

¿Qué es un book­res­t? Es una co­sa en la que se apo­ya un li­bro abier­to.

¿Por­qué Book­res­t? Por­que es­pe­ro que al­gún día al­guien ten­ga li­bros abier­tos en Book­res­t. Ade­más ter­mi­na con "res­t", que es la abre­via­tu­ra pre­fe­ri­da de reS­truc­tu­red Tex­t.

¿Y qué es la vis­ta "ou­tli­ne"? Es un ar­bol in­te­rac­ti­vo con la es­truc­tu­ra del do­cu­men­to.

Co­mo siem­pre, vea­mos el vi­deo:

El pro­ce­sa­mien­to en egun­do pla­no se ha­ce usan­do el ex­tra­or­di­na­rio mó­du­lo mul­ti­pro­ce­s­sing de la bi­blio­te­ca stan­dard de py­tho­n.

Doug Napoleone / 2009-09-25 22:27:

Ok, I am sold. Where can I get it?!!?!?

I have a PyCon talk proposal to write and I would love to do it using this tool!

(submissions are in ReStrucutredText).

Roberto Alsina / 2009-09-25 22:45:

It's in rst2pdf's SVN, in the gui folder.

It's tricky to build (check the README) and stylesheet loading is pretty broken right now.

Doug Napoleone / 2009-09-25 23:10:

thank you!!!

Ludvig Ericson / 2009-09-26 02:44:

Hm, would be even more awesome to do with HTML. Think that would be possible?

I often write my blog entries using ReStructured Text, and I wind up writing the contents, using rst2html.py (actually a Pygments-enabled replacement I have) and then copying the HTML into my blog hosting thing.

André Roberge / 2009-09-26 02:56:

Roberto: very impressive!!

Ludvig: it's certainly possible. I have done a simple version of this with Crunchy - but it's not nearly as nice as Roberto's bookrest.

Roberto Alsina / 2009-09-26 04:04:

Ludvig, sure, there are a couple of those, one was announced perhap a month ago. Check the docutils mailing lists.

Roberto Alsina / 2009-09-26 04:05:

Oh, and changing this to work with HTML is quite simple, if you want to take a look ;-)

Juha / 2009-09-26 07:49:

Hi Roberto - nicely done, as always. It is really nice to see the implementation of the outline as well (I've been missing that when writing documentation with Jedit - and it is really must-have with big documents).

One additional feature you should consider for the outline are the link targets, to make it easier to make reference to them. Example::

.. _my-title:

My title
========
Lorem ipsum and link to :ref:`my-title`

And the above should be seen in outline something like follows:

[+] My title (my-title)

Roberto Alsina / 2009-09-26 13:25:

@juha in the case of titles you can always link with the title itself (unless of course it's repeated):

`My title`_

But yes, I can add that!


Contents © 2000-2023 Roberto Alsina