missing file madcap.css

This forum is for all Flare issues related to the HTML5, WebHelp, WebHelp Plus, and Adobe Air Targets
Post Reply
Pamb10
Sr. Propeller Head
Posts: 126
Joined: Wed Feb 01, 2006 2:08 pm
Location: Florida
Contact:

missing file madcap.css

Post by Pamb10 »

when selecting project analysis from within my project, i chose to search for broken links.

A list of topics was displayed and said to be missing the madcap.css file. I am not fully sure what this file is, but after a little reading it seems that this file is generated at build time. It is referenced in my topics as:

<head><title>What are Dynamic Variables?</title>
<p> </p>
<link href="../../SkinSupport/MadCap.css" rel="stylesheet" />
<link href="../../Resources/Stylesheets/GeminiiStyles.css" rel="stylesheet" />
<script src="../../SkinSupport/MadCapAll.js" type="text/javascript">
</script>
</head>

The error in the broken link list says that the file is missing.

Any ideas why? and what problems might this cause?

Thanks
Pam
LTinker68
Master Propellus Maximus
Posts: 7247
Joined: Thu Feb 16, 2006 9:38 pm

Re: missing file madcap.css

Post by LTinker68 »

Madcap.css is added to the output at build time. None of your source files should be referencing it. You might see that if at some point you had your output build back to the source destination (never a good idea) or you copied a file from a compiled output and added it to the project instead of copying a source file over. I would use the find tool to search for all instances of Madcap.css in your source files and delete that entire line from the code. Actually, that whole block of Madcap.css, your stylesheet, and the JavaScript file should be deleted. Those are added at build time. Well, your stylesheet might appear in the source, but generally that's added at build time, too.
Image

Lisa
Eagles may soar, but weasels aren't sucked into jet engines.
Warning! Loose nut behind the keyboard.
Pamb10
Sr. Propeller Head
Posts: 126
Joined: Wed Feb 01, 2006 2:08 pm
Location: Florida
Contact:

Re: missing file madcap.css

Post by Pamb10 »

Now I see why this occurred...I did have a source problem at one point and did use the compiled output to rebuild my source. Guess that was not the best idea but the only way I had to retrieve the source at the time.

Besides the code block that I posted, is there anything else that I should be removing from these (compiled, now source) files?
LTinker68
Master Propellus Maximus
Posts: 7247
Joined: Thu Feb 16, 2006 9:38 pm

Re: missing file madcap.css

Post by LTinker68 »

Hard to say since it depends on which version was used to build the output that's now your source. Most likely you'll need to rebuild some of the Flare-specific effects. For instance, the breadcrumbsProxy, miniTOCproxy, drop-down effects (maybe), and so on.
Image

Lisa
Eagles may soar, but weasels aren't sucked into jet engines.
Warning! Loose nut behind the keyboard.
NorthEast
Master Propellus Maximus
Posts: 6426
Joined: Mon Mar 05, 2007 8:33 am

Re: missing file madcap.css

Post by NorthEast »

Pamb10 wrote:Besides the code block that I posted, is there anything else that I should be removing from these (compiled, now source) files?
This post might be useful:
http://forums.madcapsoftware.com/viewto ... 13&t=13101
Pamb10
Sr. Propeller Head
Posts: 126
Joined: Wed Feb 01, 2006 2:08 pm
Location: Florida
Contact:

Re: missing file madcap.css

Post by Pamb10 »

Thanks Lisa and Dave. Your replies are helpful and my project is looking pretty good. Probably just a few little things left to clean up.
flarenewbie
Propeller Head
Posts: 25
Joined: Thu Feb 16, 2012 9:47 pm

Re: missing file madcap.css

Post by flarenewbie »

@LTinker68 : In my case the team did not import any pages from output or source of any webhelp project. It was a project that was created from scratch, but still all topics have the below code in them.

Code: Select all

<link href="Resources/Stylesheets/BookStyles_Template.css" rel="stylesheet" type="text/css" />
        <script src="SkinSupport/MadCapAll.js" type="text/javascript">/*<![CDATA[*/
 /*]]>*/</script>
I am able to do find and replace in a single file, how do I run it in all files within the project . Within the Find & replace panel, under Options there is Look in option, but still its replacing only in the file that is currently open even though I selected "Whole project" from the Look In drop down.
crdmerge
Sr. Propeller Head
Posts: 248
Joined: Tue Dec 16, 2008 5:37 am

Re: missing file madcap.css

Post by crdmerge »

After selecting "whole project," you must click the Start button (also in the Options panel). Once the full-project Find has been "Start"ed, you can then continue with the Find Next or Replace button.

As you get to the last replacement in a topic, nothing happens; you must click Find Next again to manually get to the next topic. Unless, of course, unless you have chosen to Replace in All Files, which I don't recommend.


Good luck,
Leon
flarenewbie
Propeller Head
Posts: 25
Joined: Thu Feb 16, 2012 9:47 pm

Re: missing file madcap.css

Post by flarenewbie »

Thanks Leon, I'll give that a shot. But what I'm more keen on finding out is why those two lines of code being inserted in all topics.Obviously those were inserted by Flare, but why would the tool link to non-existent paths?
wclass
Propellus Maximus
Posts: 1238
Joined: Mon Feb 27, 2006 5:56 am
Location: Melbourne, Australia

Re: missing file madcap.css

Post by wclass »

flarenewbie wrote:... But what I'm more keen on finding out is why those two lines of code being inserted in all topics.Obviously those were inserted by Flare, but why would the tool link to non-existent paths?
References to "SkinSupport/MadCapAll.js" and similar files usually get added to topics as the output is being generated - but should not update your source files.
If you have ever moved output topics over the top of the source you will get this problem.
Margaret Hassall - Melbourne
flarenewbie
Propeller Head
Posts: 25
Joined: Thu Feb 16, 2012 9:47 pm

Re: missing file madcap.css

Post by flarenewbie »

References to "SkinSupport/MadCapAll.js" and similar files usually get added to topics as the output is being generated - but should not update your source files.
If you have ever moved output topics over the top of the source you will get this problem.
Never did that.
Post Reply