How can I configure a Tag Cloud view to my gitweb project list?
I saw an example of this on the git repo http://repo.or.cz/ but i'am not sure how to configure this on my own gitweb installation.
Is there an example gitweb_config.perl for this?
How can I configure a Tag Cloud view to my gitweb project list?
I saw an example of this on the git repo http://repo.or.cz/ but i'am not sure how to configure this on my own gitweb installation.
Is there an example gitweb_config.perl for this?
The gitweb.perl
script documentation (included in the git repo itself) does mention:
Allow gitweb scan project content tags of project repository, and display the popular Web 2.0-ish "tag cloud" near the projects list.
Note that this is something COMPLETELY different from the normal Git tags.gitweb by itself can show existing tags, but it does not handle tagging itself; you need to do it externally, outside gitweb.
The format is described ingit_get_project_ctags()
subroutine.
You may want to install theHTML::TagCloud
Perl module to get a pretty tag cloud instead of just a list of tags.
git_get_project_ctags()
subroutine:
supported formats:
$GIT_DIR/ctags/<tagname>
file (in 'ctags' subdirectory)
- if its contents is a number, use it as tag weight,
- otherwise add a tag with weight 1
$GIT_DIR/ctags
file, each line is a tag (with weight 1)
the same value multiple times increases tag weightgitweb.ctag
multi-valued repo config variable