From Martin Owens Thu Jan 29 13:12:14 2015 From: Martin Owens To: inkscape-docs@lists.inkscape.org Subject: [Inkscape-docs] Table of Contents Date: Thu, 29 Jan 2015 08:12:09 -0500 Message-ID: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0104561886013197793==" --===============0104561886013197793== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Dear all, In trunk I've just committed a new website plugin, djangocms-toc. It's quite new and will need fixing as it's tested but this is what it does so far: 1. If placed into a text plugin, it will generate a table of contents for that plugin. 2. If placed outside, it'll pick the first plugin/placeholder. 3. The toc is generated using the html header tags in order 4. If the header tag itself has an id, then a local link is created. 5. Otherwise no link is created. a. You can pick a title (h2) for the table of contents. b. You can choose if you want bullets or numbers c. The whole toc is within a
tag for easier styling later on. Thoughts? Best Regards, Martin Owens --===============0104561886013197793==-- From Maren Hachmann Thu Jan 29 14:46:48 2015 From: Maren Hachmann To: inkscape-docs@lists.inkscape.org Subject: Re: [Inkscape-docs] Table of Contents Date: Thu, 29 Jan 2015 15:46:41 +0100 Message-ID: <54CA47D1.4010501@...68...> In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============5828742346886727937==" --===============5828742346886727937== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Hi Martin, thanks :) The features sound good and I found it is even regenerated on changes :D Where do you want test results to go? (so far, I couldn't get it to be inserted at the top of a page as 'first plugin' (outside text plugin), trying to move it to the top gives a long and only shortly displayed error message, for example.) Regards, Maren Am 29.01.2015 um 14:12 schrieb Martin Owens: > Dear all, > > In trunk I've just committed a new website plugin, djangocms-toc. > > It's quite new and will need fixing as it's tested but this is what it > does so far: > > 1. If placed into a text plugin, it will generate a table of contents > for that plugin. > 2. If placed outside, it'll pick the first plugin/placeholder. > 3. The toc is generated using the html header tags in order > 4. If the header tag itself has an id, then a local link href="#id"> is created. > 5. Otherwise no link is created. > > a. You can pick a title (h2) for the table of contents. > b. You can choose if you want bullets or numbers > c. The whole toc is within a
tag for easier styling later on. > > Thoughts? > > Best Regards, Martin Owens > > ------------------------------------------------------------------------------ > Dive into the World of Parallel Programming. The Go Parallel Website, > sponsored by Intel and developed in partnership with Slashdot Media, is your > hub for all things parallel software development, from weekly thought > leadership blogs to news, videos, case studies, tutorials and more. Take a > look and join the conversation now. http://goparallel.sourceforge.net/ > _______________________________________________ > Inkscape-docs mailing list > Inkscape-docs(a)lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/inkscape-docs > -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iF4EAREIAAYFAlTKR9EACgkQKoYx0uUjpE2DiAD/cpZxP1zsMUcnaUGj/hGT5iL3 CcvIMgPdAsYFuIWNznAA/R2Ckx4569nDiVewMsm6oE6xf/orr8UL2OG7/rSQ1OJF =+TF4 -----END PGP SIGNATURE----- --===============5828742346886727937==-- From Martin Owens Thu Jan 29 15:01:14 2015 From: Martin Owens To: inkscape-docs@lists.inkscape.org Subject: Re: [Inkscape-docs] Table of Contents Date: Thu, 29 Jan 2015 10:01:07 -0500 Message-ID: In-Reply-To: <54CA47D1.4010501@...68...> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============7552830238012330956==" --===============7552830238012330956== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Hi Maren, Thanks for testing. The branch for this one is in inkscape-web for now, so the bug reports should go there too. If I ever move it to it's own project, I'll move the open reports and call it good. :-) Martin, On 29 January 2015 at 09:46, Maren Hachmann wrote: > > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA256 > > Hi Martin, > > thanks :) > > The features sound good and I found it is even regenerated on changes :D > > Where do you want test results to go? > (so far, I couldn't get it to be inserted at the top of a page as 'first > plugin' (outside text plugin), trying to move it to the top gives a long > and only shortly displayed error message, for example.) > > Regards, > Maren > > > Am 29.01.2015 um 14:12 schrieb Martin Owens: >> Dear all, >> >> In trunk I've just committed a new website plugin, djangocms-toc. >> >> It's quite new and will need fixing as it's tested but this is what it >> does so far: >> >> 1. If placed into a text plugin, it will generate a table of contents >> for that plugin. >> 2. If placed outside, it'll pick the first plugin/placeholder. >> 3. The toc is generated using the html header tags in order >> 4. If the header tag itself has an id, then a local link > href=3D"#id"> is created. >> 5. Otherwise no link is created. >> >> a. You can pick a title (h2) for the table of contents. >> b. You can choose if you want bullets or numbers >> c. The whole toc is within a
tag for easier styling > later on. >> >> Thoughts? >> >> Best Regards, Martin Owens >> >> > ---------------------------------------------------------------------------= --- >> Dive into the World of Parallel Programming. The Go Parallel Website, >> sponsored by Intel and developed in partnership with Slashdot Media, > is your >> hub for all things parallel software development, from weekly thought >> leadership blogs to news, videos, case studies, tutorials and more. Take a >> look and join the conversation now. http://goparallel.sourceforge.net/ >> _______________________________________________ >> Inkscape-docs mailing list >> Inkscape-docs(a)lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/inkscape-docs >> > > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1 > > iF4EAREIAAYFAlTKR9EACgkQKoYx0uUjpE2DiAD/cpZxP1zsMUcnaUGj/hGT5iL3 > CcvIMgPdAsYFuIWNznAA/R2Ckx4569nDiVewMsm6oE6xf/orr8UL2OG7/rSQ1OJF > =3D+TF4 > -----END PGP SIGNATURE----- > > > > ---------------------------------------------------------------------------= --- > Dive into the World of Parallel Programming. The Go Parallel Website, > sponsored by Intel and developed in partnership with Slashdot Media, is your > hub for all things parallel software development, from weekly thought > leadership blogs to news, videos, case studies, tutorials and more. Take a > look and join the conversation now. http://goparallel.sourceforge.net/ > _______________________________________________ > Inkscape-docs mailing list > Inkscape-docs(a)lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/inkscape-docs --===============7552830238012330956==--