Skip to content

Commit

Permalink
[DOCS][REFACTOR] Reorganize the docs. (apache#6146)
Browse files Browse the repository at this point in the history
- Move most toctree to `:hiden:` so there can be top-level categorizations in the navigation bar.
- Move frontend guide into design and developer guides
- Move get started tutorials into its separate folder.

Co-authored-by: Chris Hoge <chris@hogepodge.com>

Co-authored-by: Chris Hoge <chris@hogepodge.com>
  • Loading branch information
2 people authored and Trevor Morris committed Sep 2, 2020
1 parent cd0243e commit b3edfad
Show file tree
Hide file tree
Showing 11 changed files with 87 additions and 27 deletions.
4 changes: 2 additions & 2 deletions docs/api/links.rst
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
specific language governing permissions and limitations
under the License.
Links to API References
=======================
Links to Other API References
=============================

This page contains links to API references that are build with different doc build system.

Expand Down
3 changes: 2 additions & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,8 @@
gallery_dirs = ["tutorials", "vta/tutorials"]

subsection_order = ExplicitOrder(
['../tutorials/frontend',
['../tutorials/get_started',
'../tutorials/frontend',
'../tutorials/language',
'../tutorials/optimize',
'../tutorials/autotvm',
Expand Down
File renamed without changes.
31 changes: 31 additions & 0 deletions docs/dev/how_to.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
.. Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
.. http://www.apache.org/licenses/LICENSE-2.0
.. Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
.. _dev-how-to:

Developer How-To Guide
======================
This section contains a collection of tips about how to work on
various areas of the TVM stack.

.. toctree::
:maxdepth: 1

relay_add_op
relay_add_pass
relay_bring_your_own_codegen
codebase_walkthrough
16 changes: 6 additions & 10 deletions docs/dev/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ This page is organized as follows:
- The `Logical Architecture Components`_ section describes the logical components.
The sections after are specific guides focused on each logical component, organized
by the component's name.
- The `How Tos`_ section contains useful tutorials to solve specific development problems.
- Feel free to also checkout the :ref:`dev-how-to` for useful development tips.

This guide provides a few complementary views of the architecture.
First, we review a single end-to-end compilation flow and discuss the key data structures and the transformations.
Expand Down Expand Up @@ -375,19 +375,15 @@ customize the search and plugin their algorithms from the Python binding.

benchmark


How Tos
-------
This section contains a collection of tips about how to work on
various areas of the TVM stack.
Frontends
---------
Frontends ingest models from different frameworks into the TVM stack.
:py:mod:`tvm.relay.frontend` is the namespace for model ingestion APIs.

.. toctree::
:maxdepth: 1

relay_add_op
relay_add_pass
relay_bring_your_own_codegen
codebase_walkthrough
frontend/tensorflow


Security
Expand Down
54 changes: 43 additions & 11 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -18,43 +18,75 @@
TVM Documentation
=================

TVM is an open deep learning compiler stack for CPUs, GPUs, and specialized accelerators. It aims to close the gap between the productivity-focused deep learning frameworks, and the performance- or efficiency-oriented hardware backends.


Get Started
-----------

- Follow the :doc:`instructions <install/index>` to install TVM.
- Checkout the :doc:`Tutorials <tutorials/index>`.

For Developers
--------------

- :doc:`dev/index` is useful for developers who want to understand the
architecture of TVM and/or actively develop on the project.
- :doc:`dev/how_to` gives quick development tips on various topics.


.. toctree::
:maxdepth: 1
:caption: Get Started
:hidden:

install/index
contribute/index

.. toctree::
:maxdepth: 1
:caption: Tutorials
:hidden:

tutorials/index
vta/index


.. toctree::
:maxdepth: 1
:caption: How-to Guide
:hidden:

deploy/index
contribute/index
faq

API Reference
-------------
.. toctree::
:maxdepth: 2
:caption: References
:hidden:

langref/index
api/python/index
api/links

Developer Guide
---------------
.. toctree::
:maxdepth: 2
:hidden:
:caption: For Developers

dev/index
dev/how_to

Frontends
---------
.. toctree::
:maxdepth: 1
:maxdepth: 2
:hidden:
:caption: MISC

vta/index
faq

frontend/tensorflow

Index
-----

.. toctree::
:maxdepth: 1

Expand Down
4 changes: 1 addition & 3 deletions tutorials/README.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
Tutorials
=========
This page contains the tutorials about TVM.

2 changes: 2 additions & 0 deletions tutorials/get_started/README.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Get Started Tutorials
---------------------
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit b3edfad

Please sign in to comment.