Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Docs

# Builds the documentation site on every push to master and publishes it to GitHub Pages.
# Pull requests and manual runs build the site too, but only master pushes and manual runs deploy.
# Warnings never block a deploy; an error, a library build error or a broken docs sample does,
# Warnings never block a deploy; an error, a library build error, a broken docs sample or a broken link does,
# and in that case the previously published site stays live.

on:
Expand Down Expand Up @@ -63,6 +63,9 @@ jobs:
if ($apiPages -lt 100) { throw "Only $apiPages API pages were generated" }
"Site has $apiPages API pages."

- name: Check the links (a broken page, file or anchor fails the run; an external link fails it only on a hard 404 or 410)
run: ./docsite/tools/check-links.ps1

- name: Summarize warnings
if: always()
continue-on-error: true
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ The timing ratios are indicative. Sources, conditions and error margins: [Perfor
- [SQL Server](https://open-net-libraries.github.io/Open.Database.Extensions/articles/getting-started.html#with-sql-server): `SqlConnectionFactory` and stored procedures on `Microsoft.Data.SqlClient`.
- [Coming from Dapper](https://open-net-libraries.github.io/Open.Database.Extensions/articles/coming-from-dapper.html): the same jobs side by side.
- [How little code](https://open-net-libraries.github.io/Open.Database.Extensions/articles/how-little-code.html): four tasks in ODX, Dapper, EF Core and plain ADO.NET.
- [Trimming and native AOT](https://github.com/Open-NET-Libraries/Open.Database.Extensions/blob/master/Source/Core/README.md#trimming-and-native-aot).
- [Trimming and native AOT](https://open-net-libraries.github.io/Open.Database.Extensions/articles/mapping.html#trimming-and-native-aot).

Upgrading from an earlier version? See [Coming from earlier versions](https://open-net-libraries.github.io/Open.Database.Extensions/articles/whats-new-11.html).

Expand Down
3 changes: 2 additions & 1 deletion docsite/CONTRIBUTING-DOCS.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,5 @@ Every push to `master` rebuilds and publishes the site (`.github/workflows/docs.
- **Package READMEs:** each `Source/<Project>/README.md` is the page nuget.org shows for that package (`Source/Directory.Build.props` packs the one beside the `.csproj`). Absolute links only, code blocks copied from sample regions. The "The packages" table is the same in every one of them: change it in all of them together.
- **Package heroes:** the banner directly under the H1 of each package README is `docsite/images/hero-<package>.svg` (1280 by 200; Core is 260). Left column: the ODX mark (a database and the letters ODX, in the package's accent color) with the package name; then the tagline; then a small scene. ODX is the acronym and the mark, not the name. The site name (`_appName` and `_appTitle` in `docfx.json`) and the H1 of the root `README.md` say "Open.Database.Extensions (ODX)"; the landing page `docsite/index.md` has no H1, by design (the header shows the name and the banner says what the library is, with its alt text as the accessible name; its front matter `title` is the browser-tab title); the package README H1s and all prose keep the full name Open.Database.Extensions. The banner's alt text carries the tagline; never repeat the tagline as text next to a banner. Each is linked by its absolute `raw.githubusercontent.com` URL because nuget.org shows only images from allow-listed hosts (that host is one). Each paints its own soft background in a light and a dark palette (`prefers-color-scheme`), because nuget.org's page theme can differ from the operating system's; keep the contrast soft and any motion subtle (`prefers-reduced-motion` turns it off).
- **Build locally:** `dotnet tool restore`, then `dotnet docfx docsite/docfx.json --serve`.
- **Failures:** warnings are listed in the workflow summary and never block a deploy. A DocFX error or a sample that does not compile does, and the live site stays as it was.
- **Links:** `docsite/tools/check-links.ps1` checks the built site and the six README files (the root one and the five package ones): every page, file and anchor must resolve, a README link must be absolute, a link into this repository's `master` branch (or the ref a pull request builds from, which DocFX uses for its "View source" links) is checked against the checkout, and an external link fails the run only on a hard 404 or 410 (a timeout or a refusal is listed, not failed). Run it after the local build: `pwsh docsite/tools/check-links.ps1` (add `-SkipExternal` to skip the network).
- **Failures:** warnings are listed in the workflow summary and never block a deploy. A DocFX error, a sample that does not compile or a broken link does, and the live site stays as it was.
Loading