]> Lady’s Gitweb - Git/blob - gitweb_config.perl
Initial commit
[Git] / gitweb_config.perl
1 # SPDX-FileCopyrightText: 2024 Lady <https://www.ladys.computer/about/#lady>
2 # SPDX-License-Identifier: MPL-2.0
3
4 # This Source Code Form is subject to the terms of the Mozilla Public License, v 2.0.
5 # If a copy of the M·P·L was not distributed with this file, You can obtain one at <https://mozilla.org/MPL/2.0/>.
6
7 our $mimetypes_file = "/var/www/gitweb/mime.types";
8
9 our $javascript = "/static/gitweb.js";
10 our $home_link_str = "Lady&#x2019;s Gitweb";
11
12 our $site_name = "Lady’s Gitweb";
13 our $site_html_head_string = '<script>document.addEventListener("DOMContentLoaded",()=>{if(/[^[\/]+\/blob\/[^\/]*:\/.*\.(?:md|markdown)\/?$/.test(location.pathname)){const s=document.createElementNS("http://www.w3.org/1999/xhtml","script");s.src="/static/markdown.js";document.head.appendChild(s);s.addEventListener("load",()=>window.markdown.ready.then(({parse})=>{const pb=document.querySelector(".page_body");pb.replaceChildren(...new DOMParser().parseFromString(`\x3C!DOCTYPE html>${parse([...pb.querySelectorAll(".pre")].map($=>[...$.childNodes].filter($=>$.className!="linenr").map($=>$.textContent).join()).join("\n"))}`,"text/html").body.children);pb.style.font="Medium / 1.5 Sans-Serif"}))}})</script>';
14 our $site_html_head_string .= '<script>document.addEventListener("DOMContentLoaded",()=>{const pl=document.querySelector(".projects_list");if(pl){const r=pl.insertRow();r.insertCell().textContent="more info";const c=r.insertCell();const a=document.createElementNS("http://www.w3.org/1999/xhtml","a");a.href=`${location.pathname.substring(0,location.pathname.substring(1).indexOf("/")+1||undefined)}/blob/HEAD:/README.markdown`;a.textContent="View the latest README.markdown committed to the tree";c.appendChild(a)}})</script>';
15
16 our $logo_label = "Lady's Computer";
17 our $logo_url = "https://www.ladys.computer/";
18
19 our $projects_list_description_width = 50;
20 our $default_projects_order = "age";
21 our $projects_list_group_categories = 1;
22 our $omit_owner = 1;
23
24 our $default_text_plain_charset = "utf-8";
25 our $fallback_encoding = "utf-8";
26
27 # $feature{'grep'}{'default'} = [0];
28 # $feature{'pickaxe'}{'default'} = [0];
29 $feature{'highlight'}{'default'} = [1];
30 $feature{'email-privacy'}{'default'} = [1];
31
32 $feature{'pathinfo'}{'default'} = [1];
33 # $feature{'forks'}{'default'} = [1];
34 $feature{'timed'}{'default'} = [1];
This page took 0.058315 seconds and 5 git commands to generate.