Skip to content

Commit 9723178

Browse files
msaroufimsvekars
andauthored
Hide placeholders in docs (#195)
* Hide placeholders in docs * yolo * yolo * yolo * Update docs/Makefile --------- Co-authored-by: Svetlana Karslioglu <[email protected]>
1 parent 894312d commit 9723178

File tree

3 files changed

+74
-60
lines changed

3 files changed

+74
-60
lines changed

docs/Makefile

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,12 @@ ifneq ($(EXAMPLES_PATTERN),)
66
endif
77

88
# You can set these variables from the command line.
9-
SPHINXOPTS = -W -j auto $(EXAMPLES_PATTERN_OPTS)
9+
10+
# TODO: Revert this when have docs on pytorch.org/ao
11+
# SPHINXOPTS = -W -j auto $(EXAMPLES_PATTERN_OPTS)
12+
# SPHINXOPTS = -WT -j auto --keep-going # enable later when the files are included in the doc build
13+
14+
1015
SPHINXBUILD = sphinx-build
1116
SPHINXPROJ = torchao
1217
SOURCEDIR = source

docs/source/conf.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,12 @@
5858
"remove_config_comments": True,
5959
}
6060

61+
### TODO: Delete this when we have content
62+
suppress_warnings = [
63+
'toc.unlisted',
64+
]
65+
###
66+
6167
napoleon_use_ivar = True
6268
napoleon_numpy_docstring = False
6369
napoleon_google_docstring = True

docs/source/index.rst

Lines changed: 62 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -2,96 +2,99 @@ Welcome to the torchao Documentation
22
=======================================
33

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

7-
.. grid:: 3
8+
..
9+
.. grid:: 3
810
9-
.. grid-item-card:: :octicon:`file-code;1em`
10-
Getting Started
11-
:img-top: _static/img/card-background.svg
12-
:link: getting-started.html
13-
:link-type: url
11+
.. grid-item-card:: :octicon:`file-code;1em`
12+
Getting Started
13+
:img-top: _static/img/card-background.svg
14+
:link: getting-started.html
15+
:link-type: url
1416

15-
Learn about how to get started with torchao
16-
and ts application in your projects.
17+
Learn about how to get started with torchao
18+
and ts application in your projects.
1719

18-
.. grid-item-card:: :octicon:`file-code;1em`
19-
Concepts
20-
:img-top: _static/img/card-background.svg
21-
:link: dtypes.html
22-
:link-type: url
20+
.. grid-item-card:: :octicon:`file-code;1em`
21+
Concepts
22+
:img-top: _static/img/card-background.svg
23+
:link: dtypes.html
24+
:link-type: url
2325

24-
Learn about the key torchao concepts such
25-
as dtypes, quantization, sparsity, among others.
26+
Learn about the key torchao concepts such
27+
as dtypes, quantization, sparsity, among others.
2628

27-
.. grid-item-card:: :octicon:`file-code;1em`
28-
API Reference
29-
:img-top: _static/img/card-background.svg
30-
:link: api_ref_intro.html
31-
:link-type: url
29+
.. grid-item-card:: :octicon:`file-code;1em`
30+
API Reference
31+
:img-top: _static/img/card-background.svg
32+
:link: api_ref_intro.html
33+
:link-type: url
3234

33-
A comprehensive reference for the torchao
34-
API and its functionalities.
35+
A comprehensive reference for the torchao
36+
API and its functionalities.
3537

36-
Tutorials
37-
~~~~~~~~~
38+
Tutorials
39+
~~~~~~~~~
3840

39-
Ready to experiment? Check out some of the
40-
torchao tutorials.
41+
Ready to experiment? Check out some of the
42+
torchao tutorials.
4143

42-
.. customcardstart::
44+
.. customcardstart::
4345

44-
.. customcarditem::
45-
:header: Template Tutorial
46-
:card_description: A placeholder template for demo purposes
47-
:image: _static/img/generic-pytorch-logo.png
48-
:link: tutorials/template_tutorial.html
49-
:tags: template
46+
.. customcarditem::
47+
:header: Template Tutorial
48+
:card_description: A placeholder template for demo purposes
49+
:image: _static/img/generic-pytorch-logo.png
50+
:link: tutorials/template_tutorial.html
51+
:tags: template
5052

51-
.. customcardend::
53+
.. customcardend::
5254

5355

5456
.. ----------------------------------------------------------------------
5557
.. Below is the toctree i.e. it defines the content of the left sidebar.
5658
.. Each of the entry below corresponds to a file.rst in docs/source/.
5759
.. ----------------------------------------------------------------------
5860
59-
.. toctree::
60-
:glob:
61-
:maxdepth: 1
62-
:caption: Getting Started
63-
:hidden:
61+
..
62+
.. toctree::
63+
:glob:
64+
:maxdepth: 1
65+
:caption: Getting Started
66+
:hidden:
6467
65-
overview
66-
getting-started
68+
overview
69+
getting-started
6770

68-
.. toctree::
69-
:glob:
70-
:maxdepth: 1
71-
:caption: Concepts
72-
:hidden:
71+
.. toctree::
72+
:glob:
73+
:maxdepth: 1
74+
:caption: Concepts
75+
:hidden:
7376

74-
dtypes
75-
quantization
76-
sparsity
77-
performant_kernels
77+
dtypes
78+
quantization
79+
sparsity
80+
performant_kernels
7881

79-
.. toctree::
80-
:glob:
81-
:maxdepth: 1
82-
:caption: Tutorials
83-
:hidden:
82+
.. toctree::
83+
:glob:
84+
:maxdepth: 1
85+
:caption: Tutorials
86+
:hidden:
8487

85-
tutorials/template_tutorial
88+
tutorials/template_tutorial
8689

8790
.. toctree::
8891
:glob:
8992
:maxdepth: 1
9093
:caption: API Reference
91-
:hidden:
9294

9395
api_ref_intro
9496
api_ref_sparsity
9597
api_ref_quantization
9698
api_ref_dtypes
97-
api_ref_kernel
99+
..
100+
api_ref_kernel

0 commit comments

Comments
 (0)