Skip to content

docs: Improve docs #2141

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
May 11, 2025
Merged

docs: Improve docs #2141

merged 4 commits into from
May 11, 2025

Conversation

unknowIfGuestInDream
Copy link
Owner

@unknowIfGuestInDream unknowIfGuestInDream commented May 10, 2025

Fixes #1746

Proposed Changes

  1. ...
  2. ...
  3. ...

Readiness Checklist

Author/Contributor

  • If documentation is needed for this change, has that been included in this pull request

Reviewing Maintainer

  • Label as either enhancement, bug, documentation or dependencies
  • Verify design and implementation

Summary by Sourcery

Update documentation to reflect JavaFX version changes and improve project documentation

Enhancements:

  • Added a note about JavaFX upgrade in development documentation

Documentation:

  • Updated JavaFX API documentation URL to point to version 21
  • Updated project overview to clarify JavaFX and dependencies version

Summary by CodeRabbit

  • 文档
    • 更新了 JavaFX API 文档链接至新版地址。
    • 在开发说明中新增了关于 JavaFX 升级的提示及发布新版本的说明。
    • controlsfx 依赖版本描述由区间格式调整为固定版本号。
    • 新增了 Jenkins 模块及工作流构建说明,介绍了自动构建和构建产物访问方式。
    • 统一并规范了多语言 README 文件中的版本号格式。
    • 新增“Common”模块及对应文档,扩展了文档侧边栏结构。
    • 补充了 Maven 和 IDEA 打包的使用说明。
    • 增加了 Eclipse 和 IDEA 的运行配置说明。
    • 修正了 smc 工具文档中的拼写错误。
    • 优化了文档首页配置,移除广告,简化项目链接展示。
  • 维护
    • 更新了 OpenJDK 17 JRE 下载链接及版本号,确保使用最新版本的运行环境。

Copy link

Thank you for following naming conventions! 😻

Copy link

vercel bot commented May 10, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
javafx-tool ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 11, 2025 0:15am

Copy link

quine-bot bot commented May 10, 2025

👋 Figuring out if a PR is useful is hard, hopefully this will help.

  • @unknowIfGuestInDream has been on GitHub since 2019 and in that time has had 1241 public PRs merged
  • Don't you recognize them? They've been here before 🎉
  • Here's a good example of their work: javafxTool (Javafx scaffolding, built on JDK17 + JavaFX21 + controlsfx 11.x.x + Maven)
  • From looking at their profile, they seem to be good with Java and HTML.

Their most recently public accepted PR is: #2134

Copy link

coderabbitai bot commented May 10, 2025

Caution

Review failed

The pull request is closed.

"""

Walkthrough

本次变更主要涉及将 CoreConstant 类中的 JAVAFX_API_URL 常量更新为指向 JavaFX 21 版本的官方文档地址,并对相关文档中的 JavaFX 升级说明和 controlsfx 依赖版本描述进行了相应调整,无其他逻辑修改。

Changes

文件/分组 变更摘要
core/src/main/java/com/tlcsdm/core/util/CoreConstant.java 更新 JAVAFX_API_URL 常量为 JavaFX 21 文档地址
docs/develop/Note.md 修改“依赖更新”小节,增加 JavaFX 升级说明,调整发布相关标题和提示
docs/overview/Into.md 将 controlsfx 依赖版本描述从“11.x.x”改为“11”,新增 jenkins 模块及工作流构建说明
jenkins/jre.sh 更新 OpenJDK 17 JRE 下载链接及文件名版本号从 17.0.14+7 到 17.0.15+6
README.md, README_jp.md, README_zh.md, docs/README.md 统一调整 JavaFX 和 controlsfx 版本描述格式,去除次版本号,添加空格
docs/_sidebar.md, docs/common/Into.md 新增“Common”模块及相关文档链接,扩展侧边栏结构
docs/develop/Package.md 增加 Maven 和 IDEA 打包的简要说明
docs/index.html 降级 docsify 版本,调整描述格式,移除部分路径别名,替换头部广告为 GitHub 链接
docs/overview/Env.md 新增 Eclipse 和 IDEA 的运行配置说明及链接
docs/smc/Into.md 修正 smc 工具描述中的拼写错误

Assessment against linked issues

Objective Addressed Explanation
开发文档补充 (#1746)

Suggested labels

size/M

Suggested reviewers

  • DreamAwakenFateBroke
  • unknowIfGuestInDream

Poem

小兔挥笔更文档,
JavaFX 新版闪亮亮。
常量一改指新航,
controlsfx 也跟上。
升级提示记心上,
代码世界添芬芳! 🐇✨
"""


