Skip to content

Commit 4f09d7b

Browse files
svekarsdbort
authored andcommitted
Add the ExecuTorch logo to the ET landing page. (#907)
Summary: Pull Request resolved: #907 - Add the ExecuTorch logo to the index.rst landing page - Modify css to have two-column layout. Reviewed By: mergennachin Differential Revision: D50281822 fbshipit-source-id: 05aed66720775096fd0313115872555bb8cfca39
1 parent d21c856 commit 4f09d7b

File tree

5 files changed

+106
-15
lines changed

5 files changed

+106
-15
lines changed

docs/README.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -161,9 +161,6 @@ outside of the `docs/source` directory, complete the following steps:
161161
2. Include the following in that file:
162162

163163
````
164-
---
165-
orphan: true
166-
---
167164
```{include} ../path-to-your-file/outside-of-the-docs-dir.md```
168165
````
169166

docs/source/_static/css/custom.css

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,3 +120,43 @@ details.sd-dropdown .sd-summary-content {
120120
details.sd-dropdown .highlight .n {
121121
font-weight: normal;
122122
}
123+
124+
.et-page-column1 {
125+
float: left;
126+
width: 70%;
127+
font-size: 1rem;
128+
}
129+
130+
.et-page-column2 {
131+
float: right;
132+
padding-top: 40px;
133+
padding-left: 60px;
134+
padding-right: 60px;
135+
padding-bottom: 60px;
136+
width: 30%;
137+
}
138+
139+
.et-page-column-row:after {
140+
content: "";
141+
display: table;
142+
clear: both;
143+
}
144+
145+
/* For screens smaller than 768px (typical mobile devices) */
146+
@media screen and (max-width: 768px) {
147+
.et-page-column1, .et-page-column2 {
148+
float: none; /* Remove floats */
149+
width: 100%; /* Full width for both columns */
150+
padding: 0;
151+
font-size: 1rem;
152+
}
153+
154+
.et-page-column2 img {
155+
display: none;
156+
}
157+
.et-page-column-row:after {
158+
content: "";
159+
display: table;
160+
clear: both;
161+
}
162+
}
Lines changed: 57 additions & 0 deletions
Loading

docs/source/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@
7272
"xml", # {repo_root}/docs/cpp/build/xml
7373
)
7474

75-
75+
html_favicon = "_static/img/ExecuTorch-Logo-cropped.svg"
7676
breathe_projects = {"ExecuTorch": "../build/xml/"}
7777
breathe_default_project = "ExecuTorch"
7878

docs/source/index.rst

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,14 @@ Welcome to the ExecuTorch Documentation
1313
`GitHub repository <https://github.com/pytorch/executorch/issues>`__ for bug
1414
reporting.
1515

16-
**ExecuTorch** is a PyTorch platform that provides infrastructure to run
17-
PyTorch programs everywhere from AR/VR wearables to standard on-device
18-
iOS and Android mobile deployments. One of the main
19-
goals for ExecuTorch is to enable wider customization and deployment
20-
capabilities of the PyTorch programs.
21-
22-
ExecuTorch heavily relies on such PyTorch technologies as `torch.compile
23-
<https://pytorch.org/docs/stable/torch.compiler.html>`__ and `torch.export
24-
<https://pytorch.org/docs/main/export.html>`__. If you are not familiar with
25-
these APIs, you might want to read about them in the PyTorch documentation
26-
before diving into the ExecuTorch documentation.
16+
.. raw:: html
17+
18+
<div class="et-page-column-row">
19+
<div class="et-page-column1"><p><strong>ExecuTorch</strong> is a PyTorch platform that provides infrastructure to run PyTorch programs everywhere from AR/VR wearables to standard on-device iOS and Android mobile deployments. One of the main goals for ExecuTorch is to enable wider customization and deployment capabilities of the PyTorch programs.</p>
20+
<p>ExecuTorch heavily relies on such PyTorch technologies as <a href="https://pytorch.org/docs/stable/torch.compiler.html">torch.compile</a> and <a href="https://pytorch.org/docs/main/export.html">torch.export</a>. If you are not familiar with these APIs, you might want to read about them in the PyTorch documentation before diving into the ExecuTorch documentation.</p></div>
21+
<div class="et-page-column2"><img src="_static/img/ExecuTorch-Logo-cropped.svg" alt="ExecuTorch logo" title="ExecuTorch logo"></div>
22+
</div>
23+
2724

2825
Getting Started
2926
~~~~~~~~~~~~~~~

0 commit comments

Comments
 (0)