Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hide placeholders in docs #195

Merged
merged 5 commits into from
May 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion docs/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,12 @@ ifneq ($(EXAMPLES_PATTERN),)
endif

# You can set these variables from the command line.
SPHINXOPTS = -W -j auto $(EXAMPLES_PATTERN_OPTS)

# TODO: Revert this when have docs on pytorch.org/ao
# SPHINXOPTS = -W -j auto $(EXAMPLES_PATTERN_OPTS)
# SPHINXOPTS = -WT -j auto --keep-going # enable later when the files are included in the doc build


SPHINXBUILD = sphinx-build
SPHINXPROJ = torchao
SOURCEDIR = source
Expand Down
6 changes: 6 additions & 0 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,12 @@
"remove_config_comments": True,
}

### TODO: Delete this when we have content
suppress_warnings = [
'toc.unlisted',
]
###

napoleon_use_ivar = True
napoleon_numpy_docstring = False
napoleon_google_docstring = True
Expand Down
121 changes: 62 additions & 59 deletions docs/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,96 +2,99 @@ Welcome to the torchao Documentation
=======================================

**torchao** is an open-source library that provides the functionality
to quantize and prune your models using native PyTorch.
to quantize and prune your models using native PyTorch. Our documentation is under development
with more content coming soon.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe add a note here that this website in under development and more content is coming soon?

.. grid:: 3
..
.. grid:: 3

.. grid-item-card:: :octicon:`file-code;1em`
Getting Started
:img-top: _static/img/card-background.svg
:link: getting-started.html
:link-type: url
.. grid-item-card:: :octicon:`file-code;1em`
Getting Started
:img-top: _static/img/card-background.svg
:link: getting-started.html
:link-type: url

Learn about how to get started with torchao
and ts application in your projects.
Learn about how to get started with torchao
and ts application in your projects.

.. grid-item-card:: :octicon:`file-code;1em`
Concepts
:img-top: _static/img/card-background.svg
:link: dtypes.html
:link-type: url
.. grid-item-card:: :octicon:`file-code;1em`
Concepts
:img-top: _static/img/card-background.svg
:link: dtypes.html
:link-type: url

Learn about the key torchao concepts such
as dtypes, quantization, sparsity, among others.
Learn about the key torchao concepts such
as dtypes, quantization, sparsity, among others.

.. grid-item-card:: :octicon:`file-code;1em`
API Reference
:img-top: _static/img/card-background.svg
:link: api_ref_intro.html
:link-type: url
.. grid-item-card:: :octicon:`file-code;1em`
API Reference
:img-top: _static/img/card-background.svg
:link: api_ref_intro.html
:link-type: url

A comprehensive reference for the torchao
API and its functionalities.
A comprehensive reference for the torchao
API and its functionalities.

Tutorials
~~~~~~~~~
Tutorials
~~~~~~~~~

Ready to experiment? Check out some of the
torchao tutorials.
Ready to experiment? Check out some of the
torchao tutorials.

.. customcardstart::
.. customcardstart::

.. customcarditem::
:header: Template Tutorial
:card_description: A placeholder template for demo purposes
:image: _static/img/generic-pytorch-logo.png
:link: tutorials/template_tutorial.html
:tags: template
.. customcarditem::
:header: Template Tutorial
:card_description: A placeholder template for demo purposes
:image: _static/img/generic-pytorch-logo.png
:link: tutorials/template_tutorial.html
:tags: template

.. customcardend::
.. customcardend::


.. ----------------------------------------------------------------------
.. Below is the toctree i.e. it defines the content of the left sidebar.
.. Each of the entry below corresponds to a file.rst in docs/source/.
.. ----------------------------------------------------------------------

.. toctree::
:glob:
:maxdepth: 1
:caption: Getting Started
:hidden:
..
.. toctree::
:glob:
:maxdepth: 1
:caption: Getting Started
:hidden:

overview
getting-started
overview
getting-started

.. toctree::
:glob:
:maxdepth: 1
:caption: Concepts
:hidden:
.. toctree::
:glob:
:maxdepth: 1
:caption: Concepts
:hidden:

dtypes
quantization
sparsity
performant_kernels
dtypes
quantization
sparsity
performant_kernels

.. toctree::
:glob:
:maxdepth: 1
:caption: Tutorials
:hidden:
.. toctree::
:glob:
:maxdepth: 1
:caption: Tutorials
:hidden:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can maybe also remove "hidden" from line 93 since this is the only content that will be available on this landing page.


tutorials/template_tutorial
tutorials/template_tutorial

.. toctree::
:glob:
:maxdepth: 1
:caption: API Reference
:hidden:

api_ref_intro
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In the api_ref_intro.rst file need to change:

``torchao`` API Reference
=========================

to

torchao API Reference
====================

So that link doesn't appear in blue: https://docs-preview.pytorch.org/pytorch/ao/195/index.html

api_ref_sparsity
api_ref_quantization
api_ref_dtypes
api_ref_kernel
..
api_ref_kernel
Loading