Skip to content

Commit

Permalink
change
Browse files Browse the repository at this point in the history
  • Loading branch information
dixtdf committed Apr 29, 2024
1 parent 3f2051e commit 90c8dc8
Show file tree
Hide file tree
Showing 5 changed files with 43 additions and 43 deletions.
34 changes: 17 additions & 17 deletions ccsupportshortcut/get_started/zh/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,21 +24,21 @@

<script id="MathJax-script" async src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js"></script>

<script src="/static/js/theme_default/pre_main.js"></script>
<script src="/ccsupportshortcut/static/js/theme_default/pre_main.js"></script>

<link rel="stylesheet" href="/static/css/theme_default/prism.min.css" type="text/css"/>
<link rel="stylesheet" href="/ccsupportshortcut/static/css/theme_default/prism.min.css" type="text/css"/>

<link rel="stylesheet" href="/static/css/theme_default/viewer.min.css" type="text/css"/>
<link rel="stylesheet" href="/ccsupportshortcut/static/css/theme_default/viewer.min.css" type="text/css"/>

<link rel="stylesheet" href="/static/css/theme_default/dark.css" type="text/css"/>
<link rel="stylesheet" href="/ccsupportshortcut/static/css/theme_default/dark.css" type="text/css"/>

<link rel="stylesheet" href="/static/css/theme_default/light.css" type="text/css"/>
<link rel="stylesheet" href="/ccsupportshortcut/static/css/theme_default/light.css" type="text/css"/>

<script src="/static/js/theme_default/jquery.min.js"></script>
<script src="/ccsupportshortcut/static/js/theme_default/jquery.min.js"></script>

<script src="/static/js/theme_default/split.js"></script>
<script src="/ccsupportshortcut/static/js/theme_default/split.js"></script>

<link rel="stylesheet" href="/static/css/custom.css" type="text/css"/>
<link rel="stylesheet" href="/ccsupportshortcut/static/css/custom.css" type="text/css"/>



Expand All @@ -53,7 +53,7 @@

<div id="navbar">
<div id="navbar_menu">
<a class="site_title" href="/">
<a class="site_title" href="/ccsupportshortcut/">


<h2>Doc</h2>
Expand Down Expand Up @@ -83,7 +83,7 @@ <h2>Doc</h2>

</div>
<ul class="show">
<li class="active with_link"><a href="/get_started/zh/index.html"><span class="label">简介</span><span class=""></span></a></li>
<li class="active with_link"><a href="/ccsupportshortcut/get_started/zh/index.html"><span class="label">简介</span><span class=""></span></a></li>
</ul>

</div>
Expand Down Expand Up @@ -197,26 +197,26 @@ <h2 id="%E6%9B%B4%E5%A4%9AURLScheme">更多URLScheme</h2>
</div>
<div id="footer_bottom">
<ul>
<li><a target="_blank" href="/">Home</a></li>
<li><a target="_blank" href="/ccsupportshortcut/">Home</a></li>
</ul>

</div>
</div>
</div>

<script src="/teedoc-plugin-markdown-parser/mermaid.min.js"></script>
<script src="/ccsupportshortcut/teedoc-plugin-markdown-parser/mermaid.min.js"></script>

<script>mermaid.initialize({startOnLoad:true});</script>

<script src="/static/js/theme_default/tocbot.min.js"></script>
<script src="/ccsupportshortcut/static/js/theme_default/tocbot.min.js"></script>

<script src="/static/js/theme_default/main.js"></script>
<script src="/ccsupportshortcut/static/js/theme_default/main.js"></script>

<script src="/static/js/theme_default/viewer.min.js"></script>
<script src="/ccsupportshortcut/static/js/theme_default/viewer.min.js"></script>

<script src="/static/css/theme_default/prism.min.js"></script>
<script src="/ccsupportshortcut/static/css/theme_default/prism.min.js"></script>

<script src="/static/js/custom.js"></script>
<script src="/ccsupportshortcut/static/js/custom.js"></script>

</body>

Expand Down
18 changes: 9 additions & 9 deletions ccsupportshortcut/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

