view website/issues/detectors/no_texthtml.py @ 7623:3df2441f3a1e

build: revert all attempts to disable docs travis-ci will remain broken for nightly (3.12) testing. Trying to enable maintainer mode broke on a missing dot executable. Disable nightly since something is borked in the base config there and I don't want to waste credits on it.
author John Rouillard <rouilj@ieee.org>
date Mon, 11 Sep 2023 01:17:57 -0400
parents 0942fe89e82e
children
line wrap: on
line source


def audit_html_files(db, cl, nodeid, newvalues):
    if 'type' in newvalues and newvalues['type'] == 'text/html':
        newvalues['type'] = 'text/plain'
    

def init(db):
    db.file.audit('set', audit_html_files)
    db.file.audit('create', audit_html_files)

Roundup Issue Tracker: http://roundup-tracker.org/