From bba1f9ec3c34b12ca16cfa2d8c56fa18cf07a88f Mon Sep 17 00:00:00 2001 From: yangmufa Date: Sat, 20 Jul 2024 11:32:42 +0800 Subject: [PATCH] =?UTF-8?q?1.logo=E5=92=8C=E5=90=8D=E5=AD=97=E5=8D=87?= =?UTF-8?q?=E7=BA=A7=E4=B8=BA=20iBlog=20,=E4=BB=A5"i"=E5=BC=80=E5=A4=B4?= =?UTF-8?q?=EF=BC=8C=E8=B1=A1=E5=BE=81=E7=9D=80=E5=85=B6=E4=BA=92=E8=81=94?= =?UTF-8?q?=E7=BD=91=E5=92=8C=E4=BF=A1=E6=81=AF=E6=8A=80=E6=9C=AF=E7=9A=84?= =?UTF-8?q?=E5=85=B3=E8=81=94=E6=80=A7=E5=92=8C=E5=88=9B=E6=96=B0=E6=80=A7?= =?UTF-8?q?=E3=80=82=202.=E5=AE=8C=E5=96=84C#=E9=83=A8=E5=88=86=E6=96=87?= =?UTF-8?q?=E7=AB=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/deploy.yml | 8 +- README.md | 2 +- blog/2019-05-28-first-blog-post.md | 3 +- blog/2019-05-29-long-blog-post.md | 1 + ...ie-banner.png => iBlog-plushie-banner.png} | Bin blog/2019-08-01-welcome/index.md | 8 +- blog/2021-08-01-mdx-blog-post.mdx | 3 +- .../index.md => 2024-07-11-approaching30.md} | 0 blog/2024-07-17-release-1.0.0.md | 15 +++ blog/2024-07-20-release-1.1.0.md | 13 +++ blog/tags.yml | 2 +- .../index.md" | 16 +-- docs/dev-ops/CI-CD/GitHubActions.md | 4 +- docs/front-fnd/HTML/index.md | 2 +- .../{VueEcology => ReactEcology}/Webpack5.md | 0 docs/intro/intro.md | 10 +- docs/intro/net-beans.md | 10 +- docs/intro/tutorial-basics/_category_.json | 2 +- docs/intro/tutorial-basics/congratulations.md | 12 +-- .../tutorial-basics/create-a-blog-post.md | 6 +- .../tutorial-basics/create-a-document.md | 6 +- .../intro/tutorial-basics/deploy-your-site.md | 2 +- .../tutorial-basics/markdown-features.mdx | 28 +++--- .../tutorial-extras/manage-docs-versions.md | 4 +- .../tutorial-extras/translate-your-site.md | 4 +- docs/net-beans/Markdon.md | 10 +- docs/net-beans/VSCode.md | 10 +- docusaurus.config.ts | 91 +++++++++++------- package-lock.json | 4 +- package.json | 2 +- sidebars.ts | 2 +- src/components/HomepageFeatures/index.tsx | 6 +- src/pages/index.tsx | 2 +- ...ocial-card.webp => iBlog-social-card.webp} | Bin static/img/{itBlog.png => iBlog.png} | Bin static/img/{itBlogLogo.png => iBlogLogo.png} | Bin 36 files changed, 170 insertions(+), 118 deletions(-) rename blog/2019-08-01-welcome/{itBlog-plushie-banner.png => iBlog-plushie-banner.png} (100%) rename blog/{2024-07-11-approaching30/index.md => 2024-07-11-approaching30.md} (100%) create mode 100644 blog/2024-07-17-release-1.0.0.md create mode 100644 blog/2024-07-20-release-1.1.0.md rename docs/front-fnd/{VueEcology => ReactEcology}/Webpack5.md (100%) rename static/img/{itBlog-social-card.webp => iBlog-social-card.webp} (100%) rename static/img/{itBlog.png => iBlog.png} (100%) rename static/img/{itBlogLogo.png => iBlogLogo.png} (100%) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 2f02b23..a856a6b 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -160,7 +160,7 @@ # # ! -name 'filename' 用于排除特定文件和文件夹 # # -exec rm -rf {} + 将找到的文件和文件夹传递给 rm -rf 命令以进行删除 # script: | -# find /docker/nginx/html/itBlog/upload -mindepth 1 \ +# find /docker/nginx/html/iBlog/upload -mindepth 1 \ # ! -name 'resume' \ # ! -name 'homepage' \ # -exec rm -rf {} + @@ -168,7 +168,7 @@ # uses: appleboy/scp-action@v0.1.5 # with: # source: "build/*" -# target: "/docker/nginx/html/itBlog/upload" +# target: "/docker/nginx/html/iBlog/upload" # host: sftp.yangmufa.com # ftp-username: ${{ secrets.sftp_user }} # ftp-password: ${{ secrets.sftp_pwd }} @@ -209,7 +209,7 @@ # # ! -name 'filename' 用于排除特定文件和文件夹 # # -exec rm -rf {} + 将找到的文件和文件夹传递给 rm -rf 命令以进行删除 # script: | -# find /docker/nginx/html/itBlog/upload -mindepth 1 \ +# find /docker/nginx/html/iBlog/upload -mindepth 1 \ # ! -name 'resume' \ # ! -name 'homepage' \ # -exec rm -rf {} + @@ -217,7 +217,7 @@ # uses: appleboy/scp-action@v0.1.5 # with: # source: "build/*" -# target: "/docker/nginx/html/itBlog/upload" +# target: "/docker/nginx/html/iBlog/upload" # host: sftp.yangmufa.com # username: "sftpuser" # key: ${{ secrets.SFTP_PRIVATE_KEY }} diff --git a/README.md b/README.md index f28b699..4000f03 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Website -This website is built using [itBlog](https://trainees.cn/itblog/), a modern static website generator. +This website is built using [iBlog](https://trainees.cn/iBlog/), a modern static website generator. ### Installation diff --git a/blog/2019-05-28-first-blog-post.md b/blog/2019-05-28-first-blog-post.md index 323fd1d..281162e 100644 --- a/blog/2019-05-28-first-blog-post.md +++ b/blog/2019-05-28-first-blog-post.md @@ -3,10 +3,11 @@ slug: first-blog-post title: First Blog Post authors: name: 编程小马达 - title: 来自练习生基地,练习两年半,itBlog/iTBlogs/trainees项目维护者. + title: 来自练习生基地,练习两年半,iBlog/iBlogs/trainees项目维护者. url: https://github.com/yangmufa image_url: https://foruda.gitee.com/avatar/1677038032927319597/5149611_yangmufa_1578981240.png tags: [UpdateLog,] +date: 2019-05-28 --- diff --git a/blog/2019-05-29-long-blog-post.md b/blog/2019-05-29-long-blog-post.md index c441fb6..d2319e5 100644 --- a/blog/2019-05-29-long-blog-post.md +++ b/blog/2019-05-29-long-blog-post.md @@ -3,6 +3,7 @@ slug: long-blog-post title: Long Blog Post authors: [yangmufa,] tags: [UpdateLog,] +date: 2019-05-29 --- This is the summary of a very long blog post, diff --git a/blog/2019-08-01-welcome/itBlog-plushie-banner.png b/blog/2019-08-01-welcome/iBlog-plushie-banner.png similarity index 100% rename from blog/2019-08-01-welcome/itBlog-plushie-banner.png rename to blog/2019-08-01-welcome/iBlog-plushie-banner.png diff --git a/blog/2019-08-01-welcome/index.md b/blog/2019-08-01-welcome/index.md index ba0be8c..942750e 100644 --- a/blog/2019-08-01-welcome/index.md +++ b/blog/2019-08-01-welcome/index.md @@ -6,9 +6,9 @@ tags: [UpdateLog,] date: 2019-08-01 --- -[itBlog blogging features](https://trainees.cn/itblog) are powered by the [blog plugin](https://docusaurus.io/docs/api/plugins/@docusaurus/plugin-content-blog). +[iBlog blogging features](https://trainees.cn/project/iBlog) are powered by the [编程小马达](https://yangmufa.com/bcxmd). -Simply add Markdown files (or folders) to the `itBLog` directory. +Simply add Markdown files (or folders) to the `iBlog` directory. Regular blog authors can be added to `authors.yml`. @@ -19,8 +19,8 @@ The blog post date can be extracted from filenames, such as: A blog post folder can be convenient to co-locate blog post images: -![itBlog Plushie](./itBlog-plushie-banner.png) +![iBlog Plushie](./iBlog-plushie-banner.png) The blog supports tags as well! -**And if you don't want a blog**: just delete this directory, and use `blog: false` in your itBlog config. +**And if you don't want a blog**: just delete this directory, and use `blog: false` in your iBlog config. diff --git a/blog/2021-08-01-mdx-blog-post.mdx b/blog/2021-08-01-mdx-blog-post.mdx index 1525d71..9b7e7de 100644 --- a/blog/2021-08-01-mdx-blog-post.mdx +++ b/blog/2021-08-01-mdx-blog-post.mdx @@ -3,9 +3,10 @@ slug: mdx-blog-post title: MDX Blog Post aauthors: [yangmufa,] tags: [UpdateLog,] +date: 2021-08-01 --- -Blog posts support [itBlog Markdown features](https://trainees.cn/itblog), such as [MDX](https://mdxjs.com/). +iBlog posts support Blog Markdown features, such as [MDX](https://mdxjs.com/). :::tip diff --git a/blog/2024-07-11-approaching30/index.md b/blog/2024-07-11-approaching30.md similarity index 100% rename from blog/2024-07-11-approaching30/index.md rename to blog/2024-07-11-approaching30.md diff --git a/blog/2024-07-17-release-1.0.0.md b/blog/2024-07-17-release-1.0.0.md new file mode 100644 index 0000000..3e80a5c --- /dev/null +++ b/blog/2024-07-17-release-1.0.0.md @@ -0,0 +1,15 @@ +--- +slug: v1.0.0 +title: v1.0.0 正式版发布 +authors: [yangmufa,] +tags: [UpdateLog,] +date: 2024-07-17 +--- +经历 v1.0.0-debe.1和 v1.0.0-debe.2的测试版本发现很多问题和建议,并对其进行修改和完善,目前系统较为成熟,大部分内容也迁移成功. +## Release-1.0.0 正式版发布 +## 新增 +- Markdon、.Net、FrontEndt、Java、Middleware、IDEA、DevOps等相关内容. +## 修复 +- 首页文案. +- 导航栏显示信息. +- 部分布局调整,功能删减. diff --git a/blog/2024-07-20-release-1.1.0.md b/blog/2024-07-20-release-1.1.0.md new file mode 100644 index 0000000..c84bb40 --- /dev/null +++ b/blog/2024-07-20-release-1.1.0.md @@ -0,0 +1,13 @@ +--- +slug: v1.1.0 +title: v1.1.0 正式版发布 +authors: [yangmufa,] +tags: [UpdateLog,] +date: 2024-07-20 +--- +## Release-1.1.0 正式版发布 + +## 完善 +- C#部分文章 +## 修改 +- logo和名字升级为 iBlog ,以"i"开头,象征着其互联网和信息技术的关联性和创新性。 diff --git a/blog/tags.yml b/blog/tags.yml index 23dd4cf..f765ae0 100644 --- a/blog/tags.yml +++ b/blog/tags.yml @@ -1,7 +1,7 @@ UpdateLog: label: UpdateLog permalink: /UpdateLog - description: itBlog tag description + description: iBlog tag description Outlook: label: outlook permalink: /outlook diff --git "a/docs/c-sharp/Net-Core-Framework\347\232\204\345\216\206\345\217\262\345\217\212web\345\222\214MVC\347\232\204\345\205\263\347\263\273/index.md" "b/docs/c-sharp/Net-Core-Framework\347\232\204\345\216\206\345\217\262\345\217\212web\345\222\214MVC\347\232\204\345\205\263\347\263\273/index.md" index ec91140..53dbca8 100644 --- "a/docs/c-sharp/Net-Core-Framework\347\232\204\345\216\206\345\217\262\345\217\212web\345\222\214MVC\347\232\204\345\205\263\347\263\273/index.md" +++ "b/docs/c-sharp/Net-Core-Framework\347\232\204\345\216\206\345\217\262\345\217\212web\345\222\214MVC\347\232\204\345\205\263\347\263\273/index.md" @@ -389,21 +389,23 @@ Razor 通过识别 @ 符号后的 C# 代码段,并将其转换为合适的代 通过这些语法,Razor 提供了一种优雅而强大的方式来创建动态的、高效的 Web 页面,同时保持了视图和逻辑的清晰分离。 ## Web和传统开发模式与MVC开发模式关系总结 -Web和MVC都是概率,只不过MVC这个概率通常被用来服务Web这个概念,也就是说MVC这个理念是为了更好的理解和实现Web这个理念的一种新新思想, -并且他们都有着实现这两个概率的技术框架, +Web和MVC都是概念,只不过MVC这个概念通常被用来服务Web这个概念,也就是说MVC这个理念是为了更好的理解和实现Web这个理念而存在的另一种新新思想, +并且他们都有着实现这对应的技术框架, 早期实现Web这个技术概念的是ASP.NET Web Pages、ASP.NET Web Forms等等 -而后期又发明看一一种新的方式,而这个新的方式不是直接实现Web这个观念,而是这个新的方式依然也是一个观念, -三者关系类似于一个顶级接口一个二级接口 +而后期又发明了一种新的概念,而这个新的概念是在Web基础上升级而来的,他就是MVC,MVC同样也是一种概念 + +三者关系类似于一个顶级接口一个二级接口: + ```text Web 思想的接口 | | - | -----> 传统开发模式 ASP.NET Web Pages、ASP.NET Web Forms (实现了Web思想接口的框架) + | -----> 传统开发模式: 采用 ASP.NET Web Pages、ASP.NET Web Forms等技术框架 (实现了Web思想接口) | - ----MVC 思想的接口 (实现了Web思想的接口) + ----MVC 思想的接口 (继承了Web思想的接口的内容并且加入了自己额外的东西和修改) | | - -----> ASP.NET MVC (实现了MVC接口的框架) + -----> MVC开发模式: 采用 ASP.NET MVC 技术框架 (实现了MVC接口-同时也间接实现了Web接口) ``` diff --git a/docs/dev-ops/CI-CD/GitHubActions.md b/docs/dev-ops/CI-CD/GitHubActions.md index a8a44fc..8ccc3c8 100644 --- a/docs/dev-ops/CI-CD/GitHubActions.md +++ b/docs/dev-ops/CI-CD/GitHubActions.md @@ -93,7 +93,7 @@ jobs: # ! -name 'filename' 用于排除特定文件和文件夹 # -exec rm -rf {} + 将找到的文件和文件夹传递给 rm -rf 命令以进行删除 script: | - find /docker/nginx/html/itBlog/upload -mindepth 1 \ + find /docker/nginx/html/iBlog/upload -mindepth 1 \ ! -name 'resume' \ ! -name 'homepage' \ -exec rm -rf {} + @@ -101,7 +101,7 @@ jobs: uses: appleboy/scp-action@v0.1.5 with: source: "build/*" - target: "/docker/nginx/html/itBlog/upload" + target: "/docker/nginx/html/iBlog/upload" host: sftp.yangmufa.com username: ${{ secrets.sftp_user }} key: ${{ secrets.sftp_key }} diff --git a/docs/front-fnd/HTML/index.md b/docs/front-fnd/HTML/index.md index 4149fe8..1d610be 100644 --- a/docs/front-fnd/HTML/index.md +++ b/docs/front-fnd/HTML/index.md @@ -6,7 +6,7 @@ sidebar_position: 1 ### 盒子模型 -![itBlog Plushie](./html5盒子模型.png) +![iBlog Plushie](./html5盒子模型.png) ```text +--------------------------------------------------+ →外边距离顶点 diff --git a/docs/front-fnd/VueEcology/Webpack5.md b/docs/front-fnd/ReactEcology/Webpack5.md similarity index 100% rename from docs/front-fnd/VueEcology/Webpack5.md rename to docs/front-fnd/ReactEcology/Webpack5.md diff --git a/docs/intro/intro.md b/docs/intro/intro.md index 4876651..4467a12 100644 --- a/docs/intro/intro.md +++ b/docs/intro/intro.md @@ -4,13 +4,13 @@ sidebar_position: 1 # Tutorial Intro -Let's discover **itBlog in less than 5 minutes**. +Let's discover **iBlog in less than 5 minutes**. ## Getting Started Get started by **creating a new site**. -Or **try itBlog immediately** with **[itBLog](https://yangmufa.com)**. +Or **try iBlog immediately** with **[iBlog](https://yangmufa.com)**. ### What you'll need @@ -19,7 +19,7 @@ Or **try itBlog immediately** with **[itBLog](https://yangmufa.com)**. ## Generate a new site -Generate a new itBlog site using the **classic template**. +Generate a new iBlog site using the **classic template**. The classic template will automatically be added to your project after you run the command: @@ -29,7 +29,7 @@ npm init docusaurus@latest my-website classic You can type this command into Command Prompt, Powershell, Terminal, or any other integrated terminal of your code editor. -The command also installs all necessary dependencies you need to run itBlog. +The command also installs all necessary dependencies you need to run iBlog. ## Start your site @@ -40,7 +40,7 @@ cd my-website npm run start ``` -The `cd` command changes the directory you're working with. In order to work with your newly created itBlog site, you'll need to navigate the terminal there. +The `cd` command changes the directory you're working with. In order to work with your newly created iBlog site, you'll need to navigate the terminal there. The `npm run start` command builds your website locally and serves it through a development server, ready for you to view at http://localhost:3000/. diff --git a/docs/intro/net-beans.md b/docs/intro/net-beans.md index 9580b7e..e54e407 100644 --- a/docs/intro/net-beans.md +++ b/docs/intro/net-beans.md @@ -4,13 +4,13 @@ sidebar_position: 1 # Tutorial Intro -Let's discover **itBlog in less than 5 minutes**. +Let's discover **iBlog in less than 5 minutes**. ## Getting Started Get started by **creating a new site**. -Or **try itBlog immediately** with **[itBLog](https://yangmufa.com)**. +Or **try iBlog immediately** with **[iBlog](https://yangmufa.com)**. ### What you'll need @@ -19,7 +19,7 @@ Or **try itBlog immediately** with **[itBLog](https://yangmufa.com)**. ## Generate a new site -Generate a new itBlog site using the **classic template**. +Generate a new iBlog site using the **classic template**. The classic template will automatically be added to your project after you run the command: @@ -29,7 +29,7 @@ npm init docusaurus@latest my-website classic You can type this command into Command Prompt, Powershell, Terminal, or any other integrated terminal of your code editor. -The command also installs all necessary dependencies you need to run itBlog. +The command also installs all necessary dependencies you need to run iBlog. ## Start your site @@ -40,7 +40,7 @@ cd my-website npm run start ``` -The `cd` command changes the directory you're working with. In order to work with your newly created itBlog site, you'll need to navigate the terminal there. +The `cd` command changes the directory you're working with. In order to work with your newly created iBlog site, you'll need to navigate the terminal there. The `npm run start` command builds your website locally and serves it through a development server, ready for you to view at http://localhost:3000/. diff --git a/docs/intro/tutorial-basics/_category_.json b/docs/intro/tutorial-basics/_category_.json index 7072aa7..8f57fea 100644 --- a/docs/intro/tutorial-basics/_category_.json +++ b/docs/intro/tutorial-basics/_category_.json @@ -3,6 +3,6 @@ "position": 2, "link": { "type": "generated-index", - "description": "5 minutes to learn the most important itBlog concepts." + "description": "5 minutes to learn the most important iBlog concepts." } } diff --git a/docs/intro/tutorial-basics/congratulations.md b/docs/intro/tutorial-basics/congratulations.md index b7f5d41..61989db 100644 --- a/docs/intro/tutorial-basics/congratulations.md +++ b/docs/intro/tutorial-basics/congratulations.md @@ -4,20 +4,20 @@ sidebar_position: 6 # Congratulations! -You have just learned the **basics of itBlog** and made some changes to the **initial template**. +You have just learned the **basics of iBlog** and made some changes to the **initial template**. -itBlog has **much more to offer**! +iBlog has **much more to offer**! Have **5 more minutes**? Take a look at **[versioning](../tutorial-extras/manage-docs-versions.md)** and **[i18n](../tutorial-extras/translate-your-site.md)**. -Anything **unclear** or **buggy** in this tutorial? [Please report it!](https://github.com/facebook/itBlog/discussions/4610) +Anything **unclear** or **buggy** in this tutorial? [Please report it!](https://github.com/facebook/iBlog/discussions/4610) ## What's next? - Read the [official documentation](https://yangmufa.com/) -- Modify your site configuration with [`itBlog.config.js`](https://yangmufa.com/docs/api/docusaurus-config) +- Modify your site configuration with [`iBlog.config.js`](https://yangmufa.com/docs/api/docusaurus-config) - Add navbar and footer items with [`themeConfig`](https://yangmufa.com/docs/api/themes/configuration) - Add a custom [Design and Layout](https://yangmufa.com/docs/styling-layout) - Add a [search bar](https://yangmufa.com/docs/search) -- Find inspirations in the [itBlog showcase](https://yangmufa.com/showcase) -- Get involved in the [itBlog Community](https://yangmufa.com/community/support) +- Find inspirations in the [iBlog showcase](https://yangmufa.com/showcase) +- Get involved in the [iBlog Community](https://yangmufa.com/community/support) diff --git a/docs/intro/tutorial-basics/create-a-blog-post.md b/docs/intro/tutorial-basics/create-a-blog-post.md index 4ac2054..11fea2a 100644 --- a/docs/intro/tutorial-basics/create-a-blog-post.md +++ b/docs/intro/tutorial-basics/create-a-blog-post.md @@ -4,7 +4,7 @@ sidebar_position: 3 # Create a Blog Post -itBlog creates a **page for each blog post**, but also a **blog index page**, a **tag system**, an **RSS** feed... +iBlog creates a **page for each blog post**, but also a **blog index page**, a **tag system**, an **RSS** feed... ## Create your first Post @@ -16,11 +16,11 @@ slug: greetings title: Greetings! authors: - name: Joel Marcey - title: Co-creator of itBlog 1 + title: Co-creator of iBlog 1 url: https://github.com/JoelMarcey image_url: https://github.com/JoelMarcey.png - name: Sébastien Lorber - title: itBlog maintainer + title: iBlog maintainer url: https://sebastienlorber.com image_url: https://github.com/slorber.png tags: [greetings] diff --git a/docs/intro/tutorial-basics/create-a-document.md b/docs/intro/tutorial-basics/create-a-document.md index b468e8c..1db7784 100644 --- a/docs/intro/tutorial-basics/create-a-document.md +++ b/docs/intro/tutorial-basics/create-a-document.md @@ -17,14 +17,14 @@ Create a Markdown file at `docs/hello.md`: ```md title="docs/hello.md" # Hello -This is my **first itBlog document**! +This is my **first iBlog document**! ``` A new document is now available at [http://localhost:3000/docs/hello](http://localhost:3000/docs/hello). ## Configure the Sidebar -itBlog automatically **creates a sidebar** from the `docs` folder. +iBlog automatically **creates a sidebar** from the `docs` folder. Add metadata to customize the sidebar label and position: @@ -36,7 +36,7 @@ sidebar_position: 3 # Hello -This is my **first itBlog document**! +This is my **first iBlog document**! ``` It is also possible to create your sidebar explicitly in `sidebars.js`: diff --git a/docs/intro/tutorial-basics/deploy-your-site.md b/docs/intro/tutorial-basics/deploy-your-site.md index 5a95f2f..7fa89c3 100644 --- a/docs/intro/tutorial-basics/deploy-your-site.md +++ b/docs/intro/tutorial-basics/deploy-your-site.md @@ -4,7 +4,7 @@ sidebar_position: 5 # Deploy your site -itBlog is a **static-site-generator** (also called **[Jamstack](https://jamstack.org/)**). +iBlog is a **static-site-generator** (also called **[Jamstack](https://jamstack.org/)**). It builds your site as simple **static HTML, JavaScript and CSS files**. diff --git a/docs/intro/tutorial-basics/markdown-features.mdx b/docs/intro/tutorial-basics/markdown-features.mdx index 1f3987e..8a04d73 100644 --- a/docs/intro/tutorial-basics/markdown-features.mdx +++ b/docs/intro/tutorial-basics/markdown-features.mdx @@ -4,7 +4,7 @@ sidebar_position: 4 # Markdown Features -itBlog supports **[Markdown](https://daringfireball.net/projects/markdown/syntax)** and a few **additional features**. +iBlog supports **[Markdown](https://daringfireball.net/projects/markdown/syntax)** and a few **additional features**. ## Front Matter @@ -43,18 +43,18 @@ Let's see how to [Create a page](./create-a-page.md). Regular Markdown images are supported. -You can use absolute paths to reference images in the static directory (`static/img/itBlog.png`): +You can use absolute paths to reference images in the static directory (`static/img/iBlog.png`): ```md -![itBlog logo](/img/itBlog.png) +![iBlog logo](/img/iBlog.png) ``` -![itBlog logo](/img/itBlog.png) +![iBlog logo](/img/iBlog.png) You can reference images relative to the current file as well. This is particularly useful to colocate images close to the Markdown files using them: ```md -![itBlog logo](./img/itBlog.png) +![iBlog logo](./img/iBlog.png) ``` ## Code Blocks @@ -62,22 +62,22 @@ You can reference images relative to the current file as well. This is particula Markdown code blocks are supported with Syntax highlighting. ````md -```jsx title="src/components/HelloITBlog.js" -function HelloITBLog() { - return

