Skip to content

Commit

Permalink
fix: upgrade scalar (#320)
Browse files Browse the repository at this point in the history
better, faster, stronger & it includes the servers override :) 

<img width="1512" alt="image"
src="https://github.com/langchain-ai/langsmith-docs/assets/6176314/b3067c26-6a3e-47bd-ba87-2f8bd93d32a0">
  • Loading branch information
agola11 authored Jul 24, 2024
2 parents 47c9858 + 5ffeea8 commit 2952c61
Show file tree
Hide file tree
Showing 3 changed files with 2,034 additions and 2,104 deletions.
27 changes: 22 additions & 5 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,28 @@ const config = {
onBrokenLinks: "throw",
onBrokenMarkdownLinks: "throw",

plugins: [
[
"@scalar/docusaurus",
{
label: "LangSmith API Docs",
route: "/api-docs",
configuration: {
spec: {
url: "https://api.smith.langchain.com/openapi.json",
},
darkMode: true,
servers: [
{
url: "https://api.smith.langchain.com",
description: "Production server",
},
],
},
},
],
],

markdown: {
mermaid: true,
},
Expand Down Expand Up @@ -120,11 +142,6 @@ const config = {
label: "Go to App",
position: "right",
},
{
href: "https://api.smith.langchain.com/redoc",
label: "Go to API Docs",
position: "left",
},
],
},
footer: {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"@mdx-js/react": "^1.6.22",
"@mui/icons-material": "^5.11.16",
"@mui/joy": "^5.0.0-alpha.81",
"@scalar/docusaurus": "^0.2.26",
"@scalar/docusaurus": "^0.4.12",
"@supabase/supabase-js": "^2.39.7",
"clsx": "^1.2.1",
"dedent": "^1.5.3",
Expand Down
Loading

0 comments on commit 2952c61

Please sign in to comment.