| Author |
Message |
ehumphrey
Joined: 26 Jan 2007 Posts: 5
|
Posted: Fri Jan 26, 2007 10:40 pm Post subject: Web compatible slashes |
|
|
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 |
|
 |
ehumphrey
Joined: 26 Jan 2007 Posts: 5
|
Posted: Fri Jan 26, 2007 11:29 pm Post subject: |
|
|
| Problem also described here. |
|
| Back to top |
|
 |
ehumphrey
Joined: 26 Jan 2007 Posts: 5
|
Posted: Mon Jan 29, 2007 4:37 pm Post subject: Folder Capitalization |
|
|
| 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 |
|
 |
Brian Donahue
Joined: 23 Aug 2004 Posts: 6348 Location: Red Gate Software
|
Posted: Tue Jan 30, 2007 11:16 am Post subject: |
|
|
Hello,
I have logged this issue as a software bug, so we will look into a fix for it, if applicable. _________________ Brian Donahue
Technical Support
Red Gate Software Ltd.
44 (0)870 160 0037 ext 8521
US and CAN 1-866-RED GATE ext 8521 |
|
| Back to top |
|
 |
david connell
Joined: 21 Nov 2005 Posts: 205
|
|
| Back to top |
|
 |
ehumphrey
Joined: 26 Jan 2007 Posts: 5
|
Posted: Tue Jan 30, 2007 3:20 pm Post subject: |
|
|
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 |
|
 |
david connell
Joined: 21 Nov 2005 Posts: 205
|
Posted: Mon Feb 19, 2007 11:36 am Post subject: |
|
|
Thanks for that...
David |
|
| Back to top |
|
 |
david connell
Joined: 21 Nov 2005 Posts: 205
|
Posted: Thu Mar 22, 2007 2:34 pm Post subject: |
|
|
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 |
|
 |
|