-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Moved MPCL documentation generation to its own application.
- Loading branch information
1 parent
a4cb8d6
commit a7d9f09
Showing
6 changed files
with
40 additions
and
17 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 |
---|---|---|
|
@@ -23,3 +23,4 @@ apps/circuit/circuit | |
apps/garbled/garbled | ||
apps/ot/ot | ||
apps/iter/iter | ||
apps/mpcldoc/mpcldoc |
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
File renamed without changes.
File renamed without changes.
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 |
---|---|---|
@@ -0,0 +1,38 @@ | ||
// | ||
// main.go | ||
// | ||
// Copyright (c) 2019-2023 Markku Rossi | ||
// | ||
// All rights reserved. | ||
// | ||
|
||
package main | ||
|
||
import ( | ||
"flag" | ||
"fmt" | ||
"log" | ||
"os" | ||
) | ||
|
||
func main() { | ||
dir := flag.String("dir", ",apidoc", | ||
"generate documentation to the argument directory") | ||
flag.Parse() | ||
|
||
log.SetFlags(0) | ||
|
||
if len(flag.Args()) == 0 { | ||
fmt.Println("no files specified") | ||
os.Exit(1) | ||
} | ||
|
||
doc, err := NewHTMLDoc(*dir) | ||
if err != nil { | ||
log.Fatal(err) | ||
} | ||
err = documentation(flag.Args(), doc) | ||
if err != nil { | ||
log.Fatal(err) | ||
} | ||
} |