Skip to content

test merge #2859

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

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
0644b57
Add css variables for dimensions, and use svh units
phoneticallySAARTHaK Jan 18, 2025
32f46d9
Fix excess/absent margins and padding.
phoneticallySAARTHaK Jan 18, 2025
aaff25e
Fix tab order of toolbar and remove unused selectors. **Breaks search**
phoneticallySAARTHaK Jan 19, 2025
99ae7be
Add more search related 118n strings, and inject more strings in js s…
phoneticallySAARTHaK Jan 19, 2025
876b81e
Implement search component as combobox, with minimal functionality
phoneticallySAARTHaK Jan 19, 2025
ae8388b
Add global keyboard listeners for opening modal
phoneticallySAARTHaK Jan 19, 2025
35f5be6
rename `setCurrentResult` to `setNextResult`
phoneticallySAARTHaK Jan 19, 2025
10ede76
Use semantic element `mark` for highlighting search matches
phoneticallySAARTHaK Jan 19, 2025
06e5b4d
Add exit animation for modals, using custom overlay
phoneticallySAARTHaK Jan 19, 2025
af61556
Remove unused keyframes. Merge `body` selectors
phoneticallySAARTHaK Jan 19, 2025
573cd44
Adjust max-height with virtual keyboard, in mobiles
phoneticallySAARTHaK Jan 19, 2025
523e097
fix placeholder text color on focus search input
phoneticallySAARTHaK Jan 19, 2025
f27f150
Remove min-height from search dialog and set it to `.state`
phoneticallySAARTHaK Jan 20, 2025
8986d06
fix single element edge case in `setNextResult`
phoneticallySAARTHaK Jan 20, 2025
d3fd2e1
Show recent searches when the search query is empty
phoneticallySAARTHaK Jan 20, 2025
d25d3a0
Completely revert "recent searches" feature.
phoneticallySAARTHaK Jan 25, 2025
0a64f24
Fix typo and refactor search.ts code
phoneticallySAARTHaK Jan 25, 2025
1a68fbf
Fix invalid search message implementation
phoneticallySAARTHaK Jan 26, 2025
f425f95
Add placeholder for no_results i18n string
phoneticallySAARTHaK Jan 26, 2025
67d03bb
remove global button styles and add it to tsd-widget
phoneticallySAARTHaK Jan 26, 2025
f4ebea6
Improve text contrast, satisfying WCAG level AA
phoneticallySAARTHaK Jan 27, 2025
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
4 changes: 3 additions & 1 deletion src/lib/internationalization/locales/en.cts
Original file line number Diff line number Diff line change
Expand Up @@ -509,7 +509,6 @@ export = {
theme_generated_using_typedoc: "Generated using TypeDoc", // If this includes "TypeDoc", theme will insert a link at that location.
// Search
theme_preparing_search_index: "Preparing search index...",
theme_search_index_not_available: "The search index is not available",
// Left nav bar
theme_loading: "Loading...",
// Right nav bar
Expand Down Expand Up @@ -537,4 +536,7 @@ export = {
"This member is normally hidden due to your filter settings.",
theme_hierarchy_expand: "Expand",
theme_hierarchy_collapse: "Collapse",
theme_search_index_not_available: "The search index is not available",
theme_search_no_results_found_for_0: "No results found for {0}",
theme_search_placeholder: "Search the docs",
} as const;
6 changes: 6 additions & 0 deletions src/lib/output/plugins/AssetsPlugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,12 @@ export class AssetsPlugin extends RendererComponent {
hierarchy_expand: i18n.theme_hierarchy_expand(),
hierarchy_collapse: i18n.theme_hierarchy_collapse(),
folder: i18n.theme_folder(),
theme_search_index_not_available:
this.application.i18n.theme_search_index_not_available(),
theme_search_no_results_found_for_0:
this.application.i18n.theme_search_no_results_found_for_0(
"{0}",
),
};

for (const key of getEnumKeys(ReflectionKind)) {
Expand Down
5 changes: 5 additions & 0 deletions src/lib/output/themes/default/assets/bootstrap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,8 @@ Object.defineProperty(window, "app", { value: app });
initSearch();
initNav();
initHierarchy();

if ("virtualKeyboard" in navigator) {
// @ts-ignore
navigator.virtualKeyboard.overlaysContent = true;
}
4 changes: 4 additions & 0 deletions src/lib/output/themes/default/assets/typedoc/Application.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ declare global {
// Kind strings for icons
folder: string;
[k: `kind_${number}`]: string;
theme_search_index_not_available: string;
theme_search_no_results_found_for_0: string;
};
}
}
Expand Down Expand Up @@ -50,6 +52,8 @@ window.translations ||= {
kind_2097152: "Type Alias",
kind_4194304: "Reference",
kind_8388608: "Document",
theme_search_index_not_available: "The search index is not available",
theme_search_no_results_found_for_0: "No results found for {0}",
};

/**
Expand Down
Loading