Skip to content

Commit c56bcac

Browse files
committed
UI changes for documentation
1 parent 1332bcd commit c56bcac

File tree

9 files changed

+161
-237
lines changed

9 files changed

+161
-237
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ __pycache__/
1616
/.mypy_cache
1717

1818
/doc/_apidoc/
19+
doc/_build/
1920
/build
2021

2122
/sagemaker-hyperpod/build

doc/_static/custom.css

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
/* Custom styles for SageMaker HyperPod documentation */
2+
3+
/* Adjust logo size and alignment */
4+
.navbar-brand img {
5+
max-height: 40px;
6+
width: auto;
7+
margin-right: 10px;
8+
vertical-align: middle;
9+
}
10+
11+
.navbar-brand .title {
12+
font-weight: 800;
13+
color: #111827;
14+
}
15+
16+
/* Ensure logo container doesn't force wrapping */
17+
.navbar-brand-box {
18+
width: auto;
19+
flex-shrink: 0;
20+
}
21+
22+
/* Header styling */
23+
header {
24+
background-color: white;
25+
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05); /* shadow-sm */
26+
position: sticky;
27+
top: 0;
28+
z-index: 50;
29+
}
30+
31+
/* Preserving your existing typography */
32+
h1 {
33+
font-size: 1.875rem; /* text-3xl */
34+
font-weight: 700; /* font-bold */
35+
color: #111827; /* text-gray-900 */
36+
}
37+
38+
h2 {
39+
font-size: 1.5rem; /* text-2xl */
40+
font-weight: 700; /* font-bold */
41+
color: #111827;
42+
}
43+
44+
h3 {
45+
font-size: 1.25rem;
46+
font-weight: 500;
47+
color: #111827;
48+
}
49+
50+
p {
51+
font-size: 0.875rem; /* Tailwind's text-sm */
52+
color: #4b5563; /* Tailwind's gray-600 */
53+
}

doc/conf.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ def get_version():
107107
html_theme = "sphinx_book_theme"
108108
html_theme_options = {
109109
"logo": {
110+
"text": "SageMaker HyperPod<br>CLI and SDK",
110111
"image_light": "_static/image.png",
111112
"image_dark": "_static/image.png",
112113
},
@@ -116,9 +117,13 @@ def get_version():
116117
"use_edit_page_button": True,
117118
"path_to_docs": "doc",
118119
"show_navbar_depth": 2,
120+
"use_fullscreen_button": False,
121+
"use_download_button": False,
122+
"home_page_in_toc": True
119123
}
120124
htmlhelp_basename = "{}doc".format(project)
121-
125+
html_static_path = ["_static"]
126+
html_css_files = ["custom.css"]
122127
napoleon_use_rtype = False
123128

124129
# nbsphinx configuration

doc/examples.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
(examples)=
2+
3+
# Example Notebooks
4+
5+
## Training Example Notebooks
6+
7+
For detailed examples of training with HyperPod, see:
8+
9+
- [CLI Training Example](https://github.com/aws/sagemaker-hyperpod-cli/blob/main/examples/training/CLI/training-e2e-cli.ipynb)
10+
- [SDK Training Example](https://github.com/aws/sagemaker-hyperpod-cli/blob/main/examples/training/SDK/training_sdk_example.ipynb)
11+
12+
## Inference Example Notebooks
13+
14+
For detailed examples of inference with HyperPod, see:
15+
16+
- [CLI Inference FSX Model Example](https://github.com/aws/sagemaker-hyperpod-cli/blob/main/examples/inference/CLI/inference-fsx-model-e2e-cli.ipynb)
17+
- [CLI Inference Jumpstart Model Example](https://github.com/aws/sagemaker-hyperpod-cli/blob/main/examples/inference/CLI/inference-jumpstart-e2e-cli.ipynb)
18+
- [CLI Inference S3 Model Example](https://github.com/aws/sagemaker-hyperpod-cli/blob/main/examples/inference/CLI/inference-s3-model-e2e-cli.ipynb)
19+
- [SDK Inference FSX Model Example](https://github.com/aws/sagemaker-hyperpod-cli/blob/main/examples/inference/SDK/inference-fsx-model-e2e.ipynb)
20+
- [SDK Inference Jumpstart Model Example](https://github.com/aws/sagemaker-hyperpod-cli/blob/main/examples/inference/SDK/inference-jumpstart-e2e.ipynb)
21+
- [SDK Inference S3 Model Example](https://github.com/aws/sagemaker-hyperpod-cli/blob/main/examples/inference/SDK/inference-s3-model-e2e.ipynb)

doc/getting_started.ipynb

Lines changed: 0 additions & 75 deletions
This file was deleted.

doc/index.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
(hpcli_docs_mainpage)=
22

3-
# SageMaker HyperPod CLI and SDK Documentation
3+
# Overview
44

55
```{toctree}
66
:hidden:
@@ -10,13 +10,14 @@ Installation <installation>
1010
Getting Started <getting_started>
1111
Training <training>
1212
Inference <inference>
13+
Example Notebooks <examples>
1314
API reference <_apidoc/modules>
1415
```
1516

1617
SageMaker HyperPod CLI and SDK provide a seamless way to manage distributed training and inference workloads on EKS-hosted SageMaker HyperPod clusters—without needing Kubernetes expertise. Use the powerful CLI to launch and monitor training jobs and endpoints, or leverage the Python SDK to do the same programmatically with minimal code, including support for JumpStart models, custom endpoints, and built-in monitoring.
1718

1819
::::{container}
19-
::::{grid}
20+
::::{grid} 1 2 4 4
2021
:gutter: 3
2122

2223
:::{grid-item-card} Installation
@@ -47,6 +48,13 @@ Detailed guide on creating Pytorch training jobs
4748
Detailed guide on creating, invoking and monitoring endpoints
4849
:::
4950

51+
:::{grid-item-card} Example Notebooks
52+
:link: examples
53+
:link-type: ref
54+
55+
Notebooks that demonstrate end-to-end workflows
56+
:::
57+
5058
::::
5159
::::
5260

doc/installation.ipynb

Lines changed: 0 additions & 158 deletions
This file was deleted.

0 commit comments

Comments
 (0)