2014-02-11 71 views

回答

0

位於src/**文件夾中的Maven中的所有內容都假定爲源代碼。如果您要創建的內容不是src/site是正確的位置。 target/site區域是生成頁面將通過mvn site生成的位置。

以下是您可以使用的示例create in your src/site area

+- src/ 
    +- site/ 
     +- apt/ 
     | +- index.apt 
     | 
     +- fml/ 
     | +- general.fml 
     | +- faq.fml 
     | 
     +- xdoc/ 
     | +- other.xml 
     | 
     +- site.xml 

我建議先從像一個簡單的方法:

+- src/ 
    +- site/ 
     +- apt/ 
     | +- index.apt 
     | 
     +- site.xml 

simple site descriptor (site.xml)開始,你可以採取這樣的:

<project> 
    ... 
    <body> 
    ... 
    <menu name="First"> 
     <item name="Index" href="index.html" /> 
    </menu> 
    ... 
    </body> 
    ... 
</project> 

當然,你應該有一些實際的內容在the index.apt

------ 
Title 
------ 
------ 
Date 
------ 

Section title 

* Sub-section title 

** Sub-sub-section title 

*** Sub-sub-sub-section title 

**** Sub-sub-sub-sub-section title 
相關問題