zephyr/doc/_doxygen/doxygen-awesome-zephyr.js

13 lines
461 B
JavaScript

/*
* Copyright (c) 2021 Nordic Semiconductor ASA
* SPDX-License-Identifier: Apache-2.0
*/
window.addEventListener('DOMContentLoaded', (event) => {
/* re-inject project version at a custom location */
let version = document.getElementById('projectnumber').innerText
let titleTable = document.querySelector('#titlearea table');
let cell = titleTable.insertRow(1).insertCell(0);
cell.innerHTML = '<div id="projectversion">' + version + '</div>';
});