2014-11-24 5 views
0

Javadoc을 자동으로 생성했습니다. 모두 괜찮 았어. 하지만 javadoc의 상단에 헤더를 넣어서 내 소스 코드에 연결하려고합니다. 내 웹 사이트에 javadoc을 표시 할 수 있도록 index.html을 편집하려고 할 때마다 javadoc이 사라지고 내가 추가 한 내용 만 보여줍니다. 예를 들어, 내가 추가 할 경우 :Javadoc을 직접 편집 (index.html)

<body> 
<p>TEST</p> 
</body> 

어디서나 볼 수있는 것은 내가 index.html에 링크하면 "TEST"입니다.

상단에 소스 코드로 연결되는 헤더가 있도록 index.html을 편집하려면 어떻게해야합니까? 내 index.html을은 다음과 같습니다 : 당신은 당신이 하나를 추가 할 경우 있도록하는 HTML head 요소가없는 게시

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd"> 
<!--NewPage--> 
<HTML> 
<HEAD> 
<!-- Generated by javadoc on Sun Nov 23 21:34:16 EST 2014--> 
<TITLE> 
Action Engine API 
</TITLE> 
<SCRIPT type="text/javascript"> 
    targetPage = "" + window.location.search; 
    if (targetPage != "" && targetPage != "undefined") 
     targetPage = targetPage.substring(1); 
    if (targetPage.indexOf(":") != -1) 
     targetPage = "undefined"; 
    function loadFrames() { 
     if (targetPage != "" && targetPage != "undefined") 
      top.classFrame.location = top.targetPage; 
    } 
</SCRIPT> 
<NOSCRIPT> 
</NOSCRIPT> 
</HEAD> 
<FRAMESET cols="20%,80%" title="" onLoad="top.loadFrames()"> 
<FRAMESET rows="30%,70%" title="" onLoad="top.loadFrames()"> 
<FRAME src="overview-frame.html" name="packageListFrame" title="All Packages"> 
<FRAME src="allclasses-frame.html" name="packageFrame" title="All classes and interfaces (except non-static nested types)"> 
</FRAMESET> 
<FRAME src="overview-summary.html" name="classFrame" title="Package, class and interface descriptions" scrolling="yes"> 
<NOFRAMES> 
<H2> 
Frame Alert</H2> 

<P> 
This document is designed to be viewed using the frames feature. If you see this message, you are using a non-frame-capable web client. 
<BR> 
Link to<A HREF="overview-summary.html">Non-frame version.</A> 
</NOFRAMES> 
</FRAMESET> 
</HTML> 

답변

0

생성 된 자바 독은, 브라우저가 아마 단지를 표시합니다.

올바르게 이해하면 생성 된 javadoc에 텍스트를 추가하고 싶습니다. 모든 페이지에 무언가를 추가하려면 bottom 명령 줄 인수를 사용할 수 있습니다. 여기에 자바 독 man 페이지에서 예입니다 : 당신은 그냥 메인 페이지에 무언가를 추가하려면

javadoc -bottom '<a href="{@docRoot}/copyright.html">Copyright</a>'. 

, 당신은 소스 폴더에 index.html (또는 package-info.java)에 배치 할 수 있습니다.

+0

잘 모르겠습니다. index.html에 어디에서 추가 할 수 있습니까? 그것은 여전히 ​​"저작권"을 제외한 모든 것을 제거했습니다. – Evorlor

+0

생성 된'index.html'을 편집하지 마십시오.'javadoc'를 다시 실행할 때 덮어 씁니다. 새로운'index.html' 파일에 넣고 그 파일을 소스 폴더에 넣으십시오. 'javadoc'에는 그 파일이 포함됩니다. – Robert

+0

명확하지 않음 : -/Thanks tho – Evorlor

관련 문제