Skip to content
This repository has been archived by the owner on Aug 20, 2021. It is now read-only.

定制site #7

Closed
venusdrogon opened this issue Jun 25, 2016 · 3 comments
Closed

定制site #7

venusdrogon opened this issue Jun 25, 2016 · 3 comments
Assignees
Milestone

Comments

@venusdrogon
Copy link
Collaborator

Maven可以生成一个静态站点,该站点就是反应以上各种信息的,能体现项目的一些状况了

参见

https://maven.apache.org/plugins/maven-site-plugin/examples/sitedescriptor.html
https://maven.apache.org/guides/mini/guide-site.html

@venusdrogon venusdrogon added this to the 1.7.3 milestone Jun 25, 2016
@venusdrogon venusdrogon self-assigned this Jun 25, 2016
@venusdrogon
Copy link
Collaborator Author

venusdrogon commented Jun 25, 2016

目前 有 site 功能,但是 界面不好看

需要换成 新的 site 皮肤

参见 https://maven.apache.org/skins/index.html

image

可以使用

<project>
  ...
  <skin>
    <groupId>org.apache.maven.skins</groupId>
    <artifactId>maven-fluido-skin</artifactId>
    <version>1.5</version>
  </skin>
  ...
</project>

@venusdrogon
Copy link
Collaborator Author

image

尝试使用 site.xml

<?xml version="1.0" encoding="UTF-8"?>

<!--
    Licensed to the Apache Software Foundation (ASF) under one
    or more contributor license agreements. See the NOTICE file
    distributed with this work for additional information
    regarding copyright ownership. The ASF licenses this file
    to you under the Apache License, Version 2.0 (the
    "License"); you may not use this file except in compliance
    with the License. You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

    Unless required by applicable law or agreed to in writing,
    software distributed under the License is distributed on an
    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
    KIND, either express or implied. See the License for the
    specific language governing permissions and limitations
    under the License.
-->

<project xmlns="http://maven.apache.org/DECORATION/1.7.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://maven.apache.org/DECORATION/1.7.0 http://maven.apache.org/xsd/decoration-1.7.0.xsd">

    <skin>
        <groupId>org.apache.maven.skins</groupId>
        <artifactId>maven-fluido-skin</artifactId>
        <version>1.5</version>
    </skin>

    <publishDate position="left" format="yyyy-MM-dd" />
    <version position="left" />

    <custom>
        <fluidoSkin>
            <fluidoSkin>
                <topBarEnabled>true</topBarEnabled>
                <sideBarEnabled>true</sideBarEnabled>
            </fluidoSkin>
            <gitHub>
                <projectId>apache/maven-skins</projectId>
                <ribbonOrientation>right</ribbonOrientation>
                <ribbonColor>black</ribbonColor>
            </gitHub>
        </fluidoSkin>
    </custom>


    <body>

        <!-- <breadcrumbs>
            <item name="Doxia" href="http://maven.apache.org/doxia/index.html" />
            <item name="Trunk" href="http://maven.apache.org/doxia/doxia/index.html" />
            </breadcrumbs> -->

        <menu name="Overview">
            <item name="Introduction" href="index.html" />
            <item name="project-info" href="project-info.html" />
            <item name="source-repository" href="source-repository.html" />
            <item name="License" href="license.html" />
            <!-- <item name="Download" href="download.html" /> -->
        </menu>

        <menu ref="modules" />
        <menu ref="reports" />

        <menu name="feilong projects">
            <item name="feilong-platform" href="https://github.com/venusdrogon/feilong-platform" />
            <item name="feilong-core" href="https://github.com/venusdrogon/feilong-core" />
            <item name="feilong-servlet" href="https://github.com/venusdrogon/feilong-servlet" />
            <item name="feilong-taglib" href="https://github.com/venusdrogon/feilong-taglib" />
            <item name="feilong-spring" href="https://github.com/venusdrogon/feilong-spring" />
            <item name="feilong-io" href="https://github.com/venusdrogon/feilong-io" />
        </menu>
        <links>
            <item name="Apache" href="http://www.apache.org" />
            <item name="Maven" href="http://maven.apache.org" />
        </links>

        <!-- <head>head</head>
            <footer>foter</footer> -->

    </body>
</project>




@venusdrogon
Copy link
Collaborator Author

代码 已经提交 42fe06b

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant