diff --git a/.github/workflows/pelican-action-test.yml b/.github/workflows/pelican-action-test.yml index 3b6b3d35..bbc6393b 100644 --- a/.github/workflows/pelican-action-test.yml +++ b/.github/workflows/pelican-action-test.yml @@ -10,7 +10,7 @@ jobs: pelican-test: env: # source and target branches SOURCE: testsite - TARGET: testsite-${{ github.ref_name }} # each branch has own test output + TARGET: testsite-${{ github.ref_name }} # each branch has its own test output runs-on: ubuntu-latest concurrency: # target must not be updated by two jobs at once group: testsite-${{ github.ref_name }} # must agree with TARGET diff --git a/pelican/README.md b/pelican/README.md index e7002425..f1cf326a 100644 --- a/pelican/README.md +++ b/pelican/README.md @@ -1,6 +1,6 @@ # ASF Infrastructure Pelican Action -**Note** This Action simplifies managing a project website. More information is available at infra.apache.org/asf-pelican.html. +**Note** This Action simplifies managing a project website. More information is available at infra.apache.org/asf-pelican.html. ## Inputs * destination Pelican Output branch (optional) default: asf-site diff --git a/pelican/action.yml b/pelican/action.yml index 464870ea..dd0a6005 100644 --- a/pelican/action.yml +++ b/pelican/action.yml @@ -55,7 +55,7 @@ runs: pip3 list # This a long list fi - # If the site uses Github Flavored Markdown, use this build branch + # If the site uses GitHub Flavored Markdown, use this build branch - name: fetch and build libcmark-gfm.so if: ${{ inputs.gfm == 'true' }} shell: bash diff --git a/pelican/migration/generate_settings.py b/pelican/migration/generate_settings.py index 4af91a0a..fd4508de 100644 --- a/pelican/migration/generate_settings.py +++ b/pelican/migration/generate_settings.py @@ -179,15 +179,15 @@ def main(): parser.add_argument('-y', '--yaml', required=True, help="Pelicanconf YAML file") args = parser.parse_args() - pelconf_yaml = args.yaml - sourcepath = os.path.dirname(os.path.realpath(pelconf_yaml)) + pelicanconf_yaml = args.yaml + sourcepath = os.path.dirname(os.path.realpath(pelicanconf_yaml)) tool_dir = THIS_DIR - if os.path.exists(pelconf_yaml): - print(f"found {pelconf_yaml}") + if os.path.exists(pelicanconf_yaml): + print(f"found {pelicanconf_yaml}") settings_path = os.path.join(sourcepath, AUTO_SETTINGS) builtin_plugins = os.path.join(tool_dir, os.pardir, "plugins") - generate_settings(pelconf_yaml, settings_path, [builtin_plugins], sourcepath) + generate_settings(pelicanconf_yaml, settings_path, [builtin_plugins], sourcepath) if __name__ == "__main__": main() diff --git a/pelican/plugin_paths.py b/pelican/plugin_paths.py index 9c6084f4..a9dd830f 100755 --- a/pelican/plugin_paths.py +++ b/pelican/plugin_paths.py @@ -50,7 +50,7 @@ def main(): with open(file, 'r', encoding='utf-8') as infile: contents = infile.read() - # This will contain the "globals" after executing the peliconconf.py. + # This will contain the "globals" after executing the pelicanconf.py. # Note: allow all builtins (by virtue of NOT inserting a __builtins__ # value into this dictionary. We have no concerns about builtin usage. values = { } diff --git a/pelican/plugins/PLUGIN_ARCH.md b/pelican/plugins/PLUGIN_ARCH.md index aef77318..8dd30823 100644 --- a/pelican/plugins/PLUGIN_ARCH.md +++ b/pelican/plugins/PLUGIN_ARCH.md @@ -1,7 +1,7 @@ # Plugin Architecture The plugins used operate at various points in a pelican build. -Pelican uses signals at various points. These are documented [here](https://docs.getpelican.com/en/latest/plugins.html#list-of-signals). +Pelican uses [signals](https://docs.getpelican.com/en/latest/plugins.html#list-of-signals) at various points. At a high level consider the following sequence of events: 1. Pelican Settings. Settings for a Pelican Build are in your Pelican Configuration diff --git a/pelican/plugins/README.md b/pelican/plugins/README.md index b3d17ed8..68eef380 100644 --- a/pelican/plugins/README.md +++ b/pelican/plugins/README.md @@ -25,7 +25,7 @@ During initiation, runs scripts that can be used to create content and static fi ## gfm -Pelican plugin that processes Github Flavored Markdown (**GFM**) using the cmark library. +Pelican plugin that processes GitHub Flavored Markdown (**GFM**) using the cmark library. ## toc diff --git a/pelican/plugins/asfdata.py b/pelican/plugins/asfdata.py index db3d7b2e..f07ff761 100644 --- a/pelican/plugins/asfdata.py +++ b/pelican/plugins/asfdata.py @@ -113,7 +113,7 @@ def where_parts(reference, part): del reference[refs] -# perform alphabetation. HTTP Server is special and is put before 'A' +# perform alphabetization. HTTP Server is special and is put before 'A' def alpha_part(reference, part): for refs in reference: name = reference[refs][part] @@ -160,7 +160,7 @@ def add_logo(reference, part): def sequence_dict(seq, reference): sequence = [ ] for refs in reference: - # converting dicts into objects with attrributes. Ignore non-dict content. + # converting dicts into objects with attributes. Ignore non-dict content. if isinstance(reference[refs], dict): # put the key of the dict into the dictionary reference[refs]['key_id'] = refs diff --git a/pelican/plugins/asfindex.py b/pelican/plugins/asfindex.py index 87200a40..1fda857d 100644 --- a/pelican/plugins/asfindex.py +++ b/pelican/plugins/asfindex.py @@ -102,7 +102,7 @@ def get_index(site_index, scope): # get site menu # def get_menu(site_index, menus): -# currrent_menu = None +# current_menu = None # site_menu = '' # if menus: # for f in menus: diff --git a/pelican/plugins/asfreader.py b/pelican/plugins/asfreader.py index 9ac0c61a..3a5daa41 100644 --- a/pelican/plugins/asfreader.py +++ b/pelican/plugins/asfreader.py @@ -114,7 +114,7 @@ def read(self, source_path): # The following are required or ezmd files are not read instead they are static. # For direct subclasses of BaseReader like GFMReader the following two -# callables are optional if the class includes enabled=True and file_extenaions. +# callables are optional if the class includes enabled=True and file_extensions. def add_readers(readers): readers.reader_classes['ezmd'] = ASFReader diff --git a/stash/restore/action.yml b/stash/restore/action.yml index b88be8f5..50cb8267 100644 --- a/stash/restore/action.yml +++ b/stash/restore/action.yml @@ -43,7 +43,7 @@ inputs: only-current-branch: description: > If true, only the current branch will be searched for the stash. - If false, the base branch(PRs)/default branch branch will be searched as well. + If false, the base branch(PRs)/default branch will be searched as well. default: "false" outputs: stash-hit: diff --git a/stash/save/action.yml b/stash/save/action.yml index 1ee8c818..c68aa7ed 100644 --- a/stash/save/action.yml +++ b/stash/save/action.yml @@ -102,7 +102,7 @@ outputs: runs: using: 'composite' steps: - - name: Check Check for dependencies + - name: Check for dependencies shell: bash run: | type -P python3 > /dev/null 2>&1 || { echo "::error ::python3 is required for this action"; exit 1; }