Compare commits

...

5 Commits

Author SHA1 Message Date
0f0d6c1f00
chore(social link): add mastodon social link to to navigation bar & homepage as an addition mean to contact
Some checks are pending
Generate Algolia serach indicies in JSON & push to Algolia / algolia (push) Waiting to run
Build and Deploy Vitepress Doc Pages to GitHub Pages / build-and-deploy (push) Waiting to run
2024-09-15 09:04:55 -07:00
925cd8f5d8
feat(local search): change vitepress search utility feature provider from algolia to local search instead due to native comptability support built into vitepress dependencies 2024-09-15 08:57:14 -07:00
65f0d977eb
style(copyright component): add border-width property by setting to 1px for the card box of copyright section at afterdoc slot of vitepress & add border color to default vitepress callout border color border-color var(--vp-c-green-2) green colour 2024-09-15 08:51:31 -07:00
8d8322c163
chore(footer text): update footer text by changing fontawesome i class based icons to native unicode remoji to redude load time on landing page & rearrange the layout of footer text to stack from the shortest length chunk on top and gradually expand to the lengthiest 2024-09-15 08:43:17 -07:00
581ef765b0
style(footer emoji & site color scheme): revert default color scheme of vitepress back to the original vue-flavored matte green palette to allign with the styles of vitepress v1.0.0-beta.7 and ealier & update site footer styles of beating heart & remove custom fill color of fontawesome i-coffee since deprecated 2024-09-15 08:41:27 -07:00
5 changed files with 37 additions and 27 deletions

View File

@ -1,6 +1,6 @@
import { DefaultTheme } from 'vitepress/theme'
export const footer: DefaultTheme.Config['footer'] = {
copyright: `Copyright © 2023-${new Date().getFullYear()} <a href="https://github.com/andatoshiki">Anda Toshiki</a>, <a href="https://github.com/lolilab">LoliLab</a> and <a href="https://github.com/toshikidev">Toshiki Dev</a> present <br /><span id="siteruntime_span"></span>`,
message: `Wrote with <i class="heart fa fa-heart fa-xs fa-beat"></i> and <i class="coffee fa fa-coffee fa-xs" aria-hidden="true"></i> by <a href="https://toshiki.dev">Anda Toshiki</a> at <code>root@andatoshiki:/~</code>`,
copyright: `Wrote with <span class="heart">💓</span> with 🌵 by <a href="https://toshiki.dev">Anda Toshiki</a> at <code>root@andatoshiki:/~</code> in the innovative HQ of <a href="https://asu.edu">ASU</a>`,
message: `Copyright © 2023-${new Date().getFullYear()} <a href="https://github.com/andatoshiki">Anda Toshiki</a>, <a href="https://github.com/lolilab">LoliLab</a> and <a href="https://github.com/toshikidev">Toshiki Dev</a> present <br /><span id="siteruntime_span"></span>`,
}

View File

