From ba5e944d6c498855d69968c49f9e33dea4e9b866 Mon Sep 17 00:00:00 2001 From: fanqiaojun Date: Sat, 13 Apr 2024 14:58:20 +0800 Subject: [PATCH] chore: fix some typos in comments Signed-off-by: fanqiaojun --- lib/docs/filters/elisp/entries.rb | 2 +- lib/docs/filters/gtk/entries.rb | 2 +- lib/docs/filters/kubectl/entries.rb | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/docs/filters/elisp/entries.rb b/lib/docs/filters/elisp/entries.rb index 9ccacb59..a699c7b0 100644 --- a/lib/docs/filters/elisp/entries.rb +++ b/lib/docs/filters/elisp/entries.rb @@ -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 diff --git a/lib/docs/filters/gtk/entries.rb b/lib/docs/filters/gtk/entries.rb index 5cb3d27a..b51f1544 100644 --- a/lib/docs/filters/gtk/entries.rb +++ b/lib/docs/filters/gtk/entries.rb @@ -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 = {} diff --git a/lib/docs/filters/kubectl/entries.rb b/lib/docs/filters/kubectl/entries.rb index 2a15d508..0d335c05 100644 --- a/lib/docs/filters/kubectl/entries.rb +++ b/lib/docs/filters/kubectl/entries.rb @@ -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