<meta name="markdown-generator" content="teedoc-plugin-markdown-parser"><script>
MathJax = {"loader": {"load": ["output/svg"]}, "tex": {"inlineMath": [["$", "$"], ["\\(", "\\)"]]}, "svg": {"fontCache": "global"}};
</script><script id="MathJax-script" async src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js"></script><script src="/static/js/theme_default/pre_main.js"></script><link rel="stylesheet" href="/static/css/theme_default/prism.min.css" type="text/css"/><link rel="stylesheet" href="/static/css/theme_default/viewer.min.css" type="text/css"/><link rel="stylesheet" href="/static/css/theme_default/dark.css" type="text/css"/><link rel="stylesheet" href="/static/css/theme_default/light.css" type="text/css"/><script src="/static/js/theme_default/jquery.min.js"></script><script src="/static/js/theme_default/split.js"></script><link rel="stylesheet" href="/static/css/custom.css" type="text/css"/>
</script><script id="MathJax-script" async src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js"></script><script src="/ccsupportshortcut/static/js/theme_default/pre_main.js"></script><link rel="stylesheet" href="/ccsupportshortcut/static/css/theme_default/prism.min.css" type="text/css"/><link rel="stylesheet" href="/ccsupportshortcut/static/css/theme_default/viewer.min.css" type="text/css"/><link rel="stylesheet" href="/ccsupportshortcut/static/css/theme_default/dark.css" type="text/css"/><link rel="stylesheet" href="/ccsupportshortcut/static/css/theme_default/light.css" type="text/css"/><script src="/ccsupportshortcut/static/js/theme_default/jquery.min.js"></script><script src="/ccsupportshortcut/static/js/theme_default/split.js"></script><link rel="stylesheet" href="/ccsupportshortcut/static/css/custom.css" type="text/css"/>


<title>Doc - Doc</title>
Expand All @@ -28,7 +28,7 @@

<div id="navbar">
<div id="navbar_menu">
<a class="site_title" href="/">
<a class="site_title" href="/ccsupportshortcut/">


<h2>Doc</h2>
Expand Down Expand Up @@ -97,7 +97,7 @@ <h2 id="%E6%9B%B4%E5%A4%9AURLScheme">更多URLScheme</h2>
</div>
<div id="footer_bottom">
<ul>
<li><a target="_blank" href="/">Home</a></li>
<li><a target="_blank" href="/ccsupportshortcut/">Home</a></li>
</ul>

</div>
Expand All @@ -108,19 +108,19 @@ <h2 id="%E6%9B%B4%E5%A4%9AURLScheme">更多URLScheme</h2>



<script src="/teedoc-plugin-markdown-parser/mermaid.min.js"></script>
<script src="/ccsupportshortcut/teedoc-plugin-markdown-parser/mermaid.min.js"></script>

<script>mermaid.initialize({startOnLoad:true});</script>

<script src="/static/js/theme_default/tocbot.min.js"></script>
<script src="/ccsupportshortcut/static/js/theme_default/tocbot.min.js"></script>

<script src="/static/js/theme_default/main.js"></script>
<script src="/ccsupportshortcut/static/js/theme_default/main.js"></script>

<script src="/static/js/theme_default/viewer.min.js"></script>
<script src="/ccsupportshortcut/static/js/theme_default/viewer.min.js"></script>

<script src="/static/css/theme_default/prism.min.js"></script>
<script src="/ccsupportshortcut/static/css/theme_default/prism.min.js"></script>

<script src="/static/js/custom.js"></script>
<script src="/ccsupportshortcut/static/js/custom.js"></script>


