From mboxrd@z Thu Jan 1 00:00:00 1970 From: andy at warmcat.com (Andy Green) Date: Sat, 23 Jun 2018 18:34:49 +0800 Subject: [PATCH v2 1/5] config: add js In-Reply-To: <20180623102019.GC6584@john.keeping.me.uk> References: <152957329993.21285.2517119299142660486.stgit@mail.warmcat.com> <152957368964.21285.17402274172973616296.stgit@mail.warmcat.com> <20180623102019.GC6584@john.keeping.me.uk> Message-ID: On 06/23/2018 06:20 PM, John Keeping wrote: > On Thu, Jun 21, 2018 at 05:34:49PM +0800, Andy Green wrote: >> Just like the config allows setting css URL path, >> add a config for setting the js URL path >> >> Signed-off-by: Andy Green >> --- >> diff --git a/cgitrc.5.txt b/cgitrc.5.txt >> index 99fc799..a692aa5 100644 >> --- a/cgitrc.5.txt >> +++ b/cgitrc.5.txt >> @@ -248,6 +248,10 @@ inline-readme:: >> individually also choose to ignore this global list, and create a >> repo-specific list by using 'repo.inline-readme'. >> >> +js:: >> + Url which specifies the javascript script document to include in all cgit >> + pages. Default value: "/cgit.js". > > Should we allow the empty string to disable this option? OK. It will additionally disable any feature then that wants to use functions from cgit.js. -Andy >> local-time:: >> Flag which, if set to "1", makes cgit print commit and tag times in the >> servers timezone. Default value: "0". >>