-
Notifications
You must be signed in to change notification settings - Fork 113
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d02bc8c
commit 7d4ab95
Showing
5 changed files
with
69 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
--- | ||
title: "Espressif ESP32 Core Board V2" | ||
title: "ESP32 Core Board V2" | ||
weight: 3 | ||
--- | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,14 @@ | ||
all: | ||
go run . `tinygo targets` | ||
go run . --machine --interfaces --pins --matrix `tinygo targets` | ||
|
||
interfaces: | ||
go run . --interfaces `tinygo targets` | ||
|
||
pins: | ||
go run . --pins `tinygo targets` | ||
|
||
matrix: | ||
go run . --matrix `tinygo targets` | ||
|
||
help: | ||
go run . --help |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,24 @@ | ||
package main | ||
|
||
import ( | ||
"os" | ||
"flag" | ||
"fmt" | ||
|
||
"github.com/tinygo-org/tinygo-site/doc-gen/cmd" | ||
) | ||
|
||
// main just calls the Execute function | ||
func main() { | ||
|
||
createMachineDoc := flag.Bool("machine", false, "re-create machine package documentation for the given targets") | ||
updateBoardInterfaces := flag.Bool("interfaces", false, "update the Interfaces table for the given targets") | ||
updateBoardPins := flag.Bool("pins", false, "update the Pins table for the given targets") | ||
createHardwareMatrix := flag.Bool("matrix", false, "re-create the hardware matrix document") | ||
flag.Parse() | ||
|
||
// get the targets from the list of command line options | ||
targets := os.Args[1:] | ||
cmd.Execute(targets) | ||
targets := flag.Args() | ||
fmt.Printf("Targets: %+q\n", targets) | ||
|
||
cmd.Execute(targets, *createMachineDoc, *updateBoardInterfaces, *updateBoardPins, *createHardwareMatrix) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters