Skip to content

Commit 333c951

Browse files
authored
Website design tweaks (#3699)
* Style updates for website * tab styling
1 parent a5e9b50 commit 333c951

File tree

79 files changed

+317
-274
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

79 files changed

+317
-274
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,76 @@
1-
.bd-links__title {
2-
display: none;
1+
.bd-footer {
2+
font-size: 0.8rem;
33
}
4+
5+
html[data-theme="light"] {
6+
--pst-color-primary: hsl(222.2 47.4% 11.2%);
7+
--pst-color-secondary: #007bff;
8+
--pst-color-secondary-bg: #007bff;
9+
--pst-color-accent: #007bff;
10+
--sd-color-secondary-highlight: #0062cc;
11+
--pst-color-shadow: rgba(0, 0, 0, 0.0);
12+
}
13+
14+
html[data-theme="dark"] {
15+
--pst-color-primary: hsl(213 31% 91%);
16+
--pst-color-secondary: #007bff;
17+
--pst-color-secondary-bg: #007bff;
18+
--pst-color-accent: #007bff;
19+
--sd-color-secondary-highlight: #0062cc;
20+
--pst-color-shadow: rgba(0, 0, 0, 0.0);
21+
}
22+
23+
.bd-header-announcement {
24+
color: white;
25+
}
26+
27+
.bd-header-announcement a {
28+
color: white;
29+
}
30+
31+
.bd-header-announcement a:hover {
32+
color: white;
33+
text-shadow: 0.5px 0 0 currentColor;
34+
}
35+
36+
nav.bd-links .current>a {
37+
box-shadow: inset 1px 0 0 var(--pst-color-primary);
38+
}
39+
40+
html[data-theme="light"] .bd-header {
41+
border-bottom: 1px solid var(--pst-color-border);
42+
}
43+
44+
.admonition, div.admonition {
45+
border: 1px solid var(--pst-color-border);
46+
}
47+
48+
.api-card {
49+
text-align: center;
50+
font-size: 1.2rem;
51+
}
52+
53+
.api-card svg {
54+
font-size: 2rem;
55+
}
56+
57+
.search-button-field {
58+
border-radius: var(--bs-btn-border-radius);
59+
}
60+
61+
.bd-content .sd-tab-set .sd-tab-content {
62+
border: none;
63+
border-top: 3px solid var(--pst-color-border);
64+
65+
}
66+
.bd-content .sd-tab-set>input:checked+label {
67+
border: none;
68+
transform: translateY(0);
69+
font-weight: 600;
70+
border-bottom: 2px solid var(--pst-color-secondary);
71+
72+
}
73+
.bd-content .sd-tab-set>label {
74+
background-color: transparent;
75+
border: none;
76+
}
Loading
Loading
Loading
Binary file not shown.
Loading

python/packages/autogen-core/docs/src/_static/switcher.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
{
33
"name": "v0.2 (stable)",
44
"version": "0.2",
5-
"url": "https://microsoft.github.io/autogen/en/0.2/"
5+
"url": "https://microsoft.github.io/autogen/0.2/"
66
},
77
{
88
"version": "dev",
9-
"url": "https://microsoft.github.io/autogen/en/dev/"
9+
"url": "https://microsoft.github.io/autogen/dev/"
1010
}
1111
]
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<p><a href="https://go.microsoft.com/fwlink/?LinkId=521839">Privacy Policy</a> | <a href="https://go.microsoft.com/fwlink/?linkid=2259814">Consumer Health Privacy</a> </p>

python/packages/autogen-core/docs/src/_templates/layout.html

-27
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{# Displays the TOC-subtree for pages nested under the currently active top-level TOCtree element. #}
2+
<nav class="bd-docs-nav bd-links"
3+
aria-label="{{ _('Section Navigation') }}">
4+
<div class="bd-toc-item navbar-nav">
5+
{{- generate_toctree_html(
6+
"sidebar",
7+
show_nav_level=theme_show_nav_level | int,
8+
maxdepth=theme_navigation_depth | int,
9+
collapse=theme_collapse_navigation | tobool,
10+
includehidden=theme_sidebar_includehidden | tobool,
11+
titles_only=True
12+
)
13+
-}}
14+
</div>
15+
</nav>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{# Displays an icon to switch between light mode, dark mode, and auto (use browser's setting). #}
2+
{# As the theme switcher will only work when JavaScript is enabled, we hide it with `pst-js-only`. #}
3+
<button class="btn btn-sm nav-link pst-navbar-icon theme-switch-button pst-js-only" aria-label="{{ _('Color mode') }}" data-bs-title="{{ _('Color mode') }}" data-bs-placement="bottom" data-bs-toggle="tooltip">
4+
<i class="theme-switch fa-solid fa-sun fa-lg" data-mode="light" title="{{ _('Light') }}"></i>
5+
<i class="theme-switch fa-solid fa-moon fa-lg" data-mode="dark" title="{{ _('Dark') }}"></i>
6+
<i class="theme-switch fa-solid fa-circle-half-stroke fa-lg" data-mode="auto" title="{{ _('System Settings') }}"></i>
7+
</button>

python/packages/autogen-core/docs/src/conf.py

+12-7
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,9 @@
7171
html_css_files = ["custom.css"]
7272
html_sidebars = {'packages/index': []}
7373

74+
html_logo = "_static/images/logo/logo.svg"
75+
html_favicon = "_static/images/logo/favicon-512x512.png"
76+
7477
html_theme_options = {
7578

7679
"header_links_before_dropdown": 4,
@@ -81,7 +84,6 @@
8184
# "json_url": "/_static/switcher.json",
8285
# },
8386
"show_prev_next": False,
84-
""
8587
"icon_links": [
8688
{
8789
"name": "Twitter",
@@ -90,7 +92,7 @@
9092
},
9193
{
9294
"name": "GitHub",
93-
"url": "https://github.com/microsoft/agnext",
95+
"url": "https://github.com/microsoft/autogen",
9496
"icon": "fa-brands fa-github",
9597
},
9698
{
@@ -99,19 +101,24 @@
99101
"icon": "fa-custom fa-pypi",
100102
},
101103
],
102-
"announcement": '🚧 AutoGen 0.4 is a work in progress, learn more about what\'s new and different <a href="#">here</a>. To continue using the latest stable version, please visit the <a href="/autogen/0.2/">0.2 documentation</a>. 🚧',
104+
105+
"announcement": 'AutoGen 0.4 is a work in progress. Go <a href="/autogen/0.2/">here</a> to find the 0.2 documentation.',
106+
"footer_start": ["copyright"],
107+
"footer_center": ["footer-middle-links"],
108+
"footer_end": ["theme-version"],
109+
"pygments_light_style": "xcode",
110+
"pygments_dark_style": "monokai"
103111
}
104112

105113
html_js_files = ["custom-icon.js"]
106114
html_sidebars = {
107-
"reference/index": [],
108115
"packages/index": [],
109116
}
110117

111118
html_context = {
112119
'display_github': True,
113120
"github_user": "microsoft",
114-
"github_repo": "agnext",
121+
"github_repo": "autogen",
115122
"github_version": "main",
116123
"doc_path": "python/packages/autogen-core/docs/src/",
117124
}
@@ -121,8 +128,6 @@
121128
"undoc-members": True,
122129
}
123130

124-
125-
126131
intersphinx_mapping = {"python": ("https://docs.python.org/3", None)}
127132

128133

python/packages/autogen-core/docs/src/index.md

+29-62
Original file line numberDiff line numberDiff line change
@@ -18,105 +18,72 @@ sd_hide_title: true
1818
# AutoGen
1919

2020
<div class="container">
21-
2221
<div class="row text-center">
2322
<div class="col-sm-12">
2423
<h1 class="hero-title">
2524
AutoGen
2625
</h1>
2726
<h3>
28-
A framework for developing applications using AI agents
27+
A framework for building AI agents and multi-agent applications
2928
</h3>
3029
</div>
3130
</div>
31+
</div>
3232

33+
<div style="margin-top: 2rem;">
3334

34-
<div class="row">
35-
36-
<div class="col-sm">
37-
<h2 class="text-center">
38-
39-
{fas}`people-group;pst-color-primary` AgentChat
4035

41-
</h2>
36+
::::{grid} 1 1 2 2
4237

43-
<p>
44-
Task driven, high level APIs for building multi-agent systems. Including group chat, pre-built agents, and more.
38+
:::{grid-item-card} {fas}`people-group;pst-color-primary` AgentChat
39+
:shadow: none
40+
:margin: 2 0 0 0
4541

46-
Built with <i>core</i>.
47-
<p>
42+
High-level API that includes preset agents and teams for building multi-agent systems.
4843

4944
```sh
5045
pip install autogen-agentchat==0.4.0dev0
5146
```
5247

53-
<button onclick="location.href='agentchat-user-guide/guides/quickstart.html'" type="button" class="btn btn-primary">Get Started</button>
54-
<button onclick="location.href='reference/python/autogen_agentchat/autogen_agentchat.html'" type="button" class="btn btn-outline-secondary">API Reference</button>
48+
💡 *Start here if you are looking for an API similar to AutoGen 0.2*
5549

56-
<div class="versionadded">
57-
<p>Start here if you are looking for an API similar to AutoGen 0.2</p>
58-
</div>
50+
+++
5951

60-
</div>
61-
<div class="col-sm">
62-
<h2 class="text-center">
52+
```{button-ref} user-guide/agentchat-user-guide/quickstart
53+
:color: secondary
6354
64-
{fas}`cube;pst-color-primary` Core
55+
Get Started
56+
```
6557

66-
</h2>
58+
:::
59+
:::{grid-item-card} {fas}`cube;pst-color-primary` Core
60+
:shadow: none
61+
:margin: 2 0 0 0
6762

68-
<p>
69-
Primitive building blocks for creating asynchronous, event driven multi-agent systems.
70-
<p>
63+
Provides building blocks for creating asynchronous, event driven multi-agent systems.
7164

7265
```sh
7366
pip install autogen-core==0.4.0dev0
7467
```
7568

76-
<button onclick="location.href='core-user-guide/guides/quickstart.html'" type="button" class="btn btn-primary">Get Started</button>
77-
<button onclick="location.href='reference/python/autogen_core/autogen_core.html'" type="button" class="btn btn-outline-secondary">API Reference</button>
78-
79-
</div>
80-
81-
</div>
82-
</div>
83-
84-
<!--
85-
Key features of AutoGen include:
69+
+++
8670

87-
- Asynchronous messaging: Agents communicate with each other through asynchronous messages, enabling event-driven and request/response communication models.
88-
- Scalable & Distributed: Enable complex scenarios with networks of agents across org boundaries
89-
- Modular, extensible & highly customizable: E.g. custom agents, memory as a service, tools registry, model library
90-
- x-lang support: Python & Dotnet interoperating agents today, others coming soon
91-
- Observable, traceable & debuggable -->
71+
```{button-ref} user-guide/core-user-guide/quickstart
72+
:color: secondary
9273
93-
```{toctree}
94-
:maxdepth: 1
95-
:hidden:
96-
97-
agentchat-user-guide/index
98-
core-user-guide/index
74+
Get Started
9975
```
10076

101-
<!-- ## Community
102-
103-
Information about the community that leads, supports, and develops AutoGen.
77+
:::
78+
::::
10479

105-
```{toctree}
106-
:maxdepth: 2
107-
108-
community/index
109-
``` -->
80+
</div>
11081

11182
```{toctree}
112-
:maxdepth: 2
83+
:maxdepth: 3
11384
:hidden:
114-
packages/index
115-
```
11685
117-
```{toctree}
118-
:maxdepth: 1
119-
:hidden:
86+
user-guide/index
87+
packages/index
12088
reference/index
12189
```
122-

0 commit comments

Comments
 (0)