Red Gate forums :: View topic - Web compatible slashes
Return to www.red-gate.com RSS Feed Available

Search  | Usergroups |  Profile |  Messages |  Log in  Register 
Go to product documentation
SQL Doc 1
SQL Doc 1 forum

Web compatible slashes

Search in SQL Doc 1 forum
Post new topic   Reply to topic
Jump to:  
Author Message
ehumphrey



Joined: 26 Jan 2007
Posts: 5

PostPosted: Fri Jan 26, 2007 10:40 pm    Post subject: Web compatible slashes Reply with quote

Using SQL Doc 1.1, generated html uses backslashes '\' instead of '/' which are used in urls. Served with IIS, IE 7 has no problems with included elements; images, stylesheets, etc. Firefox on the other hand can still see the html pages, but stylesheets cannot be found because the '\' becomes '%5C'. Other than that, I really like the generated docs.

Also, does anyone have a link to the chm compiler on MS's site?
Back to top
View user's profile Send private message
ehumphrey



Joined: 26 Jan 2007
Posts: 5

PostPosted: Fri Jan 26, 2007 11:29 pm    Post subject: Reply with quote

Problem also described here.
Back to top
View user's profile Send private message
ehumphrey



Joined: 26 Jan 2007
Posts: 5

PostPosted: Mon Jan 29, 2007 4:37 pm    Post subject: Folder Capitalization Reply with quote

Also, folders seem to be capitalized in some references and lowercase in others. This makes it difficult if hosting documentation on a case-sensitive web server such as Apache. Preference would be for folders and links be all lowercase.
Back to top
View user's profile Send private message
Brian Donahue



Joined: 23 Aug 2004
Posts: 6586

PostPosted: Tue Jan 30, 2007 11:16 am    Post subject: Reply with quote

Hello,

I have logged this issue as a software bug, so we will look into a fix for it, if applicable.
Back to top
View user's profile Send private message
david connell



Joined: 21 Nov 2005
Posts: 207

PostPosted: Tue Jan 30, 2007 2:58 pm    Post subject: Reply with quote

I think that the CHM complier can be located at the following link...

http://www.microsoft.com/downloads/details.aspx?familyid=00535334-c8a6-452f-9aa0-d597d16580cc&displaylang=en#filelist
Hope that helps
David Connell
Back to top
View user's profile Send private message
ehumphrey



Joined: 26 Jan 2007
Posts: 5

PostPosted: Tue Jan 30, 2007 3:20 pm    Post subject: Reply with quote

Thank you. I also put together a *nix shell script to fix most of the backslash and capitalization issues. Some images still have capitalization issues.

Code:

#!/bin/sh
find . -name '*.html' -or -name '*.js' -print0 | xargs -0 perl -pi -e 's/\.\.\\/\.\.\//ig'

find . -name '*.html' -or -name '*.js' -print0 | xargs -0 perl -pi -e 's/images[\/\\]/Images\//ig'

find . -name '*.html' -or -name '*.js' -print0 | xargs -0 perl -pi -e 's/programmability[\/\\]/Programmability\//ig'
find . -name '*.html' -or -name '*.js' -print0 | xargs -0 perl -pi -e 's/functions[\/\\]/Functions\//ig'
find . -name '*.html' -or -name '*.js' -print0 | xargs -0 perl -pi -e 's/stored procedures[\/\\]/Stored Procedures\//ig'

find . -name '*.html' -or -name '*.js' -print0 | xargs -0 perl -pi -e 's/scripts[\/\\]/Scripts\//ig'

find . -name '*.html' -or -name '*.js' -print0 | xargs -0 perl -pi -e 's/security[\/\\]/Security\//ig'
find . -name '*.html' -or -name '*.js' -print0 | xargs -0 perl -pi -e 's/roles[\/\\]/Roles\//ig'
find . -name '*.html' -or -name '*.js' -print0 | xargs -0 perl -pi -e 's/schemas[\/\\]/Schemas\//ig'
find . -name '*.html' -or -name '*.js' -print0 | xargs -0 perl -pi -e 's/users[\/\\]/Users\//ig'

find . -name '*.html' -or -name '*.js' -print0 | xargs -0 perl -pi -e 's/style[\/\\]/Style\//ig'

find . -name '*.html' -or -name '*.js' -print0 | xargs -0 perl -pi -e 's/tables[\/\\]/Tables\//ig'

find . -name '*.html' -or -name '*.js' -print0 | xargs -0 perl -pi -e 's/views[\/\\]/Views\//ig'
Back to top
View user's profile Send private message
david connell



Joined: 21 Nov 2005
Posts: 207

PostPosted: Mon Feb 19, 2007 11:36 am    Post subject: Reply with quote

Thanks for that...
David
Back to top
View user's profile Send private message
david connell



Joined: 21 Nov 2005
Posts: 207

PostPosted: Thu Mar 22, 2007 2:34 pm    Post subject: Reply with quote

Hi there,
Just to let you know that SQL Doc 1.2 has been released and this should resolve this problem.
Regards
David
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic All times are GMT + 1 Hour
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group