[improvement]Remove the website build framework from the docs directory (#11081)

Remove the website build framework from the docs directory
This commit is contained in:
jiafeng.zhang
2022-07-29 13:51:57 +08:00
committed by GitHub
parent 8eac06134f
commit 92bb7d0720
401 changed files with 39 additions and 40447 deletions

View File

@ -48,7 +48,6 @@ jobs:
- 'fs_brokers/**'
docs_changes:
- 'docs/**'
build-broker:
name: Build Broker
needs: changes
@ -71,11 +70,9 @@ jobs:
thrift --version
mkdir -p thirdparty/installed/bin/
cd thirdparty/installed/bin/ && ln -s /usr/bin/thrift thrift
- name: Build broker
run: |
cd fs_brokers/apache_hdfs_broker/ && /bin/bash build.sh
build-docs:
name: Build Documents
needs: changes
@ -87,5 +84,4 @@ jobs:
- name: Build docs
run: |
cd docs && /bin/bash build_help_zip.sh
cd docs && /bin/bash build_help_zip.sh

View File

@ -1,19 +0,0 @@
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
{
"default": true,
"MD013": false,
}

View File

@ -1,309 +0,0 @@
/*
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
*/
const BUILDING_BRANCH = process.env.BRANCH || "";
const ALGOLIA_API_KEY = process.env.ALGOLIA_API_KEY || "";
const ALGOLIA_INDEX_NAME = process.env.ALGOLIA_INDEX_NAME || "";
const ALGOLIA_APP_ID = process.env.ALGOLIA_APP_ID || "";
function convertSidebar(list, path) {
if (list.length > 0) {
list.forEach((element, i) => {
if (element.children) {
convertSidebar(element.children, path + element.directoryPath);
delete element.directoryPath;
} else {
list[i] = `${path}${element}`;
}
});
}
return list;
}
function buildAlgoliaSearchConfig(lang) {
return {
apiKey: ALGOLIA_API_KEY,
indexName: ALGOLIA_INDEX_NAME,
appId: ALGOLIA_APP_ID,
};
}
module.exports = {
base: BUILDING_BRANCH.length > 0 ? "/" + BUILDING_BRANCH + "/" : "",
locales: {
"/en/": {
lang: "en", // html lang属性
title: "Apache Doris",
description: "Apache Doris",
},
"/zh-CN/": {
lang: "zh-CN",
title: "Apache Doris",
description: "Apache Doris",
},
},
// 头部文件设置
head: [
// CSS样式上传
["link", { rel: "icon", href: "/blog-images/logo.png" }],
[
"link",
{
rel: "stylesheet",
href: "/font/font.css",
},
],
[
"link",
{
rel: "stylesheet",
href: "/css/animate.min.css",
},
],
// meta 描述
[
"meta",
{
name: "viewport",
content: "width=device-width,initial-scale=1,user-scalable=no",
},
],
// js 上传
[
"script",
{
type: "text/javascript",
src: "/js/jquery.min.js",
},
],
["script", { type: "text/javascript", src: "/js/xRoll.js" }],
["script", { type: "text/javascript", src: "/js/js.js" }],
],
title: "Apache Doris",
description: "Apache Doris",
theme: "haobom",
themeConfig: {
mode: "light",
modePicker: false,
noFoundPageByTencent: false,
locales: {
"/en/": {
algolia: buildAlgoliaSearchConfig("en"),
versions: {
text: "versions",
icon: "doris doris-xiala",
items: [
{
text: "master",
link: "/en/docs/get-starting/get-starting.html",
},
],
},
// 导航栏
nav: [
{
text: "Docs",
link: "",
name: "document",
},
{
text: "Blog",
icon: "doris doris-xiala",
name: "blog",
items: [
// { text: "Doris Weekly", link: "/en/categories/DorisWeekly/" },
{ text: "Best Practice", link: "/en/categories/PracticalCases/" },
{ text: "Release Note", link: "/en/categories/ReleaseNote/" },
// {
// text: "Doris Internal",
// link: "/en/categories/DorisInternals/",
// },
],
},
{
text: "Development",
link: "/en/developer/developer-guide/debug-tool.html",
},
{
text: "Community",
link: "/en/community/team.html",
},
{
text: "User",
link: "/en/userCase/user.html",
},
{
text: "ASF",
icon: "doris doris-xiala",
items: [
{ text: "Foundation", link: "https://www.apache.org/" },
{ text: "Security", link: "https://www.apache.org/security/" },
{ text: "License", link: "https://www.apache.org/licenses/" },
{
text: "Events",
link: "https://www.apache.org/events/current-event",
},
{
text: "Sponsorship",
link: "https://www.apache.org/foundation/sponsorship.html",
},
{
text: "Privacy",
link: "https://www.apache.org/foundation/policies/privacy.html",
},
{
text: "Thanks",
link: "https://www.apache.org/foundation/thanks.html",
},
],
},
{
text: "Downloads",
link: "/en/downloads/downloads",
className: "downloads",
},
],
// 指定页面侧边栏
sidebar: {
"/en/developer/": convertSidebar(
require("./sidebar/en/developer.js"),
"/en/developer/"
),
"/en/community/": convertSidebar(
require("./sidebar/en/community.js"),
"/en/community/"
),
"/en/docs/": convertSidebar(
require("./sidebar/en/docs.js"),
"/en/docs/"
),
},
},
"/zh-CN/": {
algolia: buildAlgoliaSearchConfig("zh-CN"),
versions: {
text: "versions",
icon: "doris doris-xiala",
items: [
{
text: "master",
link: "/zh-CN/docs/get-starting/get-starting.html",
},
],
},
// 导航栏
nav: [
{
text: "文档",
link: "",
name: "document",
},
{
text: "博客",
icon: "doris doris-xiala",
name: "blog",
items: [
// { text: "每周通报", link: "/zh-CN/categories/DorisWeekly/" },
{ text: "最佳实践", link: "/zh-CN/categories/PracticalCases/" },
{ text: "版本发布", link: "/zh-CN/categories/ReleaseNote/" },
{
text: "内核解析",
link: "/zh-CN/categories/DorisInternals/",
},
],
},
{
text: "开发者",
link: "/zh-CN/developer/developer-guide/debug-tool.html",
},
{
text: "社区",
link: "/zh-CN/community/team.html",
},
{
text: "用户",
link: "/zh-CN/userCase/user.html",
},
{
text: "ASF",
icon: "doris doris-xiala",
items: [
{ text: "基金会", link: "https://www.apache.org/" },
{ text: "安全", link: "https://www.apache.org/security/" },
{ text: "版权", link: "https://www.apache.org/licenses/" },
{
text: "活动",
link: "https://www.apache.org/events/current-event",
},
{
text: "捐赠",
link: "https://www.apache.org/foundation/sponsorship.html",
},
{
text: "隐私",
link: "https://www.apache.org/foundation/policies/privacy.html",
},
{
text: "鸣谢",
link: "https://www.apache.org/foundation/thanks.html",
},
],
},
{
text: "下载",
link: "/zh-CN/downloads/downloads",
className: "downloads",
},
],
// 指定页面侧边栏
sidebar: {
"/zh-CN/community/": convertSidebar(
require("./sidebar/zh-CN/community.js"),
"/zh-CN/community/"
),
"/zh-CN/developer/": convertSidebar(
require("./sidebar/zh-CN/developer.js"),
"/zh-CN/developer/"
),
"/zh-CN/docs/": convertSidebar(
require("./sidebar/zh-CN/docs.js"),
"/zh-CN/docs/"
),
},
},
},
logo: "/blog-images/logo.png", // 博客的Logo图片
search: true, // 是否开启搜索框
searchMaxSuggestions: 10, // 搜索的关键词深度
// "lastUpdated": "Last Updated", // 最后更新时间 这个无所谓
author: "", // 作者名称
authorAvatar: "", // 作者头像
record: "xxxx", // 这里是网站备案!
startYear: "2022", // 网站的起始时间 效果:2022 - 2022
subSidebar: "auto", //在所有页面中启用自动生成子侧边栏,原 sidebar 仍然兼容
displayAllHeaders: true,
sidebarDepth: 2,
},
markdown: {
lineNumbers: true,
},
};

Binary file not shown.

Before

Width:  |  Height:  |  Size: 69 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 29 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 25 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 28 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 293 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 462 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 359 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 574 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 492 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 368 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 28 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 78 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 82 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 32 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 27 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

File diff suppressed because one or more lines are too long

View File

@ -1,47 +0,0 @@
/*
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
*/
@font-face {
font-family: "doris"; /* Project id 3319292 */
src: url('font_3319292_bdqvc63l075.woff2?t=1649753790557') format('woff2'),
url('font_3319292_bdqvc63l075.woff?t=1649753790557') format('woff'),
url('font_3319292_bdqvc63l075.ttf?t=1649753790557') format('truetype'),
url('font_3319292_bdqvc63l075.svg?t=1649753790557#doris') format('svg');
}
.doris {
font-family: "doris" !important;
font-size: 16px;
font-style: normal;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
.doris-jiantou_xiangyouliangci:before {
content: "\eb09";
}
.doris-github-fill:before {
content: "\e885";
}
.doris-xiala:before {
content: "\e62a";
}

View File

@ -1,25 +0,0 @@
<?xml version="1.0" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" >
<svg xmlns="http://www.w3.org/2000/svg">
<metadata>Created by iconfont</metadata>
<defs>
<font id="doris" horiz-adv-x="1024">
<font-face
font-family="doris"
font-weight="400"
font-stretch="normal"
units-per-em="1024"
ascent="896"
descent="-128"
/>
<missing-glyph />
<glyph glyph-name="jiantou_xiangyouliangci" unicode="&#60169;" d="M550.4 405.333333L230.4 725.333333 170.666667 665.6l260.266666-260.266667L170.666667 145.066667 230.4 85.333333l320 320z m298.666667 0L533.333333 725.333333 469.333333 665.6l260.266667-260.266667-260.266667-260.266666 59.733334-59.733334 320 320z" horiz-adv-x="1024" />
<glyph glyph-name="github-fill" unicode="&#59525;" d="M511.6 819.7C264.3 819.8 64 619.6 64 372.5 64 177.1 189.3 11 363.8-50c23.5-5.9 19.9 10.8 19.9 22.2v77.5c-135.7-15.9-141.2 73.9-150.3 88.9C215 170 171.5 178 184.5 193c30.9 15.9 62.4-4 98.9-57.9 26.4-39.1 77.9-32.5 104-26 5.7 23.5 17.9 44.5 34.7 60.8-140.6 25.2-199.2 111-199.2 213 0 49.5 16.3 95 48.3 131.7-20.4 60.5 1.9 112.3 4.9 120 58.1 5.2 118.5-41.6 123.2-45.3 33 8.9 70.7 13.6 112.9 13.6 42.4 0 80.2-4.9 113.5-13.9 11.3 8.6 67.3 48.8 121.3 43.9 2.9-7.7 24.7-58.3 5.5-118 32.4-36.8 48.9-82.7 48.9-132.3 0-102.2-59-188.1-200-212.9 23.5-23.2 38.1-55.4 38.1-91v-112.5c0.8-9 0-17.9 15-17.9 177.1 59.7 304.6 227 304.6 424.1 0 247.2-200.4 447.3-447.5 447.3z" horiz-adv-x="1024" />
<glyph glyph-name="xiala" unicode="&#58922;" d="M142.805333 630.826667A58.666667 58.666667 0 1 1 59.861333 547.84l410.666667-410.666667a58.666667 58.666667 0 0 1 82.944 0l410.666667 410.666667a58.666667 58.666667 0 1 1-82.944 82.986667L512 261.632 142.805333 630.826667z" horiz-adv-x="1024" />
</font>
</defs>
</svg>

Before

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 166 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 361 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 411 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 234 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 244 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 331 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 349 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 302 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 386 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 343 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 572 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 646 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 204 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 468 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 865 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 164 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

View File

@ -1 +0,0 @@
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1636341177243" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="17682" xmlns:xlink="http://www.w3.org/1999/xlink" width="128" height="128"><defs><style type="text/css"></style></defs><path d="M245.76 286.72h552.96c124.928 0 225.28 100.352 225.28 225.28s-100.352 225.28-225.28 225.28H0V532.48c0-135.168 110.592-245.76 245.76-245.76z m133.12 348.16V401.408H348.16v178.176l-112.64-178.176H204.8V634.88h30.72v-178.176L348.16 634.88h30.72z m182.272-108.544v-24.576h-96.256v-75.776h110.592v-24.576h-141.312V634.88h143.36v-24.576h-112.64v-83.968h96.256z m100.352 28.672l-34.816-151.552h-34.816l55.296 233.472H675.84l47.104-161.792 4.096-20.48 4.096 20.48 47.104 161.792h28.672l57.344-233.472h-34.816l-32.768 151.552-4.096 30.72-6.144-30.72-40.96-151.552h-30.72l-40.96 151.552-6.144 30.72-6.144-30.72z" fill="#D22128" p-id="17683"></path></svg>

Before

Width:  |  Height:  |  Size: 1022 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 786 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 998 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 37 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 433 KiB

View File

@ -1,30 +0,0 @@
/*
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
*/
setTimeout(function(){
$("#app").addClass('home');
var wow = new WOW({
boxClass: 'wow',
animateClass: 'animated',
offset: 0,
mobile: true,
live: true
});
wow.init();
},500)

File diff suppressed because one or more lines are too long

View File

@ -1,118 +0,0 @@
/*
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
*/
$(function(){
var _pushState = window.history.pushState;
window.history.pushState = function() {
setTimeout(function(){
$('#app').parents('body').removeClass('youde');
$('.blogliebiao').parents('.no-sidebar').parents('body').addClass('youde');
$('.blogxiangqing').parents('.no-sidebar').parents('body').addClass('youde');
$('.my-comment').parents('body').removeClass('youde');
$('.timeline-content').parents('body').removeClass('youde');
$('.newsBox').parents('body').removeClass('youde');
let dhera = $('.nav-dropdown li a');
if($('.nav-dropdown li a').hasClass("router-link-active")){
$(this).parents('.nav-dropdown').prev().addClass('router-link-active');
};
let $home = $('#app .theme-reco-content > div:nth-child(1)').is(".home-blog");
if($home){
$("#app").addClass('home');
}else{
$("#app").removeClass('home');
}
$('.timebox').parent().addClass('time-nomar');
let $category = $('#app .theme-container > div > div:last-child > div:last-child > ul').is(".category-wrapper");
if($category){
$("#app").addClass('category');
}else{
$("#app").removeClass('category');
}
let $timeline = $('#app .theme-container > div > div:last-child > div:last-child > ul').is(".timeline-content");
if($timeline){
$("#app").addClass('timeline');
}else{
$("#app").removeClass('timeline');
}
let $zhcate1 = window.location.pathname;
if($zhcate1 === '/zh-CN/categories/DorisWeekly/'){
location.reload();
$('#app .category-wrapper li:nth-child(1) a').attr("href",'/zh-CN/categories/DorisWeekly/');
$('#app .category-wrapper li:nth-child(2) a').attr("href",'/zh-CN/categories/PracticalCases/');
$('#app .category-wrapper li:nth-child(3) a').attr("href",'/zh-CN/categories/ReleaseNote/');
}
if($zhcate1 === '/categories/DorisWeekly/'){
location.reload();
$('#app .category-wrapper li:nth-child(1) a').attr("href",'/categories/DorisWeekly/');
$('#app .category-wrapper li:nth-child(2) a').attr("href",'/categories/PracticalCases/');
$('#app .category-wrapper li:nth-child(3) a').attr("href",'/categories/ReleaseNote/');
}
if($zhcate1 === '/zh-CN/categories/PracticalCases/'){
location.reload();
$('#app .category-wrapper li:nth-child(1) a').attr("href",'/zh-CN/categories/DorisWeekly/');
$('#app .category-wrapper li:nth-child(2) a').attr("href",'/zh-CN/categories/PracticalCases/');
$('#app .category-wrapper li:nth-child(3) a').attr("href",'/zh-CN/categories/ReleaseNote/');
}
if($zhcate1 === '/categories/PracticalCases/'){
location.reload();
$('#app .category-wrapper li:nth-child(1) a').attr("href",'/categories/DorisWeekly/');
$('#app .category-wrapper li:nth-child(2) a').attr("href",'/categories/PracticalCases/');
$('#app .category-wrapper li:nth-child(3) a').attr("href",'/categories/ReleaseNote/');
}
if($zhcate1 === '/zh-CN/categories/ReleaseNote/'){
location.reload();
$('#app .category-wrapper li:nth-child(1) a').attr("href",'/zh-CN/categories/DorisWeekly/');
$('#app .category-wrapper li:nth-child(2) a').attr("href",'/zh-CN/categories/PracticalCases/');
$('#app .category-wrapper li:nth-child(3) a').attr("href",'/zh-CN/categories/ReleaseNote/');
}
if($zhcate1 === '/categories/ReleaseNote/'){
location.reload();
$('#app .category-wrapper li:nth-child(1) a').attr("href",'/categories/DorisWeekly/');
$('#app .category-wrapper li:nth-child(2) a').attr("href",'/categories/PracticalCases/');
$('#app .category-wrapper li:nth-child(3) a').attr("href",'/categories/ReleaseNote/');
}
},100)
return _pushState.apply(this, arguments);
}
$('body').on('click','a',function(){
var windName = window.location.pathname;
var time = setInterval(function () {
var m = $(".blogliebiao .nav-dropdown a").attr("href");
if (m) {
console.log(m);
$(".blogliebiao .nav-dropdown a").each(function () {
var l_m = $(this).attr("href")
if (l_m == windName) {
$('.blogliebiao .nav-dropdown a').parents('.dropdown-item').removeClass("active")
$(this).parents('.dropdown-item').addClass("active")
}
});
clearInterval(time);
}
}, 100);
})
});

Some files were not shown because too many files have changed in this diff Show More