📜 Recent review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between a419298 and 5a4f126.

📒 Files selected for processing (1)
  • docs/develop/Package.md (1 hunks)

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link

sourcery-ai bot commented May 10, 2025

Reviewer's Guide

This pull request updates the JavaFX API URL from version 17 to 21 in CoreConstant.java and modifies related documentation in docs/develop/Note.md and docs/overview/Into.md to reflect this version change and enhance clarity.

File-Level Changes

Change Details Files
Updated JavaFX API URL to version 21.
  • Changed JAVAFX_API_URL to point to JavaFX 21 documentation instead of version 17.
core/src/main/java/com/tlcsdm/core/util/CoreConstant.java
Updated documentation to align with JavaFX version change and improve readability.
  • Updated JavaFX version references from 17 to 21.
  • Added a note about JavaFX upgrade in Note.md.
  • Modified formatting and content in Note.md for dependency updates and new version releases.
  • Corrected controlsfx version from 11.x.x to 11 in Into.md.
docs/develop/Note.md
docs/overview/Into.md

Assessment against linked issues

Issue Objective Addressed Explanation

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

@github-actions github-actions bot added documentation Improvements or additions to documentation core labels May 10, 2025
Copy link

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @unknowIfGuestInDream - I've reviewed your changes - here's some feedback:

  • This PR includes a code change to CoreConstant.JAVAFX_API_URL; consider updating the PR title to reflect this.
  • The 'Proposed Changes' section in the PR description should be completed to outline the updates.
Here's what I looked at during the review
  • 🟡 General issues: 1 issue found
  • 🟢 Security: all looks good
  • 🟢 Testing: all looks good
  • 🟢 Documentation: all looks good

Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🧹 Nitpick comments (2)
docs/overview/Into.md (1)

3-3: 统一大小写及格式
建议将 javafxcontrolsfx 按官方品牌规范改为 JavaFXControlsFX,并在版本号与关键词间添加空格:

- javafx脚手架,基于JDK17 + JavaFX21 + controlsfx 11 + Maven开发。
+ JavaFX 脚手架,基于 JDK17 + JavaFX 21 + ControlsFX 11 + Maven 开发。
docs/develop/Note.md (1)

9-9: 移除多余转义字符
行末的反斜杠 \ 会导致 Markdown 换行或转义异常,请删除反斜杠,使内容渲染正常:

- **升级版本号**\
+ **升级版本号**
📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 944d9f1 and c8575ae.

📒 Files selected for processing (3)
  • core/src/main/java/com/tlcsdm/core/util/CoreConstant.java (1 hunks)
  • docs/develop/Note.md (1 hunks)
  • docs/overview/Into.md (1 hunks)
⏰ Context from checks skipped due to timeout of 90000ms (9)
  • GitHub Check: build (21, macos-latest, false)
  • GitHub Check: build (21, windows-latest, false)
  • GitHub Check: build (17, windows-latest, false)
  • GitHub Check: build (21, ubuntu-latest, false)
  • GitHub Check: qodana
  • GitHub Check: build (17, ubuntu-latest, false)
  • GitHub Check: build (17, macos-latest, false)
  • GitHub Check: StepSecurity Harden-Runner
  • GitHub Check: Summary
🔇 Additional comments (1)
core/src/main/java/com/tlcsdm/core/util/CoreConstant.java (1)

44-44:

✅ Verification successful

更新 JavaFX API 文档常量至 21
已将 JAVAFX_API_URLhttps://openjfx.io/javadoc/17 更新至 https://openjfx.io/javadoc/21,符合本次升级目标。

请运行以下脚本,确保仓库中不再存在旧版本链接:


🏁 Script executed:

#!/bin/bash
rg -n "openjfx.io/javadoc/17"

Length of output: 29


确认已更新 JavaFX API 文档链接至 v21
已将 JAVAFX_API_URLhttps://openjfx.io/javadoc/17 更新至 https://openjfx.io/javadoc/21,并确认仓库中不再包含旧版本链接。

  • 文件:core/src/main/java/com/tlcsdm/core/util/CoreConstant.java(第44行)

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 0

🧹 Nitpick comments (1)
docs/develop/Note.md (1)

7-10: 检查发布新版本小节语法
升级版本号\”行末反斜杠用于换行,需确认在最终文档中是否有预期效果,或考虑使用更直观的换行方式。

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 944d9f1 and c8575ae.

