From 03badd38756e307ace71142c82c713cb474a75ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=A1=D0=B5=D1=80=D0=B3=D1=96=D0=B9?= <61122611+CrazyTapok-bit@users.noreply.github.com> Date: Mon, 12 Feb 2024 18:52:46 +0200 Subject: [PATCH 1/3] Updated main page --- src/README.md | 245 +---------------------------------------------- src/en/README.md | 7 +- 2 files changed, 3 insertions(+), 249 deletions(-) diff --git a/src/README.md b/src/README.md index 4c3e638..e5c87e0 100644 --- a/src/README.md +++ b/src/README.md @@ -27,9 +27,7 @@ actions: highlights: - header: Наші особливості - description: Все, що вам потрібно, щоб бути неймовірним та писати код для задоволення - bgImage: /assets/bg/yellow-light.svg - bgImageDark: /assets/bg/yellow-dark.svg + description: Ключові переваги для успішної роботи features: - title: Швидкість icon: rocket @@ -50,245 +48,4 @@ highlights: - title: Надійність icon: check-double details: Перевірено на чат-ботах із високим трафіком - -footer: false -# - header: Add things you want in markdown -# description: We extended the standard commonMark specification and added tons of new features for you. -# image: /assets/image/markdown.svg -# bgImage: https://theme-hope-assets.vuejs.press/bg/2-light.svg -# bgImageDark: https://theme-hope-assets.vuejs.press/bg/2-dark.svg -# bgImageStyle: -# background-repeat: repeat -# background-size: initial -# features: -# - title: Links Check -# icon: clipboard-check -# details: Check markdown links -# link: https://theme-hope.vuejs.press/guide/markdown/others.html#link-check - -# - title: Hint box -# icon: box-archive -# details: Decorate Markdown content with styles -# link: https://theme-hope.vuejs.press/guide/markdown/hint.html - -# - title: GFM alerts -# icon: bell -# details: GFM alert box -# link: https://theme-hope.vuejs.press/guide/markdown/alert.html - -# - title: Tabs -# icon: table-columns -# details: Group similar content with tabs and switch them together -# link: https://theme-hope.vuejs.press/guide/markdown/tabs.html - -# - title: Code Tabs -# icon: code -# details: Group similar codes with tabs -# link: https://theme-hope.vuejs.press/guide/markdown/code-tabs.html - -# - title: Custom Align -# icon: align-center -# details: Let you decide to align paragraphs in the way you like -# link: https://theme-hope.vuejs.press/guide/markdown/align.html - -# - title: Attrs support -# icon: code -# details: Allow you to add attributes for Markdown content -# link: https://theme-hope.vuejs.press/guide/markdown/attrs.html - -# - title: Superscript and subscript support -# icon: superscript -# details: Your Markdown now support superscript and subscript -# link: https://theme-hope.vuejs.press/guide/markdown/sup-sub.html - -# - title: Footnote support -# icon: quote-left -# details: Your Markdown now support footnotes -# link: https://theme-hope.vuejs.press/guide/markdown/footnote.html - -# - title: Mark Support -# icon: highlighter -# details: Mark words and sentences in Markdown -# link: https://theme-hope.vuejs.press/guide/markdown/mark.html - -# - title: Tasklist Support -# icon: square-check -# details: Use tasklist in Markdown -# link: https://theme-hope.vuejs.press/guide/markdown/tasklist.html - -# - title: image syntax -# icon: image -# details: improve syntax to specify size and color scheme -# link: https://theme-hope.vuejs.press/guide/markdown/image.html - -# - title: Component Support -# icon: puzzle-piece -# details: Easily insert components in Markdown -# link: https://theme-hope.vuejs.press/guide/markdown/component.html - -# - title: Chart Support -# icon: chart-simple -# details: Display charts in Markdown -# link: https://theme-hope.vuejs.press/guide/markdown/chartjs.html - -# - title: Flowchart Support -# icon: route -# details: Create your flowchart in Markdown -# link: https://theme-hope.vuejs.press/guide/markdown/flowchart.html - -# - title: Mermaid Support -# icon: chart-pie -# details: Add mermaid diagram in Markdown -# link: https://theme-hope.vuejs.press/guide/markdown/mermaid.html - -# - title: Tex Support -# icon: square-root-variable -# details: Markdown now have Tex Support so you can write your formula -# link: https://theme-hope.vuejs.press/guide/markdown/tex.html - -# - title: Include snippet Support -# icon: fab fa-markdown -# details: split your docs with different parts and import them in Markdown -# link: https://theme-hope.vuejs.press/guide/markdown/include.html - -# - title: Playground Support -# icon: code -# details: You can add playground in Markdown files -# link: https://theme-hope.vuejs.press/guide/markdown/playground.html - -# - title: Vue playground Support -# icon: fab fa-vuejs -# details: Show living vue component in playground -# link: https://theme-hope.vuejs.press/guide/markdown/vue-playground.html - -# - title: Code Demo Support -# icon: laptop-code -# details: You can insert code demo easily -# link: https://theme-hope.vuejs.press/guide/markdown/demo.html - -# - title: Presentation Support -# icon: person-chalkboard -# details: Insert presentation in Markdown files via Reveal.js -# link: https://theme-hope.vuejs.press/guide/markdown/revealjs/ - -# - header: Improved layouts -# description: An awesome responsive layout with full a11y support. -# image: /assets/image/layout.svg -# bgImage: https://theme-hope-assets.vuejs.press/bg/5-light.svg -# bgImageDark: https://theme-hope-assets.vuejs.press/bg/5-dark.svg -# highlights: -# - title: Layout -# icon: object-group -# details: Improved navbar, sidebar, page nav and new breadcrumb, footer and toc. We also bring you a brand new homepage. -# link: https://theme-hope.vuejs.press/guide/layout/ - -# - title: Dark Mode -# icon: circle-half-stroke -# details: Switch between light and dark modes freely -# link: https://theme-hope.vuejs.press/guide/interface/darkmode.html - -# - title: Customizable Theme Color -# icon: palette -# details: Customize theme color -# link: https://theme-hope.vuejs.press/guide/interface/theme-color.html - -# - title: Slide Page -# icon: person-chalkboard -# details: Adding slide pages to display things you like -# link: https://theme-hope.vuejs.press/guide/layout/slides - -# - title: More -# icon: ellipsis -# details: RTL layout, print support, fullscreen button, etc. -# link: https://theme-hope.vuejs.press/guide/interface/others.html - -# - header: New features -# image: /assets/image/features.svg -# bgImage: https://theme-hope-assets.vuejs.press/bg/1-light.svg -# bgImageDark: https://theme-hope-assets.vuejs.press/bg/1-dark.svg -# features: -# - title: Pageviews and Comments -# icon: comment-dots -# details: Start pageview statistics and comment support with Waline -# link: https://theme-hope.vuejs.press/guide/feature/comment.html - -# - title: Article Information -# icon: circle-info -# details: Add author, writing date, reading time, word count and other information to your article -# link: https://theme-hope.vuejs.press/guide/feature/page-info.html - -# - title: Article Encryption -# icon: lock -# details: Encrypt you articles based on page links, so that only the one you want could see them -# link: https://theme-hope.vuejs.press/guide/feature/encrypt.html - -# - title: Search -# icon: search -# details: Support docsearch and client search -# link: https://theme-hope.vuejs.press/guide/feature/search.html - -# - title: Copy Code Blocks -# icon: copy -# details: Copy codes with one click in code blocks -# link: https://theme-hope.vuejs.press/guide/feature/copy-code.html - -# - title: Image Preview -# icon: image -# details: Support viewing, zooming, sharing your page images like a gallery -# link: https://theme-hope.vuejs.press/guide/feature/photo-swipe.html - -# - header: Blogging -# description: Create personal blog with theme -# image: /assets/image/blog.svg -# bgImage: https://theme-hope-assets.vuejs.press/bg/5-light.svg -# bgImageDark: https://theme-hope-assets.vuejs.press/bg/5-dark.svg -# highlights: -# - title: Blog features -# icon: blog -# details: Listing your articles with their dates, tags and categories -# link: https://theme-hope.vuejs.press/guide/blog/intro.html - -# - title: Blog homepage -# icon: blog -# details: New blog homepage -# link: https://theme-hope.vuejs.press/guide/blog/home.html - -# - title: Blogger info -# icon: circle-info -# details: Customize avatar, name, slogan, introduction and social links -# link: https://theme-hope.vuejs.press/guide/blog/blogger.html - -# - title: Timeline -# icon: clock -# details: Read through blog posts in a timeline -# link: https://theme-hope.vuejs.press/guide/blog/timeline.html - -# - header: Advanced -# description: Advanced features to improve site SEO and user experience -# image: /assets/image/advanced.svg -# bgImage: https://theme-hope-assets.vuejs.press/bg/4-light.svg -# bgImageDark: https://theme-hope-assets.vuejs.press/bg/4-dark.svg -# highlights: -# - title: SEO Enhancement -# icon: dumbbell -# details: Optimize pages for search engines -# link: https://theme-hope.vuejs.press/guide/advanced/seo.html - -# - title: Sitemap -# icon: sitemap -# details: Generate a Sitemap for your site -# link: https://theme-hope.vuejs.press/guide/advanced/sitemap.html - -# - title: Feed -# icon: rss -# details: Generate feed to allow users to subscribe it -# link: https://theme-hope.vuejs.press/guide/advanced/feed.html - -# - title: PWA -# icon: mobile-screen -# details: Make your site more like an APP -# link: https://theme-hope.vuejs.press/guide/advanced/pwa.html - -# copyright: false -# footer: Theme by VuePress Theme Hope | MIT Licensed, Copyright © 2019-present Mr.Hope --- \ No newline at end of file diff --git a/src/en/README.md b/src/en/README.md index 896b46a..72e7e4a 100644 --- a/src/en/README.md +++ b/src/en/README.md @@ -27,9 +27,7 @@ actions: highlights: - header: Our features - description: Everything you need to be awesome and have fun writing code - bgImage: /assets/bg/yellow-light.svg - bgImageDark: /assets/bg/yellow-dark.svg + description: Key benefits for successful work features: - title: Speed icon: rocket @@ -50,5 +48,4 @@ highlights: - title: Reliability icon: check-double details: Tested on high traffic chatbots - -footer: false \ No newline at end of file +--- \ No newline at end of file From aa09baf6443fb68f0171f0b45e26095fee0da66d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=A1=D0=B5=D1=80=D0=B3=D1=96=D0=B9?= <61122611+CrazyTapok-bit@users.noreply.github.com> Date: Mon, 12 Feb 2024 18:56:38 +0200 Subject: [PATCH 2/3] Add footer and notice component --- src/.vuepress/theme.ts | 34 +++++++++++++++++++++++++++++++++- 1 file changed, 33 insertions(+), 1 deletion(-) diff --git a/src/.vuepress/theme.ts b/src/.vuepress/theme.ts index 23fb0f8..83a3c17 100644 --- a/src/.vuepress/theme.ts +++ b/src/.vuepress/theme.ts @@ -6,6 +6,8 @@ const DOCSEARCH_APPID = process.env.DOCSEARCH_APPID || "" const DOCSEARCH_APIKEY = process.env.DOCSEARCH_APIKEY || "" const DOCSEARCH_INDEX = process.env.DOCSEARCH_INDEX || "" +const repo = "CrazyTapok-bit/tgWebValid" + export default hopeTheme({ hostname: "https://tgwebvalid.com/", @@ -18,7 +20,7 @@ export default hopeTheme({ logo: "./logo.svg", - repo: "CrazyTapok-bit/tgWebValid", + repo, docsRepo: "CrazyTapok-bit/tgWebValid-docs", @@ -28,6 +30,8 @@ export default hopeTheme({ navTitle: false, + footer: "💙💛 Made in Ukraine | MIT Licensed", + locales: { "/": { navbar: ukNavbar, @@ -61,6 +65,34 @@ export default hopeTheme({ indexName: DOCSEARCH_INDEX }, + components: { + rootComponents: { + notice: [ + { + path: "/", + title: "Правда ми круті 😎?", + content: `⭐️ Підтримайте нас, поставте нам зірку на GitHub та станьте нашим спонсором 😊`, + actions: [ + { + text: "Спонсорувати 💰", + link: "https://www.patreon.com/user?u=99188087" + } + ] + }, + { + path: "/en/", + title: "Are we really cool 😎?", + content: `⭐️ Support us, star us on GitHub and become our sponsor 😊`, + actions: [ + { + text: "Sponsor 💰", + link: "https://www.patreon.com/user?u=99188087" + } + ] + } + ] + } + }, // All features are enabled for demo, only preserve features you need here mdEnhance: { attrs: true, From ad2ce97cfb5a3a5f509ff08fa9bd045761a64366 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=A1=D0=B5=D1=80=D0=B3=D1=96=D0=B9?= <61122611+CrazyTapok-bit@users.noreply.github.com> Date: Mon, 12 Feb 2024 18:57:09 +0200 Subject: [PATCH 3/3] Remove trash --- src/.vuepress/public/assets/bg/yellow-dark.svg | 1 - src/.vuepress/public/assets/bg/yellow-light.svg | 1 - 2 files changed, 2 deletions(-) delete mode 100644 src/.vuepress/public/assets/bg/yellow-dark.svg delete mode 100644 src/.vuepress/public/assets/bg/yellow-light.svg diff --git a/src/.vuepress/public/assets/bg/yellow-dark.svg b/src/.vuepress/public/assets/bg/yellow-dark.svg deleted file mode 100644 index 2267dc9..0000000 --- a/src/.vuepress/public/assets/bg/yellow-dark.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/src/.vuepress/public/assets/bg/yellow-light.svg b/src/.vuepress/public/assets/bg/yellow-light.svg deleted file mode 100644 index e7b0248..0000000 --- a/src/.vuepress/public/assets/bg/yellow-light.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file