Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix spelling; fix YAML lint #1442

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
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
40 changes: 20 additions & 20 deletions .github/workflows/index-recipes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
8 changes: 4 additions & 4 deletions api/data/DocTree.cfc
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
}
Expand Down Expand Up @@ -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 ){
Expand Down Expand Up @@ -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;
}
Expand Down
Loading