Home » Developing U++ » Documentation » How can I set up UPPWEB on my computer?
|
|
Re: How can I set up UPPWEB on my computer? [message #28341 is a reply to message #28336] |
Mon, 30 August 2010 01:22   |
mdelfede
Messages: 1308 Registered: September 2007
|
Ultimate Contributor |
|
|
Well, I'm trying a different way, indeed.... I rewrote an help window (named HelpViewer) which allows a table of contents (TOC), which is loaded automatically from TOC$xx-xx.tpp files.
It's almost working, and it gives automatically an order to generated html pages, a nice index on help window and should allow generation of PDF with table of contents too.
By now the TOC is a bulletted list, with indenting depending of chapter-subchapter.... relationship; that one could be easily translated automatically to a treectrl parsing the corresponding QTF, if wished.
So, you create the help, add a TOC topic with ordered list of links inside and you can generate an ordered html series with toc, or a pdf with TOC too.... or just use my HelpViewer to show help with TOC on left side.
I've got just a problem converting bulletted lists to html... bullets and indents are not translated; see the attached file and corresponding html and css.... the css is right, the html not.
If you've got some idea on how to solve it would be great 
Ciao
Max
Edit : BTW, we should document somehow that damn'd EncodeHtml stuff, I got more than one day figuring out what parameters means....
[Updated on: Mon, 30 August 2010 01:23] Report message to a moderator
|
|
|
|
Re: How can I set up UPPWEB on my computer? [message #28344 is a reply to message #28342] |
Mon, 30 August 2010 10:17   |
mdelfede
Messages: 1308 Registered: September 2007
|
Ultimate Contributor |
|
|
Yep, the attachment is just to show the bullets problems.
The code isn't quite ready by now... but if you like I could post it.
I've no time to work on it for a couple of weeks from now.
Well, I'm posting the html generation code now... still unfinished, but if you're interested at it it's maybe useful.
It miss the TOC handling and table generation part.... I guess I'll make some javascript code there, in order to have html easily integrated with already present website.
Don't take care of name, my app's name is TimberStruct, so I made the export app's name TimberHtml, but it'll be changed on bazaar release 
The app is (by now) made to export the APPLICATION help, not the source code docs, but adding that one is trivial.
Ciao
Max
|
|
|
|
|
|
Re: How can I set up UPPWEB on my computer? [message #28355 is a reply to message #28354] |
Mon, 30 August 2010 13:10   |
 |
koldo
Messages: 3432 Registered: August 2008
|
Senior Veteran |
|
|
Hello Massimo
Excellent!
Quote: | What I really need is a nice way to get PDF and HTML manuals for my app(s), and a better help system.
Better means "with TOC and search", thich is the only thing I miss from UPP ones.
|
That is the goal of UltimateBook package, but for all U++ . And of course I agree.
Quote: | Last thing... I'm really, but *REALLY* against not commenting code. I spent about 2 days to understand what AsHtml() parameters do and 1 our coding, so the apps on which I partecipate *have to* be hardly commented 
|
Well... Main GatherTpp and UltimateBook code has been borrowed (or stolen ) from UppWeb package. This package does a great job but, as Mirek recognized, is not the best example of U++ coding. I spent months and terrible effort in understanding more or less how it works enough to do the changes (with dolik.rce) that all of you know in Web.
In summary, for me to change base code is out of my capabilities... but the rest of code has to be clean and simple, and some comments do not hurt .
Best regards
Iñaki
|
|
|
|
|
Goto Forum:
Current Time: Fri Apr 25 15:12:39 CEST 2025
Total time taken to generate the page: 0.00922 seconds
|