Skip to content
This repository was archived by the owner on Nov 29, 2023. It is now read-only.

Commit b68df44

Browse files
docs: change relative URLs to absolute URLs to fix broken links (#40)
* changes without context autosynth cannot find the source of changes triggered by earlier changes in this repository, or by version upgrades to tools such as linters. * docs: change relative URLs to absolute URLs to fix broken links. PiperOrigin-RevId: 314438331 Source-Author: Google APIs <[email protected]> Source-Date: Tue Jun 2 17:40:38 2020 -0700 Source-Repo: googleapis/googleapis Source-Sha: 55094be6405640329ddc93730962b9f7e68a0fc1 Source-Link: googleapis/googleapis@55094be
1 parent 6ce76b6 commit b68df44

File tree

6 files changed

+37
-24
lines changed

6 files changed

+37
-24
lines changed

docs/conf.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
"sphinx.ext.napoleon",
3939
"sphinx.ext.todo",
4040
"sphinx.ext.viewcode",
41+
"recommonmark",
4142
]
4243

4344
# autodoc/autosummary flags
@@ -49,10 +50,6 @@
4950
# Add any paths that contain templates here, relative to this directory.
5051
templates_path = ["_templates"]
5152

52-
# Allow markdown includes (so releases.md can include CHANGLEOG.md)
53-
# http://www.sphinx-doc.org/en/master/markdown.html
54-
source_parsers = {".md": "recommonmark.parser.CommonMarkParser"}
55-
5653
# The suffix(es) of source filenames.
5754
# You can specify multiple suffix as a list of string:
5855
# source_suffix = ['.rst', '.md']

google/cloud/texttospeech_v1/types/cloud_tts.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ class SynthesisInput(proto.Message):
146146
be valid and well-formed. Otherwise the RPC will fail and
147147
return [google.rpc.Code.INVALID_ARGUMENT][]. For more
148148
information, see
149-
`SSML </speech/text-to-speech/docs/ssml>`__.
149+
`SSML <https://cloud.google.com/text-to-speech/docs/ssml>`__.
150150
"""
151151

152152
text = proto.Field(proto.STRING, number=1)

google/cloud/texttospeech_v1beta1/types/cloud_tts.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ class SynthesisInput(proto.Message):
146146
be valid and well-formed. Otherwise the RPC will fail and
147147
return [google.rpc.Code.INVALID_ARGUMENT][]. For more
148148
information, see
149-
`SSML </speech/text-to-speech/docs/ssml>`__.
149+
`SSML <https://cloud.google.com/text-to-speech/docs/ssml>`__.
150150
"""
151151

152152
text = proto.Field(proto.STRING, number=1)

noxfile.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ def docs(session):
139139
"""Build the docs for this library."""
140140

141141
session.install("-e", ".")
142-
session.install("sphinx<3.0.0", "alabaster", "recommonmark")
142+
session.install("sphinx", "alabaster", "recommonmark")
143143