Hello, itBlog!

; +```jsx title="src/components/HelloiBlog.js" +function HelloiBlog() { + return

Hello, iBlog!

; } ``` ```` -```jsx title="src/components/HelloITBLog.js" -function HelloITBlog() { - return

Hello, itBlog!

; +```jsx title="src/components/HelloiBlog.js" +function HelloiBlog() { + return

Hello, iBlog!

; } ``` ## Admonitions -itBlog has a special syntax to create admonitions and callouts: +iBlog has a special syntax to create admonitions and callouts: ```md :::tip My tip @@ -126,7 +126,7 @@ export const Highlight = ({children, color}) => ( ); -This is itBlog green ! +This is iBlog green ! This is Trainees blue ! ``` @@ -147,6 +147,6 @@ export const Highlight = ({children, color}) => ( ); -This is itBlog green ! +This is iBlog green ! This is Trainees blue ! diff --git a/docs/intro/tutorial-extras/manage-docs-versions.md b/docs/intro/tutorial-extras/manage-docs-versions.md index 24c712b..e2ca278 100644 --- a/docs/intro/tutorial-extras/manage-docs-versions.md +++ b/docs/intro/tutorial-extras/manage-docs-versions.md @@ -4,14 +4,14 @@ sidebar_position: 1 # Manage Docs Versions -itBlog can manage multiple versions of your docs. +iBlog can manage multiple versions of your docs. ## Create a docs version Release a version 1.0 of your project: ```bash -npm run itBlog docs:version 1.0 +npm run iBlog docs:version 1.0 ``` The `docs` folder is copied into `versioned_docs/version-1.0` and `versions.json` is created. diff --git a/docs/intro/tutorial-extras/translate-your-site.md b/docs/intro/tutorial-extras/translate-your-site.md index db8f3cd..c7fea24 100644 --- a/docs/intro/tutorial-extras/translate-your-site.md +++ b/docs/intro/tutorial-extras/translate-your-site.md @@ -24,9 +24,9 @@ export default { Copy the `docs/intro.md` file to the `i18n/fr` folder: ```bash -mkdir -p i18n/fr/itBlog-plugin-content-docs/current/ +mkdir -p i18n/fr/iBlog-plugin-content-docs/current/ -cp docs/intro.md i18n/fr/itBlog-plugin-content-docs/current/intro.md +cp docs/intro.md i18n/fr/iBlog-plugin-content-docs/current/intro.md ``` Translate `i18n/fr/docusaurus-plugin-content-docs/current/intro.md` in French. diff --git a/docs/net-beans/Markdon.md b/docs/net-beans/Markdon.md index d2573d6..f499d2b 100644 --- a/docs/net-beans/Markdon.md +++ b/docs/net-beans/Markdon.md @@ -4,13 +4,13 @@ sidebar_position: 2 # Markdon -Let's discover **itBlog in less than 5 minutes**. +Let's discover **iBlog in less than 5 minutes**. ## Getting Started Get started by **creating a new site**. -Or **try itBlog immediately** with **[itBLog](https://yangmufa.com)**. +Or **try iBlog immediately** with **[iBlog](https://yangmufa.com)**. ### What you'll need @@ -19,7 +19,7 @@ Or **try itBlog immediately** with **[itBLog](https://yangmufa.com)**. ## Generate a new site -Generate a new itBlog site using the **classic template**. +Generate a new iBlog site using the **classic template**. The classic template will automatically be added to your project after you run the command: @@ -29,7 +29,7 @@ npm init docusaurus@latest my-website classic You can type this command into Command Prompt, Powershell, Terminal, or any other integrated terminal of your code editor. -The command also installs all necessary dependencies you need to run itBlog. +The command also installs all necessary dependencies you need to run iBlog. ## Start your site @@ -40,7 +40,7 @@ cd my-website npm run start ``` -The `cd` command changes the directory you're working with. In order to work with your newly created itBlog site, you'll need to navigate the terminal there. +The `cd` command changes the directory you're working with. In order to work with your newly created iBlog site, you'll need to navigate the terminal there. The `npm run start` command builds your website locally and serves it through a development server, ready for you to view at http://localhost:3000/. diff --git a/docs/net-beans/VSCode.md b/docs/net-beans/VSCode.md index a40d246..266f2b1 100644 --- a/docs/net-beans/VSCode.md +++ b/docs/net-beans/VSCode.md @@ -4,13 +4,13 @@ sidebar_position: 3 # VSCoode -Let's discover **itBlog in less than 5 minutes**. +Let's discover **iBlog in less than 5 minutes**. ## Getting Started Get started by **creating a new site**. -Or **try itBlog immediately** with **[itBLog](https://yangmufa.com)**. +Or **try iBlog immediately** with **[iBlog](https://yangmufa.com)**. ### What you'll need @@ -19,7 +19,7 @@ Or **try itBlog immediately** with **[itBLog](https://yangmufa.com)**. ## Generate a new site -Generate a new itBlog site using the **classic template**. +Generate a new iBlog site using the **classic template**. The classic template will automatically be added to your project after you run the command: @@ -29,7 +29,7 @@ npm init docusaurus@latest my-website classic You can type this command into Command Prompt, Powershell, Terminal, or any other integrated terminal of your code editor. -The command also installs all necessary dependencies you need to run itBlog. +The command also installs all necessary dependencies you need to run iBlog. ## Start your site @@ -40,7 +40,7 @@ cd my-website npm run start ``` -The `cd` command changes the directory you're working with. In order to work with your newly created itBlog site, you'll need to navigate the terminal there. +The `cd` command changes the directory you're working with. In order to work with your newly created iBlog site, you'll need to navigate the terminal there. The `npm run start` command builds your website locally and serves it through a development server, ready for you to view at http://localhost:3000/. diff --git a/docusaurus.config.ts b/docusaurus.config.ts index 9b568bb..dcca303 100644 --- a/docusaurus.config.ts +++ b/docusaurus.config.ts @@ -4,7 +4,7 @@ import type * as Preset from '@docusaurus/preset-classic'; const config: Config = { - title: 'itBlog', + title: 'iBlog', tagline: '我的博客,你的指南', favicon: 'img/favicon.ico', @@ -18,7 +18,7 @@ const config: Config = { // GitHub pages deployment config. // If you aren't using GitHub pages, you don't need these. organizationName: 'yangmufa', // Usually your GitHub org/user name. - projectName: 'itBlog', // Usually your repo name. + projectName: 'iBlog', // Usually your repo name. onBrokenLinks: 'throw', onBrokenMarkdownLinks: 'warn', @@ -49,14 +49,14 @@ const config: Config = { // Please change this to your repo. // Remove this to remove the "edit this page" links. // editUrl: - // 'https://github.com/yangmufa/itBlog/tree/main/packages/create-itBlog/templates/shared/', + // 'https://github.com/yangmufa/iBlog/tree/main/packages/create-iBlog/templates/shared/', }, blog: { showReadingTime: true, // Please change this to your repo. // Remove this to remove the "edit this page" links. // editUrl: - // 'https://github.com/yangmufa/itBlog/tree/main/packages/create-itBlog/templates/shared/', + // 'https://github.com/yangmufa/iBlog/tree/main/packages/create-iBlog/templates/shared/', }, theme: { customCss: './src/css/custom.css', @@ -73,12 +73,12 @@ const config: Config = { respectPrefersColorScheme: true, // 是否尊重用户系统的颜色模式偏好 }, // Replace with your project's social card - image: 'img/itBlog-social-card.webp', + image: 'img/iBlog-social-card.webp', navbar: { - title: 'Yang Mufa\'s itBlog', + title: 'Yang Mufa\'s iBlog', logo: { alt: 'My Site Logo', - src: 'img/itBlogLogo.png', + src: 'img/iBlogLogo.png', }, items: [ // { @@ -89,7 +89,6 @@ const config: Config = { // label: 'blog', // // to:"/docs/front-fnd/", // }, - {to: '/blog', label: 'Blog', position: 'left'}, { /* docSidebar:用于直接链接到文档的特定部分或章节,可以指定 sidebarId 和 docId 或 path 来精确地导航到目标页面。 @@ -113,19 +112,19 @@ const config: Config = { { type: 'search', position: 'right' } */ type: 'docSidebar', //指定导航栏中的链接类型,和指向文档侧边栏的导航项, - sidebarId: 'netbeansSidebar', //指定了链接将导航到 ID 为 netbeansSidebar 的侧边栏,该内容定义在了根目录下的sidebars.ts文件中 - activeBasePath: 'docs/net-beans', //指定当前活动链接的基本路径,高亮显示当前页面在导航栏中的链接 + sidebarId: 'javaSidebar', //指定了链接将导航到 ID 为 netbeansSidebar 的侧边栏,该内容定义在了根目录下的sidebars.ts文件中 + activeBasePath: '/docs/java', //指定当前活动链接的基本路径,高亮显示当前页面在导航栏中的链接 position: 'left', //显示在导航栏左边 - label: 'IDE/Markdon', //显示的名字文本 - // to:"/docs/net-beans/", //指向文档侧边栏的导航项,r如果配置了type: 'docSidebar'此项就是多余的 + label: 'Java', //显示的名字文本 + // to:"/docs/java", //指向文档侧边栏的导航项,r如果配置了type: 'docSidebar'此项就是多余的 }, { type: 'docSidebar', - sidebarId: 'frontfndSidebar', - activeBasePath: '/docs/front-fnd', + sidebarId: 'csharpSidebar', + activeBasePath: '/docs/c-sharp', position: 'left', - label: 'FrontEnd', - // to:"/docs/front-fnd/", + label: 'C#', + // to:"/docs/c-sharp", }, // { // type: 'docSidebar', @@ -136,22 +135,6 @@ const config: Config = { // // to:"/docs/c-and-cpp", // // }, - { - type: 'docSidebar', - sidebarId: 'csharpSidebar', - activeBasePath: '/docs/c-sharp', - position: 'left', - label: 'C#', - // to:"/docs/c-sharp", - }, - { - type: 'docSidebar', - sidebarId: 'javaSidebar', - activeBasePath: '/docs/java', - position: 'left', - label: 'Java', - // to:"/docs/java", - }, // { // type: 'docSidebar', // sidebarId: 'structuresAlgorithmsSidebar', @@ -185,8 +168,25 @@ const config: Config = { // to:"/docs/dev-ops", }, { - href: 'https://www.trainees.cn/itblogs', - label: 'itBlogs(开发中)', + type: 'docSidebar', + sidebarId: 'frontfndSidebar', + activeBasePath: '/docs/front-fnd', + position: 'left', + label: 'FrontEnd', + // to:"/docs/front-fnd/", + }, + { + type: 'docSidebar', + sidebarId: 'netbeansSidebar', + activeBasePath: 'docs/net-beans', + position: 'left', + label: 'IDE/Markdon', + // to:"/docs/net-beans/", + }, + {to: '/blog', label: 'Blog', position: 'left'}, + { + href: 'https://www.trainees.cn/iBlogs', + label: 'iBlogs(开发中)', position: 'right', }, { @@ -222,7 +222,7 @@ const config: Config = { }, { label: '本站教程', - href: 'https://www.trainees.cn/tutorial/itblog', + href: 'https://www.trainees.cn/tutorial/iBlog', }, ], }, @@ -249,7 +249,7 @@ const config: Config = { }, { label: '本站教程', - href: 'https://www.trainees.cn/tutorial/itblog', + href: 'https://www.trainees.cn/tutorial/iBlog', }, ], }, @@ -331,6 +331,25 @@ const config: Config = { theme: prismThemes.github, darkTheme: prismThemes.dracula, }, + // 不配置此项-文章分享到微信只有一个链接不会显示卡片内容 + + metadata: [ + // 各个元数据标签的作用 + // description 和 keywords: 提供网站描述和关键词,有助于SEO。 + // og:title, og:description, og:type, og:url, og:image: Open Graph标签,定义了分享时展示的内容,包括标题、描述、类型、URL和图片。 + // twitter:card, twitter:title, twitter:description, twitter:image: Twitter卡片标签,定义了在Twitter上分享时展示的内容。 + { name: 'description', content: '我的博客,你的指南' }, // 网站描述-Your Site Description + { name: 'keywords', content: 'iBlog, iBlogs, trainees.cn, 编程小马达,练习生基地' }, // 关键词-your, keywords + { property: 'og:title', content: '杨木发的自留地' }, // Open Graph 标题-Your Site Title + { property: 'og:description', content: '我的博客,你的指南' }, // Open Graph 描述-Your Site Description + { property: 'og:type', content: 'website' }, // Open Graph 类型-website + { property: 'og:url', content: 'https://www.yangmufa.com' }, // Open Graph URL-https://your-site.com + { property: 'og:image', content: 'https://www.yangmufa.com/img/iBlogLogo.png' }, // Open Graph 图片-https://your-site.com/img/your-image.png + { name: 'twitter:card', content: 'summary' }, // Twitter 卡片类型-summary_large_image + { name: 'twitter:title', content: 'e' }, // Twitter 标题-Your Site Titl + { name: 'twitter:description', content: '我的博客,你的指南' }, // Twitter 描述-Your Site Description + { name: 'twitter:image', content: 'https://www.yangmufa.com/img/iBlogLogo.png' }, // Twitter 图片-https://your-site.com/img/your-image.png + ], } satisfies Preset.ThemeConfig, // diff --git a/package-lock.json b/package-lock.json index 9f99b8e..39c6949 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,11 +1,11 @@ { - "name": "it-blog", + "name": "iblog", "version": "0.0.0", "lockfileVersion": 3, "requires": true, "packages": { "": { - "name": "it-blog", + "name": "iblog", "version": "0.0.0", "dependencies": { "@docusaurus/core": "3.4.0", diff --git a/package.json b/package.json index 2a161cd..47de2b4 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "name": "it-blog", + "name": "iblog", "version": "0.0.0", "private": true, "scripts": { diff --git a/sidebars.ts b/sidebars.ts index 9fe590a..03f5b38 100644 --- a/sidebars.ts +++ b/sidebars.ts @@ -12,7 +12,7 @@ import type {SidebarsConfig} from '@docusaurus/plugin-content-docs'; */ const sidebars: SidebarsConfig = { - // By default, itBlog generates a sidebar from the docs folder structure + // By default, iBlog generates a sidebar from the docs folder structure // blogSidebar: [{type: 'autogenerated', dirName: '/blog'}], introSidebar: [{type: 'autogenerated', dirName: 'intro'}], netbeansSidebar: [{type: 'autogenerated', dirName: 'net-beans'}], diff --git a/src/components/HomepageFeatures/index.tsx b/src/components/HomepageFeatures/index.tsx index acba9c2..fd2cb56 100644 --- a/src/components/HomepageFeatures/index.tsx +++ b/src/components/HomepageFeatures/index.tsx @@ -14,7 +14,7 @@ const FeatureList: FeatureItem[] = [ Svg: require('@site/static/img/undraw_structural.svg').default, description: ( <> -  itBlog 的设计无论从那方面开始都很容易理解和记忆, +  iBlog 的设计无论从那方面开始都很容易理解和记忆, 受大树的启发,通过自顶向下方式把知识以树形结构的形式来组织成文,避免了混乱和繁杂的内容,
加快记忆和查询时间,降低学习和工作成本。 @@ -25,7 +25,7 @@ const FeatureList: FeatureItem[] = [ Svg: require('@site/static/img/undraw_concentration.svg').default, description: ( <> -  itBlog 的定位是只专注于编程领域的基础知识和场景应用的静态资源文档载体,开盖即食的懒人(高效)精神,减去繁杂的内容和功能,使得内容更加纯粹和营养。
+  iBlog 的定位是只专注于编程领域的基础知识和场景应用的静态资源文档载体,开盖即食的懒人(高效)精神,减去繁杂的内容和功能,使得内容更加纯粹和营养。
), }, @@ -35,7 +35,7 @@ const FeatureList: FeatureItem[] = [ description: ( <> 通过React构建并不断重用扩展自定义的网站布局组件, - 让 itBlog 可以重复使用相同的页眉和页脚等进行扩展。 + 让 iBlog 可以重复使用相同的页眉和页脚等进行扩展。 ), }, diff --git a/src/pages/index.tsx b/src/pages/index.tsx index 5e54b0c..ac62832 100644 --- a/src/pages/index.tsx +++ b/src/pages/index.tsx @@ -20,7 +20,7 @@ function HomepageHeader() { - 花5分钟⏱️了解itBlog + 花5分钟⏱️了解iBlog diff --git a/static/img/itBlog-social-card.webp b/static/img/iBlog-social-card.webp similarity index 100% rename from static/img/itBlog-social-card.webp rename to static/img/iBlog-social-card.webp diff --git a/static/img/itBlog.png b/static/img/iBlog.png similarity index 100% rename from static/img/itBlog.png rename to static/img/iBlog.png diff --git a/static/img/itBlogLogo.png b/static/img/iBlogLogo.png similarity index 100% rename from static/img/itBlogLogo.png rename to static/img/iBlogLogo.png