From 621b15095d7138ae36c26e9ed9ab49dcabfb58fe Mon Sep 17 00:00:00 2001 From: John Bampton Date: Wed, 3 Jul 2024 21:15:58 +1000 Subject: [PATCH 1/2] Fix spelling --- api/data/DocTree.cfc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/api/data/DocTree.cfc b/api/data/DocTree.cfc index 3ca6b4dec..a016c9cf0 100644 --- a/api/data/DocTree.cfc +++ b/api/data/DocTree.cfc @@ -217,7 +217,7 @@ component accessors=true { }, (_threads != 1), _threads); request.logger (text="Pages Parsed in #(getTickCount()-start)/1000#s"); - _buildTreeHierachy(false); + _buildTreeHierarchy(false); _parseTree(); } } @@ -263,12 +263,12 @@ component accessors=true { if (added gt 0 or deleted.len() gt 0) pageCache.reSort(); - _buildTreeHierachy(true); + _buildTreeHierarchy(true); _parseTree(); } } - private void function _buildTreeHierachy(boolean reset="false") { + private void function _buildTreeHierarchy(boolean reset="false") { //var start = getTickCount(); var pages = variables.pageCache.getPages(); for (var pagePath in pages ){ @@ -333,7 +333,7 @@ component accessors=true { } if ( !isPage ){ - if ( page.getPath() comtains "/recipes" ){ + if ( page.getPath() contains "/recipes" ){ request.logger(text="skipping coz /recipes" ); return; } From 3b7ec805910fe1e26d5bf5ec2a928755e54c2ae1 Mon Sep 17 00:00:00 2001 From: John Bampton Date: Wed, 3 Jul 2024 21:21:31 +1000 Subject: [PATCH 2/2] Fix YAML lint --- .github/workflows/index-recipes.yml | 40 ++++++++++++++--------------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/.github/workflows/index-recipes.yml b/.github/workflows/index-recipes.yml index 8ffd56d52..56ba8d445 100644 --- a/.github/workflows/index-recipes.yml +++ b/.github/workflows/index-recipes.yml @@ -13,27 +13,27 @@ jobs: runs-on: ubuntu-latest steps: - - name: Checkout repository - uses: actions/checkout@v2 + - name: Checkout repository + uses: actions/checkout@v2 - - name: Set up Node.js - uses: actions/setup-node@v2 - with: - node-version: '14' + - name: Set up Node.js + uses: actions/setup-node@v2 + with: + node-version: '14' - - name: Install dependencies - run: | - npm install fs-extra + - name: Install dependencies + run: | + npm install fs-extra - - name: Generate index - run: | - node .github/scripts/generate-index-recipes.js + - name: Generate index + run: | + node .github/scripts/generate-index-recipes.js - - name: Commit and push changes - run: | - BRANCH_NAME=$(echo ${GITHUB_REF#refs/heads/}) - git config --local user.email "action@github.com" - git config --local user.name "GitHub Action" - git add docs/recipes/index.json docs/recipes/README.md - git commit -m "Update recipes index and README" - git push origin $BRANCH_NAME + - name: Commit and push changes + run: | + BRANCH_NAME=$(echo ${GITHUB_REF#refs/heads/}) + git config --local user.email "action@github.com" + git config --local user.name "GitHub Action" + git add docs/recipes/index.json docs/recipes/README.md + git commit -m "Update recipes index and README" + git push origin $BRANCH_NAME