Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .codespellrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[codespell]
# Ref: https://github.com/codespell-project/codespell#using-a-config-file
skip = .git,.git-meta,.gitignore,.gitattributes,package-lock.json,*.lock,*.css,*.min.*,.codespellrc,*/spec/sites/*
check-hidden = true
# ignore-regex =
ignore-words-list =
# nd - ordinal suffix in regex patterns like (st|nd|rd|th)
nd
23 changes: 23 additions & 0 deletions .github/workflows/codespell.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Codespell configuration is within .codespellrc
---
name: Codespell

on:
push:
branches: [master]
pull_request:
branches: [master]

permissions:
contents: read

jobs:
codespell:
name: Check for spelling errors
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4
- name: Codespell
uses: codespell-project/actions-codespell@8f01853be192eb0f849a5c7d721450e7a467c579 # v2.2
2 changes: 1 addition & 1 deletion INSTALLATION.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ gem install sitediff -v '1.2.1'
## Docker

There is a `Dockerfile` in the root of the SiteDiff git repository. It uses
the Docker offical Ruby image. Note that SiteDiff will use port `13080` for the result server. The following Docker image tags are available to be pulled.
the Docker official Ruby image. Note that SiteDiff will use port `13080` for the result server. The following Docker image tags are available to be pulled.

* latest (master branch)
* 1.0.0
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
- [ignore_whitespace](#ignore_whitespace)
- [remove_html_comments](#remove_html_comments)
- [before / after](#before--after)
- [includes](#incudes)
- [includes](#includes)
- [dom_transform](#dom_transform)
- [remove](#remove)
- [strip](#strip)
Expand Down
2 changes: 1 addition & 1 deletion config/sitediff.example.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ selector: 'body'

# General regular expression rules, applied to both versions of the site.
sanitization:
# Normalize input tags containg random tokens.
# Normalize input tags containing random tokens.
- title: Remove form-build-id
pattern: '<input type="hidden" name="form_build_id" value="form-[a-zA-Z0-9_-]+" *\/?>'
substitute: '<input type="hidden" name="form_build_id" value="__form_build_id__">'
Expand Down
2 changes: 1 addition & 1 deletion lib/sitediff/api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def initialize(directory, config_file = nil)
end

##
# Intialize a SiteDiff project.
# Initialize a SiteDiff project.
#
# Calling:
# SiteDiff::Api.init(
Expand Down