From 7c1ec043809683b11fc285f6d6e607c8437d37a9 Mon Sep 17 00:00:00 2001 From: Carson Yang Date: Thu, 14 Sep 2023 17:36:51 +0800 Subject: [PATCH] Docs: add github badge (#301) Signed-off-by: Carson Yang --- .../docs/scss/custom/pages/_custom.scss | 67 ++++++++++++++++++- docSite/layouts/partials/docs/footer.html | 19 ++++++ ...s_b97bf3f19a5ec64d7a7c5d60f7e31818.content | 61 ++++++++++++++++- 3 files changed, 145 insertions(+), 2 deletions(-) create mode 100644 docSite/layouts/partials/docs/footer.html diff --git a/docSite/assets/docs/scss/custom/pages/_custom.scss b/docSite/assets/docs/scss/custom/pages/_custom.scss index 35c6224ac..182ddd3b7 100644 --- a/docSite/assets/docs/scss/custom/pages/_custom.scss +++ b/docSite/assets/docs/scss/custom/pages/_custom.scss @@ -23,7 +23,72 @@ div.code-toolbar { z-index: 1; } -p { +li p { margin-top: 1rem !important; margin-bottom: 1rem; +} + +footer { + height: 118px !important; +} + +/* +footer a:hover { + text-decoration: none !important; +} +*/ + +/* 徽章样式 */ +.github-badge { + display: inline-block; + border-radius: 4px; + text-shadow: none; + font-size: 12px; + color: #fff; + line-height: 15px; + margin-bottom: 5px; + margin-top: 5px; +} +.github-badge .badge-subject { + display: inline-block; + background-color: #4D4D4D; + padding: 4px 4px 4px 6px; + border-top-left-radius: 4px; + border-bottom-left-radius: 4px; +} +.github-badge .badge-value { + display: inline-block; + padding: 4px 6px 4px 4px; + border-top-right-radius: 4px; + border-bottom-right-radius: 4px; +} +.github-badge .bg-brightgreen { + background-color: #4DC820 !important; +} +.github-badge .bg-orange { + background-color: #FFA500 !important; +} +.github-badge .bg-yellow { + background-color: #D8B024 !important; +} +.github-badge .bg-blueviolet { + background-color: #8833D7 !important; +} +.github-badge .bg-pink { + background-color: #F26BAE !important; +} +.github-badge .bg-red { + background-color: #e05d44 !important; +} +.github-badge .bg-blue { + background-color: #007EC6 !important; +} +.github-badge .bg-lightgrey { + background-color: #9F9F9F !important; +} +.github-badge .bg-grey, .github-badge .bg-gray { + background-color: #555 !important; +} +.github-badge .bg-lightgrey, .github-badge .bg-lightgray { + background-color: #9f9f9f !important; } \ No newline at end of file diff --git a/docSite/layouts/partials/docs/footer.html b/docSite/layouts/partials/docs/footer.html new file mode 100644 index 000000000..44f998f24 --- /dev/null +++ b/docSite/layouts/partials/docs/footer.html @@ -0,0 +1,19 @@ + +
+
+
+
+

+ {{ $yearToken := (cond (isset .Site.Params (lower "copyrightYearToken")) $.Site.Params.copyrightYearToken ":YEAR:") }} + {{ replace $.Site.Params.footer.copyright $yearToken (string (now.Format "2006")) | markdownify }} +

+

+ 云操作系统Sealos + 云开发Laf + 云原生存储Sealfs +

+
+
+
+
+ \ No newline at end of file diff --git a/docSite/resources/_gen/assets/scss/docs/scss/style.scss_b97bf3f19a5ec64d7a7c5d60f7e31818.content b/docSite/resources/_gen/assets/scss/docs/scss/style.scss_b97bf3f19a5ec64d7a7c5d60f7e31818.content index 7e6f095aa..294e8278c 100644 --- a/docSite/resources/_gen/assets/scss/docs/scss/style.scss_b97bf3f19a5ec64d7a7c5d60f7e31818.content +++ b/docSite/resources/_gen/assets/scss/docs/scss/style.scss_b97bf3f19a5ec64d7a7c5d60f7e31818.content @@ -11943,8 +11943,67 @@ div.code-toolbar { width: 12px; z-index: 1; } -p { +li p { margin-top: 1rem !important; margin-bottom: 1rem; } +/* +footer a:hover { + text-decoration: none !important; +} +*/ +/* 徽章样式 */ +.github-badge { + display: inline-block; + border-radius: 4px; + text-shadow: none; + font-size: 12px; + color: #fff; + line-height: 15px; + margin-bottom: 5px; + margin-top: 5px; } + +.github-badge .badge-subject { + display: inline-block; + background-color: #4D4D4D; + padding: 4px 4px 4px 6px; + border-top-left-radius: 4px; + border-bottom-left-radius: 4px; } + +.github-badge .badge-value { + display: inline-block; + padding: 4px 6px 4px 4px; + border-top-right-radius: 4px; + border-bottom-right-radius: 4px; } + +.github-badge .bg-brightgreen { + background-color: #4DC820 !important; } + +.github-badge .bg-orange { + background-color: #FFA500 !important; } + +.github-badge .bg-yellow { + background-color: #D8B024 !important; } + +.github-badge .bg-blueviolet { + background-color: #8833D7 !important; } + +.github-badge .bg-pink { + background-color: #F26BAE !important; } + +.github-badge .bg-red { + background-color: #e05d44 !important; } + +.github-badge .bg-blue { + background-color: #007EC6 !important; } + +.github-badge .bg-lightgrey { + background-color: #9F9F9F !important; } + +.github-badge .bg-grey, .github-badge .bg-gray { + background-color: #555 !important; } + +.github-badge .bg-lightgrey, .github-badge .bg-lightgray { + background-color: #9f9f9f !important; } + /*# sourceMappingURL=style.css.map */ \ No newline at end of file