如何添加样式到Trac

By admin, 24 四月, 2017

在Trac项目目录里有个templates的目录,在里面创建site.html(这个文件不需要有完整的结构,如果为空,则Trac的排版不变,应该只是放差异的结构,具体机制不清楚),里面引用site/style.css。这个文件对应于项目目录里htdocs/style.css。在style.css里面添加样式即可。重启Trac。

参考:https://trac.edgewall.org/wiki/TracInterfaceCustomization

评论

Restricted HTML

  • 允许的HTML标签:<a href hreflang> <em> <strong> <cite> <blockquote cite> <code> <ul type> <ol start type> <li> <dl> <dt> <dd> <h2 id> <h3 id> <h4 id> <h5 id> <h6 id> <img src>
  • 自动断行和分段。
  • 网页和电子邮件地址自动转换为链接。
验证码
This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.
请输入"Drupal10"