From 70ee7ab00cdb64b2ede695cc8bf1144c9639c0d2 Mon Sep 17 00:00:00 2001
From: Liam Morland <liam@openplus.ca>
Date: Thu, 6 Feb 2025 21:19:15 -0500
Subject: [PATCH] Issue #3504850 by liam morland: Fix issues raised by cspell

---
 .gitlab-ci.yml                      | 1 +
 templates/toc-menu.html.twig        | 2 +-
 templates/toc-tree.html.twig        | 2 +-
 tests/src/Kernel/TocManagerTest.php | 2 +-
 4 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 68176cc..ed72907 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -10,6 +10,7 @@ variables:
   OPT_IN_TEST_NEXT_MINOR: 1
   OPT_IN_TEST_NEXT_MAJOR: 0
   RUN_JOB_UPGRADE_STATUS: 0
+  _CSPELL_WORDS: 'rockowitz, selectmenu, spécial, strto, tocs'
 cspell:
   allow_failure: false
 phpcs:
diff --git a/templates/toc-menu.html.twig b/templates/toc-menu.html.twig
index 65b970a..92646f0 100644
--- a/templates/toc-menu.html.twig
+++ b/templates/toc-menu.html.twig
@@ -9,7 +9,7 @@
  * - index: List of header items. Each header item contains:
  *   - prefix: The header option prefix. Either indentation or the complete path.
  *   - title: The header title.
- *   - url: The header fragrment (ie hash) URL, instance of \Drupal\Core\Url.
+ *   - url: The header fragment (ie hash) URL, instance of \Drupal\Core\Url.
  *
  * @ingroup themeable
  */
diff --git a/templates/toc-tree.html.twig b/templates/toc-tree.html.twig
index e582d62..09d5914 100644
--- a/templates/toc-tree.html.twig
+++ b/templates/toc-tree.html.twig
@@ -13,7 +13,7 @@
  *   - attributes: HTML attributes for the table of contents or list item.
  *   - below: The table of contents child items.
  *   - title: The table of contents or header title.
- *   - url: The header fragrment (ie hash) URL, instance of \Drupal\Core\Url.
+ *   - url: The header fragment (ie hash) URL, instance of \Drupal\Core\Url.
  *
  * @ingroup themeable
  */
diff --git a/tests/src/Kernel/TocManagerTest.php b/tests/src/Kernel/TocManagerTest.php
index 0f30ed7..edf9d24 100755
--- a/tests/src/Kernel/TocManagerTest.php
+++ b/tests/src/Kernel/TocManagerTest.php
@@ -140,7 +140,7 @@ class TocManagerTest extends KernelTestBase {
     $this->assertRaw('<ol class="none">');
     $render_content($toc);
 
-    // Check unorder list when type = FALSE.
+    // Check unordered list when type = FALSE.
     $options = [
       'number_path' => FALSE,
       'default' => [
-- 
GitLab