diff --git a/package-lock.json b/package-lock.json index baf3b4cf66..752bc48588 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10,7 +10,7 @@ "hasInstallScript": true, "license": "ISC", "dependencies": { - "@arduino/docs-arduino-cc": "^2.0.3-alpha-2", + "@arduino/docs-arduino-cc": "^2.0.3", "gatsby": "^5.11.0", "gatsby-background-image": "^1.6.0", "gatsby-image": "^3.11.0", @@ -306,9 +306,9 @@ } }, "node_modules/@arduino/docs-arduino-cc": { - "version": "2.0.3-alpha-2", - "resolved": "https://npm.pkg.github.com/download/@arduino/docs-arduino-cc/2.0.3-alpha-2/0b1f572955892a1d1255d0c0c7b4ae2b4df71951", - "integrity": "sha512-6IsimxO0LmlOnNfeUfRUrSwrnHyjhzphatpno6p4h5utmuwSFj71nF74aPCQdZtWeoeYoolyTb+yOAxkuTcyaQ==", + "version": "2.0.3", + "resolved": "https://npm.pkg.github.com/download/@arduino/docs-arduino-cc/2.0.3/8b22ab5ec0702bcd993ccd176b8eb80529852219", + "integrity": "sha512-Lpm2ljNGszY7Va0bFW9N68naYtToG3/Urcb8x4tkrILeVguOv+Lca5COAURjH2yYxUka4A8tLL9YDG5QYC4AAA==", "dependencies": { "@algolia/autocomplete-core": "^1.10.0", "@algolia/autocomplete-preset-algolia": "^1.10.0", diff --git a/package.json b/package.json index 96a21b24ad..e1ce2e48b8 100644 --- a/package.json +++ b/package.json @@ -18,8 +18,8 @@ }, "homepage": "https://github.com/arduino/docs-content#readme", "dependencies": { - "@arduino/docs-arduino-cc": "^2.0.3-alpha-2", - "gatsby": "^5.11.0", + "@arduino/docs-arduino-cc": "^2.0.3", + "gatsby": "^5.11.0", "gatsby-background-image": "^1.6.0", "gatsby-image": "^3.11.0", "gatsby-plugin-gatsby-cloud": "^5.11.0", diff --git a/scripts/datasheet-rendering/render-datasheets.sh b/scripts/datasheet-rendering/render-datasheets.sh index 47c9e80e5d..d9141b328c 100755 --- a/scripts/datasheet-rendering/render-datasheets.sh +++ b/scripts/datasheet-rendering/render-datasheets.sh @@ -8,14 +8,20 @@ if [ -n "$CI" ]; then mkdir /usr/share/fonts/truetype/open-sans mkdir /usr/share/fonts/truetype/roboto-mono + mkdir /usr/share/fonts/truetype/noto-sans-sc + mkdir /usr/share/fonts/truetype/noto-sans-tc cp -a ./styles/fonts/OpenSans*.ttf /usr/share/fonts/truetype/open-sans cp -a ./styles/fonts/RobotoMono*.ttf /usr/share/fonts/truetype/roboto-mono + cp -a ./styles/fonts/NotoSansSC*.ttf /usr/share/fonts/truetype/noto-sans-sc + cp -a ./styles/fonts/NotoSansTC*.ttf /usr/share/fonts/truetype/noto-sans-tc fc-cache /usr/share/fonts echo "Font info:" fc-list | grep "OpenSans" fc-list | grep "RobotoMono" + fc-list | grep "NotoSansSC" + fc-list | grep "NotoSansTC" apt-get -qq update -y # SEE: https://github.com/puppeteer/puppeteer/blob/main/docs/troubleshooting.md#chrome-headless-doesnt-launch-on-unix diff --git a/scripts/datasheet-rendering/styles/fonts/NotoSansSC-Black.ttf b/scripts/datasheet-rendering/styles/fonts/NotoSansSC-Black.ttf new file mode 100644 index 0000000000..bdc2df2f4a Binary files /dev/null and b/scripts/datasheet-rendering/styles/fonts/NotoSansSC-Black.ttf differ diff --git a/scripts/datasheet-rendering/styles/fonts/NotoSansSC-Bold.ttf b/scripts/datasheet-rendering/styles/fonts/NotoSansSC-Bold.ttf new file mode 100644 index 0000000000..b9010dfffb Binary files /dev/null and b/scripts/datasheet-rendering/styles/fonts/NotoSansSC-Bold.ttf differ diff --git a/scripts/datasheet-rendering/styles/fonts/NotoSansSC-ChineseFont-Regular.ttf b/scripts/datasheet-rendering/styles/fonts/NotoSansSC-ChineseFont-Regular.ttf new file mode 100644 index 0000000000..655a7d6330 Binary files /dev/null and b/scripts/datasheet-rendering/styles/fonts/NotoSansSC-ChineseFont-Regular.ttf differ diff --git a/scripts/datasheet-rendering/styles/fonts/NotoSansSC-ExtraBold.ttf b/scripts/datasheet-rendering/styles/fonts/NotoSansSC-ExtraBold.ttf new file mode 100644 index 0000000000..76c8220abb Binary files /dev/null and b/scripts/datasheet-rendering/styles/fonts/NotoSansSC-ExtraBold.ttf differ diff --git a/scripts/datasheet-rendering/styles/fonts/NotoSansSC-ExtraLight.ttf b/scripts/datasheet-rendering/styles/fonts/NotoSansSC-ExtraLight.ttf new file mode 100644 index 0000000000..96bb745167 Binary files /dev/null and b/scripts/datasheet-rendering/styles/fonts/NotoSansSC-ExtraLight.ttf differ diff --git a/scripts/datasheet-rendering/styles/fonts/NotoSansSC-Light.ttf b/scripts/datasheet-rendering/styles/fonts/NotoSansSC-Light.ttf new file mode 100644 index 0000000000..a73a7624f2 Binary files /dev/null and b/scripts/datasheet-rendering/styles/fonts/NotoSansSC-Light.ttf differ diff --git a/scripts/datasheet-rendering/styles/fonts/NotoSansSC-Medium.ttf b/scripts/datasheet-rendering/styles/fonts/NotoSansSC-Medium.ttf new file mode 100644 index 0000000000..1c6043f6e5 Binary files /dev/null and b/scripts/datasheet-rendering/styles/fonts/NotoSansSC-Medium.ttf differ diff --git a/scripts/datasheet-rendering/styles/fonts/NotoSansSC-Regular.ttf b/scripts/datasheet-rendering/styles/fonts/NotoSansSC-Regular.ttf new file mode 100644 index 0000000000..4d4cadb980 Binary files /dev/null and b/scripts/datasheet-rendering/styles/fonts/NotoSansSC-Regular.ttf differ diff --git a/scripts/datasheet-rendering/styles/fonts/NotoSansSC-SemiBold.ttf b/scripts/datasheet-rendering/styles/fonts/NotoSansSC-SemiBold.ttf new file mode 100644 index 0000000000..d83c2acceb Binary files /dev/null and b/scripts/datasheet-rendering/styles/fonts/NotoSansSC-SemiBold.ttf differ diff --git a/scripts/datasheet-rendering/styles/fonts/NotoSansSC-Thin.ttf b/scripts/datasheet-rendering/styles/fonts/NotoSansSC-Thin.ttf new file mode 100644 index 0000000000..3a6acb3cff Binary files /dev/null and b/scripts/datasheet-rendering/styles/fonts/NotoSansSC-Thin.ttf differ diff --git a/scripts/datasheet-rendering/styles/fonts/NotoSansTC-VariableFont_wght.ttf b/scripts/datasheet-rendering/styles/fonts/NotoSansTC-VariableFont_wght.ttf new file mode 100644 index 0000000000..6e429c5fbf Binary files /dev/null and b/scripts/datasheet-rendering/styles/fonts/NotoSansTC-VariableFont_wght.ttf differ