Skip to content

Commit

Permalink
Fixed some accessibility, and moved homepage things around.
Browse files Browse the repository at this point in the history
  • Loading branch information
MaanavD committed Nov 14, 2024
1 parent 3733e39 commit a8c9530
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 17 deletions.
16 changes: 8 additions & 8 deletions docs/install/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ pip install -i https://aiinfra.pkgs.visualstudio.com/PublicPackages/_packaging/O
<!-- TODO (baijumeswani) - Update to Training link once published -->
<td><a href="https://www.nuget.org/packages/Microsoft.ML.OnnxRuntime">Microsoft.ML.OnnxRuntime.Training</a></td>
<td>
<pre lang="bash">dotnet add package Microsoft.ML.OnnxRuntime.Training</pre>
<code>dotnet add package Microsoft.ML.OnnxRuntime.Training</code>
</td>
</tr>
<!-- <tr>
Expand Down Expand Up @@ -323,7 +323,7 @@ pip install -i https://aiinfra.pkgs.visualstudio.com/PublicPackages/_packaging/O
<td>Python</td>
<td><a href="https://pypi.org/project/onnxruntime-training/">onnxruntime-training</a></td>
<td>
<pre lang="bash">pip install onnxruntime-training</pre>
<code>pip install onnxruntime-training</code>
</td>
</tr>
<tr>
Expand All @@ -345,19 +345,19 @@ pip install -i https://aiinfra.pkgs.visualstudio.com/PublicPackages/_packaging/O
<td><a href="https://mvnrepository.com/artifact/com.microsoft.onnxruntime/onnxruntime-android">onnxruntime-training-android</a></td>
<td>In your Android Studio Project, make the following changes to:
<ol>
<li>build.gradle (Project):
<pre lang="gradle">
<li>build.gradle (Project):
<code>
repositories {
mavenCentral()
}
</pre>
</code>
</li>
<li>build.gradle (Module):
<pre lang="gradle">
<li>build.gradle (Module):
<code>
dependencies {
implementation 'com.microsoft.onnxruntime:onnxruntime-training-android:latest.release'
}
</pre>
</code>
</li>
</ol>
</td>
Expand Down
2 changes: 1 addition & 1 deletion src/routes/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,9 @@

<Hero />
<Customers />
<GenerativeAi />
<CodeBlocks />
<VideoGallery {videos} />
<GenerativeAi />
<CrossPlatform />
<Performance />
<TrainingAndInference />
Expand Down
4 changes: 2 additions & 2 deletions src/routes/components/customers.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@
direction="left"
speed="slow"
/>
<div class="container mx-auto md:px-16 px-8 lg:my-10">
<!-- <div class="container mx-auto md:px-16 px-8 lg:my-10">
<h2 class="text-2xl pt-10 pb-4">Learn more about how to use ONNX Runtime with</h2>
<div class="grid md:grid-cols-3 grid-cols-1 gap-4 mx-auto pb-10">
<a
Expand All @@ -245,5 +245,5 @@
><img class="px-10 py-5" src={huggingfacelogoTitle} alt="HuggingFace Logo" /></a
>
</div>
</div>
</div> -->
</div>
2 changes: 1 addition & 1 deletion src/routes/components/generative-ai-hero.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import Ortgenerativeai from '../../images/undraw/image_ortgenerativeai.svelte';
</script>

<div class="container mx-auto px-10 mb-10">
<div class="container mx-auto px-10 my-10">
<div class="grid grid-cols-1 md:grid-cols-2 gap-10">
<div class="">
<h2 class="text-4xl">Generative AI</h2>
Expand Down
10 changes: 5 additions & 5 deletions src/routes/components/hero.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
'C++',
'Browser'
];
let activeWord = 'Cross-Platform';
let activeWord = 'Edge';
let currentWord = 0;
let cycleWord = () => {
currentWord = (currentWord + 1) % words.length;
Expand All @@ -37,7 +37,7 @@
};
setTimeout(cycleWord, 2000);
let pythonCode = 'pip install onnxruntime';
let nugetCode = 'nuget install Microsoft.ML.OnnxRuntime';
let gaiCode = 'pip install onnxruntime-genai';
let copied = false;
let copy = async (code: string) => {
try {
Expand Down Expand Up @@ -112,11 +112,11 @@
</div>
<div class="grid grid-cols-6 border-solid border-2 border-secondary">
<div class="col-span-5">
<Highlight language={bash} code={nugetCode} />
<Highlight language={bash} code={gaiCode} />
</div>
<button
aria-label="copy nuget code"
on:click={() => copy(nugetCode)}
on:click={() => copy(gaiCode)}
class="col-span-1 btn rounded-none h-full *:hover:scale-125 *:hover:transition *:hover:duration-200"
><span class="min-w-6 h-6"><FaRegClipboard /></span></button
>
Expand All @@ -127,7 +127,7 @@
</p> -->
<p class="text-lg mt-2">
<a class="text-blue-700 font-medium" href="./getting-started"
>Don't see your favorite platform? See the many others we support →</a
>Interested in using other languages? See the many others we support →</a
>
</p>
</div>
Expand Down

0 comments on commit a8c9530

Please sign in to comment.