@ -14,10 +14,14 @@ export const themeConfig: DefaultTheme.Config = {
outlineBadges: false, // whether to show badge on outline
lastUpdatedText: 'Last updated', // config for last updated footer text
// documentation full text search config via algolia
algolia: {
appId: 'G9IUR45K98',
apiKey: '8528cc91281d8112b28f508317a96dd3',
indexName: 'toshiki-notebook',
// algolia: {
// appId: 'G9IUR45K98',
// apiKey: '8528cc91281d8112b28f508317a96dd3',
// indexName: 'toshiki-notebook',
// },
// documentation full local index search
search: {
provider: 'local',
},
// documentation edit link
editLink: {
@ -28,6 +32,7 @@ export const themeConfig: DefaultTheme.Config = {
socialLinks: [
{ icon: 'github', link: 'https://github.com/andatoshiki' },
{ icon: 'twitter', link: 'https://twitter.com/andatoshiki' },
{ icon: 'mastodon', link: 'https://mastodon.social/@andatoshiki' },
],
// custom vue components
// @ts-ignore

View File

@ -101,6 +101,7 @@ const homepageLink = `https://www.toshiki.dev`
border-color: var(--vp-custom-block-tip-border);
border-style: solid;
border-width: 1px;
border-color: var(--vp-c-green-2);
background-color: var(--vp-custom-block-tip-bg);
border-radius: 6px;
color: var(--vp-c-text-2);

View File

@ -81,8 +81,9 @@
/* fontawesome heart pumping styles */
.heart {
display: inline-block;
animation: heart 5s ease infinite;
color: red;
// color: red;
}
@keyframes heart {
@ -114,9 +115,9 @@
/* font awesome heart pumping style ends */
// font awesome coffee brown color style
.coffee {
color: rgb(88, 13, 13);
}
// .coffee {
// color: rgb(88, 13, 13);
// }
// font awesome coffee brown color style ends
/* glonal code font styles */
@ -430,8 +431,9 @@ html.dark {
align-items: end;
}
// vitepress homepage styles end
// macos styled pre tag code block styles with three colored dots
.vp-doc div[class*=language-] {
.vp-doc div[class*='language-'] {
position: relative;
border-radius: 8px;
overflow: hidden;
@ -440,8 +442,8 @@ html.dark {
}
/* No line number: add macOS-style small dot */
.vp-doc div[class*=language-]::before {
content: "";
.vp-doc div[class*='language-']::before {
content: '';
display: block;
position: relative;
top: 12px;
@ -455,17 +457,16 @@ html.dark {
}
/* With line number: add background shadow */
div[class*="language-"].vp-adaptive-theme.line-numbers-mode {
div[class*='language-'].vp-adaptive-theme.line-numbers-mode {
position: relative;
border-radius: 8px;
overflow: hidden;
// box-shadow: 0 10px 30px 0 rgb(0 0 0 / 40%);
}
/* With line number: add macOS-style small dot */
.vp-doc div[class*="language-"].line-numbers-mode::before {
content: "";
.vp-doc div[class*='language-'].line-numbers-mode::before {
content: '';
display: block;
position: relative;
top: 12px;
@ -478,8 +479,6 @@ div[class*="language-"].vp-adaptive-theme.line-numbers-mode {
z-index: 1;
}
/* Move line number down to align with code; hide right vertical line */
.vp-doc .line-numbers-wrapper {
padding-top: 32px;
@ -488,7 +487,7 @@ div[class*="language-"].vp-adaptive-theme.line-numbers-mode {
/* Rebuild the right vertical line for line numbers */
.vp-doc .line-numbers-wrapper::after {
content: "";
content: '';
position: absolute;
top: 38px;
right: 0;

View File

@ -23,6 +23,12 @@
--vp-c-danger-2: var(--vp-c-red-2);
--vp-c-danger-3: var(--vp-c-red-3);
--vp-c-danger-soft: var(--vp-c-red-soft);
/* Color scheme for version 1.0.0-beta.7 and earlier */
--vp-c-brand-1: var(--vp-c-green-1);
--vp-c-brand-2: var(--vp-c-green-2);
--vp-c-brand-3: var(--vp-c-green-3);
--vp-c-brand-soft: var(--vp-c-green-soft);
}
:root {
@ -37,13 +43,13 @@
--vp-button-brand-active-bg: var(--vp-c-brand-1);
}
:root {
--vp-home-hero-name-color: transparent;
--vp-home-hero-name-background: -webkit-linear-gradient(120deg, #bd34fe 30%, #41d1ff);
// :root {
// --vp-home-hero-name-color: transparent;
// --vp-home-hero-name-background: -webkit-linear-gradient(120deg, #bd34fe 30%, #41d1ff);
--vp-home-hero-image-background-image: linear-gradient(-45deg, #bd34fe 50%, #47caff 50%);
--vp-home-hero-image-filter: blur(40px);
}
// --vp-home-hero-image-background-image: linear-gradient(-45deg, #bd34fe 50%, #47caff 50%);
// --vp-home-hero-image-filter: blur(40px);
// }
@media (min-width: 640px) {
:root {
@ -68,7 +74,6 @@
--docsearch-primary-color: var(--vp-c-brand-1) !important;
}
// github/mkdocs styled adomonition callout component css style tweak
/* Light and dark color cards */
:root {