-
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.
Add typedoc to build docs from ESDoc comments (#135)
* Add typedoc to build docs * Cleanup comments
- Loading branch information
Showing
14 changed files
with
139 additions
and
244 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
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
This file was deleted.
Oops, something went wrong.
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,34 @@ | ||
#!/bin/bash | ||
# Copyright 2017-2018 @polkadot/dev authors & contributors | ||
# This software may be modified and distributed under the terms | ||
# of the ISC license. See the LICENSE file for details. | ||
|
||
set -e | ||
|
||
function build_docs () { | ||
ROOT=$1 | ||
|
||
if [ ! -f "$ROOT/.nodoc" ]; then | ||
echo "" | ||
echo "*** Building via typedoc" | ||
|
||
DOCROOT=${ROOT/packages/.} | ||
typedoc --out ./docs/$DOCROOT $ROOT/src | ||
|
||
echo "" | ||
echo "*** Docs completed" | ||
fi | ||
} | ||
|
||
PACKAGES=( $(ls -1d packages/*) ) | ||
|
||
for PACKAGE in "${PACKAGES[@]}"; do | ||
echo "" | ||
echo "*** Executing in $PACKAGE" | ||
|
||
build_docs "$PACKAGE" | ||
done | ||
|
||
cd .. | ||
|
||
exit 0 |
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,15 +1,3 @@ | ||
// Copyright 2017-2018 @polkadot/dev authors & contributors | ||
// This software may be modified and distributed under the terms | ||
// of the ISC license. See the LICENSE file for details. | ||
|
||
/** | ||
* @name bar | ||
* @signature bar (never: number, something: string): boolean | ||
* @summary This is the summary for bar | ||
* @description | ||
* This is the description with another line | ||
* @example | ||
* const bar = require('./bar'); | ||
* | ||
* bar(); | ||
*/ |
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,20 +1,3 @@ | ||
// Copyright 2017-2018 @polkadot/dev authors & contributors | ||
// This software may be modified and distributed under the terms | ||
// of the ISC license. See the LICENSE file for details. | ||
|
||
/** | ||
* @name foo | ||
* @signature foo (something: string): boolean | ||
* @summary This is the summary | ||
* @description | ||
* This is the description | ||
* With another line | ||
* @example | ||
* const foo = require('./foo'); | ||
* | ||
* try { | ||
* foo(); | ||
* } catch (error) { | ||
* console.error | ||
* } | ||
*/ |
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 was deleted.
Oops, something went wrong.
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
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
Oops, something went wrong.