Skip to content

Commit

Permalink
Merge branch 'nacos-group:develop-astro-nacos' into develop-astro-nacos
Browse files Browse the repository at this point in the history
  • Loading branch information
Tinie13 authored Jan 25, 2024
2 parents 3bc821b + 499d2c1 commit 528f4bd
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 7 deletions.
8 changes: 6 additions & 2 deletions plugins/remarkRemoveMdLinks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,12 @@ export default function remarkRemoveMdLinks() {
if (node.url.startsWith("http://") || node.url.startsWith("https://") || node.url.startsWith("//")) {
return;
}
if (node.url.endsWith('.md')) {
node.url = node.url.slice(0, -3) + '/';
if (node.url.endsWith('.md') || node.url.endsWith('.mdx')) {
if(node.url.endsWith('.mdx')) {
node.url = node.url.slice(0, -4) + '/';
} else {
node.url = node.url.slice(0, -3) + '/';
}
if (/^[^\.|~\/].+/.test(node.url)) {
node.url = "./" + node.url;
}
Expand Down
6 changes: 3 additions & 3 deletions src/components/home/StarAndFork.astro
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const { stargazers_count: startCount = 0, forks_count: forkCount = 0 } =
data || { stargazers_count: 0, forks_count: 0 };
---

<starAndFork class="shortcut flex">
<star-and-fork class="shortcut flex">
<Button
size="large"
class="rounded-3xl mr-4"
Expand All @@ -31,14 +31,14 @@ const { stargazers_count: startCount = 0, forks_count: forkCount = 0 } =
<Fork theme="light" />
<span class="ml-2">{forkCount}</span>
</Button>
</starAndFork>
</star-and-fork>

<script>
class StarAndFork extends HTMLElement {
constructor() {
super();
}
}
customElements.define("starAndFork", StarAndFork);
customElements.define("star-and-fork", StarAndFork);
</script>

2 changes: 1 addition & 1 deletion src/content/blog/release-nacos100.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ Nacos 1.0.0 支持了 MySQL 8.0 驱动。您只需要将8.0版本的驱动jar包

服务发现和配置管理的完整 API 列表会发布到官网

*地址:https://nacos.io/zh-cn/docs/open-API.html*
*地址:https://nacos.io/zh-cn/docs/open-api.html*

除了核心功能外,也包含部分运维接口,方便开发者进行集成。同时对于 Nacos 的数据模型、集群模型、架构设计及模块设计文档进行了更新

Expand Down
2 changes: 1 addition & 1 deletion src/content/download/zh-cn/nacos-server.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ Nacos 1.x 已经停止功能维护,请尽快升级到 2.x 版本。


- 请尽可能的升级到最新已发布版本,版本升级请参考 [升级指南](/docs/v2/upgrading/version2-upgrading)
- 更多历史版本下载,请参考 [发布历史](release-history)
- 更多历史版本下载,请参考 [发布历史](/download/release-history/)
- 基于 [Apache License v2.0](https://www.apache.org/licenses/) 分发版本。

## 快照版本
Expand Down

0 comments on commit 528f4bd

Please sign in to comment.