File: build-docs.sh

package info (click to toggle)
rust-quick-junit 0.5.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 240 kB
  • sloc: xml: 45; awk: 19; sh: 18; makefile: 2
file content (12 lines) | stat: -rwxr-xr-x 499 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
#!/usr/bin/env bash

# Build docs for all crates and direct dependencies. The gawk script turns e.g. "quick-junit v0.1.0"
# into "quick-junit@0.1.0".
cargo tree --depth 1 -e normal --prefix none \
    | gawk '{ gsub(" v", "@", $0); printf("%s\n", $1); }' \
    | xargs printf -- '-p %s\n' \
    | xargs cargo doc --no-deps --lib

# Also drop a _redirects file in the root of the docs directory -- this will be picked up by the
# CI script.
echo "/ /rustdoc/quick_junit/ 301" > target/doc/_redirects