Merge pull request #1 from adafruit/oembed

Add oEmbed support to gh pages site
This commit is contained in:
Limor "Ladyada" Fried 2025-05-18 10:10:54 -04:00 committed by GitHub
commit 6c194315e6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 15 additions and 1 deletions

View file

@ -4,6 +4,8 @@
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>OPT4048 CIE Color Plotter</title>
<!-- oEmbed Discovery Links -->
<link rel="alternate" type="application/json+oembed" href="https://adafruit.github.io/Adafruit_OPT4048/webserial/oembed.json" title="Adafruit OPT4048 Demo" />
<style>
body {
font-family: Arial, sans-serif;
@ -153,4 +155,4 @@
<script src="script.js"></script>
</body>
</html>
</html>

12
webserial/oembed.json Normal file
View file

@ -0,0 +1,12 @@
{
"version": "1.0",
"type": "rich",
"title": "Adafruit OPT4048 Library",
"provider_name": "Adafruit",
"provider_url": "https://www.adafruit.com",
"author_name": "Adafruit",
"author_url": "https://github.com/adafruit",
"width": 800,
"height": 600,
"html": "<iframe src='https://adafruit.github.io/Adafruit_OPT4048/webserial/' width='800' height='600' style='border: 1px solid #ddd; border-radius: 4px; max-width: 100%;' allow='serial; usb' loading='lazy' title='Adafruit OPT4048 Arduino Library'></iframe>"
}