-
Notifications
You must be signed in to change notification settings - Fork 158
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into check-broken-exernal-urls
- Loading branch information
Showing
389 changed files
with
39,221 additions
and
21,584 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,74 @@ | ||
# This GitHub Action is triggered on pull requests to: | ||
# 1. Format changed files using Prettier. | ||
# 2. Automatically install Prettier and its Go template plugin. | ||
# 3. Identify all files changed in the pull request. | ||
# 4. Format the changed files according to Prettier's rules, respecting the .prettierignore file. | ||
# 5. Commit any changes made to the files back to the repository. | ||
# 6. Optionally, check that the files are properly formatted after linting. | ||
# | ||
# This action helps ensure code quality and consistency in documentation and source files. | ||
name: "PR files Formatting" | ||
on: | ||
workflow_dispatch: | ||
jobs: | ||
docs_linter: | ||
runs-on: ubuntu-latest | ||
name: Format PR files with Prettier | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
ref: ${{ github.head_ref }} # Automatically checks out the PR branch | ||
token: ${{ secrets.ORG_GH_TOKEN }} | ||
- name: Get Head Commit Message | ||
id: get_head_commit_message | ||
run: echo "HEAD_COMMIT_MESSAGE=$(git show -s --format=%s)" >> "$GITHUB_OUTPUT" | ||
|
||
- name: Check for Skip Linter Marker | ||
id: check_skip_marker | ||
run: | | ||
if [[ "${{ steps.get_head_commit_message.outputs.HEAD_COMMIT_MESSAGE }}" == *"[skip-linter-43n2w]"* ]]; then | ||
echo "Skipping linter due to marker." | ||
echo "skip_linter=true" >> "$GITHUB_ENV" # Set an environment variable | ||
fi | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: 20 | ||
# Install Prettier and dependencies | ||
- name: Install dependencies | ||
if: env.skip_linter != 'true' # Only run if the skip marker is not found | ||
run: | | ||
npm install [email protected] prettier-plugin-go-template | ||
# Fetch the base branch and compare changes | ||
- name: Get changed files | ||
id: changed-files | ||
if: env.skip_linter != 'true' # Only run if the skip marker is not found | ||
uses: tj-actions/changed-files@v45 | ||
|
||
- name: Lint all changed files | ||
if: env.skip_linter != 'true' # Only run if the skip marker is not found | ||
env: | ||
ALL_CHANGED_FILES: ${{ steps.changed-files.outputs.all_changed_files }} | ||
run: | | ||
for file in ${ALL_CHANGED_FILES}; do | ||
npx prettier --config .prettierrc --write "$file" | ||
echo "$file was changed" | ||
done | ||
# Auto commit the changes if any | ||
- uses: stefanzweifel/git-auto-commit-action@v5 | ||
if: env.skip_linter != 'true' # Only run if the skip marker is not found | ||
with: | ||
# skip-linter-43n2w is a Marker to skip rerun of the linter once it makes a commit | ||
# This prevents cyclic run of the linter | ||
commit_message: save content formatted by prettier linter [skip-linter-43n2w] | ||
|
||
- name: Check all changed files are linted | ||
if: env.skip_linter != 'true' # Only run if the skip marker is not found | ||
env: | ||
ALL_CHANGED_FILES: ${{ steps.changed-files.outputs.all_changed_files }} | ||
run: | | ||
for file in ${ALL_CHANGED_FILES}; do | ||
npx prettier --config .prettierrc --check "$file" | ||
echo "$file was linted" | ||
done |
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
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,11 @@ | ||
# Ignore artifacts: | ||
tyk-docs/public | ||
tyk-docs/resources | ||
tyk-docs/themes/tykio/layouts/_default/list.netlify.json | ||
tyk-docs/themes/tykio/layouts/_default/list.pagesurl.json | ||
tyk-docs/themes/tykio/layouts/_default/list.urlcheck.json | ||
.gitignore | ||
.prettierignore | ||
.prettierrc | ||
changed-files.txt | ||
.github |
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,31 @@ | ||
{ | ||
"plugins": [ | ||
"prettier-plugin-go-template" | ||
], | ||
"printWidth": 120, | ||
"proseWrap": "always", | ||
"tabWidth": 2, | ||
"useTabs": false, | ||
"overrides": [ | ||
{ | ||
"files": [ | ||
"*.html" | ||
], | ||
"options": { | ||
"parser": "go-template", | ||
"goTemplateBracketSpacing": true, | ||
"bracketSameLine": true | ||
} | ||
}, | ||
{ | ||
"files": [ | ||
"*.js", | ||
"*.ts" | ||
], | ||
"options": { | ||
"singleQuote": false | ||
} | ||
} | ||
] | ||
} | ||
|
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+613 KB
tyk-docs/assets/img/api-management/security/create-oauth-from-api-list.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+479 KB
tyk-docs/assets/img/api-management/security/fill-out-client-details-oauth.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+350 KB
tyk-docs/assets/img/api-management/security/jwt-keycloak-add-policy-cont.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+286 KB
tyk-docs/assets/img/api-management/security/jwt-keycloak-add-policy.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+342 KB
tyk-docs/assets/img/api-management/security/jwt-keycloak-api-create.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+260 KB
tyk-docs/assets/img/api-management/security/jwt-keycloak-api-set-policy.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+178 KB
tyk-docs/assets/img/api-management/security/jwt-keycloak-get-api-url.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+165 KB
tyk-docs/assets/img/api-management/security/multiple-auth-choose-auth.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.
Oops, something went wrong.
Binary file modified
BIN
+75.4 KB
(270%)
tyk-docs/assets/img/cloud/tyk-cloud-policy-access-rights.png
Oops, something went wrong.
Binary file modified
BIN
+16.2 KB
(110%)
tyk-docs/assets/img/cloud/tyk-cloud-policy-configurations.png
Oops, something went wrong.
Oops, something went wrong.
Binary file modified
BIN
-57.3 KB
(25%)
tyk-docs/assets/img/cloud/tyk-cloud-select-cloud-gateway.png
Oops, something went wrong.
Oops, something went wrong.
Binary file added
BIN
+30.5 KB
.../dashboard/portal-management/enterprise-portal/1.12.0-credential-expiration.png
Oops, something went wrong.
Binary file added
BIN
+60.7 KB
.../img/dashboard/portal-management/enterprise-portal/1.12.0-custom-credential.png
Oops, something went wrong.
Binary file added
BIN
+198 KB
...ssets/img/dashboard/portal-management/enterprise-portal/1.12.0-embedded-tib.png
Oops, something went wrong.
Binary file added
BIN
+39.5 KB
...board/portal-management/enterprise-portal/1.12.0-non-tyk-managed-credential.png
Oops, something went wrong.
Binary file added
BIN
+41.8 KB
...ts/img/dashboard/portal-management/enterprise-portal/1.12.0-password-policy.png
Oops, something went wrong.
Binary file added
BIN
+590 KB
tyk-docs/assets/img/dashboard/system-management/oauth-auth-mode-new.png
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Binary file added
BIN
+868 KB
tyk-docs/assets/img/getting-started/create-account-deploy-tutorial.png
Oops, something went wrong.
Binary file added
BIN
+1.23 MB
tyk-docs/assets/img/getting-started/create-account-design-from-scratch.png
Oops, something went wrong.
Binary file added
BIN
+261 KB
tyk-docs/assets/img/getting-started/create-account-free-trial-info.png
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Binary file added
BIN
+435 KB
tyk-docs/assets/img/getting-started/create-api-select-authentication.png
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.