Skip to content

Commit ab6cde6

Browse files
committed
arch/doc
1 parent 8c7d775 commit ab6cde6

File tree

17 files changed

+5330
-7762
lines changed

17 files changed

+5330
-7762
lines changed

plugins/grok-theme/index.mjs

+1,008-141
Large diffs are not rendered by default.

scripts/doc.sh

+13-2
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,20 @@ rm -rf ./temp-docs
3333

3434
npx typedoc --logLevel Warn
3535

36+
# Rename directories so they can be ordered in the api.md
37+
rm ./temp-docs/README.md
38+
mv ./temp-docs/compute-engine ./temp-docs/01
39+
mv ./temp-docs/math-json ./temp-docs/02
40+
mv ./temp-docs/common ./temp-docs/03
41+
3642
# https://github.com/ozum/concat-md
37-
npx concat-md --decrease-title-levels --dir-name-as-title ./temp-docs > ./src/api.md
43+
npx concat-md --decrease-title-levels --dir-name-as-title --hide-anchor-links ./temp-docs > ./src/api.md
3844

39-
rm -rf ./temp-docs
45+
# Remove `# 01`, `# 02`, `# 03` from the api.md
46+
sed -i '' 's/# 01//g' ./src/api.md
47+
sed -i '' 's/# 02//g' ./src/api.md
48+
sed -i '' 's/# 03//g' ./src/api.md
49+
50+
#rm -rf ./temp-docs
4051

4152
echo -e $LINECLEAR$BASENAME$CHECK$DIM" Building api.md"

0 commit comments

Comments
 (0)