Skip to content

Commit

Permalink
v2.0.0 ci: update workflows config. daf59ef
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Jun 25, 2024
1 parent 7da22d4 commit a81cea3
Show file tree
Hide file tree
Showing 12 changed files with 978 additions and 965 deletions.
1,712 changes: 785 additions & 927 deletions action.js

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions badges-classic.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 4 additions & 4 deletions badges.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
84 changes: 82 additions & 2 deletions css/main.css
Original file line number Diff line number Diff line change
@@ -1,17 +1,41 @@
[data-color-mode*='dark'],
[data-color-mode*='dark'] body {
--color-header-bg: #3a3a3a8f;
--color-header-border: #21262d;
--color-header-border: #21262d7a;
--color-hover: #ffffff1c;
--color-hoc-bg: #fffefe08;

--color-border-default: #d0d7de;
--color-accent-fg: #0969da;
--color-accent-emphasis: #0969da;
--color-danger-fg: #d1242f;
--color-danger-emphasis: #cf222e;
--color-attention-fg: #9a6700;
--color-attention-emphasis: #9a6700;
--color-done-fg: #8250df;
--color-done-emphasis: #8250df;
--color-success-fg: #1a7f37;
--color-success-emphasis: #1f883d;
}

[data-color-mode*='light'],
[data-color-mode*='light'] body {
--color-header-bg: #ffffff52;
--color-header-border: #d3d3d3;
--color-header-border: #0000001c;
--color-hover: #0000001a;
--color-hoc-bg: #00000008;

--color-border-default: #30363d;
--color-accent-fg: #58a6ff;
--color-accent-emphasis: #1f6feb;
--color-danger-fg: #f85149;
--color-danger-emphasis: #da3633;
--color-attention-fg: #d29922;
--color-attention-emphasis: #9e6a03;
--color-done-fg: #a371f7;
--color-done-emphasis: #8957e5;
--color-success-fg: #3fb950;
--color-success-emphasis: #238636;
}

*,
Expand Down Expand Up @@ -256,3 +280,59 @@ section.article-footer .atime {
color: var(--color-fg-muted);
font-size: 14px;
}

