-
Notifications
You must be signed in to change notification settings - Fork 60
feat: Improved documentation site with search, dark mode, sitemap.xml and less cluttered navigation #241
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
feat: Improved documentation site with search, dark mode, sitemap.xml and less cluttered navigation #241
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
c7b1158
feat(docfx): set memberPage to samepage
DennisDyallo d47b77d
fix(docfx): set correct url for docs sitemap.xml
DennisDyallo 68ff7ec
fix(docfx): remove obsolete members from docfx output
DennisDyallo a88a05e
feat(docfx): add GA tracking and metadata to docs build
DennisDyallo f44f225
chore(docfx): remove old docfx template
DennisDyallo b562962
feat(docfx): use new docfx custom template
DennisDyallo 93303d9
feat(docfx): enable static search in docs site
DennisDyallo 76f36f2
style(docfx): group yubikey applications
DennisDyallo 02567f3
chore(docfx): add custom output for certain alerts
DennisDyallo b81d57c
style(docfx): better contrast on dark and light modes
DennisDyallo 57cec38
style(docfx): dimming active nav bar item for visibility
DennisDyallo df6257e
docs: reorder table of contents
DennisDyallo File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,154 @@ | ||
/* ============================================================================= | ||
DOCFX CUSTOM STYLES | ||
============================================================================= */ | ||
|
||
/* ============================================================================= | ||
HEADER & NAVIGATION | ||
============================================================================= */ | ||
|
||
/* Logo styling */ | ||
#logo { | ||
width: 50px; | ||
height: 50px; | ||
margin-right: 16px; | ||
} | ||
|
||
/* Header background */ | ||
header.bg-body { | ||
background-color: #8cc041 !important; | ||
} | ||
|
||
[data-bs-theme="dark"] header.bg-body { | ||
background-color: #6a9b2a !important; | ||
} | ||
|
||
/* Remove redundant Home header */ | ||
#navbar > ul > li:nth-child(1) > a { | ||
display: none; | ||
} | ||
|
||
/* Navbar base styling */ | ||
.navbar { | ||
--bs-navbar-bg: #8cc041 !important; | ||
--bs-navbar-color: #ffffff !important; | ||
--bs-navbar-hover-color: rgba(255, 255, 255, 0.8) !important; | ||
--bs-navbar-active-color: #e0e0e0 !important; | ||
--bs-navbar-brand-color: #e0e0e0 !important; | ||
--bs-navbar-brand-hover-color: rgba(255, 255, 255, 0.8) !important; | ||
--bs-navbar-toggler-color: #e0e0e0 !important; | ||
background-color: #8cc041 !important; | ||
} | ||
|
||
/* Navbar text and interactive elements */ | ||
.navbar .nav-link, | ||
.navbar .navbar-brand, | ||
.navbar .btn, | ||
.navbar .dropdown-toggle { | ||
color: #ffffff !important; | ||
} | ||
|
||
/* Active nav link styling */ | ||
.navbar .nav-link.active { | ||
font-weight: 600; | ||
background-color: rgba(0, 0, 0, 0.1) !important; | ||
border-radius: 4px; | ||
} | ||
|
||
/* Dark mode navbar adjustments */ | ||
[data-bs-theme="dark"] .navbar { | ||
--bs-navbar-color: #e0e0e0 !important; | ||
--bs-navbar-bg: #6a9b2a !important; | ||
background-color: #6a9b2a !important; | ||
} | ||
|
||
[data-bs-theme="dark"] .navbar .nav-link, | ||
[data-bs-theme="dark"] .navbar .navbar-brand, | ||
[data-bs-theme="dark"] .navbar .btn, | ||
[data-bs-theme="dark"] .navbar .dropdown-toggle, | ||
[data-bs-theme="dark"] .navbar .bi { | ||
color: #e0e0e0 !important; | ||
} | ||
|
||
[data-bs-theme="dark"] .navbar .nav-link.active { | ||
background-color: rgba(0, 0, 0, 0.2) !important; | ||
} | ||
|
||
/* ============================================================================= | ||
BREADCRUMB | ||
============================================================================= */ | ||
|
||
/* Remove single-item breadcrumb */ | ||
.breadcrumb:has(li:first-child:last-child) { | ||
display: none; | ||
} | ||
|
||
/* ============================================================================= | ||
API DOCUMENTATION | ||
============================================================================= */ | ||
|
||
/* Namespace and assembly names */ | ||
.namespace-name, | ||
.assembly-name { | ||
display: block; | ||
font-size: 14px; | ||
color: rgb(94, 94, 94); | ||
word-wrap: break-word; | ||
word-break: break-word; | ||
} | ||
|
||
.namespace-name { | ||
margin-top: 20px; | ||
} | ||
|
||
.assembly-name { | ||
margin-bottom: 30px; | ||
} | ||
|
||
/* Class inheritance */ | ||
.derivedClasses { | ||
margin-top: 20px; | ||
} | ||
|
||
.derivedClasses-label { | ||
font-weight: 600; | ||
} | ||
|
||
.derivedClasses dd { | ||
display: block; | ||
margin-inline-start: 20px; | ||
} | ||
|
||
/* Member info tables */ | ||
.memberinfo { | ||
font-size: 14px; | ||
margin: 10px 0; | ||
} | ||
|
||
.memberinfo td:first-child { | ||
width: 30%; | ||
} | ||
|
||
.memberinfo thead { | ||
background-color: #f2f2f2; | ||
} | ||
|
||
/* ============================================================================= | ||
CODE BLOCKS | ||
============================================================================= */ | ||
|
||
/* Code language label */ | ||
.codewrapper .language { | ||
color: rgb(23, 23, 23); | ||
border: 1px solid rgb(227, 227, 227); | ||
border-bottom: 0; | ||
background-color: rgb(242, 242, 242); | ||
padding: 2px 16px; | ||
font-size: 12px; | ||
} | ||
|
||
/* Code block container */ | ||
.codewrapper pre { | ||
border: 1px solid rgb(227, 227, 227); | ||
border-radius: 0; | ||
background-color: rgb(250, 250, 250); | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"summary": "Summary", | ||
"note": "<h5>Note</h5>", | ||
"warning": "<h5>Warning</h5>", | ||
"tip": "<h5>Tip</h5>", | ||
"important": "<h5>Important</h5>", | ||
"caution": "<h5>Caution</h5>" | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,3 +16,6 @@ apiRules: | |
- exclude: | ||
uidRegex: ^System\.* | ||
type: Type | ||
- exclude: | ||
hasAttribute: | ||
uid: System.ObsoleteAttribute |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@DennisDyallo Is the "enableSearch" line all you needed to add the google search bar? Just curious.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well, that's the main feature toggle yes. And then I had to update docfx, read the docs, go into understanding and finally removing the existing template which was hard coded into the repository (hence blocking all updates from docfx), update the theme with correct colors, and some more. So a bit more :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks--yes, I was just asking about the feature toggle. Obviously a lot of work went into the rest of the PR.