diff options
author | A. Unique TensorFlower <gardener@tensorflow.org> | 2017-02-27 12:50:37 -0800 |
---|---|---|
committer | TensorFlower Gardener <gardener@tensorflow.org> | 2017-02-27 13:21:36 -0800 |
commit | 1c707ac780313f48a6733dc3beedf4b8a2b3df77 (patch) | |
tree | 2838bcd78b124908490ada04801bc7f558d6f92d /tensorflow/g3doc/README.txt | |
parent | e45decb6f5bb9c965653175223827c0c962d41f7 (diff) |
We've moved from using the docs in g3doc/ to docs_src/ files, which
get additional processing before being published.
Change: 148682342
Diffstat (limited to 'tensorflow/g3doc/README.txt')
-rw-r--r-- | tensorflow/g3doc/README.txt | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/tensorflow/g3doc/README.txt b/tensorflow/g3doc/README.txt new file mode 100644 index 0000000000..4f4076db37 --- /dev/null +++ b/tensorflow/g3doc/README.txt @@ -0,0 +1,46 @@ +Docs have moved! If you just want to view TensorFlow documentation, +go to: + + https://www.tensorflow.org/ + +Documentation (on Github, tensorflow.org, and anywhere else we decide to +serve it from) is now generated from the files in +third_party/tensorflow/docs_src/ (for tutorials and other guides) and +TensorFlow source code (for the API reference pages). If you see a problem with +API reference, edit the code comments in the appropriate language. If you see a +problem with our other docs, edit the files in docs_src. + +To preview the results of your changes, or generate an offline copy of +the docs, run: + + bazel run -- tensorflow/tools/docs:generate \ + --src_dir=tensorflow/docs_src/ \ + --output_dir=/tmp/tfdocs/ + +When authoring docs, note that we have some new syntax for references -- +at least for docs coming from Python docstrings or +tensorflow/docs_src/. Use: + +* @{tf.symbol} to make a link to the reference page for a Python + symbol. Note that class members don't get their own page, but the + syntax still works, since @{tf.MyClass.method} links to the right + part of the tf.MyClass page. + + +* @{tensorflow::symbol} to make a link to the reference page for a C++ + symbol. (This only works for a few symbols but will work for more soon.) + +* @{$doc_page} to make a link to another (not an API reference) doc + page. To link to + - red/green/blue/index.md use @{$blue} or @{$green/blue}, + - foo/bar/baz.md use @{$baz} or @{$bar/baz}. + The shorter one is preferred, so we can move pages around without + breaking these references. The main exception is that the Python API + guides should probably be referred to using @{$python/<guide-name>} + to avoid ambiguity. To link to an anchor in that doc and use + different link text (by default it uses the title of the target + page) use: + @{$doc_page#anchor-tag$link-text} + (You can skip #anchor-tag if you just want to override the link text). + +Thanks! |