Skip to content

Commit 11398bd

Browse files
committed
Add custom videoInfo and product banner buttons. Update README
1 parent 994e53b commit 11398bd

File tree

5 files changed

+112
-19
lines changed

5 files changed

+112
-19
lines changed

README.md

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ symbolic link created for AnalogInput <<===>> ..\..\..\..\..\built-in-examples\0
8383
### Including Code Snippets
8484

8585
Code snippets can be included by using the triple backticks syntax e.g. ` ```arduino` followed by the code and three closing backticks. The following syntaxes are supported:
86+
8687
```
8788
arduino, bash, markup, clike, c, cpp, css, css-extras, javascript, jsx, js-extras, coffeescript, diff, git, go, graphql, handlebars, json, less, makefile, markdown, objectivec, ocaml, python, reason, sass, scss, sql, stylus, tsx, typescript, wasm, yaml
8889
```
@@ -94,16 +95,24 @@ Using this component, the code block will be fetched directly from Github pages.
9495

9596
Syntax:
9697
` <CodeBlock url=”https://github.com/example” className="{language}"/>`
97-
98+
9899
Broken URL will show error alert. URL must be in Github domain and must be public.
99100

101+
### Use Custom content con various component
102+
103+
- **Details** pages: on every `product.md` file you have to create 4 variables, related to the hero buttons component in every details page:
104+
- primary_button_url: (string)
105+
- primary_button_title: (string)
106+
- secondary_button_url: (string)
107+
- secondary_button_title: (string)
108+
- **Video**: You can manage the content in the video components (Actually in Learn, Arduino-cloud and MycroPython page), just compiling the file `videoInfo.md` in the main directory of the relative section.
109+
100110
## Previewing Changes
101111

102112
Whenever you create a Pull Request (PR) GatsbyCloud will create a preview deployment in which you can see how your changes look when rendered on the website. The link to the preview will appear in the comments of the PR. This also works with Draft PRs, but not for PRs created from a fork.
103113

104114
## License
105115

106-
![](https://i.creativecommons.org/l/by-sa/3.0/88x31.png)
116+
![](https://i.creativecommons.org/l/by-sa/3.0/88x31.png)
107117

108118
Please note that your contribution to the Arduino Documentation is licensed under a Creative Commons Attribution-Share Alike 4.0 License. see https://creativecommons.org/licenses/by-sa/4.0/
109-

content/arduino-cloud/videoInfo.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
---
2+
url: https://www.youtube.com/embed/uaLrmLCqGnc?controls=0
3+
info:
4+
[
5+
{
6+
icon: IconIoT,
7+
title: Get started with IoT projects,
8+
description: Create smart dashboards to control connected devices using few coding,
9+
link: /,
10+
},
11+
{
12+
icon: IconBrackets,
13+
title: Cloud Editor,
14+
description: Create smart dashboards to control connected devices using few coding,
15+
link: "/",
16+
},
17+
{
18+
icon: IconCLI,
19+
title: Cloud CLI,
20+
description: Create smart dashboards to control connected devices using few coding,
21+
link: /,
22+
},
23+
{
24+
icon: IconBooks,
25+
title: Tutorials and templates,
26+
description: Create smart dashboards to control connected devices using few coding,
27+
link: /,
28+
},
29+
]
30+
---
Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1-
---
2-
title: MKR WiFi 1010
3-
url_shop: https://store.arduino.cc/arduino-mkr-wifi-1010
4-
url_guide: /software/ide-v2/tutorials/ide-v2-board-manager#samd
5-
primary_button_url: /software/ide-v2/tutorials/ide-v2-board-manager#samd
6-
primary_button_title: Get Started
7-
draft: true
8-
core: arduino:samd
9-
forumCategorySlug: '/hardware/mkr-boards/mkrwifi1010/147'
10-
certifications: [FCC, UKCA, IC, REACH, RED, RoHS, WEEE, RCM, MIC, CE]
11-
productCode: '025'
12-
---
13-
14-
<SubTitle>The easiest entry point to basic IoT and pico-network application design.</SubTitle>
15-
16-
Whether you are looking at building a sensor network connected to your office or home router, or if you want to create a Bluetooth® Low Energy device sending data to a cellphone, the MKR WiFi 1010 is your one-stop-solution for many of the basic IoT application scenarios.
1+
---
2+
title: MKR WiFi 1010
3+
url_shop: https://store.arduino.cc/arduino-mkr-wifi-1010
4+
url_guide: /software/ide-v2/tutorials/ide-v2-board-manager#samd
5+
primary_button_url: /software/ide-v2/tutorials/ide-v2-board-manager#samd
6+
primary_button_title: Get Started
7+
draft: true
8+
core: arduino:samd
9+
forumCategorySlug: '/hardware/mkr-boards/mkrwifi1010/147'
10+
certifications: [FCC, UKCA, IC, REACH, RED, RoHS, WEEE, RCM, MIC, CE]
11+
productCode: '025'
12+
---
13+
14+
<SubTitle>The easiest entry point to basic IoT and pico-network application design.</SubTitle>
15+
16+
Whether you are looking at building a sensor network connected to your office or home router, or if you want to create a Bluetooth® Low Energy device sending data to a cellphone, the MKR WiFi 1010 is your one-stop-solution for many of the basic IoT application scenarios.

content/learn/videoInfo.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
---
2+
url: https://www.youtube.com/embed/uaLrmLCqGnc?controls=0
3+
info:
4+
[
5+
{
6+
icon: IconIoT,
7+
title: Get started with IoT projects,
8+
description: Create smart dashboards to control connected devices using few coding,
9+
link: /,
10+
},
11+
{
12+
icon: IconBrackets,
13+
title: Cloud Editor,
14+
description: Create smart dashboards to control connected devices using few coding,
15+
link: "/",
16+
},
17+
{
18+
icon: IconCLI,
19+
title: Cloud CLI,
20+
description: Create smart dashboards to control connected devices using few coding,
21+
link: /,
22+
},
23+
{
24+
icon: IconBooks,
25+
title: Tutorials and templates,
26+
description: Create smart dashboards to control connected devices using few coding,
27+
link: /,
28+
},
29+
]
30+
---

content/micropython/videoInfo.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
---
2+
url: https://www.youtube.com/embed/CgOVbtoT8qo?si=i3QVjDL1-MBFZ3Xe
3+
info:
4+
[
5+
{
6+
icon: IconBoard,
7+
title: Board Installation,
8+
description: Create smart dashboards to control connected devices using few coding,
9+
link: /micropython/basics/board-installation,
10+
},
11+
{
12+
icon: IconBrackets,
13+
title: Code Editors,
14+
description: Create smart dashboards to control connected devices using few coding,
15+
link: /micropython/basics/code-editors,
16+
},
17+
{
18+
icon: IconSmartDashBoard,
19+
title: Examples by Board,
20+
description: Create smart dashboards to control connected devices using few coding,
21+
link: /micropython/basics/board-examples,
22+
},
23+
]
24+
---

0 commit comments

Comments
 (0)