aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/tools/docs
diff options
context:
space:
mode:
authorGravatar Mark Daoust <markdaoust@google.com>2018-08-29 21:19:32 -0700
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2018-08-29 21:23:25 -0700
commit3e4ded0232e00341f3b9ba3299dc8c7cb2a9d62f (patch)
tree22a0fa69702227cc85be62f48b5c659113c2cae5 /tensorflow/tools/docs
parent729e39b1a4f0f7a6b3e35a04bf8bbba5e921862b (diff)
Switch guide_index to search for `` references instead of deprecated @{} references.
+ Capitalize default version hint. PiperOrigin-RevId: 210846291
Diffstat (limited to 'tensorflow/tools/docs')
-rw-r--r--tensorflow/tools/docs/generate_lib.py4
-rw-r--r--tensorflow/tools/docs/parser.py2
2 files changed, 3 insertions, 3 deletions
diff --git a/tensorflow/tools/docs/generate_lib.py b/tensorflow/tools/docs/generate_lib.py
index 090cf48a07..483921fc2f 100644
--- a/tensorflow/tools/docs/generate_lib.py
+++ b/tensorflow/tools/docs/generate_lib.py
@@ -418,8 +418,8 @@ class _GenerateGuideIndex(py_guide_parser.PyGuideParser):
self.section_tag = tag
def process_line(self, _, line):
- """Index @{symbol} references as in the current file & section."""
- for match in parser.SYMBOL_REFERENCE_RE.finditer(line):
+ """Index the file and section of each `symbol` reference."""
+ for match in parser.AUTO_REFERENCE_RE.finditer(line):
val = self.index.get(match.group(1), [])
val.append(
_GuideRef(self.base_name, self.title, self.section_title,
diff --git a/tensorflow/tools/docs/parser.py b/tensorflow/tools/docs/parser.py
index 8e444a15cf..997afc6ac7 100644
--- a/tensorflow/tools/docs/parser.py
+++ b/tensorflow/tools/docs/parser.py
@@ -1698,7 +1698,7 @@ class _Metadata(object):
version: The source version.
"""
- def __init__(self, name, version='stable'):
+ def __init__(self, name, version='Stable'):
"""Creates a Metadata builder.
Args: