Re: Customizing Synopsis output

Tim Cas <[email protected]> Thu, 9 Feb 2012 17:36:34 +0100
Newsgroups gmane.comp.documentation.synopsis
Message-ID <CANd9X8fdtxGztmRORQNOhrvkXD9vNokdjw63E+UWmxUSD+JFoA@mail.gmail.com>
--===============1774157046==
Content-Type: multipart/alternative; boundary=20cf30563f4b88fb2004b88a9db2

--20cf30563f4b88fb2004b88a9db2
Content-Type: text/plain; charset=ISO-8859-1

Oh and, regarding the NameIndex issue - see the NameIndex tab in the main
frame in the HTML docs, you'll notice functions and some other stuff are
missing.

On 9 February 2012 17:34, Tim Cas <[email protected]> wrote:

> Okay, now...
>
> You can find the scripts here:
> https://github.com/SIEGE/siege/tree/master/doc
> (synopsis.py and synopsis.sh)
>
> FileListing is the one that doesn't work:
> http://codepad.org/3U49m0TI
>
> As for the file tree, here are the generated HTML docs:
> http://docs.libsiege.org/html/
>
> The tree on the top-left doesn't work.
>
>
> On 9 February 2012 17:17, Tim Cas <[email protected]> wrote:
>
>> Can you elaborate a little on what you mean by 'as constants' ? Macros
>>> and constants have quite different semantics, so I document them
>>> differently. Are you merely asking to change the heading in HTML output
>>> to not have the word 'Macro' in it ? Or something more involved ?
>>>
>> Yes, that's exactly what I meant - some other word, since I use a lot of
>> those I'd like to separate those from function macros.
>>
>>
>> OK, I have to look into that. Can you provide a specific test case
>>> that's not working ?
>>>
>> Well, just create anything with subdirectories - the little arrows that
>> are supposed to open subdirs in the index do absolutely nothing; and before
>> you ask, yes, Javascript is enabled.
>>
>>
>> Right. Have you tried using a different view ? Perhaps the 'ModuleView'
>>> (which is used by default) makes indeed no sense for C projects (which
>>> don't have any nested scopes).
>>
>> I've tried a ton of others, I can't even remember which ones - some would
>> simply fail to operate (because of a Python exception).
>>
>>
>> Can you please provide a minimal test case showing the behavior ?
>>>
>> I will once I reboot to FreeBSD - but basically, the name index seems to
>> contain only structs and some other things, but no functions.
>>
>>
>> There are different views that display information in different ways.
>>> The "ModuleView" shows information per scope, and thus groups all
>>> "global" symbols in a single view. There are also "FileListing" and
>>> similar views that present per-file symbols (with docs).
>>
>> See above.
>>
>>
>> What format are you using ? There is no direct TeX format in Synopsis.
>>>
>> Sorry, meant Texinfo.
>>
>>
>> You may be interested in the DocBook formatter, from which man pages and
>>> pdf docs can be generated.
>>
>> Hm, I didn't realize that DocBooks can also generate manpages... I'll
>> have to take a look at that.
>>
>> On 9 February 2012 17:04, Stefan Seefeld <[email protected]> wrote:
>>
>>> On 01/30/2012 06:46 PM, Tim Cas wrote:
>>> > Hey there, I'm working on getting the output of Synopsis customized for
>>> > my game engine: http://libsiege.org <http://libsiege.org/>
>>> >
>>> > I've managed to get the pages and index to ignore anything with a '`'
>>> > (anonymous unions/structs) or '_' (private members) prefixes, but I
>>> > still have some problems:
>>> >
>>> > - constants (for which I use #define's) are shown as macros - I'd like
>>> > to show them as constants
>>>
>>> Can you elaborate a little on what you mean by 'as constants' ? Macros
>>> and constants have quite different semantics, so I document them
>>> differently. Are you merely asking to change the heading in HTML output
>>> to not have the word 'Macro' in it ? Or something more involved ?
>>>
>>> > - the file tree doesn't work (I cannot open any subdirectories)
>>>
>>> OK, I have to look into that. Can you provide a specific test case
>>> that's not working ?
>>>
>>> > - I can't find a way to rename "Global Namespace" to something else
>>> > (this is C, not C++, so that name doesn't make much sense)
>>>
>>> Right. Have you tried using a different view ? Perhaps the 'ModuleView'
>>> (which is used by default) makes indeed no sense for C projects (which
>>> don't have any nested scopes).
>>>
>>> > - name index is missing functions (I can only see structs and defines
>>> there)
>>>
>>> Can you please provide a minimal test case showing the behavior ?
>>>
>>>
>>> > - everything is in globals.html (instead of per-file stuff, say
>>> > foo/bar.h.html for items located in in foo/bar.h)
>>>
>>> There are different views that display information in different ways.
>>> The "ModuleView" shows information per scope, and thus groups all
>>> "global" symbols in a single view. There are also "FileListing" and
>>> similar views that present per-file symbols (with docs).
>>>
>>> > - Texlive output is broken on my end...?
>>>
>>> What format are you using ? There is no direct TeX format in Synopsis.
>>>
>>> > I'll also have to find out how to get manpage output up and running,
>>> > plus (I suppose) LaTeX/PDF.
>>>
>>> You may be interested in the DocBook formatter, from which man pages and
>>> pdf docs can be generated.
>>>
>>> Thanks,
>>>                Stefan
>>>
>>> --
>>>
>>>      ...ich hab' noch einen Koffer in Berlin...
>>>
>>
>>
>

--20cf30563f4b88fb2004b88a9db2
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

Oh and, regarding the NameIndex issue - see the NameIndex tab in the main f=
rame in the HTML docs, you&#39;ll notice functions and some other stuff are=
 missing.<br><br><div class=3D"gmail_quote">On 9 February 2012 17:34, Tim C=
as <span dir=3D"ltr">&lt;<a href=3D"mailto:[email protected]">darkurani=
[email protected]</a>&gt;</span> wrote:<br>
<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex">Okay, now...<br><br>You can find the scripts=
 here:<br><a href=3D"https://github.com/SIEGE/siege/tree/master/doc" target=
=3D"_blank">https://github.com/SIEGE/siege/tree/master/doc</a><br>
(synopsis.py and synopsis.sh)<br><br>FileListing is the one that doesn&#39;=
t work:<br>
<a href=3D"http://codepad.org/3U49m0TI" target=3D"_blank">http://codepad.or=
g/3U49m0TI</a><br><br>As for the file tree, here are the generated HTML doc=
s:<br><a href=3D"http://docs.libsiege.org/html/" target=3D"_blank">http://d=
ocs.libsiege.org/html/</a><br>
<br>The tree on the top-left doesn&#39;t work.<div class=3D"HOEnZb"><div cl=
ass=3D"h5"><br>
<br><div class=3D"gmail_quote">On 9 February 2012 17:17, Tim Cas <span dir=
=3D"ltr">&lt;<a href=3D"mailto:[email protected]" target=3D"_blank">dar=
[email protected]</a>&gt;</span> wrote:<br><blockquote class=3D"gmail_quot=
e" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div><blockquote style=3D"margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rg=
b(204,204,204);padding-left:1ex" class=3D"gmail_quote">Can you elaborate a =
little on what you mean by &#39;as constants&#39; ? Macros<br>
and constants have quite different semantics, so I document them<br>
differently. Are you merely asking to change the heading in HTML output<br>
to not have the word &#39;Macro&#39; in it ? Or something more involved ?<b=
r></blockquote></div>Yes, that&#39;s exactly what I meant - some other word=
, since I use a lot of those I&#39;d like to separate those from function m=
acros.<div>

<br>
<br><blockquote style=3D"margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb=
(204,204,204);padding-left:1ex" class=3D"gmail_quote">OK, I have to look in=
to that. Can you provide a specific test case<br>
that&#39;s not working ?<br></blockquote></div><div>Well, just create anyth=
ing with subdirectories - the little arrows that are supposed to open subdi=
rs in the index do absolutely nothing; and before you ask, yes, Javascript =
is enabled.<div>

<br>
<br><blockquote style=3D"margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb=
(204,204,204);padding-left:1ex" class=3D"gmail_quote">Right. Have you tried=
 using a different view ? Perhaps the &#39;ModuleView&#39;<br>
(which is used by default) makes indeed no sense for C projects (which<br>
don&#39;t have any nested scopes).</blockquote></div><div>I&#39;ve tried a =
ton of others, I can&#39;t even remember which ones - some would simply fai=
l to operate (because of a Python exception).<div><br><br><blockquote style=
=3D"margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding=
-left:1ex" class=3D"gmail_quote">


Can you please provide a minimal test case showing the behavior ?<br></bloc=
kquote></div><div>I will once I reboot to FreeBSD - but basically, the name=
 index seems to contain only structs and some other things, but no function=
s.<div>

<br>
<br><blockquote style=3D"margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb=
(204,204,204);padding-left:1ex" class=3D"gmail_quote">There are different v=
iews that display information in different ways.<br>
The &quot;ModuleView&quot; shows information per scope, and thus groups all=
<br>
&quot;global&quot; symbols in a single view. There are also &quot;FileListi=
ng&quot; and<br>
similar views that present per-file symbols (with docs).</blockquote></div>=
<div>See above.<div><br><br><blockquote style=3D"margin:0pt 0pt 0pt 0.8ex;b=
order-left:1px solid rgb(204,204,204);padding-left:1ex" class=3D"gmail_quot=
e">

What format are you using ? There is no direct TeX format in Synopsis.<br>
</blockquote></div><div>Sorry, meant Texinfo.<div><br><br><blockquote style=
=3D"margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding=
-left:1ex" class=3D"gmail_quote">You may be interested in the DocBook forma=
tter, from which man pages and<br>



pdf docs can be generated.</blockquote></div><div>Hm, I didn&#39;t realize =
that DocBooks can also generate manpages... I&#39;ll have to take a look at=
 that. <br></div></div></div></div></div></div><div><div>
<br><div class=3D"gmail_quote">
On 9 February 2012 17:04, Stefan Seefeld <span dir=3D"ltr">&lt;<a href=3D"m=
ailto:[email protected]" target=3D"_blank">[email protected]</a>&gt;</s=
pan> wrote:<br><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex=
;border-left:1px #ccc solid;padding-left:1ex">


<div>On 01/30/2012 06:46 PM, Tim Cas wrote:<br>
&gt; Hey there, I&#39;m working on getting the output of Synopsis customize=
d for<br>
</div>&gt; my game engine: <a href=3D"http://libsiege.org" target=3D"_blank=
">http://libsiege.org</a> &lt;<a href=3D"http://libsiege.org/" target=3D"_b=
lank">http://libsiege.org/</a>&gt;<br>
<div>&gt;<br>
&gt; I&#39;ve managed to get the pages and index to ignore anything with a =
&#39;`&#39;<br>
&gt; (anonymous unions/structs) or &#39;_&#39; (private members) prefixes, =
but I<br>
&gt; still have some problems:<br>
&gt;<br>
&gt; - constants (for which I use #define&#39;s) are shown as macros - I&#3=
9;d like<br>
&gt; to show them as constants<br>
<br>
</div>Can you elaborate a little on what you mean by &#39;as constants&#39;=
 ? Macros<br>
and constants have quite different semantics, so I document them<br>
differently. Are you merely asking to change the heading in HTML output<br>
to not have the word &#39;Macro&#39; in it ? Or something more involved ?<b=
r>
<div><br>
&gt; - the file tree doesn&#39;t work (I cannot open any subdirectories)<br=
>
<br>
</div>OK, I have to look into that. Can you provide a specific test case<br=
>
that&#39;s not working ?<br>
<div><br>
&gt; - I can&#39;t find a way to rename &quot;Global Namespace&quot; to som=
ething else<br>
&gt; (this is C, not C++, so that name doesn&#39;t make much sense)<br>
<br>
</div>Right. Have you tried using a different view ? Perhaps the &#39;Modul=
eView&#39;<br>
(which is used by default) makes indeed no sense for C projects (which<br>
don&#39;t have any nested scopes).<br>
<div><br>
&gt; - name index is missing functions (I can only see structs and defines =
there)<br>
<br>
</div>Can you please provide a minimal test case showing the behavior ?<br>
<div><br>
<br>
&gt; - everything is in globals.html (instead of per-file stuff, say<br>
&gt; foo/bar.h.html for items located in in foo/bar.h)<br>
<br>
</div>There are different views that display information in different ways.=
<br>
The &quot;ModuleView&quot; shows information per scope, and thus groups all=
<br>
&quot;global&quot; symbols in a single view. There are also &quot;FileListi=
ng&quot; and<br>
similar views that present per-file symbols (with docs).<br>
<div><br>
&gt; - Texlive output is broken on my end...?<br>
<br>
</div>What format are you using ? There is no direct TeX format in Synopsis=
.<br>
<div><br>
&gt; I&#39;ll also have to find out how to get manpage output up and runnin=
g,<br>
&gt; plus (I suppose) LaTeX/PDF.<br>
<br>
</div>You may be interested in the DocBook formatter, from which man pages =
and<br>
pdf docs can be generated.<br>
<br>
Thanks,<br>
 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0Stefan<br>
<span><font color=3D"#888888"><br>
--<br>
<br>
 =A0 =A0 =A0...ich hab&#39; noch einen Koffer in Berlin...<br>
</font></span></blockquote></div><br>
</div></div></blockquote></div><br>
</div></div></blockquote></div><br>

--20cf30563f4b88fb2004b88a9db2--

--===============1774157046==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Synopsis-devel mailing list
[email protected]
http://lists.fresco.org/cgi-bin/listinfo/synopsis-devel

--===============1774157046==--