2019-04-04 11:33:38 +03:00
|
|
|
#!/usr/bin/env bash
|
2021-01-01 21:49:51 +03:00
|
|
|
# Copyright (c) 2021 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved.
|
2019-04-04 11:33:38 +03:00
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
|
|
|
|
2019-04-09 11:30:01 +03:00
|
|
|
# Fix links to external google protobuf documentation
|
2019-04-10 17:42:35 +03:00
|
|
|
re='s,:ref:`(\.?google\.protobuf\.[^<>`\n]*) <(.*)>`, `\1 <https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#\2>`__,g'
|
|
|
|
sed -r "$re" -i docs.rst
|
2019-04-09 11:30:01 +03:00
|
|
|
# Fix links to external google rpc documentation
|
2019-04-10 17:42:35 +03:00
|
|
|
re='s,:ref:`(\.?google\.rpc\.[^<>`\n]*) <(.*)>`, `\1 <https://cloud.google.com/tasks/docs/reference/rpc/google.rpc#\2>`__,g'
|
|
|
|
sed -r "$re" -i docs.rst
|