.markdown-alert {
border-left: 0.25em solid var(--borderColor-default, var(--color-border-default));
color: inherit;
margin-bottom: 16px;
padding: 0.5rem 1em;
}
.markdown-alert > :last-child {
margin-bottom: 0 !important;
}
.markdown-alert .markdown-alert-title {
align-items: center;
display: flex;
font-size: 14px;
font-weight: 500;
line-height: 1;
}
.markdown-alert .markdown-alert-title svg.octicon {
margin-right: 8px !important;
margin-right: var(--base-size-8, 8px) !important;
}
.markdown-alert.markdown-alert-note {
border-left-color: var(--borderColor-accent-emphasis, var(--color-accent-emphasis));
}
.markdown-alert.markdown-alert-note .markdown-alert-title {
color: var(--color-accent-fg);
color: var(--fgColor-accent, var(--color-accent-fg));
}
.markdown-alert.markdown-alert-tip {
border-left-color: var(--borderColor-success-emphasis, var(--color-success-emphasis));
}
.markdown-alert.markdown-alert-tip .markdown-alert-title {
color: var(--color-success-fg);
color: var(--fgColor-success, var(--color-success-fg));
}
.markdown-alert.markdown-alert-important {
border-left-color: var(--borderColor-done-emphasis, var(--color-done-emphasis));
}
.markdown-alert.markdown-alert-important .markdown-alert-title {
color: var(--color-done-fg);
color: var(--fgColor-done, var(--color-done-fg));
}
.markdown-alert.markdown-alert-warning {
border-left-color: var(--borderColor-attention-emphasis, var(--color-attention-emphasis));
}
.markdown-alert.markdown-alert-warning .markdown-alert-title {
color: var(--color-attention-fg);
color: var(--fgColor-attention, var(--color-attention-fg));
}
.markdown-alert.markdown-alert-caution {
border-left-color: var(--borderColor-danger-emphasis, var(--color-danger-emphasis));
}
.markdown-alert.markdown-alert-caution .markdown-alert-title {
color: var(--color-danger-fg);
color: var(--fgColor-danger, var(--color-danger-fg));
}
26 changes: 13 additions & 13 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,16 @@
<title>coverage-badges-cli Coverage Badges 2.0.0</title>
<meta name="description" content="Create coverage badges from coverage reports. Using GitHub Actions and GitHub Workflow CPU time (no 3rd parties servers)">
<meta name="keywords" content="coverage,coverage-badges,coverage-badges-cli,badges">
<link rel="stylesheet" type="text/css" href="css/main.css?v=1.27.2">
<link rel="stylesheet" type="text/css" href="css/tocbot.css?v=1.27.2">
<link rel="stylesheet" type="text/css" href="css/media.css?v=1.27.2">
<link rel="stylesheet" type="text/css" href="css/sidebar.css?v=1.27.2">
<link rel="stylesheet" type="text/css" href="css/copy.css?v=1.27.2">
<link rel="stylesheet" type="text/css" href="css/demo-preview.css?v=1.27.2">
<link rel="stylesheet" type="text/css" href="css/main.css?v=1.31.0">
<link rel="stylesheet" type="text/css" href="css/tocbot.css?v=1.31.0">
<link rel="stylesheet" type="text/css" href="css/media.css?v=1.31.0">
<link rel="stylesheet" type="text/css" href="css/sidebar.css?v=1.31.0">
<link rel="stylesheet" type="text/css" href="css/copy.css?v=1.31.0">
<link rel="stylesheet" type="text/css" href="css/demo-preview.css?v=1.31.0">
<link rel="icon" href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAAAXNSR0IArs4c6QAAEIlJREFUeF7tnXtwVNUdx3/n7kIe8sgTNEjLTMeAUrVUKB0U0f6D1ZkKCqhBJKDSdjplHEnW6B8l0hZIQKBaq+KMQDvTOhYfnY5jpU7rg9pp0Y5aSysKA4SEAJJNIJjdkN3TOWuigcnuub97727u2fu9MzuJ7ve8vt/72XPP2XCvIBxwAA6kdUDAGzgAB9I7AEBwdsCBDA4AEJwecACA4ByAA84cwAzizDeUCogDACQgQWOYzhwAIM58Q6mAOABAAhI0hunMAQDizDeUCogDACQgQWOYzhwAIM58Q6mAOABAAhI0hunMAQDizDeUCogDACQgQWOYzhwAIM58Q6mAOABAAhI0hunMAQDizDeUCogDACQgQWOYzhwAIM58Q6mAOABAAhI0hunMgawC0tTU9DgRLRRCVDrrHqtUBxFFiSj1U0rZYVlWRzKZVP+v3bKsViJqi8fjbX19fa2NjY1JVu0BFG/atKlMSlmRSCQqhRAVRFQhpVRZqt9TP6WUJUR0wcBLCDHweyhHlm1PJBI7Hnzwwdez0V7WAGlubpb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znEagTe/Aks5X6JLeof++yPbiEwbbckAkrat7lo9525a4X8QGpHh751VJonc4jUCb3gG1kbGi4yUqT3SdI1LrDbXuwOGZA/tiZ3qvoh+N6+bUyAZEVV60LfqoFOLHnIagTe9AVd+ntKLjRbL6/5LofwVfpd+OnQvLvHRAyutjy0pf51bpCBDViJ2/yeJ2Jsj6ge+NWkaMp+0lN2V+UlKQjXIwdinEyvjSsY85KJrpn1/pqyt65tQsaSWXE4lvE8mp+hJQZHJg9mfv0fuFl9Ap6wIY5d6B16VaCoTEU/ElYz9xWp3jGcRpg/lSrnBH559IkinXQaditSVj88X7XI4DgDh0u/A3p2ZTIvmmw+K5LeZg/z+3HfRvawDERTYF26MvChLzXFSRg6LiP7HasV/PQUN52QQAcRFr8Y7otKQULxHRV1xUk9WiQtKinmUlv89qI3lcOQBxGW7hM53fIYv+SETFLqvyvDjgcG8pAHHvIRX9OnpLUorFQtK1RFThQZXOq5B0jAT9VUh6ATOHcxsHSgIQ9x6eU0PqsitJw7JjlLRGdPQuHfWBx0MKdHUAJNDxY/A6BwCIziG8H2gHAEig48fgdQ4AEJ1DeD/QDgCQQMePwescACA6h/B+oB0AIIGOH4PXOQBAdA7h/UA7AEACHT8Gr3MAgOgcwvuBdgCABDp+DF7nAADROYT3A+0AAAl0/Bi8zgEAonMI7wfaAQAS6PgxeJ0DAETnEN4PtAMAJNDxY/A6BwCIziG8H2gH/g8LPRyq8vuk8QAAAABJRU5ErkJggg==" type="image/x-icon">
<script src="js/copy.js?v=1.27.2"></script>
<script src="js/dark-mode.js?v=1.27.2"></script>
<script src="js/markdown-style.js?v=1.27.2"></script>
<script src="js/copy.js?v=1.31.0"></script>
<script src="js/dark-mode.js?v=1.31.0"></script>
<script src="js/markdown-style.js?v=1.31.0"></script>
</head>
<body id="idoctotop"><a href="#idoctotop" class="gototop">top</a>
<header class="header">
Expand All @@ -33,7 +33,7 @@
</article>
</header>
<div class="warpper-content warpper">
<markdown-style>
<markdown-style theme-auto-switch-disabled="">
<h1 style="display: flex; height: 230px; align-items: center; justify-content: center; font-size: 38px;" id="coverage-badges-cli"><a aria-hidden="true" tabindex="-1" href="#coverage-badges-cli" class="anchor"><span class="icon icon-link"></span></a>coverage-badges-cli</h1><!--rehype:style=display: flex; height: 230px; align-items: center; justify-content: center; font-size: 38px;-->
<p>
<a href="https://jaywcjlove.github.io/#/sponsor"><img src="https://img.shields.io/badge/Buy%20me%20a%20coffee-048754?logo=buymeacoffee" alt="Buy me a coffee"></a>
Expand Down Expand Up @@ -269,14 +269,14 @@ <h2 id="license"><a aria-hidden="true" tabindex="-1" href="#license" class="anch
</aside>
</nav>
</div>
<script src="js/demo-preview.js?v=1.27.2"></script>
<script src="js/demo-preview.js?v=1.31.0"></script>
<div class="footer warpper">
<a href="https://jaywcjlove.github.io/#/sponsor" target="_blank">Sponsor</a>
<a href="https://jaywcjlove.github.io/create-tag-action" target="_blank">Create Tag</a>
<a href="https://jaywcjlove.github.io/github-action-contributors" target="_blank">Contributors</a>
<a href="https://jaywcjlove.github.io/github-action-read-file" target="_blank">Read File Content</a>
<a href="./index.html" target="_blank">Generated Badges</a><br>Released under the MIT License. Copyright © 2024 Kenny Wong<br>Generated by <a href="https://github.com/jaywcjlove/idoc" target="_blank">idoc</a> v1.27.2
<a href="./index.html" target="_blank">Generated Badges</a><br>Released under the MIT License. Copyright © 2024 Kenny Wong<br>Generated by <a href="https://github.com/jaywcjlove/idoc" target="_blank">idoc</a> v1.31.0
</div>
<script src="js/tocbot.js?v=1.27.2"></script>
<script src="js/tocbot.js?v=1.31.0"></script>
</body>
</html>
34 changes: 34 additions & 0 deletions js/giscus.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
;(() => {
const targetElement = document.documentElement;
const defaultTheme = targetElement.getAttribute("data-color-mode");
changeGiscusTheme(defaultTheme)
const observer = new MutationObserver((mutationsList, observer) => {
for(const mutation of mutationsList) {
if (mutation.type === 'attributes') {
const value = targetElement.getAttribute("data-color-mode");
changeGiscusTheme(value)
}
}
});

observer.observe(targetElement, {
attributes: true,
attributeOldValue: true
});

function changeGiscusTheme(theme = "light") {
const iframe = document.querySelector('.giscus-frame');
if (iframe) {
const config = {
giscus: {
setConfig: {
theme: theme.toLocaleLowerCase(),
},
}
};
iframe.contentWindow.postMessage(config, 'https://giscus.app');
const script = document.querySelector("script[data-script-id=\"giscus\"]")
script.setAttribute("data-theme", theme)
}
}
})();
61 changes: 51 additions & 10 deletions js/markdown-style.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
/**
* Markdown Style
* @version 1.1.0
* @author 小弟调调
* https://github.com/jaywcjlove/markdown-style
*
* Integrate markdown styles into web components, Markdown CSS styles will not be conflicted.
* The minimal amount of CSS to replicate the GitHub Markdown style. Support dark-mode/night mode.
*/
const octiconLinkStyle = `
markdown-style h1:hover a.anchor .icon-link:before,
markdown-style h2:hover a.anchor .icon-link:before,
Expand Down Expand Up @@ -110,7 +119,7 @@ ${octiconLinkStyle}
markdown-style {
display: block;
-webkit-text-size-adjust: 100%;
font-family: -apple-system,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";
font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";
font-size: 16px;
line-height: 1.5;
word-wrap: break-word;
Expand Down Expand Up @@ -579,6 +588,35 @@ markdown-style sup>a::after {
content: "]";
}
.markdown-body .octicon-video {
border: 1px solid #d0d7de !important;
border-radius: 6px !important;
display: block;
}
markdown-style .octicon-video summary {
border-bottom: 1px solid #d0d7de !important;
padding: 8px 16px !important;
cursor: pointer;
}
markdown-style .octicon-video > video {
display: block !important;
max-width: 100% !important;
padding: 2px;
box-sizing: border-box;
border-bottom-right-radius: 6px !important;
border-bottom-left-radius: 6px !important;
}
markdown-style details.octicon-video:not([open])>*:not(summary) {
display: none !important;
}
markdown-style details.octicon-video:not([open]) > summary {
border-bottom: 0 !important;
}
markdown-style h1 .octicon-link,
markdown-style h2 .octicon-link,
markdown-style h3 .octicon-link,
Expand Down Expand Up @@ -962,6 +1000,13 @@ markdown-style ::-webkit-calendar-picker-indicator {
<slot></slot>
`;
class MarkdownStyle extends HTMLElement {
get theme() {
const value = this.getAttribute('theme');
return value === null ? '' : value;
}
set theme(name) {
this.setAttribute('theme', name);
}
constructor() {
super();
this.shadow = this.attachShadow({ mode: 'open' });
Expand All @@ -978,14 +1023,11 @@ class MarkdownStyle extends HTMLElement {
}
}
}
get theme() {
const value = this.getAttribute('theme');
return value === null ? '' : value;
}
set theme(name) {
this.setAttribute('theme', name);
}
connectedCallback() {
const disableThemeAutoSwitch = this.getAttribute('theme-auto-switch-disabled');
if (disableThemeAutoSwitch == "" || disableThemeAutoSwitch && disableThemeAutoSwitch.toLowerCase() === 'true') {
return;
}
if (!this.theme) {
const { colorMode } = document.documentElement.dataset;
this.theme = colorMode;
Expand All @@ -1002,5 +1044,4 @@ class MarkdownStyle extends HTMLElement {
}
}
}
customElements.define('markdown-style', MarkdownStyle);
//# sourceMappingURL=index.js.map
customElements.define('markdown-style', MarkdownStyle);
2 changes: 1 addition & 1 deletion lcov-report/action.ts.html
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ <h1><a href="index.html">All files</a> action.ts</h1>
<div class='footer quiet pad2 space-top1 center small'>
Code coverage generated by
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
at 2024-02-23T07:14:38.154Z
at 2024-06-25T16:17:34.638Z
</div>
<script src="prettify.js"></script>
<script>
Expand Down
2 changes: 1 addition & 1 deletion lcov-report/badges.ts.html
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ <h1><a href="index.html">All files</a> badges.ts</h1>
<div class='footer quiet pad2 space-top1 center small'>
Code coverage generated by
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
at 2024-02-23T07:14:38.154Z
at 2024-06-25T16:17:34.638Z
</div>
<script src="prettify.js"></script>
<script>
Expand Down
Loading

0 comments on commit a81cea3

Please sign in to comment.