view website/issues/detectors/no_texthtml.py @ 7432:e3b35dcf0dcb

Shorten/simplify doc TOC by removing redundant Roundup in titles. We already have a Roundup label at the top of the page. Remove the word Roundup from each item. Roundup Features -> Features etc. The titles for the pages keep the word Roundup since it will show up on the tab/browser window title etc.
author John Rouillard <rouilj@ieee.org>
date Mon, 29 May 2023 19:53:06 -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/