-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
* wrap search results * use templateContent to index algolia content without tags * fallback to description if needed * feedback * fix types
- Loading branch information
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,33 @@ | ||
/* | ||
* Copyright 2020 Google LLC | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* https://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
/** | ||
* A filter to remove draft pages. | ||
* We allow drafts to appear in a dev environment, but omit them from | ||
* collections in a production environment. | ||
* A filter to remove draft pages. We allow drafts to appear in a dev | ||
* environment, but omit them from collections in a production environment. | ||
* | ||
* This is purely here as a convenience so drafts still get included in dev. | ||
* | ||
* @param {EleventyCollectionItem} item | ||
* @return {boolean} | ||
*/ | ||
const drafts = item => { | ||
if (process.env.NODE_ENV !== 'production') { | ||
return true; | ||
} else { | ||
const filterOutDrafts = item => { | ||
if (process.env.NODE_ENV === 'production') { | ||
return !item.data.draft; | ||
} | ||
return true; // include everything in non-prod | ||
}; | ||
|
||
module.exports = {drafts}; | ||
module.exports = {filterOutDrafts}; |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,15 +30,16 @@ | |
"server/**/*", | ||
This comment has been minimized.
Sorry, something went wrong.
Hallerf
|
||
"site/**/*", | ||
"tools/**/*", | ||
"types/**/*.d.ts" | ||
"types/**/*.d.ts", | ||
"*.js", | ||
".eleventy.js", | ||
], | ||
"exclude": [ | ||
".github", | ||
".vscode", | ||
"dist", | ||
"node_modules", | ||
"test", | ||
"./*.js", | ||
This comment has been minimized.
Sorry, something went wrong. |
||
"site/_js/prettify.js" | ||
This comment has been minimized.
Sorry, something went wrong. |
||
] | ||
"site/_js/prettify.js", | ||
], | ||
} |
https://developer.chrome.com/docs/extensions/reference/system_cpu/#:~:text=Chrome%20OS%20only.-,CpuTime,-PROPERTIESfeatures