File: doc.sh

package info (click to toggle)
adapt 1.0.0-1.1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 344 kB
  • sloc: python: 2,112; sh: 50; makefile: 3
file content (20 lines) | stat: -rwxr-xr-x 385 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/bash
TOP=$(cd $(dirname $0) && pwd)

function doc() {
  local MODULE=$1
  local OUTPUT_DIR=${TOP}/build/doc/html/$(dirname $MODULE)
  PYTHONPATH=. pdoc --html\
       --overwrite\
       --html-dir ${OUTPUT_DIR}\
       $MODULE
}
cd ${TOP}
doc adapt
for i in $(find adapt/*| grep -v pyc); do
  doc $i
done
for i in $(find adapt/* -type d | sed -s 's/\//./g'); do
  doc $i
done