Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: migrate to docusaurus #13471

Merged
merged 25 commits into from
Oct 10, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
updates
  • Loading branch information
julienrbrt committed Oct 10, 2022
commit d1dd72baaef1800ac69cd48f853e2c41c9c262cc
4 changes: 2 additions & 2 deletions docs/architecture/adr-021-protobuf-query-encoding.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ Accepted

This ADR is a continuation of the motivation, design, and context established in
[ADR 019](./adr-019-protobuf-state-encoding.md) and
[ARD 020](./adr-019-protobuf-transaction-encoding.md), namely, we aim to design the
[ADR 020](./adr-020-protobuf-transaction-encoding.md), namely, we aim to design the
Protocol Buffer migration path for the client-side of the Cosmos SDK.

This ADR continues from [ARD 020](./adr-020-protobuf-transaction-encoding.md)
This ADR continues from [ADD 020](./adr-020-protobuf-transaction-encoding.md)
to specify the encoding of queries.

## Decision
Expand Down
17 changes: 15 additions & 2 deletions docs/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ const lightCodeTheme = require("prism-react-renderer/themes/github");
const darkCodeTheme = require("prism-react-renderer/themes/dracula");

// const lastVersion = "v0.47";
const lastVersion = "current";

/** @type {import('@docusaurus/types').Config} */
const config = {
Expand Down Expand Up @@ -40,10 +41,11 @@ const config = {
sidebarPath: require.resolve("./sidebars.js"),
routeBasePath: "/",
editUrl: "https://github.com/cosmos/cosmos-sdk/tree/main/",
// lastVersion: lastVersion, // we should enable this when we have a stable release with docusaurus
lastVersion: lastVersion,
versions: {
current: {
path: "main",
// banner: "unreleased",
},
// "v0.47": {
// label: "v0.47",
Expand Down Expand Up @@ -74,6 +76,7 @@ const config = {
logo: {
alt: "Cosmos SDK Logo",
src: "img/logo-sdk.svg",
href: "https://docs.cosmos.network",
},
items: [
{
Expand Down Expand Up @@ -206,10 +209,20 @@ const config = {
toExtensions: ["html"],
redirects: [
{
from: "/",
from: ["/", "/master", "/v0.43", "/v0.44"],
to: "/main",
},
],
createRedirects: function(existingPath) {
// modules redirections
const modulesRegex = /\/main\/modules\/([A-z]+)\/([0-9]+)/g;
const modulesMatch = modulesRegex.exec(existingPath);
if (modulesMatch) {
return ["/main/modules/" + modulesMatch[0]];
}

return undefined;
},
},
],
],
Expand Down
2 changes: 1 addition & 1 deletion docs/spec/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ block.

## Modules specifications

Go the [module directory](../../x/README.md)
Go the [module directory](https://github.com/cosmos/cosmos-sdk/blob/main/x/README.md)

## Tendermint

Expand Down