-
Notifications
You must be signed in to change notification settings - Fork 555
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3249 from cncf/main
[FR] Merge main into dev-fr
- Loading branch information
Showing
432 changed files
with
6,643 additions
and
33,624 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
name: Links | ||
|
||
on: | ||
pull_request: | ||
|
||
jobs: | ||
build-and-check-links: | ||
name: CHECK LINKS | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version-file: .nvmrc | ||
cache: npm | ||
cache-dependency-path: package.json | ||
- run: npm install --omit=optional | ||
- run: npm run check:links |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,12 @@ | ||
|
||
public/ | ||
resources/ | ||
node_modules/ | ||
.hugo_build.lock | ||
.DS_Store | ||
.hugo_build.lock | ||
/public | ||
/resources | ||
node_modules/ | ||
package-lock.json | ||
pagefind | ||
tmp/ | ||
|
||
# Local Netlify folder | ||
.netlify |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# cSpell:ignore pagefind regexs | ||
DirectoryPath: public | ||
# IgnoreDirectoryMissingTrailingSlash: true # FIXME | ||
IgnoreInternalEmptyHash: true # FIXME | ||
IgnoreDirs: | ||
- ^(bn|de|es|hi|it|ko|pt.*?|ru|tr|ur|zh.*?)/ | ||
IgnoreURLs: # list of regexs of paths or URLs to be ignored | ||
- ^/pagefind |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
lts/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
HTMLTEST_DIR=tmp | ||
HTMLTEST?=htmltest # Specify as make arg if different | ||
HTMLTEST_ARGS?=--skip-external | ||
|
||
# Use $(HTMLTEST) in PATH, if available; otherwise, we'll get a copy | ||
ifeq (, $(shell which $(HTMLTEST))) | ||
override HTMLTEST=$(HTMLTEST_DIR)/bin/htmltest | ||
ifeq (, $(shell which $(HTMLTEST))) | ||
GET_LINK_CHECKER_IF_NEEDED=get-link-checker | ||
endif | ||
endif | ||
|
||
check-links: $(GET_LINK_CHECKER_IF_NEEDED) | ||
$(HTMLTEST) $(HTMLTEST_ARGS) | ||
|
||
clean: | ||
rm -rf $(HTMLTEST_DIR) public/* resources | ||
|
||
get-link-checker: | ||
rm -Rf $(HTMLTEST_DIR)/bin | ||
curl https://htmltest.wjdp.uk | bash -s -- -b $(HTMLTEST_DIR)/bin | ||
|
||
serve: | ||
npx hugo server \ | ||
--disableFastRender \ | ||
--buildDrafts \ | ||
--buildFuture \ | ||
--ignoreCache | ||
--printI18nWarnings \ | ||
--printMemoryUsage \ | ||
--printPathWarnings \ | ||
--printUnusedTemplates \ | ||
--templateMetrics \ | ||
--templateMetricsHints \ | ||
--gc | ||
|
||
production-build: | ||
npm run get:submodule | ||
npx hugo --minify | ||
npx -y pagefind --site public | ||
|
||
preview-build: | ||
git submodule update --init --recursive | ||
npx hugo \ | ||
--baseURL $(DEPLOY_PRIME_URL) \ | ||
--buildDrafts \ | ||
--buildFuture \ | ||
--minify | ||
npx -y pagefind --site public |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
/* | ||
Copyright 2018 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. | ||
*/ | ||
|
||
(function($) { | ||
|
||
'use strict'; | ||
|
||
var Search = { | ||
init: function() { | ||
$(document).ready(function() { | ||
$(document).on('keypress', '.td-search-input', function(e) { | ||
if (e.keyCode !== 13) { | ||
return | ||
} | ||
|
||
var query = $(this).val(); | ||
var searchPage = $(this).data('search-page') + "?q=" + query; | ||
document.location = searchPage; | ||
|
||
return false; | ||
}); | ||
|
||
}); | ||
}, | ||
}; | ||
|
||
Search.init(); | ||
|
||
|
||
}(jQuery)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.