Skip to content

Use the modern docfx theme with Material styling - #169

Merged
brantburnett merged 1 commit into
mainfrom
claude/docfx-theme-comparison-e60e16
Nov 23, 2026
Merged

brantburnett merged 1 commit into
mainfrom
claude/docfx-theme-comparison-e60e16

Conversation

@brantburnett

Copy link
Copy Markdown
Owner

What changed

  • docfx.json templates are now default, modern, templates/material, templates/snappier.
  • Add templates/material/public/main.css, the docfx-material 1.0.0 stylesheet (MIT), unchanged apart from an attribution header.

Why

docfx.json listed a material/material template that was never in the repo or the docfx package, so the published site rendered with only the default template. This switches to docfx's modern template with the Material overrides, chosen after comparing modern alone with modern + Material side by side.

Reviewer notes

  • Material for the modern template is CSS only: Roboto font, rounded nav links and search box, tinted navbar, card shadows on images and code, and restyled alert boxes. Layout, search and API pages are the modern template's.
  • The stylesheet imports Roboto from Google Fonts, so the site now makes that external request.
  • templates/snappier stays last so its ManagedReference.extension.js still applies.
  • Local dotnet docfx docfx.json succeeds with the one existing GitVersion.yml MissingYamlMime warning.

🤖 Generated with Claude Code

docfx.json listed a material/material template that was never in the
repo or the docfx package, so the site built with only the default
theme. Switch to default + modern and vendor the docfx-material 1.0.0
stylesheet (MIT) under templates/material.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@brantburnett
brantburnett marked this pull request as ready for review November 23, 2026 18:47
Copilot AI balanced review requested due to automatic review settings November 23, 2026 18:47
@brantburnett
brantburnett merged commit a54e8ef into main Nov 23, 2026
40 checks passed
@brantburnett
brantburnett deleted the claude/docfx-theme-comparison-e60e16 branch November 23, 2026 18:47

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 Changes recommended

The stylesheet omits the required upstream MIT permission notice, and COPYING.txt does not supply the missing notice.

1 open issue
What changed in this PR

Switches the documentation site to DocFX’s modern theme with Material styling, replacing the missing material/material template.

Changes:

  • Enables modern and the local Material overrides while keeping templates/snappier last.
  • Adds the attributed DocFX Material 1.0.0 stylesheet, including Roboto via Google Fonts and styling for navigation, alerts, images, and code.
File Description
templates/​material/​public/​main.css Adds Material styling and the external Roboto font import.
docfx.json Updates the template chain while preserving Snappier’s final override position.

Review effort: Balanced

@@ -0,0 +1,187 @@
/*
* DocFX Material 1.0.0 (https://github.com/ovasquez/docfx-material)
* Copyright (c) 2019 Oscar Vásquez. Licensed under the MIT License.
This was referenced Nov 23, 2026
ooples pushed a commit to ooples/AiDotNet that referenced this pull request Nov 30, 2026
Updated [Snappier](https://github.com/brantburnett/Snappier) from 1.3.2
to 1.3.3.

<details>
<summary>Release notes</summary>

_Sourced from [Snappier's
releases](https://github.com/brantburnett/Snappier/releases)._

## 1.3.3

## What's Changed
* Validate declared uncompressed length before allocating by
@​brantburnett in brantburnett/Snappier#167
* Generate docfx API metadata from source again by @​brantburnett in
brantburnett/Snappier#168
* Use the modern docfx theme with Material styling by @​brantburnett in
brantburnett/Snappier#169


**Full Changelog**:
brantburnett/Snappier@release/1.3.2...release/1.3.3

Commits viewable in [compare
view](brantburnett/Snappier@release/1.3.2...release/1.3.3).
</details>

[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=Snappier&package-manager=nuget&previous-version=1.3.2&new-version=1.3.3)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore <dependency name> major version` will close this
group update PR and stop Dependabot creating any more for the specific
dependency's major version (unless you unignore this specific
dependency's major version or upgrade to it yourself)
- `@dependabot ignore <dependency name> minor version` will close this
group update PR and stop Dependabot creating any more for the specific
dependency's minor version (unless you unignore this specific
dependency's minor version or upgrade to it yourself)
- `@dependabot ignore <dependency name>` will close this group update PR
and stop Dependabot creating any more for the specific dependency
(unless you unignore this specific dependency or upgrade to it yourself)
- `@dependabot unignore <dependency name>` will remove all of the ignore
conditions of the specified dependency
- `@dependabot unignore <dependency name> <ignore condition>` will
remove the ignore condition of the specified dependency and ignore
conditions


</details>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants