-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #640 from interlay/generate_docs
chore: update docs generator and dev dependencies
- Loading branch information
Showing
7 changed files
with
31 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
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 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,18 +1,12 @@ | ||
#!/bin/sh | ||
|
||
cp -r docs/helpers tmp_docs_helpers/ | ||
rm -rf ./docs | ||
set -eux | ||
|
||
# typedoc config is defined in typedoc.json | ||
npx typedoc | ||
|
||
cp -r tmp_docs_helpers docs/helpers | ||
cp -r docs/helpers/* docs/ | ||
|
||
# The sidebar is a copy of the modules file (which summarises all project files). | ||
# We only keep the links and remove the actual definitions, which will be displayed | ||
# in the main section of the page | ||
sed -n '/^### BTC Bridge Classes$/,$p' ./docs/modules.md > ./docs/tmp.md | ||
sed -n '/^## Type aliases$/q;p' ./docs/tmp.md > ./docs/_sidebar.md | ||
rm ./docs/tmp.md | ||
rm -rf tmp_docs_helpers |
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