This is an automated email from the ASF dual-hosted git repository.

delei pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/fesod.git


The following commit(s) were added to refs/heads/main by this push:
     new d129b7db docs: fix incorrect code example in documentation website 
(#766)
d129b7db is described below

commit d129b7db6a2f0108b9c13ee814678023b6868624
Author: 蹦蹦巴拉巴拉蹦 <[email protected]>
AuthorDate: Mon Jan 5 22:54:56 2026 +0800

    docs: fix incorrect code example in documentation website (#766)
    
    * docs: fix incorrect code example
    
    * docs: update i18n of the code
    
    ---------
    
    Co-authored-by: DeleiGuo <[email protected]>
---
 website/docs/sheet/write/extra.md                         | 15 +++++++++++++--
 .../current/sheet/write/extra.md                          | 15 +++++++++++++--
 2 files changed, 26 insertions(+), 4 deletions(-)

diff --git a/website/docs/sheet/write/extra.md 
b/website/docs/sheet/write/extra.md
index af117988..a3ee9756 100644
--- a/website/docs/sheet/write/extra.md
+++ b/website/docs/sheet/write/extra.md
@@ -80,7 +80,12 @@ public void writeHyperlinkDataWrite() {
     String fileName = "writeCellDataWrite" + System.currentTimeMillis() + 
".xlsx";
     WriteCellDemoData data = new WriteCellDemoData();
     // Set hyperlink
-    data.setHyperlink(new 
WriteCellData<>("点击访问").hyperlink("https://example.com";));
+    WriteCellData cellData = new WriteCellData<>("Click to visit");
+    HyperlinkData hyperlinkData = new HyperlinkData();
+    hyperlinkData.setAddress("https://example.com";);
+    hyperlinkData.setHyperlinkType(HyperlinkData.HyperlinkType.URL);
+    cellData.setHyperlinkData(hyperlinkData);
+    data.setHyperlink(cellData);
 
     FesodSheet.write(fileName, WriteCellDemoData.class)
         .sheet()
@@ -117,7 +122,13 @@ public void writeFormulaDataWrite() {
     String fileName = "writeCellDataWrite" + System.currentTimeMillis() + 
".xlsx";
     WriteCellDemoData data = new WriteCellDemoData();
     // Set formula
-    data.setFormulaData(new WriteCellData<>("=SUM(A1:A10)"));
+    WriteCellData<String> cellData = new WriteCellData<>();
+    FormulaData formulaData = new FormulaData();
+    formulaData.setFormulaValue("SUM(A1:A10)");
+    // Or
+    // formulaData.setFormulaValue("=SUM(A1:A10)");
+    cellData.setFormulaData(formulaData);
+    data.setFormulaData(cellData);
 
     FesodSheet.write(fileName, WriteCellDemoData.class)
         .sheet()
diff --git 
a/website/i18n/zh-cn/docusaurus-plugin-content-docs/current/sheet/write/extra.md
 
b/website/i18n/zh-cn/docusaurus-plugin-content-docs/current/sheet/write/extra.md
index 31224c5e..feca7114 100644
--- 
a/website/i18n/zh-cn/docusaurus-plugin-content-docs/current/sheet/write/extra.md
+++ 
b/website/i18n/zh-cn/docusaurus-plugin-content-docs/current/sheet/write/extra.md
@@ -80,7 +80,12 @@ public void writeHyperlinkDataWrite() {
     String fileName = "writeCellDataWrite" + System.currentTimeMillis() + 
".xlsx";
     WriteCellDemoData data = new WriteCellDemoData();
     // 设置超链接
-    data.setHyperlink(new 
WriteCellData<>("点击访问").hyperlink("https://example.com";));
+    WriteCellData cellData = new WriteCellData<>("点击访问");
+    HyperlinkData hyperlinkData = new HyperlinkData();
+    hyperlinkData.setAddress("https://example.com";);
+    hyperlinkData.setHyperlinkType(HyperlinkData.HyperlinkType.URL);
+    cellData.setHyperlinkData(hyperlinkData);
+    data.setHyperlink(cellData);
 
     FesodSheet.write(fileName, WriteCellDemoData.class)
         .sheet()
@@ -118,7 +123,13 @@ public void writeFormulaDataWrite() {
     String fileName = "writeCellDataWrite" + System.currentTimeMillis() + 
".xlsx";
     WriteCellDemoData data = new WriteCellDemoData();
     // 设置公式
-    data.setFormulaData(new WriteCellData<>("=SUM(A1:A10)"));
+    WriteCellData<String> cellData = new WriteCellData<>();
+    FormulaData formulaData = new FormulaData();
+    formulaData.setFormulaValue("SUM(A1:A10)");
+    // 或
+    // formulaData.setFormulaValue("=SUM(A1:A10)");
+    cellData.setFormulaData(formulaData);
+    data.setFormulaData(cellData);
 
     FesodSheet.write(fileName, WriteCellDemoData.class)
             .sheet()


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to