Developer Documentation#
This area of the documentation contains information for developers of the OU Book Theme.
Updating the OU headers and footers#
To update the OU headers / footers follow these steps:
Replace the content of
ou_book_theme/theme/ou_book_theme/ouheaders
with the newest versions of thegui
andjs
folders from the updated theme. Then:In the
ou_book_theme/theme/ou_book_theme/ouheaders/gui/headerfooter.min.css
replace all occurrences of/ouheaders/gui
with.
.In the
ou_book_theme/theme/ou_book_theme/ouheaders/js/src/ou-header.js
replace all occurrences of'/ouheaders
withdocument.querySelector('html').getAttribute('data-content_root') + 'ouheaders
.Run hatch run build-ou-branding to build the minified version
Replace the contents of the
ou_book_theme/theme/ou_book_theme/ou-header.html
with the content from the updated theme. Then:In the updated file replace all occurrences of
/ouheaders
with{{ content_root }}ouheaders
In the updated file comment out the Google Tag Manager tracking iframe
In the updated file comment out the Skip-to-main-content link
Replace the contents of the
ou_book_theme/theme/ou_book_theme/ou-footer.html
with the content from the updated theme. Then:In the updated file replace all occurrences of
/ouheaders
with{{ content_root }}ouheaders
Replace the contents of the
ou_book_theme/theme/ou_book_theme/ou-head.html
with the content from the updated theme. Then:In the updated file replace all occurrences of
/ouheaders
with{{ content_root }}ouheaders