📒 Files selected for processing (3)
  • core/src/main/java/com/tlcsdm/core/util/CoreConstant.java (1 hunks)
  • docs/develop/Note.md (1 hunks)
  • docs/overview/Into.md (1 hunks)
⏰ Context from checks skipped due to timeout of 90000ms (10)
  • GitHub Check: automerge
  • GitHub Check: build (21, macos-latest, false)
  • GitHub Check: build (21, windows-latest, false)
  • GitHub Check: build (17, windows-latest, false)
  • GitHub Check: build (21, ubuntu-latest, false)
  • GitHub Check: qodana
  • GitHub Check: build (17, ubuntu-latest, false)
  • GitHub Check: build (17, macos-latest, false)
  • GitHub Check: StepSecurity Harden-Runner
  • GitHub Check: Summary
🔇 Additional comments (3)
core/src/main/java/com/tlcsdm/core/util/CoreConstant.java (1)

44-44: 确认 JavaFX API 版本常量更新
已将 JAVAFX_API_URL 常量从 17 升级至 21,保持与文档一致。请验证该链接可正常访问最新文档,并检查项目其他地方对该常量的引用是否同步更新。

docs/overview/Into.md (1)

3-3: 更新项目概述中的版本信息
已将文档中的 JavaFX 版本升级至 21,并将 controlsfx 固定为 11,提升描述准确性。请确认文档所示版本与实际依赖版本保持一致。

docs/develop/Note.md (1)

3-6: 新增 JavaFX 升级提示
在“依赖更新”部分加入 !> Javafx 升级CoreConstant.JAVAFX_API_URL,有效强调 JavaFX 升级信息。建议预览渲染效果,确保语法正确。

Copy link
Contributor

github-actions bot commented May 10, 2025

Qodana Community for JVM

It seems all right 👌

No new problems were found according to the checks applied

💡 Qodana analysis was run in the pull request mode: only the changed files were checked
☁️ View the detailed Qodana report

Contact Qodana team

Contact us at qodana-support@jetbrains.com

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 0

🧹 Nitpick comments (2)
docs/overview/Into.md (2)

3-3: 确认版本说明准确无误
“javafx脚手架,基于JDK17 + JavaFX21 + controlsfx 11 + Maven开发。” 已更新为 JavaFX 21 和 controlsfx 11,整体符合 PR 目标。建议将 “controlsfx” 首字母大写为 “ControlsFX”,以保持与 “JavaFX” 等项目名称的一致性。


37-43: 建议为裸露 URL 添加链接文本
第 42 行的裸露 URL 会触发 MD034(no-bare-urls)警告,建议改为带描述的 Markdown 链接或使用尖括号包裹。例如:

