diff --git a/docs/docs/core/03-node.md b/docs/docs/core/03-node.md index eef91eee0a..262028677c 100644 --- a/docs/docs/core/03-node.md +++ b/docs/docs/core/03-node.md @@ -24,14 +24,18 @@ In general, developers will implement the `main.go` function with the following * First, an [`encodingCodec`](./05-encoding.md) is instantiated for the application. * Then, the `config` is retrieved and config parameters are set. This mainly involves setting the Bech32 prefixes for [addresses](../basics/03-accounts.md#addresses). - ```go reference + +```go reference https://github.com/cosmos/cosmos-sdk/blob/v0.46.0/types/config.go#L14-L29 ``` + * Using [cobra](https://github.com/spf13/cobra), the root command of the full-node client is created. After that, all the custom commands of the application are added using the `AddCommand()` method of `rootCmd`. * Add default server commands to `rootCmd` using the `server.AddCommands()` method. These commands are separated from the ones added above since they are standard and defined at Cosmos SDK level. They should be shared by all Cosmos SDK-based applications. They include the most important command: the [`start` command](#start-command). * Prepare and execute the `executor`. - ```go reference + +```go reference https://github.com/tendermint/tendermint/blob/v0.34.21/libs/cli/setup.go#L74-L78 + ``` See an example of `main` function from the `simapp` application, the Cosmos SDK's application for demo purposes: @@ -59,7 +63,7 @@ The flow of the `start` command is pretty straightforward. First, it retrieves t With the `db`, the `start` command creates a new instance of the application using an `appCreator` function: ```go reference -https://github.com/cosmos/cosmos-sdk/blob/v0.46.0/server/start.go#L209-L209 +https://github.com/cosmos/cosmos-sdk/blob/v0.46.0/server/start.go#L211 ``` Note that an `appCreator` is a function that fulfills the `AppCreator` signature: diff --git a/docs/src/css/custom.css b/docs/src/css/custom.css index c328a53a90..531adbe38d 100644 --- a/docs/src/css/custom.css +++ b/docs/src/css/custom.css @@ -133,32 +133,16 @@ html { @apply w-auto justify-between; } .DocSearch-Search-Icon { - @media (min-width: 997px) { - @apply hidden; - } + @apply text-docusaurusColorBase; } - .DocSearch-Button-Placeholder { - @apply pr-8; - } - .DocSearch-Button-Key { - background: none; - @apply shadow-none bg-transparent border border-inactive text-inactive p-3 text-2 rounded-s h-6 w-6; - } - .DocSearch-Button-Keys, - .DocSearch-Button-Placeholder { + .DocSearch-Button-Keys { @apply hidden; - @media (min-width: 997px) { - @apply flex; - } + } + .DocSearch-Button-Placeholder { + @apply pr-10; } } - &-Search-Icon path { - @apply fill-transparent; - } - path { - @apply fill-transparent; - } &-Logo path { @apply fill-docusaurusColorBase; } @@ -441,6 +425,10 @@ html { } /* MARKDOWN */ + .theme-code-block { + @apply font-jetbrain; + } + .markdown { --ifm-heading-vertical-rhythm-bottom: 1; --ifm-h1-vertical-rhythm-bottom: 1; diff --git a/docs/src/css/fonts.css b/docs/src/css/fonts.css index 525d94f9c2..9b98510d61 100644 --- a/docs/src/css/fonts.css +++ b/docs/src/css/fonts.css @@ -10,65 +10,55 @@ /* Inter */ @font-face { - font-family: 'Inter'; - font-style: normal; - font-weight: 400; - font-display: swap; - src: url("~/static/fonts/inter/Inter-Regular.woff2?v=3.19") format("woff2"), - url("~/static/fonts/inter/Inter-Regular.woff?v=3.19") format("woff"); + font-family: "Inter"; + font-style: normal; + font-weight: 400; + font-display: swap; + src: url("~/static/fonts/inter/Inter-Regular.woff2?v=3.19") format("woff2"), + url("~/static/fonts/inter/Inter-Regular.woff?v=3.19") format("woff"); } @font-face { - font-family: 'Inter'; - font-style: normal; - font-weight: 500; - font-display: swap; - src: url("~/static/fonts/inter/Inter-Medium.woff2?v=3.19") format("woff2"), - url("~/static/fonts/inter/Inter-Medium.woff?v=3.19") format("woff"); + font-family: "Inter"; + font-style: normal; + font-weight: 500; + font-display: swap; + src: url("~/static/fonts/inter/Inter-Medium.woff2?v=3.19") format("woff2"), + url("~/static/fonts/inter/Inter-Medium.woff?v=3.19") format("woff"); } @font-face { - font-family: 'Inter'; - font-style: normal; - font-weight: 700; - font-display: swap; - src: url("~/static/fonts/inter/Inter-Bold.woff2?v=3.19") format("woff2"), - url("~/static/fonts/inter/Inter-Bold.woff?v=3.19") format("woff"); + font-family: "Inter"; + font-style: normal; + font-weight: 700; + font-display: swap; + src: url("~/static/fonts/inter/Inter-Bold.woff2?v=3.19") format("woff2"), + url("~/static/fonts/inter/Inter-Bold.woff?v=3.19") format("woff"); } @font-face { - font-family: 'Inter'; - font-style: normal; - font-weight: 900; - font-display: swap; - src: url("~/static/fonts/inter/Inter-Black.woff2?v=3.19") format("woff2"), - url("~/static/fonts/inter/Inter-Black.woff?v=3.19") format("woff"); + font-family: "Inter"; + font-style: normal; + font-weight: 900; + font-display: swap; + src: url("~/static/fonts/inter/Inter-Black.woff2?v=3.19") format("woff2"), + url("~/static/fonts/inter/Inter-Black.woff?v=3.19") format("woff"); } - /* Inter var */ @font-face { - font-family: 'Inter var'; - font-weight: 100 900; - font-display: swap; - font-style: oblique 0deg 10deg; - src: url("~/static/fonts/intervar/Inter.var.woff2?v=3.19") format("woff2"); -} - -/* Termina */ -@font-face { - font-family: 'Termina'; - src: url("~/static/fonts/termina/termina-demi-web.woff2") format("woff2"), /* chrome、firefox */ - url("~/static/fonts/termina/termina-demi-web.woff") format("woff"), /* chrome、firefox */ - url("~/static/fonts/termina/termina-demi-web.ttf") format("truetype"); /* chrome、firefox、opera、Safari, Android, iOS 4.2+*/ font-weight: 600; - font-style: normal; - font-stretch: normal; + font-family: "Inter var"; + font-weight: 100 900; + font-display: swap; + font-style: oblique 0deg 10deg; + src: url("~/static/fonts/intervar/Inter.var.woff2?v=3.19") format("woff2"); } /* JetBrains Mono */ -@font-face{ - font-family: 'JetBrains Mono'; - font-weight: normal; - font-style: normal; - src: url("~/static/fonts/jetbrainsmono/JetBrainsMono-Regular.woff2") format("woff2"); +@font-face { + font-family: "JetBrains Mono"; + font-weight: normal; + font-style: normal; + src: url("~/static/fonts/jetbrainsmono/JetBrainsMono-Regular.woff2") + format("woff2"); } diff --git a/docs/static/fonts/termina/termina-demi-web.eot b/docs/static/fonts/termina/termina-demi-web.eot deleted file mode 100644 index dd01f37131..0000000000 Binary files a/docs/static/fonts/termina/termina-demi-web.eot and /dev/null differ diff --git a/docs/static/fonts/termina/termina-demi-web.svg b/docs/static/fonts/termina/termina-demi-web.svg deleted file mode 100644 index 2c38d78f50..0000000000 --- a/docs/static/fonts/termina/termina-demi-web.svg +++ /dev/null @@ -1,8653 +0,0 @@ - - - - -Created by FontForge 20200427 at Tue Oct 20 06:16:06 2015 - By www -Copyright (c) 2015 by Mattox Shuler. All rights reserved. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/static/fonts/termina/termina-demi-web.ttf b/docs/static/fonts/termina/termina-demi-web.ttf deleted file mode 100644 index 9ca371a0a4..0000000000 Binary files a/docs/static/fonts/termina/termina-demi-web.ttf and /dev/null differ diff --git a/docs/static/fonts/termina/termina-demi-web.woff b/docs/static/fonts/termina/termina-demi-web.woff deleted file mode 100644 index e6912c2e12..0000000000 Binary files a/docs/static/fonts/termina/termina-demi-web.woff and /dev/null differ diff --git a/docs/static/fonts/termina/termina-demi-web.woff2 b/docs/static/fonts/termina/termina-demi-web.woff2 deleted file mode 100644 index f11e69936a..0000000000 Binary files a/docs/static/fonts/termina/termina-demi-web.woff2 and /dev/null differ diff --git a/docs/tailwind.config.js b/docs/tailwind.config.js index 4b50bc3ab1..d48e14f851 100644 --- a/docs/tailwind.config.js +++ b/docs/tailwind.config.js @@ -21,7 +21,6 @@ module.exports = { circle: "100%", }, fontFamily: { - termina: ["termina", defaultTheme.fontFamily.sans], intervar: ['"Inter var"', defaultTheme.fontFamily.sans], inter: ["Inter", defaultTheme.fontFamily.sans], jetbrain: ["JetBrains Mono", defaultTheme.fontFamily.mono],