Skip to content

Commit 3aa1635

Browse files
Updated documentation
1 parent b0d54c1 commit 3aa1635

7 files changed

Lines changed: 24 additions & 15 deletions

File tree

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"packageName": "PicoXLSX",
33
"version": "4.0.0-rc.1",
4-
"description": "PicoXLSX is a library to generate Microsoft Excel files (XLSX) in an easy and native way. This package is the meta package of PicoXLSX and should be used in most cases as dependency in your project. It used the dependencies of NanoXLSX"
4+
"description": "PicoXLSX is a library to generate Microsoft Excel files (XLSX) in an easy and native way. This package is the meta package of PicoXLSX and should be used in most cases as dependency in your project. It uses the dependencies of NanoXLSX"
55
}

Docs.IndexGenerator/Config/plugin-config.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@
33
{
44
"id": "NanoXLSX.Core",
55
"title": "NanoXLSX.Core API",
6-
"path": "NanoXLSX.Core",
6+
"path": "https://rabanti-github.github.io/NanoXLSX/NanoXLSX.Core",
77
"description": "Core library"
88
},
99
{
1010
"id": "NanoXLSX.Writer",
1111
"title": "NanoXLSX.Writer API",
12-
"path": "NanoXLSX.Writer",
12+
"path": "https://rabanti-github.github.io/NanoXLSX/NanoXLSX.Writer",
1313
"description": "Writer component, to save XLSX files"
1414
}
1515
]

Docs.IndexGenerator/Output/index.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ <h1>
2020
<h2>API Documentation</h2>
2121
<section>
2222
<ul class="list">
23-
<li><a href="v2/">PicoXLSX 3.x</a> — Current version</li>
23+
<li><a href="v3/">PicoXLSX 3.x</a> — Current version</li>
2424
</ul>
2525
</section>
2626

@@ -47,7 +47,7 @@ <h1>
4747
<h2>Meta Package v4.0.0-rc.1</h2>
4848
<section>
4949
<ul class="list">
50-
<li><strong>PicoXLSX</strong> — This package is the meta package of PicoXLSX and should be used in most cases as dependency in your project. It used the dependencies of NanoXLSX</li>
50+
<li><strong>PicoXLSX</strong> — This package is the meta package of PicoXLSX and should be used in most cases as dependency in your project. It uses the dependencies of NanoXLSX</li>
5151
</ul>
5252

5353
<p>There is no documentation for the meta package. Please see the section <b>Dependency Package Documentation</b> for the complete API documentation.</p>
@@ -61,8 +61,8 @@ <h2>Meta Package v4.0.0-rc.1</h2>
6161
<section>
6262
<h2>Dependency Package Documentation (NanoXLSX)</h2>
6363
<ul class="list">
64-
<li><a href="NanoXLSX.Core/index.html"><strong>NanoXLSX.Core API</strong></a> — Core library</li>
65-
<li><a href="NanoXLSX.Writer/index.html"><strong>NanoXLSX.Writer API</strong></a> — Writer component, to save XLSX files</li>
64+
<li><a href="https://rabanti-github.github.io/NanoXLSX/NanoXLSX.Core"><strong>NanoXLSX.Core API</strong></a> — Core library</li>
65+
<li><a href="https://rabanti-github.github.io/NanoXLSX/NanoXLSX.Writer"><strong>NanoXLSX.Writer API</strong></a> — Writer component, to save XLSX files</li>
6666

6767
</ul>
6868
</section>

Docs.IndexGenerator/Program.cs

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ static int Main(string[] args)
109109
<h2>API Documentation</h2>
110110
<section>
111111
<ul class=""list"">
112-
<li><a href=""v2/"">PicoXLSX 3.x</a> — Current version</li>
112+
<li><a href=""v3/"">PicoXLSX 3.x</a> — Current version</li>
113113
</ul>
114114
</section>
115115
@@ -195,7 +195,15 @@ static string GenerateListItems(PluginConfig cfg)
195195
var sb = new System.Text.StringBuilder();
196196
foreach (var e in cfg.Entries)
197197
{
198-
string href = $"{Uri.EscapeDataString(e.Path)}/index.html";
198+
string href;
199+
if (e.Path.StartsWith("http"))
200+
{
201+
href = e.Path;
202+
}
203+
else
204+
{
205+
href = $"{Uri.EscapeDataString(e.Path)}/index.html";
206+
}
199207
sb.AppendLine($" <li><a href=\"{href}\"><strong>{EscapeHtml(e.Title)}</strong></a> — {EscapeHtml(e.Description ?? "")}</li>");
200208
}
201209
return sb.ToString();

MigrationGuide.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ There are some breaking changes, that are summarized in this migration guide.
99

