<commit_before>import qbs 1.0

Product {
    name: "documentation"
    type: "qch"
    Depends { name: "qt.core" }

    files: [
        "qbs.qdoc",
        "config/*.qdocconf",
        "items/*",
    ]
    Group {
        name: "main qdocconf file"
        files: qt.core.versionMajor >= 5 ? "qbs.qdocconf" : "qbs-qt4.qdocconf"
        fileTags: "qdocconf-main"
    }

    property string versionTag: "030" // TODO: Derive from project.version
    qt.core.qdocQhpFileName: "qbs.qhp"
    qt.core.qdocEnvironment: [
        "QBS_VERSION=" + project.version,
        "SRCDIR=.",
        "QBS_VERSION_TAG=" + versionTag
    ]

    Group {
        fileTagsFilter: "qdoc-html"
        qbs.install: true
        qbs.installDir: "share/doc/qbs"
    }
}<commit_msg>derive version tag from project.version in doc.qbs<commit_after>import qbs 1.0

Product {
    name: "documentation"
    type: "qch"
    Depends { name: "qt.core" }

    files: [
        "qbs.qdoc",
        "config/*.qdocconf",
        "items/*",
    ]
    Group {
        name: "main qdocconf file"
        files: qt.core.versionMajor >= 5 ? "qbs.qdocconf" : "qbs-qt4.qdocconf"
        fileTags: "qdocconf-main"
    }

    property string versionTag: project.version.replace(/\.|-/g, "")
    qt.core.qdocQhpFileName: "qbs.qhp"
    qt.core.qdocEnvironment: [
        "QBS_VERSION=" + project.version,
        "SRCDIR=.",
        "QBS_VERSION_TAG=" + versionTag
    ]

    Group {
        fileTagsFilter: "qdoc-html"
        qbs.install: true
        qbs.installDir: "share/doc/qbs"
    }
}
{'fraction_non_alphanumeric': 0.143042071197411, 'fraction_numerical': 0.007119741100323625, 'mean_word_length': 2.085828343313373, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4684496', 'n_tokens_mistral': 580, 'n_tokens_neox': 560, 'n_words': 102}