144144
shutil.rmtree(os.path.join("docs", "_build"), ignore_errors=True)
145145
session.run(

samples/snippets/noxfile.py

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -37,22 +37,24 @@
3737

3838
TEST_CONFIG = {
3939
# You can opt out from the test for specific Python versions.
40-
"ignored_versions": ["2.7"],
40+
'ignored_versions': ["2.7"],
41+
4142
# An envvar key for determining the project id to use. Change it
4243
# to 'BUILD_SPECIFIC_GCLOUD_PROJECT' if you want to opt in using a
4344
# build specific Cloud project. You can also use your own string
4445
# to use your own Cloud project.
45-
"gcloud_project_env": "GCLOUD_PROJECT",
46+
'gcloud_project_env': 'GCLOUD_PROJECT',
4647
# 'gcloud_project_env': 'BUILD_SPECIFIC_GCLOUD_PROJECT',
48+
4749
# A dictionary you want to inject into your test. Don't put any
4850
# secrets here. These values will override predefined values.
49-
"envs": {},
51+
'envs': {},
5052
}
5153

5254

5355
try:
5456
# Ensure we can import noxfile_config in the project's directory.
55-
sys.path.append(".")
57+
sys.path.append('.')
5658
from noxfile_config import TEST_CONFIG_OVERRIDE
5759
except ImportError as e:
5860
print("No user noxfile_config found: detail: {}".format(e))
@@ -67,13 +69,13 @@ def get_pytest_env_vars():
6769
ret = {}
6870

6971
# Override the GCLOUD_PROJECT and the alias.
70-
env_key = TEST_CONFIG["gcloud_project_env"]
72+
env_key = TEST_CONFIG['gcloud_project_env']
7173
# This should error out if not set.
72-
ret["GOOGLE_CLOUD_PROJECT"] = os.environ[env_key]
73-
ret["GCLOUD_PROJECT"] = os.environ[env_key]
74+
ret['GOOGLE_CLOUD_PROJECT'] = os.environ[env_key]
75+
ret['GCLOUD_PROJECT'] = os.environ[env_key]
7476

7577
# Apply user supplied envs.
76-
ret.update(TEST_CONFIG["envs"])
78+
ret.update(TEST_CONFIG['envs'])
7779
return ret
7880

7981

@@ -82,7 +84,7 @@ def get_pytest_env_vars():
8284
ALL_VERSIONS = ["2.7", "3.6", "3.7", "3.8"]
8385

8486
# Any default versions that should be ignored.
85-
IGNORED_VERSIONS = TEST_CONFIG["ignored_versions"]
87+
IGNORED_VERSIONS = TEST_CONFIG['ignored_versions']
8688

8789
TESTED_VERSIONS = sorted([v for v in ALL_VERSIONS if v not in IGNORED_VERSIONS])
8890

@@ -137,7 +139,7 @@ def lint(session):
137139
args = FLAKE8_COMMON_ARGS + [
138140
"--application-import-names",
139141
",".join(local_names),
140-
".",
142+
"."
141143
]
142144
session.run("flake8", *args)
143145

@@ -181,9 +183,9 @@ def py(session):
181183
if session.python in TESTED_VERSIONS:
182184
_session_tests(session)
183185
else:
184-
session.skip(
185-
"SKIPPED: {} tests are disabled for this sample.".format(session.python)
186-
)
186+
session.skip("SKIPPED: {} tests are disabled for this sample.".format(
187+
session.python
188+
))
187189

188190

189191
#

synth.metadata

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,30 @@
33
{
44
"git": {
55
"name": ".",
6-
"remote": "git@github.com:googleapis/python-texttospeech",
7-
"sha": "b265df8e43ac71d22ee3bbdf96b5e3a457b9f956"
6+
"remote": "https://github.com/googleapis/python-texttospeech.git",
7+
"sha": "6ce76b62f41c354ee47b6cb13c52574f91e7a80c"
88
}
99
},
1010
{
1111
"git": {
1212
"name": "googleapis",
1313
"remote": "https://github.com/googleapis/googleapis.git",
14-
"sha": "eafa840ceec23b44a5c21670288107c661252711",
15-
"internalRef": "313488995"
14+
"sha": "55094be6405640329ddc93730962b9f7e68a0fc1",
15+
"internalRef": "314438331"
16+
}
17+
},
18+
{
19+
"git": {
20+
"name": "synthtool",
21+
"remote": "https://github.com/googleapis/synthtool.git",
22+
"sha": "cb3c683e958a4b5c016bb3734436fc1cb887eb7b"
23+
}
24+
},
25+
{
26+
"git": {
27+
"name": "synthtool",
28+
"remote": "https://github.com/googleapis/synthtool.git",
29+
"sha": "cb3c683e958a4b5c016bb3734436fc1cb887eb7b"
1630
}
1731
}
1832
],

0 commit comments

Comments
 (0)