-   https://github.com/unknowIfGuestInDream/javafxTool/actions/workflows/artifact.yml
+   [查看最新构建工件](https://github.com/unknowIfGuestInDream/javafxTool/actions/workflows/artifact.yml)

<https://github.com/unknowIfGuestInDream/javafxTool/actions/workflows/artifact.yml>
🧰 Tools
🪛 markdownlint-cli2 (0.17.2)

42-42: Bare URL used
null

(MD034, no-bare-urls)

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between c8575ae and 855089e.

📒 Files selected for processing (2)
  • docs/overview/Into.md (2 hunks)
  • jenkins/jre.sh (1 hunks)
✅ Files skipped from review due to trivial changes (1)
  • jenkins/jre.sh
🧰 Additional context used
🪛 markdownlint-cli2 (0.17.2)
docs/overview/Into.md

42-42: Bare URL used
null

(MD034, no-bare-urls)

⏰ Context from checks skipped due to timeout of 90000ms (9)
  • GitHub Check: qodana
  • GitHub Check: build (21, windows-latest, false)
  • GitHub Check: build (17, windows-latest, false)
  • GitHub Check: build (21, ubuntu-latest, false)
  • GitHub Check: build (17, ubuntu-latest, false)
  • GitHub Check: build (17, macos-latest, false)
  • GitHub Check: build (21, macos-latest, false)
  • GitHub Check: StepSecurity Harden-Runner
  • GitHub Check: Summary
🔇 Additional comments (1)
docs/overview/Into.md (1)

35-35: 模块列表更新:添加 jenkins 模块
“jenkins: 打包和工作流构建时需要的文件” 已正确纳入代码结构,无需额外调整。

Signed-off-by: unknowIfGuestInDream <liang.tang.cx@gmail.com>
Signed-off-by: unknowIfGuestInDream <liang.tang.cx@gmail.com>
Signed-off-by: unknowIfGuestInDream <liang.tang.cx@gmail.com>
Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🧹 Nitpick comments (6)
docs/_sidebar.md (1)

12-13: 修正列表缩进以符合 Markdown 风格
静态分析提示 (MD007):列表项缩进应为 2 个空格一级,但当前新增的 “Common” 子项及其链接分别使用了 4/8 个空格。请将缩进调整为与其他同级条目一致:

-    - Common
-        - [介绍](common/Into.md)
+  - Common
+    - [介绍](common/Into.md)
🧰 Tools
🪛 markdownlint-cli2 (0.17.2)

12-12: Unordered list indentation
Expected: 2; Actual: 4

(MD007, ul-indent)


13-13: Unordered list indentation
Expected: 4; Actual: 8

(MD007, ul-indent)

docs/overview/Into.md (3)

3-3: 库名称规范和空格维护
建议将 controlsfx 11 标注为 ControlsFX 11,并在符号两侧添加空格:

- JavaFX 21 + controlsfx 11 + Maven开发
+ JavaFX 21 + ControlsFX 11 + Maven 开发

35-35: 模块名称首字母大写
建议将 jenkins 模块名称修改为 Jenkins,以与其他模块保持一致。


37-37: 优化 CI/CD 标题本地化
建议将标题 ## CI/CD 改为 ## 持续集成/持续交付 (CI/CD),并将子标题中的 Github Workflow Build 改为 GitHub 工作流构建,提高中文文档一致性和品牌名称正确性。

docs/develop/Note.md (2)

12-13: 常量和代码引用请加反引号并统一大小写
CoreConstant.JAVAFX_API_URLJavaFX 等引用用反引号包裹,并统一正确大小写,例如:

- CoreConstant.JAVAFX_API_URL 修改javaFX API路径
+ `CoreConstant.JAVAFX_API_URL` 修改 `JavaFX API` 路径

20-23: 统一平台工具名称大小写
请将 Githubjenkins 等名称统一为 GitHubJenkins,以保持文档专业和一致。

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 855089e and a419298.

📒 Files selected for processing (14)
  • README.md (1 hunks)
  • README_jp.md (1 hunks)
  • README_zh.md (1 hunks)
  • core/src/main/java/com/tlcsdm/core/util/CoreConstant.java (1 hunks)
  • docs/README.md (1 hunks)
  • docs/_sidebar.md (1 hunks)
  • docs/common/Into.md (1 hunks)
  • docs/develop/Note.md (1 hunks)
  • docs/develop/Package.md (1 hunks)
  • docs/index.html (3 hunks)
  • docs/overview/Env.md (1 hunks)
  • docs/overview/Into.md (2 hunks)
  • docs/smc/Into.md (1 hunks)
  • jenkins/jre.sh (1 hunks)
✅ Files skipped from review due to trivial changes (9)
  • docs/common/Into.md
  • docs/README.md
  • docs/smc/Into.md
  • README_zh.md
  • README.md
  • README_jp.md
  • docs/overview/Env.md
  • docs/develop/Package.md
  • docs/index.html
🚧 Files skipped from review as they are similar to previous changes (2)
  • core/src/main/java/com/tlcsdm/core/util/CoreConstant.java
  • jenkins/jre.sh
🧰 Additional context used
🪛 markdownlint-cli2 (0.17.2)
docs/_sidebar.md

12-12: Unordered list indentation
Expected: 2; Actual: 4

(MD007, ul-indent)


13-13: Unordered list indentation
Expected: 4; Actual: 8

(MD007, ul-indent)

⏰ Context from checks skipped due to timeout of 90000ms (9)
  • GitHub Check: qodana
  • GitHub Check: build (21, windows-latest, false)
  • GitHub Check: build (21, ubuntu-latest, false)
  • GitHub Check: build (17, macos-latest, false)
  • GitHub Check: build (21, macos-latest, false)
  • GitHub Check: build (17, windows-latest, false)
  • GitHub Check: build (17, ubuntu-latest, false)
  • GitHub Check: StepSecurity Harden-Runner
  • GitHub Check: Summary

Signed-off-by: unknowIfGuestInDream <liang.tang.cx@gmail.com>
@unknowIfGuestInDream unknowIfGuestInDream merged commit 175b710 into master May 11, 2025
26 of 28 checks passed
@unknowIfGuestInDream unknowIfGuestInDream deleted the ddddccc branch May 11, 2025 12:15
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ci core documentation Improvements or additions to documentation size/L
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feature Request] 开发文档补充
1 participant