Git Product home page Git Product logo

gitweb-theme's Introduction

Maintenance GitHub Stars GitHub Forks

Theme for gitweb

This is an alternative theme for gitweb (tested with git web interface version 2.0.4). It is strongly inspired by GitHub.

Fullsize screenshots available on kogakure.github.io/gitweb-theme.

Installation

The installation of this stylesheet is very easy:

  1. Clone the repository to a location of your choice git clone https://github.com/kogakure/gitweb-theme.git
  2. Run ./setup -vi --install and your gitweb will be themed!
    • If you are on Ubuntu, then the script will default to gitweb's installation directory /usr/share/gitweb/.
    • If this is not where gitweb is located, then pass the directory to the script with the --target or -t option.
  3. Of course you can just copy them to the new location too.

If you see some missing things or errors, please create a ticket or fix it and send a pull request.

Configuration file

Did you know?

Updating Gitweb can be quite time consuming because you have to adjust your settings in the gitweb.cgi. You don’t have to!.

Create a file with the name gitweb_config.perl and put it into the same directory as gitweb.cgi.

In this file you write only your custom settings and they will override the settings in gitweb.cgi like this:

$GIT = "/bin/git";
$projectroot = "/www/git/repositories";
$project_maxdepth = 2009;
$home_link_str = "Projekte";
$projects_list_group_categories = 1;
$export_ok = "GITWEB_EXPORT_OK";
$feature{'avatar'}{'default'} = ['gravatar'];
$feature{'highlight'}{'default'} = [1];

Syntax highlighting

Optionally, you can enable syntax highlighting for your code. Install the highlight package with your package manager and add this line to /etc/gitweb.conf:

$feature{'highlight'}{'default'} = [1];

Gravatar support

You can enable Gravatar support with this line:

$feature{'avatar'}{'default'} = ['gravatar'];

Categories

Gitweb and this theme support categories, which can be enabled by the following gitweb config option:

$projects_list_group_categories = true;¬

The category name for each repository is read from .git/category, in the same manner as .git/description.

Setup Script

Usage:

  • ./setup [-v|-i] [-t <TARGET>|--target <TARGET>] [--install|--remove|--repair] or:
  • ./setup [-V|-h|--version|--help]

This script will create symlinks to your gitweb install for themeing. The default location is /usr/share/gitweb unless set via -t or --target.

Options:

Parameter Description
-v, --verbose Verbose output
-i, --interactive Pauses for confirmation at each step
-t, --target Where to create the symlinks, gitweb installation path
-h, --help Shows this usage message
-V, --version Displays version information
--install Adds '.bak' to original files and creates symlinks to theme files
--remove Deletes themed symlinks and restores the original files.
--repair Removes all theme files, then reinstalls

Licence

(The MIT License)

Copyright (c) 2009-2014 Stefan Imhoff

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

gitweb-theme's People

Contributors

avsej avatar bud-mo avatar dezechristophe avatar edwinhoksberg avatar ejholmes avatar igoryok-zp avatar kamihouse avatar kevinkhill avatar kimej avatar klaernie avatar kogakure avatar mrimann avatar triplejumper12 avatar troelskn avatar tvlooy avatar yangacer avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

gitweb-theme's Issues

Low contrast for Linux users

When using this theme for Linux users, it results in a very low-contrast that makes it incredibly hard to read the text. For example here is a screenshot of the gitweb-theme screenshot compared to how it actually looks on Linux: http://dl.dropbox.com/u/840794/drupalcode-contrast.png

On drupalcode.org we're proposing the following change to the font family for "normal" text in order to make it more readable and not violate accessibility contrast rules: http://drupal.org/node/1394192#comment-5437778

Side by side comparisons

Gitweb 1.7.9 introduced a feature for viewing diffs side-by-side and that does not behave well with the theme. All the code is positioned to left.

Steps to reproduce

  1. View commitdiff
  2. Select side by side

Tested Gitweb 1.7.9 with Chrome 21, Safari 6.0 and Firefox 14.0.1.

Doesnt display on chrome but works fine on firefox

Maybe I missed something obvious, but the theme works fine on Firefox (which I don't use much), but doesnt work on Chrome. Tried reloading chrome and even clearing cached data. Is there something special I need to do for chrome? Using Ubuntu 16.04, apache 2.4 and chrome 56. Gitweb is the standard ubuntu install (shows up as 1:2.7.4-0ubuntu1). My desktop is Linux Mint 18.1 (chrome for linux).

Low contrast for Linux Users

New issue since #6 was closed and I wasn't subscribed to notifications.

When using this theme for Linux users, it results in a very low-contrast that makes it incredibly hard to read the text. For example here is a screenshot of the gitweb-theme screenshot compared to how it actually looks on Linux: http://dl.dropbox.com/u/840794/drupalcode-contrast.png

On drupalcode.org we're proposing the following change to the font family for "normal" text in order to make it more readable and not violate accessibility contrast rules: http://drupal.org/node/1394192#comment-5437778

It looks like Chrome is using "Courier New".

Default font family:

Selection_032

After removing "Courier New" and it defaulting to monospace results in much better contrast:

Selection_031

Sticky Footer

Would it be possible to turn the footer into a sticky footer?

No Licence specified

I would love to use this great theme in some projects, but there is no special license given.
If possible, could you publish it under an open-source license like MIT or GPL (or other)...

Thanks in advance!

grouped categories not supported

Hi there,

I just noticed that gitweb can use the .git/category files for grouping several repositories together and sorting each group.

Sadly I noticed that gitweb-theme does not style these intermittent header-lines (take a look at http://git.ak-online.be to see what I mean). Unfortunately I lack the skills to come up with a suitable design idea, but it should be straight forward to style .category.

Thanks a lot, Andre

Chrome Tweak

Just FYI, I'm using your theme (which is great!) on Chrome (dev branch 12.x) and noticed a small issue on the commitdiff screen. The box containing the diff view is adding a vertical scroll bar on the right, as if the section was done in a frame. I verified this is not happening in Firefox 4 or IE 9. I have a screenshot I can email you.

Setup script

I really like your stylesheets. Thank you for sharing them. I have one comment for you about the set-up script and the way it installs the files: I think it is wrong to symlink what are effectively system files back to a repo that could exist anywhere (and will most likely be in a users home directory).

I think it would be cleaner if it copied the files in to place rather than symlinking them,

Just my 10c

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.