mirror of
https://github.com/okalachev/flix.git
synced 2025-08-17 09:06:11 +00:00
Create book and deploy it to the website (#6)
* Create book structure. * Add workflow for linting the markdown using markdownlint. * Add workflow for building the book with mdBook and deploying to the website. * Restyle mdBook and support GitHub-style alerts. * Add images zooming. * Add index, firmware structure and gyroscope articles.
This commit is contained in:
7
docs/js.js
Normal file
7
docs/js.js
Normal file
@@ -0,0 +1,7 @@
|
||||
// Enable zoom on images larger than 300px
|
||||
document.querySelectorAll('.content img').forEach(function (img) {
|
||||
var width = img.getAttribute('width');
|
||||
if (!width || width >= 300) {
|
||||
img.setAttribute('data-action', 'zoom');
|
||||
}
|
||||
});
|
Reference in New Issue
Block a user