• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#!/usr/bin/env bash
2#
3# Copyright 2021 The ChromiumOS Authors
4# Use of this source code is governed by a BSD-style license that can be
5# found in the LICENSE file.
6
7# Example doc generation commands.
8#
9# Requires both protodot to be in path
10#   https://github.com/seamia/protodot
11#
12# And CROS_ROOT to be set to the root of the Chrome OS checkout
13
14TEST_PLATFORM="${CROS_ROOT}"/infra/proto/src/test_platform
15
16# infra/proto rooted schema
17./render -s "*" "CTP2 API" \
18         "${TEST_PLATFORM}"/v2/request.proto test_api.html
19./render -s "*" "Legacy CTP API" \
20         "${TEST_PLATFORM}"/request.proto legacy_test_api.html
21
22# src/config rooted schema
23./render "Boxster ConfigBundle Proto" \
24         ../proto/chromiumos/config/payload/config_bundle.proto \
25         config_bundle.html
26./render "Boxster FlatConfig Proto" \
27         ../proto/chromiumos/config/payload/flat_config.proto \
28         flat_config.html
29