Chore: add the micro service landscape page (#1189)

* Chore: add the micro service landscape page

Signed-off-by: barnettZQG <barnett.zqg@gmail.com>

* move the link to footer

Signed-off-by: barnettZQG <barnett.zqg@gmail.com>

* upgrade to 0.0.15

Signed-off-by: barnettZQG <barnett.zqg@gmail.com>

---------

Signed-off-by: barnettZQG <barnett.zqg@gmail.com>
This commit is contained in:
barnettZQG 2023-03-06 17:15:21 +08:00 committed by GitHub
parent 4d9dc660d0
commit 7e75d4a29c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 49 additions and 4 deletions

View File

@ -143,6 +143,10 @@ module.exports = {
label: 'Videos',
to: 'videos/best-practice/jenkins',
},
{
to: '/micro',
label: 'Microservice',
},
],
},
],
@ -300,5 +304,13 @@ module.exports = {
src: '/custom.js',
async: true,
},
{
src: '//g.alicdn.com/mamba/assets/0.0.15/mse-arc-ui.min.js',
},
],
stylesheets: [
{
href: '//g.alicdn.com/mamba/assets/0.0.15/mse-arc-ui.min.css',
},
],
};

View File

@ -280,5 +280,8 @@
"theme.SearchBar.label": {
"message": "搜索",
"description": "The ARIA label and placeholder for search button"
},
"Microservice Ecosystem Landscape": {
"message": "微服务生态全景图"
}
}

View File

@ -47,6 +47,10 @@
"message": "视频资料",
"description": "The label of footer link with label=Video linking to video resources"
},
"link.item.label.Microservice": {
"message": "微服务",
"description": "Microservice Ecosystem Landscape"
},
"copyright": {
"message": "\n <br />\n <strong>© KubeVela Authors 2022 | Documentation Distributed under <a herf=\"https://creativecommons.org/licenses/by/4.0\">CC-BY-4.0</a> </strong> \n <br />\n ",
"description": "The footer copyright"

26
src/pages/micro.js Normal file
View File

@ -0,0 +1,26 @@
import React from 'react';
import Layout from '@theme/Layout';
import Translate from '@docusaurus/Translate';
export default function Home() {
return (
<Layout
title={'Microservice Ecosystem Landscape'}
description={'Microservice Ecosystem Landscape'}
>
<div className="msemap-container">
<h3
style={{
fontSize: '2rem',
fontWeight: 700,
textAlign: 'center',
margin: '32px 0',
}}
>
<Translate>Microservice Ecosystem Landscape</Translate>
</h3>
<div id="mse-arc-container"></div>
</div>
</Layout>
);
}

View File

@ -7,10 +7,10 @@ function appendVersionList() {
link.innerText = version + '(Archived)';
link.classList = ['dropdown__link'];
versionItem.appendChild(link);
document
.getElementsByClassName('dropdown__menu')
.item(0)
.appendChild(versionItem);
const element = document.getElementsByClassName('dropdown__menu').item(0);
if (element) {
element.appendChild(versionItem);
}
});
}