diff --git a/docs/.vuepress/config.js b/docs/.vuepress/config.js index 099b615c..9a88e2e8 100644 --- a/docs/.vuepress/config.js +++ b/docs/.vuepress/config.js @@ -3,7 +3,6 @@ module.exports = { description: "Welcome to Crypto.com Chain's documentation!", themeConfig: { navbar: true, - logo: '/chain_nav_logo.svg', nav: [{ text: "Home", link: "/" diff --git a/docs/.vuepress/public/404.svg b/docs/.vuepress/public/404.svg deleted file mode 100644 index 3e671845..00000000 --- a/docs/.vuepress/public/404.svg +++ /dev/null @@ -1,24 +0,0 @@ - - - - - - - - - - 4 - - - 4 - - - - - - - - - - - diff --git a/docs/.vuepress/public/arrow_blue.svg b/docs/.vuepress/public/arrow_blue.svg deleted file mode 100644 index 2a44f9b5..00000000 --- a/docs/.vuepress/public/arrow_blue.svg +++ /dev/null @@ -1,5 +0,0 @@ - - - - - diff --git a/docs/.vuepress/public/chain_nav_logo.png b/docs/.vuepress/public/chain_nav_logo.png deleted file mode 100644 index 9ca73351..00000000 Binary files a/docs/.vuepress/public/chain_nav_logo.png and /dev/null differ diff --git a/docs/.vuepress/public/chain_nav_logo.svg b/docs/.vuepress/public/chain_nav_logo.svg deleted file mode 100644 index eff9fdb0..00000000 --- a/docs/.vuepress/public/chain_nav_logo.svg +++ /dev/null @@ -1,25 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/.vuepress/public/community.svg b/docs/.vuepress/public/community.svg deleted file mode 100644 index 318c01da..00000000 --- a/docs/.vuepress/public/community.svg +++ /dev/null @@ -1,16 +0,0 @@ - - - - - - - - - - - - - - - - diff --git a/docs/.vuepress/public/consultation-paper.svg b/docs/.vuepress/public/consultation-paper.svg deleted file mode 100644 index f8becf45..00000000 --- a/docs/.vuepress/public/consultation-paper.svg +++ /dev/null @@ -1,7 +0,0 @@ - - - - - - - diff --git a/docs/.vuepress/public/design-philosophy.svg b/docs/.vuepress/public/design-philosophy.svg deleted file mode 100644 index a7430df7..00000000 --- a/docs/.vuepress/public/design-philosophy.svg +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - diff --git a/docs/.vuepress/public/developers.svg b/docs/.vuepress/public/developers.svg deleted file mode 100644 index 1e7215b7..00000000 --- a/docs/.vuepress/public/developers.svg +++ /dev/null @@ -1,5 +0,0 @@ - - - - - diff --git a/docs/.vuepress/public/hero-bg.svg b/docs/.vuepress/public/hero-bg.svg deleted file mode 100644 index d8fc3564..00000000 --- a/docs/.vuepress/public/hero-bg.svg +++ /dev/null @@ -1,54 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/.vuepress/public/involve.svg b/docs/.vuepress/public/involve.svg deleted file mode 100644 index 7780194f..00000000 --- a/docs/.vuepress/public/involve.svg +++ /dev/null @@ -1,42 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/.vuepress/public/logo-icon-white.svg b/docs/.vuepress/public/logo-icon-white.svg deleted file mode 100644 index 276f63d8..00000000 --- a/docs/.vuepress/public/logo-icon-white.svg +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - - - diff --git a/docs/.vuepress/public/logo-icon.svg b/docs/.vuepress/public/logo-icon.svg deleted file mode 100644 index 4a9e716e..00000000 --- a/docs/.vuepress/public/logo-icon.svg +++ /dev/null @@ -1,20 +0,0 @@ - - - - - - - - - - - - - - - - - - - - diff --git a/docs/.vuepress/public/logotype-white.svg b/docs/.vuepress/public/logotype-white.svg deleted file mode 100644 index b40d2a93..00000000 --- a/docs/.vuepress/public/logotype-white.svg +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - diff --git a/docs/.vuepress/public/pay_doc.svg b/docs/.vuepress/public/pay_doc.svg deleted file mode 100644 index dd130377..00000000 --- a/docs/.vuepress/public/pay_doc.svg +++ /dev/null @@ -1,21 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/.vuepress/public/social/discord.svg b/docs/.vuepress/public/social/discord.svg deleted file mode 100644 index 656fa9f4..00000000 --- a/docs/.vuepress/public/social/discord.svg +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - diff --git a/docs/.vuepress/public/social/facebook.svg b/docs/.vuepress/public/social/facebook.svg deleted file mode 100644 index b7ba2d36..00000000 --- a/docs/.vuepress/public/social/facebook.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/docs/.vuepress/public/social/instagram.svg b/docs/.vuepress/public/social/instagram.svg deleted file mode 100644 index 343594a3..00000000 --- a/docs/.vuepress/public/social/instagram.svg +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - diff --git a/docs/.vuepress/public/social/kakaotalk.svg b/docs/.vuepress/public/social/kakaotalk.svg deleted file mode 100644 index 35096afe..00000000 --- a/docs/.vuepress/public/social/kakaotalk.svg +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - diff --git a/docs/.vuepress/public/social/linkedin.svg b/docs/.vuepress/public/social/linkedin.svg deleted file mode 100644 index 46526186..00000000 --- a/docs/.vuepress/public/social/linkedin.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/docs/.vuepress/public/social/reddit.svg b/docs/.vuepress/public/social/reddit.svg deleted file mode 100644 index fb8b9e6f..00000000 --- a/docs/.vuepress/public/social/reddit.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/docs/.vuepress/public/social/telegram.svg b/docs/.vuepress/public/social/telegram.svg deleted file mode 100644 index 65b7f06e..00000000 --- a/docs/.vuepress/public/social/telegram.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/docs/.vuepress/public/social/twitter.svg b/docs/.vuepress/public/social/twitter.svg deleted file mode 100644 index 2ea3a3e7..00000000 --- a/docs/.vuepress/public/social/twitter.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/docs/.vuepress/public/social/youtube.svg b/docs/.vuepress/public/social/youtube.svg deleted file mode 100644 index d8feebea..00000000 --- a/docs/.vuepress/public/social/youtube.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/docs/.vuepress/public/technical-white-paper.svg b/docs/.vuepress/public/technical-white-paper.svg deleted file mode 100644 index 8e24ba6f..00000000 --- a/docs/.vuepress/public/technical-white-paper.svg +++ /dev/null @@ -1,18 +0,0 @@ - - - - - - - - - - - - - - - - - - diff --git a/docs/.vuepress/public/validators.svg b/docs/.vuepress/public/validators.svg deleted file mode 100644 index bdc16939..00000000 --- a/docs/.vuepress/public/validators.svg +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - - - - diff --git a/docs/.vuepress/public/white-paper.svg b/docs/.vuepress/public/white-paper.svg deleted file mode 100644 index 5aa05076..00000000 --- a/docs/.vuepress/public/white-paper.svg +++ /dev/null @@ -1,12 +0,0 @@ - - - - - - - - - - - - diff --git a/docs/.vuepress/styles/palette.styl b/docs/.vuepress/styles/palette.styl index b0efa06c..084963a4 100644 --- a/docs/.vuepress/styles/palette.styl +++ b/docs/.vuepress/styles/palette.styl @@ -1,25 +1,5 @@ -// colors +// showing default values $accentColor = #1199fa $textColor = #2c3e50 $borderColor = #eaecef $codeBgColor = #282c34 -$arrowBgColor = #0b1426 -$badgeTipColor = #42b983 -$badgeWarningColor = darken(#ffe564, 35%) -$badgeErrorColor = #DA5961 - -// layout -$navbarHeight ?= 4rem -$sidebarWidth ?= 20rem -$contentWidth ?= 740px -$homePageWidth ?= 960px - -// responsive breakpoints -$MQWide ?= 1376px -$MQNarrow ?= 1100px -$MQMobile ?= 900px -$MQMobileNarrow ?= 600px - -// code -$lineNumbersWrapperWidth ?= 3.5rem -$codeLang ?= js ts html md vue css sass scss less stylus go java c sh yaml py docker dockerfile makefile diff --git a/docs/.vuepress/theme/components/AlgoliaSearchBox.vue b/docs/.vuepress/theme/components/AlgoliaSearchBox.vue deleted file mode 100644 index 3aefc85e..00000000 --- a/docs/.vuepress/theme/components/AlgoliaSearchBox.vue +++ /dev/null @@ -1,154 +0,0 @@ - - - - - diff --git a/docs/.vuepress/theme/components/DropdownLink.vue b/docs/.vuepress/theme/components/DropdownLink.vue deleted file mode 100644 index 19ed8cac..00000000 --- a/docs/.vuepress/theme/components/DropdownLink.vue +++ /dev/null @@ -1,184 +0,0 @@ - - - - - diff --git a/docs/.vuepress/theme/components/DropdownTransition.vue b/docs/.vuepress/theme/components/DropdownTransition.vue deleted file mode 100644 index eeaf12b5..00000000 --- a/docs/.vuepress/theme/components/DropdownTransition.vue +++ /dev/null @@ -1,33 +0,0 @@ - - - - - diff --git a/docs/.vuepress/theme/components/Footer.vue b/docs/.vuepress/theme/components/Footer.vue deleted file mode 100644 index a75191c5..00000000 --- a/docs/.vuepress/theme/components/Footer.vue +++ /dev/null @@ -1,202 +0,0 @@ - - - - - diff --git a/docs/.vuepress/theme/components/Home.vue b/docs/.vuepress/theme/components/Home.vue deleted file mode 100644 index b9e28f7a..00000000 --- a/docs/.vuepress/theme/components/Home.vue +++ /dev/null @@ -1,368 +0,0 @@ - - - - - diff --git a/docs/.vuepress/theme/components/NavLink.vue b/docs/.vuepress/theme/components/NavLink.vue deleted file mode 100644 index 1af3fbd2..00000000 --- a/docs/.vuepress/theme/components/NavLink.vue +++ /dev/null @@ -1,49 +0,0 @@ - - - diff --git a/docs/.vuepress/theme/components/NavLinks.vue b/docs/.vuepress/theme/components/NavLinks.vue deleted file mode 100644 index afdc3c75..00000000 --- a/docs/.vuepress/theme/components/NavLinks.vue +++ /dev/null @@ -1,149 +0,0 @@ - - - - - diff --git a/docs/.vuepress/theme/components/Navbar.vue b/docs/.vuepress/theme/components/Navbar.vue deleted file mode 100644 index 77154dce..00000000 --- a/docs/.vuepress/theme/components/Navbar.vue +++ /dev/null @@ -1,158 +0,0 @@ - - - - - diff --git a/docs/.vuepress/theme/components/Page.vue b/docs/.vuepress/theme/components/Page.vue deleted file mode 100644 index a89b3b6d..00000000 --- a/docs/.vuepress/theme/components/Page.vue +++ /dev/null @@ -1,244 +0,0 @@ - - - - - diff --git a/docs/.vuepress/theme/components/Sidebar.vue b/docs/.vuepress/theme/components/Sidebar.vue deleted file mode 100644 index 02e5bfdd..00000000 --- a/docs/.vuepress/theme/components/Sidebar.vue +++ /dev/null @@ -1,59 +0,0 @@ - - - - - diff --git a/docs/.vuepress/theme/components/SidebarButton.vue b/docs/.vuepress/theme/components/SidebarButton.vue deleted file mode 100644 index 1fc6a767..00000000 --- a/docs/.vuepress/theme/components/SidebarButton.vue +++ /dev/null @@ -1,28 +0,0 @@ - - - diff --git a/docs/.vuepress/theme/components/SidebarGroup.vue b/docs/.vuepress/theme/components/SidebarGroup.vue deleted file mode 100644 index da7b5e8f..00000000 --- a/docs/.vuepress/theme/components/SidebarGroup.vue +++ /dev/null @@ -1,129 +0,0 @@ - - - - - diff --git a/docs/.vuepress/theme/components/SidebarLink.vue b/docs/.vuepress/theme/components/SidebarLink.vue deleted file mode 100644 index 243ce763..00000000 --- a/docs/.vuepress/theme/components/SidebarLink.vue +++ /dev/null @@ -1,124 +0,0 @@ - - - diff --git a/docs/.vuepress/theme/components/SidebarLinks.vue b/docs/.vuepress/theme/components/SidebarLinks.vue deleted file mode 100644 index dfdb0bef..00000000 --- a/docs/.vuepress/theme/components/SidebarLinks.vue +++ /dev/null @@ -1,86 +0,0 @@ - - - diff --git a/docs/.vuepress/theme/index.js b/docs/.vuepress/theme/index.js deleted file mode 100644 index 79a0bab5..00000000 --- a/docs/.vuepress/theme/index.js +++ /dev/null @@ -1,25 +0,0 @@ -const path = require('path') - -// Theme API. -module.exports = (options, ctx) => ({ - alias () { - const { themeConfig, siteConfig } = ctx - // resolve algolia - const isAlgoliaSearch = ( - themeConfig.algolia - || Object.keys(siteConfig.locales && themeConfig.locales || {}) - .some(base => themeConfig.locales[base].algolia) - ) - return { - '@AlgoliaSearchBox': isAlgoliaSearch - ? path.resolve(__dirname, 'components/AlgoliaSearchBox.vue') - : path.resolve(__dirname, 'noopModule.js') - } - }, - - plugins: [ - ['@vuepress/active-header-links', options.activeHeaderLinks], - '@vuepress/search', - '@vuepress/plugin-nprogress', - ] -}) diff --git a/docs/.vuepress/theme/layouts/404.vue b/docs/.vuepress/theme/layouts/404.vue deleted file mode 100644 index e45b065d..00000000 --- a/docs/.vuepress/theme/layouts/404.vue +++ /dev/null @@ -1,53 +0,0 @@ - - - - - diff --git a/docs/.vuepress/theme/layouts/Layout.vue b/docs/.vuepress/theme/layouts/Layout.vue deleted file mode 100644 index d8579d32..00000000 --- a/docs/.vuepress/theme/layouts/Layout.vue +++ /dev/null @@ -1,163 +0,0 @@ - - - - - - - diff --git a/docs/.vuepress/theme/noopModule.js b/docs/.vuepress/theme/noopModule.js deleted file mode 100644 index b1c6ea43..00000000 --- a/docs/.vuepress/theme/noopModule.js +++ /dev/null @@ -1 +0,0 @@ -export default {} diff --git a/docs/.vuepress/theme/styles/arrow.styl b/docs/.vuepress/theme/styles/arrow.styl deleted file mode 100644 index 20bffc0d..00000000 --- a/docs/.vuepress/theme/styles/arrow.styl +++ /dev/null @@ -1,22 +0,0 @@ -@require './config' - -.arrow - display inline-block - width 0 - height 0 - &.up - border-left 4px solid transparent - border-right 4px solid transparent - border-bottom 6px solid $arrowBgColor - &.down - border-left 4px solid transparent - border-right 4px solid transparent - border-top 6px solid $arrowBgColor - &.right - border-top 4px solid transparent - border-bottom 4px solid transparent - border-left 6px solid $arrowBgColor - &.left - border-top 4px solid transparent - border-bottom 4px solid transparent - border-right 6px solid $arrowBgColor diff --git a/docs/.vuepress/theme/styles/code.styl b/docs/.vuepress/theme/styles/code.styl deleted file mode 100644 index 0bf5849e..00000000 --- a/docs/.vuepress/theme/styles/code.styl +++ /dev/null @@ -1,135 +0,0 @@ -{$contentClass} - code - color lighten($textColor, 20%) - padding 0.25rem 0.5rem - margin 0 - font-size 0.85em - background-color rgba(27,31,35,0.05) - border-radius 3px - .token - &.deleted - color #EC5975 - &.inserted - color $accentColor - -{$contentClass} - pre, pre[class*="language-"] - line-height 1.4 - padding 1.25rem 1.5rem - margin 0.85rem 0 - background-color $codeBgColor - border-radius 6px - overflow auto - code - color #fff - padding 0 - background-color transparent - border-radius 0 - -div[class*="language-"] - position relative - background-color $codeBgColor - border-radius 6px - .highlight-lines - user-select none - padding-top 1.3rem - position absolute - top 0 - left 0 - width 100% - line-height 1.4 - .highlighted - background-color rgba(0, 0, 0, 66%) - pre, pre[class*="language-"] - background transparent - position relative - z-index 1 - &::before - position absolute - z-index 3 - top 0.8em - right 1em - font-size 0.75rem - color rgba(255, 255, 255, 0.4) - &:not(.line-numbers-mode) - .line-numbers-wrapper - display none - &.line-numbers-mode - .highlight-lines .highlighted - position relative - &:before - content ' ' - position absolute - z-index 3 - left 0 - top 0 - display block - width $lineNumbersWrapperWidth - height 100% - background-color rgba(0, 0, 0, 66%) - pre - padding-left $lineNumbersWrapperWidth + 1 rem - vertical-align middle - .line-numbers-wrapper - position absolute - top 0 - width $lineNumbersWrapperWidth - text-align center - color rgba(255, 255, 255, 0.3) - padding 1.25rem 0 - line-height 1.4 - br - user-select none - .line-number - position relative - z-index 4 - user-select none - font-size 0.85em - &::after - content '' - position absolute - z-index 2 - top 0 - left 0 - width $lineNumbersWrapperWidth - height 100% - border-radius 6px 0 0 6px - border-right 1px solid rgba(0, 0, 0, 66%) - background-color $codeBgColor - - -for lang in $codeLang - div{'[class~="language-' + lang + '"]'} - &:before - content ('' + lang) - -div[class~="language-javascript"] - &:before - content "js" - -div[class~="language-typescript"] - &:before - content "ts" - -div[class~="language-markup"] - &:before - content "html" - -div[class~="language-markdown"] - &:before - content "md" - -div[class~="language-json"]:before - content "json" - -div[class~="language-ruby"]:before - content "rb" - -div[class~="language-python"]:before - content "py" - -div[class~="language-bash"]:before - content "sh" - -div[class~="language-php"]:before - content "php" diff --git a/docs/.vuepress/theme/styles/config.styl b/docs/.vuepress/theme/styles/config.styl deleted file mode 100644 index bb3f81fb..00000000 --- a/docs/.vuepress/theme/styles/config.styl +++ /dev/null @@ -1,6 +0,0 @@ -$contentClass = '.theme-default-content' -$sidebarWidth = 22rem -$navbarHeight = 4rem -$footerHeight = 12rem -$bgColor = #f7f9fa -$fontColor = #0b1426 \ No newline at end of file diff --git a/docs/.vuepress/theme/styles/custom-blocks.styl b/docs/.vuepress/theme/styles/custom-blocks.styl deleted file mode 100644 index 2d07835b..00000000 --- a/docs/.vuepress/theme/styles/custom-blocks.styl +++ /dev/null @@ -1,30 +0,0 @@ -.custom-block - .custom-block-title - font-weight 600 - margin-bottom -0.4rem - &.tip, &.warning, &.danger - padding .1rem 1.5rem - border-left-width .5rem - border-left-style solid - margin 1rem 0 - &.tip - background-color #f3f5f7 - border-color #42b983 - &.warning - background-color rgba(255,229,100,.3) - border-color darken(#ffe564, 35%) - color darken(#ffe564, 70%) - .custom-block-title - color darken(#ffe564, 50%) - a - color $textColor - &.danger - background-color #ffe6e6 - border-color darken(red, 20%) - color darken(red, 70%) - .custom-block-title - color darken(red, 40%) - a - color $textColor - - diff --git a/docs/.vuepress/theme/styles/index.styl b/docs/.vuepress/theme/styles/index.styl deleted file mode 100644 index 282379cc..00000000 --- a/docs/.vuepress/theme/styles/index.styl +++ /dev/null @@ -1,209 +0,0 @@ -@require './config' -@require './code' -@require './custom-blocks' -@require './arrow' -@require './wrapper' -@require './toc' - -html, body - padding 0 - margin 0 - background-color $bgColor - -body - font-family -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif - -webkit-font-smoothing antialiased - -moz-osx-font-smoothing grayscale - font-size 16px - color $textColor - -.page - padding-left $sidebarWidth - -.navbar - z-index 20 - position fixed - top 0 - left 0 - right 0 - height $navbarHeight - background-color $bgColor - box-sizing border-box - -.sidebar-mask - position fixed - z-index 9 - top 0 - left 0 - width 100vw - height 100vh - display none - -.sidebar - font-size 16px - background-color white - border-radius 8px - box-shadow 0 4px 10px 3px rgba(0, 0, 0, 0.05) - width $sidebarWidth - position fixed - z-index 10 - margin 0 - top $navbarHeight + 1rem - max-height 100vh - $navbarHeight - $footerHeight - 25% - box-sizing border-box - overflow-y auto - &::-webkit-scrollbar - width 6px - height 12px - &::-webkit-scrollbar-thumb - background-color hsla(0,0%,44.3%,.06) - border-radius 12px - &::-webkit-scrollbar-thumb:hover - background-color #1199fa - border-radius 12px - -{$contentClass}:not(.custom) - @extend $wrapper - > *:first-child - margin-top $navbarHeight - - a:hover - text-decoration underline - - p.demo - padding 1rem 1.5rem - border 1px solid #ddd - border-radius 4px - - img - max-width 100% - -{$contentClass}.custom - padding 0 - margin 0 - - img - max-width 100% - -a - font-weight 500 - color $accentColor - text-decoration none - -p a code - font-weight 400 - color $accentColor - -kbd - background #eee - border solid 0.15rem #ddd - border-bottom solid 0.25rem #ddd - border-radius 0.15rem - padding 0 0.15em - -blockquote - font-size 1rem - color #999; - border-left .2rem solid #dfe2e5 - margin 1rem 0 - padding .25rem 0 .25rem 1rem - - & > p - margin 0 - -ul, ol - padding-left 1.2em - -strong - font-weight 600 - -h1, h2, h3, h4, h5, h6 - font-weight 600 - line-height 1.25 - - {$contentClass}:not(.custom) > & - margin-top (0.5rem - $navbarHeight) - padding-top ($navbarHeight + 1rem) - margin-bottom 0 - - &:first-child - margin-top -1.5rem - margin-bottom 1rem - - + p, + pre, + .custom-block - margin-top 2rem - - &:hover .header-anchor - opacity: 1 - -h1 - font-size 2.2rem - -h2 - font-size 1.65rem - padding-bottom .3rem - border-bottom 1px solid $borderColor - -h3 - font-size 1.35rem - -a.header-anchor - font-size 0.85em - float left - margin-left -0.87em - padding-right 0.23em - margin-top 0.125em - opacity 0 - - &:hover - text-decoration none - -code, kbd, .line-number - font-family source-code-pro, Menlo, Monaco, Consolas, "Courier New", monospace - -p, ul, ol - line-height 1.7 - -hr - border 0 - border-top 1px solid $borderColor - -table - border-collapse collapse - margin 1rem 0 - display: block - overflow-x: auto - -tr - border-top 1px solid #dfe2e5 - - &:nth-child(2n) - background-color #f6f8fa - -th, td - border 1px solid #dfe2e5 - padding .6em 1em - -.theme-container - &.sidebar-open - .sidebar-mask - display: block - - &.no-navbar - {$contentClass}:not(.custom) > h1, h2, h3, h4, h5, h6 - margin-top 1.5rem - padding-top 0 - - .sidebar - top 0 - - -@media (min-width: ($MQMobile + 1px)) - .theme-container.no-sidebar - .sidebar - display none - - .page - padding-left 0 - -@require 'mobile.styl' diff --git a/docs/.vuepress/theme/styles/mobile.styl b/docs/.vuepress/theme/styles/mobile.styl deleted file mode 100644 index f5bd3273..00000000 --- a/docs/.vuepress/theme/styles/mobile.styl +++ /dev/null @@ -1,37 +0,0 @@ -@require './config' - -$mobileSidebarWidth = $sidebarWidth * 0.82 - -// narrow desktop / iPad -@media (max-width: $MQNarrow) - .sidebar - font-size 15px - width $mobileSidebarWidth - .page - padding-left $mobileSidebarWidth - -// wide mobile -@media (max-width: $MQMobile) - .sidebar - top 0 - padding-top $navbarHeight - transform translateX(-100%) - transition transform .2s ease - .page - padding-left 0 - .theme-container - &.sidebar-open - .sidebar - transform translateX(0) - &.no-navbar - .sidebar - padding-top: 0 - -// narrow mobile -@media (max-width: $MQMobileNarrow) - h1 - font-size 1.9rem - {$contentClass} - div[class*="language-"] - margin 0.85rem -1.5rem - border-radius 0 diff --git a/docs/.vuepress/theme/styles/toc.styl b/docs/.vuepress/theme/styles/toc.styl deleted file mode 100644 index d3e71069..00000000 --- a/docs/.vuepress/theme/styles/toc.styl +++ /dev/null @@ -1,3 +0,0 @@ -.table-of-contents - .badge - vertical-align middle diff --git a/docs/.vuepress/theme/styles/wrapper.styl b/docs/.vuepress/theme/styles/wrapper.styl deleted file mode 100644 index a99262c7..00000000 --- a/docs/.vuepress/theme/styles/wrapper.styl +++ /dev/null @@ -1,9 +0,0 @@ -$wrapper - max-width $contentWidth - margin 0 auto - padding 2rem 2.5rem - @media (max-width: $MQNarrow) - padding 2rem - @media (max-width: $MQMobileNarrow) - padding 1.5rem - diff --git a/docs/.vuepress/theme/util/index.js b/docs/.vuepress/theme/util/index.js deleted file mode 100644 index 0b35ccde..00000000 --- a/docs/.vuepress/theme/util/index.js +++ /dev/null @@ -1,245 +0,0 @@ -export const hashRE = /#.*$/ -export const extRE = /\.(md|html)$/ -export const endingSlashRE = /\/$/ -export const outboundRE = /^(https?:|mailto:|tel:|[a-zA-Z]{4,}:)/ - -export function normalize (path) { - return decodeURI(path) - .replace(hashRE, '') - .replace(extRE, '') -} - -export function getHash (path) { - const match = path.match(hashRE) - if (match) { - return match[0] - } -} - -export function isExternal (path) { - return outboundRE.test(path) -} - -export function isMailto (path) { - return /^mailto:/.test(path) -} - -export function isTel (path) { - return /^tel:/.test(path) -} - -export function ensureExt (path) { - if (isExternal(path)) { - return path - } - const hashMatch = path.match(hashRE) - const hash = hashMatch ? hashMatch[0] : '' - const normalized = normalize(path) - - if (endingSlashRE.test(normalized)) { - return path - } - return normalized + '.html' + hash -} - -export function isActive (route, path) { - const routeHash = route.hash - const linkHash = getHash(path) - if (linkHash && routeHash !== linkHash) { - return false - } - const routePath = normalize(route.path) - const pagePath = normalize(path) - return routePath === pagePath -} - -export function resolvePage (pages, rawPath, base) { - if (isExternal(rawPath)) { - return { - type: 'external', - path: rawPath - } - } - if (base) { - rawPath = resolvePath(rawPath, base) - } - const path = normalize(rawPath) - for (let i = 0; i < pages.length; i++) { - if (normalize(pages[i].regularPath) === path) { - return Object.assign({}, pages[i], { - type: 'page', - path: ensureExt(pages[i].path) - }) - } - } - console.error(`[vuepress] No matching page found for sidebar item "${rawPath}"`) - return {} -} - -function resolvePath (relative, base, append) { - const firstChar = relative.charAt(0) - if (firstChar === '/') { - return relative - } - - if (firstChar === '?' || firstChar === '#') { - return base + relative - } - - const stack = base.split('/') - - // remove trailing segment if: - // - not appending - // - appending to trailing slash (last segment is empty) - if (!append || !stack[stack.length - 1]) { - stack.pop() - } - - // resolve relative path - const segments = relative.replace(/^\//, '').split('/') - for (let i = 0; i < segments.length; i++) { - const segment = segments[i] - if (segment === '..') { - stack.pop() - } else if (segment !== '.') { - stack.push(segment) - } - } - - // ensure leading slash - if (stack[0] !== '') { - stack.unshift('') - } - - return stack.join('/') -} - -/** - * @param { Page } page - * @param { string } regularPath - * @param { SiteData } site - * @param { string } localePath - * @returns { SidebarGroup } - */ -export function resolveSidebarItems (page, regularPath, site, localePath) { - const { pages, themeConfig } = site - - const localeConfig = localePath && themeConfig.locales - ? themeConfig.locales[localePath] || themeConfig - : themeConfig - - const pageSidebarConfig = page.frontmatter.sidebar || localeConfig.sidebar || themeConfig.sidebar - if (pageSidebarConfig === 'auto') { - return resolveHeaders(page) - } - - const sidebarConfig = localeConfig.sidebar || themeConfig.sidebar - if (!sidebarConfig) { - return [] - } else { - const { base, config } = resolveMatchingConfig(regularPath, sidebarConfig) - return config - ? config.map(item => resolveItem(item, pages, base)) - : [] - } -} - -/** - * @param { Page } page - * @returns { SidebarGroup } - */ -function resolveHeaders (page) { - const headers = groupHeaders(page.headers || []) - return [{ - type: 'group', - collapsable: false, - title: page.title, - path: null, - children: headers.map(h => ({ - type: 'auto', - title: h.title, - basePath: page.path, - path: page.path + '#' + h.slug, - children: h.children || [] - })) - }] -} - -export function groupHeaders (headers) { - // group h3s under h2 - headers = headers.map(h => Object.assign({}, h)) - let lastH2 - headers.forEach(h => { - if (h.level === 2) { - lastH2 = h - } else if (lastH2) { - (lastH2.children || (lastH2.children = [])).push(h) - } - }) - return headers.filter(h => h.level === 2) -} - -export function resolveNavLinkItem (linkItem) { - return Object.assign(linkItem, { - type: linkItem.items && linkItem.items.length ? 'links' : 'link' - }) -} - -/** - * @param { Route } route - * @param { Array | Array | [link: string]: SidebarConfig } config - * @returns { base: string, config: SidebarConfig } - */ -export function resolveMatchingConfig (regularPath, config) { - if (Array.isArray(config)) { - return { - base: '/', - config: config - } - } - for (const base in config) { - if (ensureEndingSlash(regularPath).indexOf(encodeURI(base)) === 0) { - return { - base, - config: config[base] - } - } - } - return {} -} - -function ensureEndingSlash (path) { - return /(\.html|\/)$/.test(path) - ? path - : path + '/' -} - -function resolveItem (item, pages, base, groupDepth = 1) { - if (typeof item === 'string') { - return resolvePage(pages, item, base) - } else if (Array.isArray(item)) { - return Object.assign(resolvePage(pages, item[0], base), { - title: item[1] - }) - } else { - if (groupDepth > 3) { - console.error( - '[vuepress] detected a too deep nested sidebar group.' - ) - } - const children = item.children || [] - if (children.length === 0 && item.path) { - return Object.assign(resolvePage(pages, item.path, base), { - title: item.title - }) - } - return { - type: 'group', - path: item.path, - title: item.title, - sidebarDepth: item.sidebarDepth, - children: children.map(child => resolveItem(child, pages, base, groupDepth + 1)), - collapsable: item.collapsable !== false - } - } -} diff --git a/docs/README.md b/docs/README.md index 9103d58e..45839a87 100644 --- a/docs/README.md +++ b/docs/README.md @@ -3,7 +3,7 @@ home: true heroImage: CRO_icon.png actionText: Get Started → actionLink: ../getting-started/ -footer: true +footer: Copyright © 2018-present Crypto.com --- The high-level design vision is documented in