From 2416737c5f1455bbb0f499e83a9decfb049d3e6a Mon Sep 17 00:00:00 2001 From: Leonid Ganeline Date: Thu, 23 May 2024 15:50:23 -0700 Subject: [PATCH] docs: compact the API Reference links (#21285) This PR is opinionated. Issue: the `API Reference` sections in the examples hold too much vertical space and make us scroll the page too much. See an [example](https://python.langchain.com/docs/get_started/quickstart/#conversation-retrieval-chain). These sections are **important**. So, the compacting should not make these sections less noticeable. Change: compacting the `API Reference` sections. See the [same example after change applied](https://langchain-j6nya46lf-langchain.vercel.app/docs/get_started/quickstart/#conversation-retrieval-chain). It is more compact and now looks like references (footnotes). Note: I would also change the section style, so it would be more noticeable (maybe to look like the footnotes. Smaller wider font?) --------- Co-authored-by: Bagatur <22008038+baskaryan@users.noreply.github.com> Co-authored-by: Bagatur --- docs/src/theme/CodeBlock/index.js | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/docs/src/theme/CodeBlock/index.js b/docs/src/theme/CodeBlock/index.js index 84da0b86ef5..ff8324981d0 100644 --- a/docs/src/theme/CodeBlock/index.js +++ b/docs/src/theme/CodeBlock/index.js @@ -16,18 +16,14 @@ function Imports({ imports }) { borderBottomRightRadius: "var(--ifm-code-border-radius)", }} > -

+ API Reference: -

- ); }