</body>
Expand Down
2 changes: 1 addition & 1 deletion ccsupportshortcut/sitemap.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd">
<url>
<loc>https://my_name.github.io/get_started/zh/index.html</loc>
<loc>https://my_name.github.io/ccsupportshortcut/get_started/zh/index.html</loc>
<lastmod>2022-09-01</lastmod>
<changefreq>weekly</changefreq>
<priority>1.0</priority>
Expand Down
24 changes: 12 additions & 12 deletions ccsupportshortcut/static/css/theme_default/light.css
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@ pre[class*="language-"].line-numbers > code {
}
#sidebar .sub_indicator {
transition: transform 0.4s linear;
background: url("/static/image/theme_default/indicator.svg");
background: url("/ccsupportshortcut/static/image/theme_default/indicator.svg");
background-size: contain;
background-repeat: no-repeat;
background-position: center;
Expand Down Expand Up @@ -500,7 +500,7 @@ html[lang^=zh] #article_content #blog_list h2:before {
width: 2%;
}
#menu {
background: url("/static/image/theme_default/menu.svg");
background: url("/ccsupportshortcut/static/image/theme_default/menu.svg");
background-size: contain;
background-repeat: no-repeat;
background-position: center;
Expand Down Expand Up @@ -716,7 +716,7 @@ html[lang^=zh].heading_no_counter #article_content h4:before {
cursor: pointer;
background-repeat: no-repeat;
background-size: contain;
background-image: url("/static/image/theme_default/print.svg");
background-image: url("/ccsupportshortcut/static/image/theme_default/print.svg");
}
#article_info>div>span {
padding: 0.2em;
Expand Down Expand Up @@ -753,7 +753,7 @@ div.code-toolbar > .toolbar a:hover, div.code-toolbar > .toolbar a:focus, div.co
/* #to_top_wrapper {
} */
#to_top {
background: url("/static/image/theme_default/to-top.svg");
background: url("/ccsupportshortcut/static/image/theme_default/to-top.svg");
background-size: 2em;
background-repeat: no-repeat;
background-position: center;
Expand Down Expand Up @@ -813,7 +813,7 @@ div.code-toolbar > .toolbar a:hover, div.code-toolbar > .toolbar a:focus, div.co
}
#previous_next #previous a > .icon{
transition: transform 0.4s linear;
background: url("/static/image/theme_default/to-top.svg");
background: url("/ccsupportshortcut/static/image/theme_default/to-top.svg");
background-size: 2em;
background-repeat: no-repeat;
background-position: center;
Expand All @@ -836,7 +836,7 @@ div.code-toolbar > .toolbar a:hover, div.code-toolbar > .toolbar a:focus, div.co
}
#previous_next #next a > .icon{
transition: transform 0.4s linear;
background: url("/static/image/theme_default/to-top.svg");
background: url("/ccsupportshortcut/static/image/theme_default/to-top.svg");
background-size: 2em;
background-repeat: no-repeat;
background-position: center;
Expand Down Expand Up @@ -1109,7 +1109,7 @@ details > summary {
}
details > summary:before {
display:inline-block;
content: url("/static/image/theme_default/array.svg");
content: url("/ccsupportshortcut/static/image/theme_default/array.svg");
transform:rotate(90deg);
transition: 0.4s;
left: 0.5em;
Expand Down Expand Up @@ -1163,7 +1163,7 @@ details > .details-content, details > div {
padding-left: 0;
}
#navbar_menu_btn {
background: url("/static/image/theme_default/menu.svg");
background: url("/ccsupportshortcut/static/image/theme_default/menu.svg");
background-size: contain;
background-repeat: no-repeat;
background-position: center;
Expand Down Expand Up @@ -1224,7 +1224,7 @@ details > .details-content, details > div {
top: 1em;
}
#menu.close {
background: url("/static/image/theme_default/back.svg");
background: url("/ccsupportshortcut/static/image/theme_default/back.svg");
background-size: contain;
background-repeat: no-repeat;
background-position: center;
Expand Down Expand Up @@ -1279,7 +1279,7 @@ details > .details-content, details > div {
z-index: 97;
}
#toc_btn {
background: url("/static/image/theme_default/anchor.svg");
background: url("/ccsupportshortcut/static/image/theme_default/anchor.svg");
background-size: contain;
background-repeat: no-repeat;
background-position: center;
Expand All @@ -1301,15 +1301,15 @@ details > .details-content, details > div {
cursor: pointer;
}
#navbar .light, #navbar .dark:hover {
background: url("/static/image/theme_default/light_mode.svg");
background: url("/ccsupportshortcut/static/image/theme_default/light_mode.svg");
background-size: contain;
background-repeat: no-repeat;
background-position: center;
min-height: 1rem;
min-width: 1rem;
}
#navbar .dark, #navbar .light:hover {
background: url("/static/image/theme_default/dark_mode.svg");
background: url("/ccsupportshortcut/static/image/theme_default/dark_mode.svg");
background-size: contain;
background-repeat: no-repeat;
background-position: center;
Expand Down
8 changes: 4 additions & 4 deletions ccsupportshortcut/static/js/theme_default/pre_main.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,16 +39,16 @@ function setTheme(theme){
}
document.getElementsByTagName("html")[0].classList.add("dark");
// load dark and light togher, distingush by .dark class instead use single css file
// removejscssfile("/static/css/theme_default/light.css", "css");
// addCss("/static/css/theme_default/dark.css");
// removejscssfile("/ccsupportshortcut/static/css/theme_default/light.css", "css");
// addCss("/ccsupportshortcut/static/css/theme_default/dark.css");
}else{
if(obj){
obj.classList.remove("dark");
obj.classList.add("light");
}
document.getElementsByTagName("html")[0].classList.remove("dark");
// removejscssfile("/static/css/theme_default/dark.css", "css");
// addCss("/static/css/theme_default/light.css");
// removejscssfile("/ccsupportshortcut/static/css/theme_default/dark.css", "css");
// addCss("/ccsupportshortcut/static/css/theme_default/light.css");
}
localStorage.setItem("theme", theme);
}

0 comments on commit 90c8dc8

Please sign in to comment.