summaryrefslogtreecommitdiff
path: root/gnu/services/cgit.scm
Commit message (Collapse)AuthorAge
* services: cgit: Fix typo.Arun Isaac2019-05-25
| | | | | * gnu/services/cgit.scm (cgit-configuration)[root-readme]: Replace "thef" with "the".
* services: cgit: Disable repo booleans having a global counterpart.Clément Lassieur2018-08-13
| | | | | | | | | | | Otherwise the global counterpart is never taken into account. * doc/guix.texi (Version Control Services): Update accordingly. * gnu/services/cgit.scm (repo-boolean?, serialize-repo-boolean): Use the DEFINE-MAYBE macro to allow for the 'disabled value. (repository-cgit-configuration)[enable-commit-graph?, enable-log-filecount?, enable-log-linecount?, enable-remote-branches?, enable-subject-links?, enable-html-serving?]: Change default value to 'disabled.
* services: cgit: Make project-list permit a file-object.Christopher Baines2018-05-18
| | | | | | | | | | Instead of having the service manage the list, it's useful to be able to point this at an existing file, for example, when using cgit together with gitolite. * gnu/services/cgit.scm (project-list?): New procedure. (serialize-project-list): Handle file-object values. (<cgit-configuration>): Change the predicate for project-list to allow lists and file-objects.
* services: cgit: Improve handling of extra-options.Christopher Baines2018-05-18
| | | | | | | * gnu/services/cgit.scm (serialize-cgit-configuration): Add the extra options, one per line, before the scan-path, as this makes it possible to use the extra-options to affect the global behaviour for repositories. (serialize-extra-options): New procedure.
* services: cgit: Add support for project-list.Clément Lassieur2018-04-11
| | | | | | | | | * doc/guix.texi (Version Control Services): Update accordingly. * gnu/services/cgit.scm (cgit-configuration)[project-list]: New field. (serialize-project-list): New procedure that uses PLAIN-FILE to generate a file from the string list given by the user as input. (serialize-cgit-configuration): Make sure to serialize 'project-list' before 'repostory-directory'.
* services: cgit: Enforce serialization order.Clément Lassieur2018-04-11
| | | | | | | * gnu/services/cgit.scm (serialize-cgit-configuration): New procedure that serializes fields with a precise order. (cgit-activation): Replace the generic SERIALIZE-CONFIGURATION with SERIALIZE-CGIT-CONFIGURATION.
* services: cgit: Add support for file-like objects.Clément Lassieur2018-04-11
| | | | | | | | | | | | | | | | | | * doc/guix.texi (Version Control Services): Update accordingly. * gnu/services/cgit.scm (serialize-field, serialize-string, serialize-boolean, serialize-integer, serialize-repository-cgit-configuration-list, serialize-nginx-server-configuration-list, serialize-repo-field, serialize-repo-boolean, serialize-repo-integer, serialize-module-link-path, serialize-repository-directory, serialize-mimetype-alist): Return strings or string-valued gexps and stop printing. (repository-cgit-configuration)[source-filter, about-filter, commit-filter, logo, owner-filter], (cgit-configuration)[auth-filter, commit-filter, css, email-filter, favicon, include, logo, owner-filter, mimetype-file, readme, source-filter]: Replace STRING with FILE-OBJECT. (file-object?, serialize-file-object, repo-file-object?, serialize-repo-file-object): New procedures. (cgit-activation): Use SERIALIZE-CONFIGURATION's return value with MIXED-TEXT-FILE instead of using its output with PLAIN-FILE.
* services: cgit: Simplify 'serialize-module-link-path'.Clément Lassieur2018-04-11
| | | | | * gnu/services/cgit.scm (serialize-module-link-path): Remove STRING-DROP-RIGHT and UGLIFY-FIELD-NAME.
* services: cgit: Simplify 'uglify-field-name'.Clément Lassieur2018-04-11
| | | | | * gnu/services/cgit.scm (uglify-field-name): Remove STRING-JOIN and STRING-SPLIT.
* services: cgit: Add more configuration fields.Oleg Pykhalov2018-02-28
* gnu/services/version-control.scm (cgit-service-type): Move to separate file. * gnu/services/cgit.scm: New file. * gnu/local.mk (GNU_SYSTEM_MODULES): Add this. * gnu/tests/version-control.scm: Add this. * doc/guix.texi (Cgit Service): Document this.