Trac Hacks

Useful Patches

WikiPrivatePatch — reference the patch file
TrueHttpLogoutPatch
TracWiki WYSIWYG Editor Plugin

True logout mechanism for Basic/Digest Authentication

解決 Trac 無法 logout 的問題,請參閱 TrueHttpLogoutPatch

Theme Modifications

為 Trac 實施換膚手術

Install the Theme Engine Plugin

easy_install http://trac-hacks.org/svn/themeengineplugin/

Choose and install themes from Trac Hacks' Themes page.

easy_install http://trac-hacks.org/svn/tracmentalaxistheme
easy_install http://trac-hacks.org/svn/intrablogtheme
easy_install http://trac-hacks.org/svn/gamedevtheme/0.10
easy_install http://trac-hacks.org/svn/consultanttheme
easy_install http://trac-hacks.org/svn/pydotorgtheme
easy_install http://trac-hacks.org/svn/tracdefaulttheme

Choose the Theme from theme chooser

Plugins for TracWiki

Install Media Wiki Plugin Macro

easy_install http://trac-hacks.org/svn/mediawikipluginmacro

  • 這個套件可以讓我們於 Trac 下寫 wiki 文件時,採用 Wikipedia 的 media wiki 語法。

Install IncludeMacro

easy_install http://trac-hacks.org/svn/includemacro

Plugins for Subversion

ListTracProjects

easy_install http://trac-hacks.org/svn/listtracprojectsmacro

  • install fail

Svnauthz File Administration Plugin

easy_install http://trac-hacks.org/svn/svnauthzadminplugin/0.10

Web interface to edit subversion authorization (authz) files

easy_install http://trac-hacks.org/svn/tracsvnauthzplugin/0.10

Web interface to edit subversion hook files

easy_install http://trac-hacks.org/svn/tracsvnhooksplugin/0.10

Trac Blog

Install TagsPlugin

easy_install http://trac-hacks.org/svn/tagsplugin/tags/0.4.1

Install TracBlogPlugin

easy_install http://trac-hacks.org/svn/tracblogplugin

Update your trac.ini with the following:

[trac]
default_handler = TagsWikiModule
[components]
trac.wiki.web_ui.wikimodule = disabled
tractags.* = enabled

Run trac-admin <env> upgrade on your Trac environment

trac-admin.py D:/Repository/trac/sandbox upgrade

Adds the TracBlogPlugin components

Restart Apache2

Zip Archive

from trac.ini

[browser]
downloadable_paths = /DVP/trunk, /DVP/branches/*, /DVP/tags/*, /FW/*, /trunk, /branches/*, /tags/*

Change project name

Example

We want change "DVP-A1006" to "A1006"

  1. rename "D:\Repository\svn\DVP-A1006" to "D:\Repository\svn\A1006"
  2. rename "D:\Repository\trac\DVP-A1006" to "D:\Repository\trac\A1006"
  3. Edit D:\Repository\trac\A1006\conf\trac.ini
    1. search all "DVP-A1006" and replace to "A1006"
  4. Resync

D:\Python24\Scripts> trac-admin.py D:/Repository/trac/sandbox resync

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License