Skip to content

Commit

Permalink
Just try a help doc page
Browse files Browse the repository at this point in the history
  • Loading branch information
microbit-robert committed Nov 22, 2024
1 parent 167cc0b commit d4fc743
Show file tree
Hide file tree
Showing 7 changed files with 2 additions and 131 deletions.
96 changes: 0 additions & 96 deletions _locales/fr/README.md

This file was deleted.

7 changes: 0 additions & 7 deletions _locales/fr/machine-learning-jsdoc-strings.json

This file was deleted.

13 changes: 0 additions & 13 deletions _locales/fr/machine-learning-strings.json

This file was deleted.

3 changes: 0 additions & 3 deletions _locales/fr/onstart.md

This file was deleted.

3 changes: 0 additions & 3 deletions docs/onstart.md

This file was deleted.

6 changes: 1 addition & 5 deletions pxt.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,7 @@
"enums.d.ts",
"pxtextension.ts",
"pxtextension.cpp",
"docs/onstart.md",
"_locales/fr/machine-learning-jsdoc-strings.json",
"_locales/fr/machine-learning-strings.json",
"_locales/fr/README.md",
"_locales/fr/onstart.md"
"docs/on-start.md"
],
"testFiles": [
"autogenerated.ts",
Expand Down
5 changes: 1 addition & 4 deletions pxtextension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ namespace ml {
//% weight=50
//% parts="v2"
//% group="micro:bit (V2)"
//% help=github:pxt-microbit-ml/docs/onstart
//% help=github:pxt-microbit-ml/docs/on-start
export function onStart(event: MlEvent, body: () => void): void {
event.onStartHandler = body;
const wrappedBody = () => {
Expand Down Expand Up @@ -93,7 +93,6 @@ namespace ml {
//% draggableParameters="reporter"
//% parts="v2"
//% group="micro:bit (V2)"
//% help=none
export function onStopDetailed(
event: MlEvent,
body: (duration: number) => void
Expand All @@ -109,7 +108,6 @@ namespace ml {
//% weight=20
//% parts="v2"
//% group="micro:bit (V2)"
//% help=none
export function isDetected(event: MlEvent): boolean {
if (!isRunning()) {
startRunning();
Expand All @@ -122,7 +120,6 @@ namespace ml {
//% block="certainty (\\%) ML $event"
//% weight=10
//% parts="v2"
//% help=none
export function getCertainty(event: MlEvent): number {
const eventValue = event.eventValue;
if (eventValue <= 1) {
Expand Down

0 comments on commit d4fc743

Please sign in to comment.