From caafc7c29549c3082edd17fb9ba87526b1526cb9 Mon Sep 17 00:00:00 2001 From: Samuel Colvin Date: Wed, 13 Nov 2024 16:14:42 +0000 Subject: [PATCH 1/4] adding logo --- docs/favicon.ico | Bin 0 -> 4286 bytes docs/img/logo-white.svg | 17 +++++++++++++++++ docs/img/pydantic-ai-dark.svg | 27 +++++++++++++++++++++++++++ docs/img/pydantic-ai-light.svg | 27 +++++++++++++++++++++++++++ docs/index.md | 21 ++++++++++++++++++++- mkdocs.yml | 6 +++--- 6 files changed, 94 insertions(+), 4 deletions(-) create mode 100644 docs/favicon.ico create mode 100644 docs/img/logo-white.svg create mode 100644 docs/img/pydantic-ai-dark.svg create mode 100644 docs/img/pydantic-ai-light.svg diff --git a/docs/favicon.ico b/docs/favicon.ico new file mode 100644 index 0000000000000000000000000000000000000000..74301be3a0610cc999e388d00e207be25ff0235e GIT binary patch literal 4286 zcmb_e&2Jk;6kn4=BY|)b5{D-CO#D$QamjyB{|O+Z9*7WD5~D~6B?qLcpw@1KXgMWF zC88B%9aW+c0wuZ7f(jdvR*L#T(gLAHkPV9Cb&`X9^r6b|ezShgc(Dmiy484R-@Nzx zy?I}$WrgUUloo!inJ&wE$+E2Dv`A#7XhE(YI(zY1fBAyL{SGC(R3^FIcQ}-TSrd0| zDCsGz!FX}vU?>N($|SusbMqUrgQ2x&HGJHYL&;LP#_ME~#bxY?-^E#bXzgnc)%f58 z_^>j^JePfFAMyWNAkQ3c+P}({4f&wDVENO0qt==G?PO^@h)wYr=X2-=&kysRmTuQz za@~Ei*HHssgy>UHjI8-=-M=jx_1Q20k0{YU+!fD2_5; z;O)E{TX6>xk7>sFy@vbl#}6Ik9yWuCb@fi~65{3L5kD(BWEY^hNsw{}7vcKB14tzlZ1S`QYjLMjgHv z{YvScq+T0|URC|w7xkH`i&+)y1Nf1T6_7j)%|O_^bUm=4A=nL4P5ySj@%W zIMeg-<E2*(8`*9qc}Jea#+T2@xN@yaQ3TM zEeGxJeOcZ{jnSfUVq zq*@erbZqdRi~gYZ_vHh92Azr6!@Awg=&d}kYW#J%$!YG9hvCR&7dFF@D=zY6&M5eg zI#`oyF5-dpK>oIjI%}w7nk}#mVwqg6_BUmN&kolY6a zed_Hz$MT!#_xs+Ru~ECoKj*B5r(*$~qAZM}rmjV=t80<#I{qb+;moh&dN1i(f)4dj zTl~PE50}R4xH`KoML|SEQn?51ow;=wDIq{sa&z9z7x09 zhdoo}vB*?;QQXxs@Uu^h*$Ru#o4uRa0N0a+G|e~nRL`e+KA`@2ouaw0Bz|^j=A=y@ znqf8LG-Yfu-anDupNKN$2I8%{1XI1KXS3je;m0?qoMf3^RXWRJ)PjCSj zcjQ`!-?;A%aW(Uk?Sr{A?;G6H%unGCd$#}P4BGH_D_??j$@;C{K8~mV=C;z=PtF)- ztb#UbH>=c>6G~NuQkAg3{=T5p;-XUL&Z*r{E?WuZ!nsf`WW8|FdM1=hMJ;QT1eK2} z;ob$SGqe!Ob*x*~k;+0xxMEr1>T`Xf+Sw(lU7eyj`n;&FU!ZkFR2Mo#)v`o2loQo( KMLfywp7;kK + + + + + + + + + + + + + + + + diff --git a/docs/img/pydantic-ai-dark.svg b/docs/img/pydantic-ai-dark.svg new file mode 100644 index 0000000000..75343000d9 --- /dev/null +++ b/docs/img/pydantic-ai-dark.svg @@ -0,0 +1,27 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/docs/img/pydantic-ai-light.svg b/docs/img/pydantic-ai-light.svg new file mode 100644 index 0000000000..a8e138e279 --- /dev/null +++ b/docs/img/pydantic-ai-light.svg @@ -0,0 +1,27 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/docs/index.md b/docs/index.md index 9b69e5db0b..4cf9ec1645 100644 --- a/docs/index.md +++ b/docs/index.md @@ -1,4 +1,23 @@ -# PydanticAI +

+ PydanticAI +

+

+ Agent Framework / shim to use Pydantic with LLMs +

+

+ + CI + + + PyPI + + + versions + + + license + +

You can think of PydanticAI as an Agent Framework or a shim to use Pydantic with LLMs — they're the same thing. diff --git a/mkdocs.yml b/mkdocs.yml index 2e7c3fbd51..9791106865 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -11,7 +11,7 @@ copyright: © Pydantic Services Inc. 2024 to present nav: - Introduction: - - index.md + - Introduction: index.md - install.md - Examples: - examples/index.md @@ -76,8 +76,8 @@ theme: - navigation.tracking - toc.follow # - navigation.tabs # don't use navbar tabs -# logo: "logo-white.svg" -# favicon: "favicon.png" + logo: "img/logo-white.svg" + favicon: "favicon.ico" # https://www.mkdocs.org/user-guide/configuration/#validation validation: From b7729cac23a4e36fffb075f594b0a72e49f39f9e Mon Sep 17 00:00:00 2001 From: Samuel Colvin Date: Wed, 13 Nov 2024 16:27:57 +0000 Subject: [PATCH 2/4] adjust svgs --- docs/img/pydantic-ai-dark.svg | 59 +++++++++++++++++++--------------- docs/img/pydantic-ai-light.svg | 59 +++++++++++++++++++--------------- docs/index.md | 5 ++- 3 files changed, 70 insertions(+), 53 deletions(-) diff --git a/docs/img/pydantic-ai-dark.svg b/docs/img/pydantic-ai-dark.svg index 75343000d9..480bea4ef1 100644 --- a/docs/img/pydantic-ai-dark.svg +++ b/docs/img/pydantic-ai-dark.svg @@ -1,27 +1,34 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/docs/img/pydantic-ai-light.svg b/docs/img/pydantic-ai-light.svg index a8e138e279..9346a78805 100644 --- a/docs/img/pydantic-ai-light.svg +++ b/docs/img/pydantic-ai-light.svg @@ -1,27 +1,34 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/docs/index.md b/docs/index.md index 4cf9ec1645..bbbd8012aa 100644 --- a/docs/index.md +++ b/docs/index.md @@ -1,5 +1,8 @@

- PydanticAI + PydanticAI +

+

+ PydanticAI

Agent Framework / shim to use Pydantic with LLMs From 25ea2fb17572a18d861a5aff18e62969b9f9ddff Mon Sep 17 00:00:00 2001 From: Samuel Colvin Date: Wed, 13 Nov 2024 16:34:52 +0000 Subject: [PATCH 3/4] fix h1 --- docs/extra/tweaks.css | 3 +++ docs/index.md | 2 ++ mkdocs.yml | 2 ++ 3 files changed, 7 insertions(+) create mode 100644 docs/extra/tweaks.css diff --git a/docs/extra/tweaks.css b/docs/extra/tweaks.css new file mode 100644 index 0000000000..aaa3d95c77 --- /dev/null +++ b/docs/extra/tweaks.css @@ -0,0 +1,3 @@ +.hide { + display: none; +} diff --git a/docs/index.md b/docs/index.md index bbbd8012aa..478ba9f226 100644 --- a/docs/index.md +++ b/docs/index.md @@ -22,6 +22,8 @@

+# PydanticAI {.hide} + You can think of PydanticAI as an Agent Framework or a shim to use Pydantic with LLMs — they're the same thing. PydanticAI tries to make working with LLMs feel similar to building a web application. diff --git a/mkdocs.yml b/mkdocs.yml index 9791106865..5c3a7eea75 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -85,6 +85,8 @@ validation: absolute_links: warn unrecognized_links: warn +extra_css: + - 'extra/tweaks.css' # used for analytics extra_javascript: - "/flarelytics/client.js" From e031fc47490fc572d818ca1e0c140413c2d4b1a8 Mon Sep 17 00:00:00 2001 From: Samuel Colvin Date: Wed, 13 Nov 2024 16:43:28 +0000 Subject: [PATCH 4/4] change background color, and description --- docs/extra/tweaks.css | 6 ++++++ docs/img/pydantic-ai-dark.svg | 2 +- docs/img/pydantic-ai-light.svg | 2 +- mkdocs.yml | 2 +- 4 files changed, 9 insertions(+), 3 deletions(-) diff --git a/docs/extra/tweaks.css b/docs/extra/tweaks.css index aaa3d95c77..275cfb2530 100644 --- a/docs/extra/tweaks.css +++ b/docs/extra/tweaks.css @@ -1,3 +1,9 @@ +/* Revert hue value to that of pre mkdocs-material v9.4.0 */ +[data-md-color-scheme="slate"] { + --md-hue: 230; + --md-default-bg-color: hsla(230, 15%, 21%, 1); +} + .hide { display: none; } diff --git a/docs/img/pydantic-ai-dark.svg b/docs/img/pydantic-ai-dark.svg index 480bea4ef1..de3a32b951 100644 --- a/docs/img/pydantic-ai-dark.svg +++ b/docs/img/pydantic-ai-dark.svg @@ -26,7 +26,7 @@ - + diff --git a/docs/img/pydantic-ai-light.svg b/docs/img/pydantic-ai-light.svg index 9346a78805..86e06d3298 100644 --- a/docs/img/pydantic-ai-light.svg +++ b/docs/img/pydantic-ai-light.svg @@ -26,7 +26,7 @@ - + diff --git a/mkdocs.yml b/mkdocs.yml index 5c3a7eea75..81b54f8258 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -1,5 +1,5 @@ site_name: PydanticAI -site_description: PydanticAI +site_description: Agent Framework / shim to use Pydantic with LLMs strict: true site_url: https://ai.pydantic.dev