Skip to content

Commit

Permalink
docs: made v8 the landing version and bumped docusaurus to v3.4 (#6570)
Browse files Browse the repository at this point in the history
* docs: change default version

* docs: bumped docusaurus to v3.4

* docs: trailing slash
  • Loading branch information
srdtrk authored Jun 11, 2024
1 parent 184fc7f commit 061a565
Show file tree
Hide file tree
Showing 4 changed files with 297 additions and 222 deletions.
50 changes: 27 additions & 23 deletions docs/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const config = {
organizationName: "cosmos", // Usually your GitHub org/user name.
projectName: "ibc-go", // Usually your repo name.
deploymentBranch: "gh-pages",
trailingSlash: false,
trailingSlash: true,

onBrokenLinks: "log",
onBrokenMarkdownLinks: "log",
Expand Down Expand Up @@ -103,7 +103,7 @@ const config = {
alt: "IBC Logo",
src: "img/black-ibc-logo.svg",
srcDark: "img/white-ibc-logo.svg",
href: "/main/",
href: "/",
},
items: [
{
Expand Down Expand Up @@ -240,25 +240,25 @@ const config = {
{
className: 'theme-code-block-highlighted-line',
line: 'highlight-next-line',
block: {start: 'highlight-start', end: 'highlight-end'},
block: { start: 'highlight-start', end: 'highlight-end' },
},
{
className: 'code-block-minus-diff-line',
line: 'minus-diff-line',
block: {start: 'minus-diff-start', end: 'minus-diff-end'},
block: { start: 'minus-diff-start', end: 'minus-diff-end' },
},
{
className: 'code-block-plus-diff-line',
line: 'plus-diff-line',
block: {start: 'plus-diff-start', end: 'plus-diff-end'},
block: { start: 'plus-diff-start', end: 'plus-diff-end' },
},
],
},
}),
themes: ["docusaurus-theme-github-codeblock"],
plugins: [
[
'docusaurus-pushfeedback',{
'docusaurus-pushfeedback', {
project: '3mpmaho4fa',
buttonPosition: 'center-right',
modalPosition: 'sidebar-right',
Expand Down Expand Up @@ -311,9 +311,13 @@ const config = {
// makes the default page next in production
redirects: [
{
from: ["/", "/master", "/next", "/docs"],
from: ["/master", "/next"],
to: "/main/",
},
{
from: ["/", "/docs"],
to: "/v8/",
}
],
},
],
Expand Down Expand Up @@ -344,22 +348,22 @@ const config = {
],
scripts: [
{
src: "https://widget.kapa.ai/kapa-widget.bundle.js",
"data-website-id": "806aa1dc-0d46-4563-a8b8-880eecac59f1",
"data-project-name": "Interchain",
"data-user-analytics-fingerprint-enabled": "true",
"data-project-color": "#1878FF",
"data-modal-title": "IBC Docs AI",
"data-modal-disclaimer": "This is a custom LLM for the Inter-Blockchain Communication Protocol in Golang (ibc-go). It is trained on the IBC developer documentation, code base, and resources. Answers are AI-generated. Please use your best judgment before implementing. The bot is not trained on documentation, code, or resources for the Cosmos SDK, CometBFT, CosmJS, CosmWasm, or interchain ecosystem blockchains. Please refer to those specific documentation sites for answers to those questions.",
"data-modal-ask-ai-input-placeholder": "Ask me a question about IBC...",
"data-modal-disclaimer-text-color": "#000000",
"data-modal-disclaimer-font-size": "14px",
"data-modal-image":
"/img/black-ibc-logo-400x400.svg",
"data-project-logo":
"/img/white-ibc-logo-400x400.svg",
async: true,
},
src: "https://widget.kapa.ai/kapa-widget.bundle.js",
"data-website-id": "806aa1dc-0d46-4563-a8b8-880eecac59f1",
"data-project-name": "Interchain",
"data-user-analytics-fingerprint-enabled": "true",
"data-project-color": "#1878FF",
"data-modal-title": "IBC Docs AI",
"data-modal-disclaimer": "This is a custom LLM for the Inter-Blockchain Communication Protocol in Golang (ibc-go). It is trained on the IBC developer documentation, code base, and resources. Answers are AI-generated. Please use your best judgment before implementing. The bot is not trained on documentation, code, or resources for the Cosmos SDK, CometBFT, CosmJS, CosmWasm, or interchain ecosystem blockchains. Please refer to those specific documentation sites for answers to those questions.",
"data-modal-ask-ai-input-placeholder": "Ask me a question about IBC...",
"data-modal-disclaimer-text-color": "#000000",
"data-modal-disclaimer-font-size": "14px",
"data-modal-image":
"/img/black-ibc-logo-400x400.svg",
"data-project-logo":
"/img/white-ibc-logo-400x400.svg",
async: true,
},
],
};

Expand Down
Loading

0 comments on commit 061a565

Please sign in to comment.