docs: Docs theme bump, Algolia DocSearch (#470)

* update icon-rocket color

* replace intro icon

* update bg color, ethereum-intro

* comment out themeConfig.algolia

* ui tweaks

* update bg color for rocket card

* clean up config.js, algolia config

* bump docs theme to 1.0.172
This commit is contained in:
Cyrus Goh 2020-08-25 01:13:41 -07:00 committed by GitHub
parent 28fd339265
commit c12681a65a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 658 additions and 484 deletions

View File

@ -138,7 +138,7 @@
box-shadow: 0px 2px 4px rgba(22, 25, 49, 0.05), 0px 0px 1px rgba(22, 25, 49, 0.2), 0px 0.5px 0px rgba(22, 25, 49, 0.05);
position: relative;
border-radius: 0.5rem;
background: linear-gradient(302.07deg, #FFFFFF 48.96%, #EBEDFF 100%);
background: linear-gradient(281.08deg, #FFFFFF 48.96%, #E8F3FF 100%);
outline: none;
transition: box-shadow 0.25s ease-out, transform 0.25s ease-out, opacity 0.4s ease-out;
@ -268,7 +268,6 @@
&__icon {
position: absolute;
top: 1rem;
left: 1.25rem;
font-size: 1.5rem;
display: flex;
@ -347,9 +346,9 @@
&__wrapper {
display: grid;
grid-auto-flow: column;
grid-template-columns: 30% 1fr;
grid-auto-flow: row;
gap: 1.25rem;
text-align: center;
}
&:before {
@ -499,6 +498,7 @@
&__wrapper {
grid-template-columns: 3rem 1fr;
text-align: start;
}
&__h1 {

View File

@ -8,34 +8,34 @@
<path fill-rule="evenodd" clip-rule="evenodd" d="M35.4626 196.23L99.4743 110.96L58.1472 105.081L5.50019 172.841L35.4626 196.23Z" stroke="url(#paint5_linear)" stroke-width="0.7"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M106.575 217.245L99.4741 110.959L137.392 127.801L143.167 213.533L106.575 217.245Z" stroke="url(#paint6_linear)" stroke-width="0.7"/>
<defs>
<linearGradient id="paint0_linear" x1="127.81" y1="45.3403" x2="166.704" y2="94.5326" gradientUnits="userSpaceOnUse">
<stop stop-color="#336699" stop-opacity="0.910609"/>
<stop offset="1" stop-color="#8CAAC6"/>
</linearGradient>
<linearGradient id="paint1_linear" x1="117.107" y1="82.6653" x2="141.785" y2="129.845" gradientUnits="userSpaceOnUse">
<stop stop-color="#336699" stop-opacity="0.910609"/>
<stop offset="1" stop-color="#8CAAC6"/>
</linearGradient>
<linearGradient id="paint2_linear" x1="100.64" y1="139.499" x2="144.213" y2="188.995" gradientUnits="userSpaceOnUse">
<stop stop-color="#336699" stop-opacity="0.910609"/>
<stop offset="1" stop-color="#8CAAC6"/>
</linearGradient>
<linearGradient id="paint3_linear" x1="68.6015" y1="154.034" x2="110.557" y2="229.491" gradientUnits="userSpaceOnUse">
<stop stop-color="#336699" stop-opacity="0.910609"/>
<stop offset="1" stop-color="#8CAAC6"/>
</linearGradient>
<linearGradient id="paint4_linear" x1="129.742" y1="171.983" x2="171.85" y2="245.124" gradientUnits="userSpaceOnUse">
<stop stop-color="#336699" stop-opacity="0.910609"/>
<stop offset="1" stop-color="#8CAAC6"/>
</linearGradient>
<linearGradient id="paint5_linear" x1="64.2552" y1="100.861" x2="36.7986" y2="196.613" gradientUnits="userSpaceOnUse">
<stop stop-color="#8CA9C6"/>
<stop offset="1" stop-color="#505EFF"/>
</linearGradient>
<linearGradient id="paint6_linear" x1="133.25" y1="120.644" x2="105.628" y2="216.973" gradientUnits="userSpaceOnUse">
<stop stop-color="#8CA9C6"/>
<stop offset="1" stop-color="#505EFF"/>
</linearGradient>
<linearGradient id="paint0_linear" x1="171.808" y1="70.3402" x2="210.702" y2="119.532" gradientUnits="userSpaceOnUse">
<stop stop-color="#336699" stop-opacity="0.91"/>
<stop offset="1" stop-color="#8CAAC6"/>
</linearGradient>
<linearGradient id="paint1_linear" x1="161.105" y1="107.665" x2="185.783" y2="154.845" gradientUnits="userSpaceOnUse">
<stop stop-color="#336699" stop-opacity="0.91"/>
<stop offset="1" stop-color="#8CAAC6"/>
</linearGradient>
<linearGradient id="paint2_linear" x1="144.638" y1="164.499" x2="188.211" y2="213.994" gradientUnits="userSpaceOnUse">
<stop stop-color="#336699" stop-opacity="0.91"/>
<stop offset="1" stop-color="#8CAAC6"/>
</linearGradient>
<linearGradient id="paint3_linear" x1="112.6" y1="179.034" x2="154.555" y2="254.491" gradientUnits="userSpaceOnUse">
<stop stop-color="#336699" stop-opacity="0.91"/>
<stop offset="1" stop-color="#8CAAC6"/>
</linearGradient>
<linearGradient id="paint4_linear" x1="173.74" y1="196.982" x2="215.848" y2="270.124" gradientUnits="userSpaceOnUse">
<stop stop-color="#336699" stop-opacity="0.91"/>
<stop offset="1" stop-color="#8CAAC6"/>
</linearGradient>
<linearGradient id="paint5_linear" x1="108.253" y1="125.86" x2="80.7963" y2="221.613" gradientUnits="userSpaceOnUse">
<stop stop-color="#8CA9C6"/>
<stop offset="1" stop-color="#336699"/>
</linearGradient>
<linearGradient id="paint6_linear" x1="177.248" y1="145.644" x2="149.626" y2="241.973" gradientUnits="userSpaceOnUse">
<stop stop-color="#8CA9C6"/>
<stop offset="1" stop-color="#336699"/>
</linearGradient>
</defs>
</svg>
</template>

View File

@ -0,0 +1,6 @@
<template>
<svg width="48" height="48" viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg">
<rect width="48" height="48" fill="white"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M24.2612 1.52098L45.3579 24.8028L24.2611 47.4575L2.62622 24.8029L24.2612 1.52098ZM5.63765 24.5003L23.2519 33.396V5.54515L5.63765 24.5003ZM25.2519 5.59283V33.3772L42.3871 24.5028L25.2519 5.59283ZM39.3349 28.3358L25.2519 35.6295V43.4588L39.3349 28.3358ZM23.2519 43.5049V35.6365L8.73749 28.3064L23.2519 43.5049Z" fill="#7499BF"/>
</svg>
</template>

View File

@ -12,16 +12,18 @@ module.exports = {
docsRepo: 'ChainSafe/ethermint',
docsDir: 'docs',
editLinks: true,
// docs 1.0.168: custom true hides subpages searchbar
// docs 1.0.168: custom true hides hub, ibc, core sidebar footer logos
custom: true,
logo: {
src: '/logo.svg',
},
algolia: {
id: 'BH4D9OD16A',
key: 'ac317234e6a42074175369b2f42e9754',
index: 'ethermint'
// request id, key from https://docsearch.algolia.com
// algolia: {
// id: 'BH4D9OD16A',
// key: 'ac317234e6a42074175369b2f42e9754',
// index: 'ethermint'
// },
topbar: {
banner: false
},
sidebar: {
auto: false,

View File

@ -6,7 +6,7 @@ sections:
- title: Introduction
desc: Read a high-level overview of Ethermint and its architecture.
url: /intro
icon: specifications
icon: ethereum-intro
- title: Basics
desc: Start with the basic concepts of Ethermint, like accounts and transactions.
url: /basics
@ -18,7 +18,7 @@ sections:
stack:
- title: Cosmos SDK
desc: The SDK is the worlds most popular framework for building application-specific blockchains.
color: "#BA3FD9"
color: "#5064FB"
label: sdk
url: http://docs.cosmos.network
- title: Ethereum

1052
docs/package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -23,7 +23,7 @@
"license": "ISC",
"dependencies": {
"npm-force-resolutions": "0.0.3",
"vuepress-theme-cosmos": "^1.0.168"
"vuepress-theme-cosmos": "^1.0.172"
},
"devDependencies": {
"watchpack": "^1.7.2"