diff --git a/.github/workflows/deploy-prd.yml b/.github/workflows/deploy-prd.yml index afab6e1d5e..84afdf7cee 100644 --- a/.github/workflows/deploy-prd.yml +++ b/.github/workflows/deploy-prd.yml @@ -38,6 +38,7 @@ jobs: find ./content/hardware -type f -name "*-datasheet.pdf" -exec cp {} ./static/resources/datasheets/ \; find ./content/hardware -type f -name "*-full-pinout.pdf" -exec cp {} ./static/resources/pinouts/ \; find ./content/hardware -type f -name "*-pinout.png" -exec cp {} ./static/resources/pinouts/ \; + find ./content/hardware -type f -name "*-step.zip" -exec cp {} ./static/resources/models/ \; - name: Gatsby main cache uses: actions/cache@v4 diff --git a/.github/workflows/deploy-stg.yml b/.github/workflows/deploy-stg.yml index 160b7b12f8..8721679cdd 100644 --- a/.github/workflows/deploy-stg.yml +++ b/.github/workflows/deploy-stg.yml @@ -38,6 +38,7 @@ jobs: find ./content/hardware -type f -name "*-datasheet.pdf" -exec cp {} ./static/resources/datasheets/ \; find ./content/hardware -type f -name "*-full-pinout.pdf" -exec cp {} ./static/resources/pinouts/ \; find ./content/hardware -type f -name "*-pinout.png" -exec cp {} ./static/resources/pinouts/ \; + find ./content/hardware -type f -name "*-step.zip" -exec cp {} ./static/resources/models/ \; - name: Gatsby main cache uses: actions/cache@v4 diff --git a/.gitignore b/.gitignore index 49369aeebe..d8fa00b890 100644 --- a/.gitignore +++ b/.gitignore @@ -7,4 +7,7 @@ node_modules public src .DS_Store -.vscode/settings.json \ No newline at end of file +.vscode/settings.json +content/en +content/de +content/pt \ No newline at end of file diff --git a/content/_dev-test/content.md b/content/_dev-test/content.md new file mode 100644 index 0000000000..c81a91cb7a --- /dev/null +++ b/content/_dev-test/content.md @@ -0,0 +1,9 @@ +--- +id: "" +title: "" +categories: "" +subCategories: "" +leaf: false +mainDescription: "" +mainTitle: "" +--- \ No newline at end of file diff --git a/content/language-reference/01.functions/01.digital-io/digitalread/function.md b/content/language-reference/01.functions/01.digital-io/digitalread/function.md deleted file mode 100644 index 9fc2eb4868..0000000000 --- a/content/language-reference/01.functions/01.digital-io/digitalread/function.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -title: digitalRead() -categories: "Functions" -subCategories: "Digital I/O" ---- diff --git a/content/language-reference/01.functions/01.digital-io/digitalwrite/function.md b/content/language-reference/01.functions/01.digital-io/digitalwrite/function.md deleted file mode 100644 index 0f89a71130..0000000000 --- a/content/language-reference/01.functions/01.digital-io/digitalwrite/function.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -title: digitalWrite() -categories: "Functions" -subCategories: "Digital I/O" ---- diff --git a/content/language-reference/01.functions/02.math/abs/function.md b/content/language-reference/01.functions/02.math/abs/function.md deleted file mode 100644 index ce4d44f5c2..0000000000 --- a/content/language-reference/01.functions/02.math/abs/function.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -title: abs() -categories: "Functions" -subCategories: "Math" ---- diff --git a/content/language-reference/01.functions/02.math/constrain/function.md b/content/language-reference/01.functions/02.math/constrain/function.md deleted file mode 100644 index 8fac58a0c6..0000000000 --- a/content/language-reference/01.functions/02.math/constrain/function.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -title: constrain() -categories: "Functions" -subCategories: "Math" ---- diff --git a/content/language-reference/01.functions/category.md b/content/language-reference/01.functions/category.md deleted file mode 100644 index c1097502f8..0000000000 --- a/content/language-reference/01.functions/category.md +++ /dev/null @@ -1,3 +0,0 @@ ---- -title: Functions ---- \ No newline at end of file diff --git a/content/language-reference/02.variables/01.constants/constants/variable.md b/content/language-reference/02.variables/01.constants/constants/variable.md deleted file mode 100644 index 23f9f03ef9..0000000000 --- a/content/language-reference/02.variables/01.constants/constants/variable.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -title: constants -categories: "Variables" -subCategories: "Constants" ---- - diff --git a/content/language-reference/02.variables/01.constants/floatingPointConstants/variable.md b/content/language-reference/02.variables/01.constants/floatingPointConstants/variable.md deleted file mode 100644 index 5db9bcaf5e..0000000000 --- a/content/language-reference/02.variables/01.constants/floatingPointConstants/variable.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -title: Floating Point Constants -categories: "Variables" -subCategories: "Constants" ---- diff --git a/content/language-reference/02.variables/category.md b/content/language-reference/02.variables/category.md deleted file mode 100644 index 4fde55a63b..0000000000 --- a/content/language-reference/02.variables/category.md +++ /dev/null @@ -1,3 +0,0 @@ ---- -title: Variables ---- \ No newline at end of file diff --git a/content/language-reference/03.structure/category.md b/content/language-reference/03.structure/category.md deleted file mode 100644 index 27a8d5a88d..0000000000 --- a/content/language-reference/03.structure/category.md +++ /dev/null @@ -1,3 +0,0 @@ ---- -title: Structure ---- \ No newline at end of file diff --git a/content/language-reference/language-reference.md b/content/language-reference/language-reference.md deleted file mode 100644 index 6d7a19f7f3..0000000000 --- a/content/language-reference/language-reference.md +++ /dev/null @@ -1,3 +0,0 @@ ---- -title: Language Reference ---- \ No newline at end of file diff --git a/content/programming/01.language-reference/language-reference.md b/content/programming/01.language-reference/language-reference.md index dddca90af8..2150f79ade 100644 --- a/content/programming/01.language-reference/language-reference.md +++ b/content/programming/01.language-reference/language-reference.md @@ -1,6 +1,6 @@ --- title: Language Reference -url: https://www.arduino.cc/reference/en/ +url: /language-reference/ external: true icon: IconArduino links: diff --git a/package-lock.json b/package-lock.json index d829322691..ade9cb939e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10,7 +10,7 @@ "hasInstallScript": true, "license": "ISC", "dependencies": { - "@arduino/docs-arduino-cc": "^2.0.9-hotfix1", + "@arduino/docs-arduino-cc": "^2.0.10", "gatsby": "^5.11.0", "gatsby-background-image": "^1.6.0", "gatsby-image": "^3.11.0", @@ -339,9 +339,9 @@ } }, "node_modules/@arduino/docs-arduino-cc": { - "version": "2.0.9-hotfix1", - "resolved": "https://npm.pkg.github.com/download/@arduino/docs-arduino-cc/2.0.9-hotfix1/b1228bdc4eb4bd46bee2af9fe8e5c058a411388b", - "integrity": "sha512-uSwFeuimmH18JhoTaa7m8h5lSYWNzHvUxRyqwZvkhsHNF41+3u4KnLOFtgRTlTV73qRQvclAQDBSowyPtw9GDA==", + "version": "2.0.10", + "resolved": "https://npm.pkg.github.com/download/@arduino/docs-arduino-cc/2.0.10/f1a181a0d14f0eb4b6efe8b4f2dd021fee82324a", + "integrity": "sha512-2Cl1E/9+ASiIeZMXk3zvHD+6jafCD6mQeZW+oZHPs6vpz0T69P7dHW+D/hVfeMh6X1XLRBGcixNYsKzoFCilVg==", "dependencies": { "@algolia/autocomplete-core": "^1.10.0", "@algolia/autocomplete-plugin-recent-searches": "^1.17.0", @@ -366,6 +366,7 @@ "gatsby-plugin-google-tagmanager": "^5.11.0", "gatsby-plugin-image": "^3.11.0", "gatsby-plugin-mdx": "^3.9.0", + "gatsby-plugin-react-i18next": "^3.0.1", "gatsby-plugin-sass": "^6.11.0", "gatsby-plugin-segment-js": "^5.0.0", "gatsby-plugin-sharp": "^5.11.0", @@ -377,6 +378,7 @@ "gatsby-transformer-remark": "^6.11.0", "gatsby-transformer-sharp": "^5.11.0", "gbimage-bridge": "^0.2.2", + "i18next": "^23.11.1", "js-yaml": "^4.1.0", "lodash.throttle": "^4.1.1", "node-fetch": "^2.6.7", @@ -388,6 +390,7 @@ "react-content-loader": "^6.2.1", "react-dom": "^18.2.0", "react-helmet": "^6.1.0", + "react-i18next": "^14.1.0", "react-instantsearch-dom": "^6.40.4", "react-masonry-css": "^1.0.16", "react-popper": "^2.3.0", @@ -2183,9 +2186,9 @@ "integrity": "sha512-x/rqGMdzj+fWZvCOYForTghzbtqPDZ5gPwaoNGHdgDfF2QA/XZbCBp4Moo5scrkAMPhB7z26XM/AaHuIJdgauA==" }, "node_modules/@babel/runtime": { - "version": "7.22.10", - "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.22.10.tgz", - "integrity": "sha512-21t/fkKLMZI4pqP2wlmsQAWnYW1PDyKyyUV4vCi+B25ydmdaYTKXPwCj0BzSUnZf4seIiYvSA3jcZ3gdsMFkLQ==", + "version": "7.24.4", + "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.24.4.tgz", + "integrity": "sha512-dkxf7+hn8mFBwKjs9bvBlArzLVxVbS8usaPUDd5p2a9JCL9tB8OaOVN1isD4+Xyk4ns89/xeOmbQvgdK7IIVdA==", "dependencies": { "regenerator-runtime": "^0.14.0" }, @@ -8377,6 +8380,11 @@ "node": ">=8" } }, + "node_modules/browser-lang": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/browser-lang/-/browser-lang-0.2.1.tgz", + "integrity": "sha512-+xmtsTxVZKWrKHoNUQp4Tm7BEXlnMwOMAHZAh1SSot1+n04qHLFIH0K5anX52k5BkcauggbaNlWT8f3bVwDh/Q==" + }, "node_modules/browserslist": { "version": "4.22.2", "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.22.2.tgz", @@ -13226,6 +13234,28 @@ "gatsby": "^5.0.0-next" } }, + "node_modules/gatsby-plugin-react-i18next": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/gatsby-plugin-react-i18next/-/gatsby-plugin-react-i18next-3.0.1.tgz", + "integrity": "sha512-lN7ybB433iPHorQH9fP7HT0slEvll3NM9FjOXeWXJ+Bjizvy8XLU0pZ3D5/vyFjCp1JHAaulWnMcQS5XMgl1hw==", + "dependencies": { + "bluebird": "^3.7.2", + "browser-lang": "^0.2.1", + "outdent": "^0.8.0", + "path-to-regexp": "^6.2.1" + }, + "peerDependencies": { + "gatsby": "^5.2.0", + "i18next": "^22.0.6", + "react": "^18.x", + "react-i18next": "^12.0.0" + } + }, + "node_modules/gatsby-plugin-react-i18next/node_modules/path-to-regexp": { + "version": "6.2.2", + "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-6.2.2.tgz", + "integrity": "sha512-GQX3SSMokngb36+whdpRXE+3f9V8UzyAorlYvOGx87ufGHehNTn5lCxrKtLyZ4Yl/wEKnNnr98ZzOwwDZV5ogw==" + }, "node_modules/gatsby-plugin-sass": { "version": "6.13.0", "resolved": "https://registry.npmjs.org/gatsby-plugin-sass/-/gatsby-plugin-sass-6.13.0.tgz", @@ -14916,6 +14946,14 @@ } ] }, + "node_modules/html-parse-stringify": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/html-parse-stringify/-/html-parse-stringify-3.0.1.tgz", + "integrity": "sha512-KknJ50kTInJ7qIScF3jeaFRpMpE8/lfiTdzf/twXyPBLAGrLRTmkz3AdTnKeh40X8k9L2fdYwEp/42WGXIRGcg==", + "dependencies": { + "void-elements": "3.1.0" + } + }, "node_modules/html-void-elements": { "version": "1.0.5", "resolved": "https://registry.npmjs.org/html-void-elements/-/html-void-elements-1.0.5.tgz", @@ -14988,6 +15026,28 @@ "resolved": "https://registry.npmjs.org/hyphenate-style-name/-/hyphenate-style-name-1.0.4.tgz", "integrity": "sha512-ygGZLjmXfPHj+ZWh6LwbC37l43MhfztxetbFCoYTM2VjkIUpeHgSNn7QIyVFj7YQ1Wl9Cbw5sholVJPzWvC2MQ==" }, + "node_modules/i18next": { + "version": "23.11.2", + "resolved": "https://registry.npmjs.org/i18next/-/i18next-23.11.2.tgz", + "integrity": "sha512-qMBm7+qT8jdpmmDw/kQD16VpmkL9BdL+XNAK5MNbNFaf1iQQq35ZbPrSlqmnNPOSUY4m342+c0t0evinF5l7sA==", + "funding": [ + { + "type": "individual", + "url": "https://locize.com" + }, + { + "type": "individual", + "url": "https://locize.com/i18next.html" + }, + { + "type": "individual", + "url": "https://www.i18next.com/how-to/faq#i18next-is-awesome.-how-can-i-support-the-project" + } + ], + "dependencies": { + "@babel/runtime": "^7.23.2" + } + }, "node_modules/iconv-lite": { "version": "0.4.24", "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz", @@ -20573,6 +20633,11 @@ "node": ">=0.10.0" } }, + "node_modules/outdent": { + "version": "0.8.0", + "resolved": "https://registry.npmjs.org/outdent/-/outdent-0.8.0.tgz", + "integrity": "sha512-KiOAIsdpUTcAXuykya5fnVVT+/5uS0Q1mrkRHcF89tpieSmY33O/tmc54CqwA+bfhbtEfZUNLHaPUiB9X3jt1A==" + }, "node_modules/p-cancelable": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/p-cancelable/-/p-cancelable-2.1.1.tgz", @@ -22427,6 +22492,27 @@ "react": ">=16.3.0" } }, + "node_modules/react-i18next": { + "version": "14.1.0", + "resolved": "https://registry.npmjs.org/react-i18next/-/react-i18next-14.1.0.tgz", + "integrity": "sha512-3KwX6LHpbvGQ+sBEntjV4sYW3Zovjjl3fpoHbUwSgFHf0uRBcbeCBLR5al6ikncI5+W0EFb71QXZmfop+J6NrQ==", + "dependencies": { + "@babel/runtime": "^7.23.9", + "html-parse-stringify": "^3.0.1" + }, + "peerDependencies": { + "i18next": ">= 23.2.3", + "react": ">= 16.8.0" + }, + "peerDependenciesMeta": { + "react-dom": { + "optional": true + }, + "react-native": { + "optional": true + } + } + }, "node_modules/react-instantsearch-core": { "version": "6.40.4", "resolved": "https://registry.npmjs.org/react-instantsearch-core/-/react-instantsearch-core-6.40.4.tgz", @@ -26371,6 +26457,14 @@ "url": "https://opencollective.com/unified" } }, + "node_modules/void-elements": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/void-elements/-/void-elements-3.1.0.tgz", + "integrity": "sha512-Dhxzh5HZuiHQhbvTW9AMetFfBHDMYpo23Uo9btPXgdYP+3T5S+p+jgNy7spra+veYhBP2dCSgxR/i2Y02h5/6w==", + "engines": { + "node": ">=0.10.0" + } + }, "node_modules/warning": { "version": "4.0.3", "resolved": "https://registry.npmjs.org/warning/-/warning-4.0.3.tgz", diff --git a/package.json b/package.json index 0c9fa55958..eb7fe32e93 100644 --- a/package.json +++ b/package.json @@ -18,7 +18,7 @@ }, "homepage": "https://github.com/arduino/docs-content#readme", "dependencies": { - "@arduino/docs-arduino-cc": "^2.0.9-hotfix1", + "@arduino/docs-arduino-cc": "^2.0.10", "gatsby": "^5.11.0", "gatsby-background-image": "^1.6.0", "gatsby-image": "^3.11.0",