721 String helpfile = configuration.helpfile; |
721 String helpfile = configuration.helpfile; |
722 DocPath helpfilenm; |
722 DocPath helpfilenm; |
723 if (helpfile.isEmpty()) { |
723 if (helpfile.isEmpty()) { |
724 helpfilenm = DocPaths.HELP_DOC; |
724 helpfilenm = DocPaths.HELP_DOC; |
725 } else { |
725 } else { |
726 helpfilenm = DocPath.create(new File(helpfile).getName()); |
726 DocFile file = DocFile.createFileForInput(configuration, helpfile); |
|
727 helpfilenm = DocPath.create(file.getName()); |
727 } |
728 } |
728 Content linkContent = getHyperLink(pathToRoot.resolve(helpfilenm), |
729 Content linkContent = getHyperLink(pathToRoot.resolve(helpfilenm), |
729 helpLabel, "", ""); |
730 helpLabel, "", ""); |
730 Content li = HtmlTree.LI(linkContent); |
731 Content li = HtmlTree.LI(linkContent); |
731 return li; |
732 return li; |
1669 * Returns a link to the stylesheet file. |
1670 * Returns a link to the stylesheet file. |
1670 * |
1671 * |
1671 * @return an HtmlTree for the lINK tag which provides the stylesheet location |
1672 * @return an HtmlTree for the lINK tag which provides the stylesheet location |
1672 */ |
1673 */ |
1673 public HtmlTree getStyleSheetProperties() { |
1674 public HtmlTree getStyleSheetProperties() { |
1674 String filename = configuration.stylesheetfile; |
1675 String stylesheetfile = configuration.stylesheetfile; |
1675 DocPath stylesheet; |
1676 DocPath stylesheet; |
1676 if (filename.length() > 0) { |
1677 if (stylesheetfile.isEmpty()) { |
1677 stylesheet = DocPath.create(new File(filename).getName()); |
1678 stylesheet = DocPaths.STYLESHEET; |
1678 } else { |
1679 } else { |
1679 stylesheet = DocPaths.STYLESHEET; |
1680 DocFile file = DocFile.createFileForInput(configuration, stylesheetfile); |
|
1681 stylesheet = DocPath.create(file.getName()); |
1680 } |
1682 } |
1681 HtmlTree link = HtmlTree.LINK("stylesheet", "text/css", |
1683 HtmlTree link = HtmlTree.LINK("stylesheet", "text/css", |
1682 pathToRoot.resolve(stylesheet).getPath(), |
1684 pathToRoot.resolve(stylesheet).getPath(), |
1683 "Style"); |
1685 "Style"); |
1684 return link; |
1686 return link; |