chore: fix some typos in comments

Signed-off-by: fanqiaojun <fanqiaojun@yeah.net>
pull/2195/head
fanqiaojun 9 months ago
parent 66dd20ddb6
commit ba5e944d6c

@ -2,7 +2,7 @@ module Docs
class Elisp class Elisp
class EntriesFilter < Docs::EntriesFilter class EntriesFilter < Docs::EntriesFilter
def get_name def get_name
# remove numbers at the beginnig # remove numbers at the beginning
name = at_css('.chapter', '.section', '.subsection', '.subsubsection', '.appendix').content.slice(/[[:alpha:]]...*/) name = at_css('.chapter', '.section', '.subsection', '.subsubsection', '.appendix').content.slice(/[[:alpha:]]...*/)
# remove 'Appendix' word # remove 'Appendix' word

@ -4,7 +4,7 @@ module Docs
# The GTK documentation paths are "flat" and while the contents of each # The GTK documentation paths are "flat" and while the contents of each
# page provides a way to determine the direct parent relationship, we # 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 # 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... # a full map of page -> parent relationships from the table of contents...
PARENT_BY_PATH = {} PARENT_BY_PATH = {}

@ -15,7 +15,7 @@ module Docs
group = 'kubectl' group = 'kubectl'
commands = css('h1').to_a() commands = css('h1').to_a()
commands.map do |node| 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") new_group = at_css("##{node['id']} > strong")
if new_group if new_group
group = new_group.content.titleize group = new_group.content.titleize

Loading…
Cancel
Save