mirror of
https://github.com/tridactyl/tridactyl.git
synced 2026-09-10 07:16:33 -04:00
Most of the changed lines in this are from random breaking changes in typedoc meaning that lots of docstrings needed to be rewritten
21 lines
713 B
Bash
Executable file
21 lines
713 B
Bash
Executable file
#!/bin/sh
|
|
set -e
|
|
|
|
dest=generated/static/docs
|
|
if revision=$(git rev-parse HEAD 2>/dev/null); then
|
|
set -- --basePath src --disableGit --gitRevision "$revision" \
|
|
--sourceLinkTemplate 'https://github.com/tridactyl/tridactyl/blob/{gitRevision}/src/{path}#L{line}'
|
|
else
|
|
set -- --disableSources
|
|
fi
|
|
"$(yarn bin)/typedoc" --plugin ./scripts/typedoc-theme.mjs \
|
|
--theme tridactyl --router tridactyl \
|
|
"$@" \
|
|
--entryPointStrategy expand --validation.notExported false \
|
|
--excludePrivate false --excludePrivateClassFields false \
|
|
--includeHierarchySummary false \
|
|
--exclude "src/**/?(test_utils|*.test).ts" \
|
|
--out "$dest" src
|
|
rm -rf build/static/docs
|
|
cp -r "$dest" build/static/
|