chore: fix some typos in comments
@@ -2,7 +2,7 @@ module Docs
class Elisp
class EntriesFilter < Docs::EntriesFilter
def get_name
- # remove numbers at the beginnig
+ # remove numbers at the beginning
name = at_css('.chapter', '.section', '.subsection', '.subsubsection', '.appendix').content.slice(/[[:alpha:]]...*/)
# remove 'Appendix' word
@@ -4,7 +4,7 @@ module Docs
# The GTK documentation paths are "flat" and while the contents of each
# page provides a way to determine the direct parent relationship, we
# really need a full hierarchy of pages *a priori* to be able to fully
- # categorize all pages and entries. So we're going to recursivly generate
+ # categorize all pages and entries. So we're going to recursively generate
# a full map of page -> parent relationships from the table of contents...
PARENT_BY_PATH = {}
@@ -15,7 +15,7 @@ module Docs
group = 'kubectl'
commands = css('h1').to_a()
commands.map do |node|
- # handle titles differnetly by converting them into sidebar groups (types)
+ # handle titles differently by converting them into sidebar groups (types)
new_group = at_css("##{node['id']} > strong")
if new_group
group = new_group.content.titleize