1010
1. The namespace `PicoXLSX` was changed to `NanoXLSX`, to reflect the integration of PicoXLSX into NanoXLSX. Therefore, all occurrences of `PicoXLSX` in the code have to be replaced by `NanoXLSX`.
1111
2. All sub-classes, like `Cell.Address`, `Style.Font`, etc. are now independent classes. Therefore, all occurrences of these classes have to be adapted in the code, e.g. instead of `Style.Font font = new Font();`, `Font font = new Font();` is used. Additionally, some namespaces, like `NanoXLSX.Styles`, have to be added as usings.
12-
3. All constanst and enum values were renamed to follow the C# naming conventions (PascalCase for public members). Therefore, all occurrences of these constants and enum values have to be adapted in the code.
12+
3. All constants and enum values were renamed to follow the C# naming conventions (PascalCase for public members). Therefore, all occurrences of these constants and enum values have to be adapted in the code.
1313

1414
Important to note is, that PicoXLSX can now be extended by adding further NanoXLSX package references. For instance, if `NanoXLSX.Reader` is added as NuGet reference to PicoXLSX, it gets reader functionalities and has basically the same scope as NanoXLSX (Meta-Package).
1515

@@ -21,9 +21,9 @@ The following guide lists all necessary changes, as well as changed behaviors of
2121

2222
### Workbook
2323

24-
- The method `Workbook.AddStyle(Style)` was completely removed, after marked as obsolete in version 2.x. Styles should be added directly to cells or ranges.
25-
- The method `Workbook.AddStyleComponent(Style, AbstractStyle)` was completely removed, after marked as obsolete in version 2.x. Styles should be modified directly on cells, e.g. `workbook.CurrentWorksheet.Cells["A1"].CellStyle.CurrentFont.Bold = true;` or `workbook.CurrentWorksheet.Cells["A1"].CellStyle.Append(fontStyle)`.
26-
- The methods `Workbook.RemoveStyle(Style)`, `Workbook.RemoveStyle(Style, bool)`, `Workbook.RemoveStyle(string)` and `Workbook.RemoveStyle(string, bool)` were completely removed, after marked as obsolete in version 2.x. Styles should be removed directly from cells (e.g. `workbook.CurrentWorksheet.Cells["A1"].RemoveStyle()`.
24+
- The method `Workbook.AddStyle(Style)` was completely removed, after marked as obsolete in version 3.x. Styles should be added directly to cells or ranges.
25+
- The method `Workbook.AddStyleComponent(Style, AbstractStyle)` was completely removed, after marked as obsolete in version 3.x. Styles should be modified directly on cells, e.g. `workbook.CurrentWorksheet.Cells["A1"].CellStyle.CurrentFont.Bold = true;` or `workbook.CurrentWorksheet.Cells["A1"].CellStyle.Append(fontStyle)`.
26+
- The methods `Workbook.RemoveStyle(Style)`, `Workbook.RemoveStyle(Style, bool)`, `Workbook.RemoveStyle(string)` and `Workbook.RemoveStyle(string, bool)` were completely removed, after marked as obsolete in version 3.x. Styles should be removed directly from cells (e.g. `workbook.CurrentWorksheet.Cells["A1"].RemoveStyle()`.
2727

2828
---
2929

PicoXLSX.sln

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11

22
Microsoft Visual Studio Solution File, Format Version 12.00
33
# Visual Studio Version 17
4-
VisualStudioVersion = 17.14.36717.8 d17.14
4+
VisualStudioVersion = 17.14.36717.8
55
MinimumVisualStudioVersion = 10.0.40219.1
66
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PicoXLSX", "PicoXLSX\PicoXLSX.csproj", "{A70E40AA-98C1-453A-8030-B4798A89EBFC}"
77
EndProject
88
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{B02BD3FD-D442-49D4-870B-D59532568417}"
99
ProjectSection(SolutionItems) = preProject
1010
Changelog.md = Changelog.md
1111
LICENSE = LICENSE
12+
MigrationGuide.md = MigrationGuide.md
1213
README.md = README.md
1314
EndProjectSection
1415
EndProject

PicoXLSX/PicoXLSX.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
1818
<Title>PicoXLSX (Meta-Package)</Title>
1919
<Copyright>Copyright Raphael Stoeckli © 2025</Copyright>
20-
<PackageProjectUrl>https://github.com/rabanti-github/NanoXLSX</PackageProjectUrl>
20+
<PackageProjectUrl>https://github.com/rabanti-github/PicoXLSX</PackageProjectUrl>
2121
<PackageIcon>PicoXLSX.png</PackageIcon>
2222
<PackageReadmeFile>README.md</PackageReadmeFile>
2323
<RepositoryUrl>https://github.com/rabanti-github/PicoXLSX.git</RepositoryUrl>

0 commit comments

Comments
 (0)