Skip to content

Commit

Permalink
Fix typos (#1994)
Browse files Browse the repository at this point in the history
The typos were detected by the typos app: https://pypi.org/project/typos/ running the following command

    typos --format brief
  • Loading branch information
eksperimental authored Jan 1, 2025
1 parent 1f1a8a7 commit 915b97a
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 15 deletions.
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ This release requires Elixir v1.13.
## v0.30.6 (2023-08-25)

* Enhancements
* Extract title from Markdown file when preceeded with comments
* Extract title from Markdown file when preceded with comments
* Improve focus navigation in notebooks

## v0.30.5 (2023-08-12)
Expand Down Expand Up @@ -333,7 +333,7 @@ This release requires Elixir v1.13.

## v0.28.3 (2022-03-23)

* Enhacements
* Enhancements
* Include page titles in autocomplete suggestions
* Allow theme to be set to "System" version
* Remove "Specs" heading and render full typespecs
Expand Down
4 changes: 2 additions & 2 deletions assets/css/autocomplete.css
Original file line number Diff line number Diff line change
Expand Up @@ -239,13 +239,13 @@

/* Style the scrollbar thumb (the draggable part) */
.autocomplete-suggestions::-webkit-scrollbar-thumb {
background-color: var(--autocompleteSrollbarThumb);
background-color: var(--autocompleteScrollbarThumb);
border-radius: 7px;
}

/* Style the scrollbar track on hover */
.autocomplete-suggestions::-webkit-scrollbar-track {
background-color: var(--autocompleteSrollbarTrack);
background-color: var(--autocompleteScrollbarTrack);
}

@media screen and (max-width: 1023px) {
Expand Down
4 changes: 2 additions & 2 deletions assets/css/custom-props/theme-dark.css
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,8 @@ body.dark {
--suggestionBorder: var(--gray600);
--autocompleteResults: var(--gray200);
--autocompleteResultsBold: var(--gray100);
--autocompleteSrollbarThumb: var(--gray600);
--autocompleteSrollbarTrack: var(--gray850);
--autocompleteScrollbarThumb: var(--gray600);
--autocompleteScrollbarTrack: var(--gray850);
--autocompleteLabelBack: var(--gray600);
--autocompleteLabelFont: rgba(255, 255, 255, 0.8);
}
4 changes: 2 additions & 2 deletions assets/css/custom-props/theme-light.css
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,8 @@
--suggestionBorder: var(--gray200);
--autocompleteResults: var(--gray600);
--autocompleteResultsBold: var(--gray800);
--autocompleteSrollbarThumb: var(--gray200);
--autocompleteSrollbarTrack: var(--gray50);
--autocompleteScrollbarThumb: var(--gray200);
--autocompleteScrollbarTrack: var(--gray50);
--autocompleteLabelBack: var(--gray100);
--autocompleteLabelFont: var(--gray600);
}
2 changes: 1 addition & 1 deletion assets/js/autocomplete/suggestions.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { escapeRegexModifiers, escapeHtmlEntities, isBlank } from '../helpers'
* @property {String|null} description An additional information (to be displayed below the title).
* @property {Number} matchQuality How well the suggestion matches the given query string.
* @property {String} category The group of suggestions that the suggestion belongs to.
* @property {bool} deprecated Wether this node is marked as deprecated in the codebase
* @property {bool} deprecated Whether this node is marked as deprecated in the codebase
*/

const SUGGESTION_CATEGORY = {
Expand Down
2 changes: 1 addition & 1 deletion assets/js/search-page.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ async function search (value) {

try {
// We cannot match on atoms :foo because that would be considered
// a filter. So we escape all colons not preceeded by a word.
// a filter. So we escape all colons not preceded by a word.
const fixedValue = value.replaceAll(/(\B|\\):/g, '\\:')
const results = searchResultsToDecoratedSearchNodes(index.search(fixedValue))
renderResults({ value, results })
Expand Down
6 changes: 3 additions & 3 deletions assets/js/settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ function addEventListeners () {
})
}

function showSettinsTab () {
function showSettingsTab () {
qs(KEYBOARD_SHORTCUTS_TAB).classList.remove('active')
qs(SETTINGS_TAB).classList.add('active')
qs(SETTINGS_CONTENT).classList.remove('hidden')
Expand Down Expand Up @@ -98,11 +98,11 @@ export function openSettingsModal () {
})

qs(SETTINGS_TAB).addEventListener('click', event => {
showSettinsTab()
showSettingsTab()
})
qs(KEYBOARD_SHORTCUTS_TAB).addEventListener('click', event => {
showKeyboardShortcutsTab()
})

showSettinsTab()
showSettingsTab()
}
4 changes: 2 additions & 2 deletions test/ex_doc/refs_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ defmodule ExDoc.RefsTest do
assert Refs.get_visibility({:function, :lists, :all, 9}) == :undefined
assert Refs.get_visibility({:function, :lists, :_all, 9}) == :undefined
assert Refs.get_visibility({:function, InMemory, :with_doc, 0}) == :public
assert Refs.get_visibility({:function, InMemory, :non_existant, 0}) == :undefined
assert Refs.get_visibility({:function, InMemory, :non_existent, 0}) == :undefined
assert Refs.get_visibility({:function, WithModuleDoc, :no_doc, 0}) == :public
assert Refs.get_visibility({:function, WithModuleDoc, :_no_doc, 0}) == :hidden
assert Refs.get_visibility({:function, WithModuleDoc, :_doc_false, 0}) == :hidden
Expand All @@ -42,7 +42,7 @@ defmodule ExDoc.RefsTest do
assert Refs.get_visibility({:function, InMemory, :no_doc, 0}) == :public
assert Refs.get_visibility({:function, InMemory, :doc_false, 0}) == :public
assert Refs.get_visibility({:function, InMemory, :with_doc, 0}) == :public
assert Refs.get_visibility({:function, InMemory, :non_existant, 0}) == :undefined
assert Refs.get_visibility({:function, InMemory, :non_existent, 0}) == :undefined

# macros are classified as functions
assert Refs.get_visibility({:function, Kernel, :def, 2}) == :public
Expand Down

0 comments on commit 915b97a

Please sign in to comment.