tridactyl.tridactyl/scripts/make_docs.sh
Oliver Blanthorn fcb55685d2
Update to ts6
Most of the changed lines in this are from random
breaking changes in typedoc meaning that lots of
docstrings needed to be rewritten
2026-07-20 00:24:35 +02:00

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/