From e6676494cec059d3c9cb4b09420d741269a78e52 Mon Sep 17 00:00:00 2001 From: Kevin Hakanson Date: Tue, 30 Jan 2024 10:20:24 -0600 Subject: [PATCH] feat: update highlightjs-cedar version --- docs/_config.yml | 2 +- docs/collections/_policies/syntax-policy.md | 2 +- docs/index.md | 2 +- docs/js/hljs-cedar.min.js | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/_config.yml b/docs/_config.yml index 3fdd4b2..7098724 100644 --- a/docs/_config.yml +++ b/docs/_config.yml @@ -1,6 +1,6 @@ # Site wide configuration -title: Cedar Policy Language Version 2.3 Reference Guide +title: Cedar Policy Language Reference Guide locale: en_US logo: images/Cedar1-green.png diff --git a/docs/collections/_policies/syntax-policy.md b/docs/collections/_policies/syntax-policy.md index 10ce4f5..6c13219 100644 --- a/docs/collections/_policies/syntax-policy.md +++ b/docs/collections/_policies/syntax-policy.md @@ -190,7 +190,7 @@ when { The scope values of `principal`, `action`, and `resource` represent stable information in the system and must be present in every request. In comparison, `context` represents information about a point-in-time request and is required only for relevant request scenarios. -Context elements take the following two forms: +Condition elements take the following two forms: + [`when`](#term-parc-context-when) + [`unless`](#term-parc-context-unless) diff --git a/docs/index.md b/docs/index.md index 3e6677e..cef4c8c 100644 --- a/docs/index.md +++ b/docs/index.md @@ -11,7 +11,7 @@ nav_order: 2 # Welcome to the Cedar policy language {#welcome-to-cedar} {: .no_toc } -This guide is a reference for [Version 2.3](other/doc-history.html) of the Cedar policy language. +This guide is a reference for [Version 3.0](other/doc-history.html) of the Cedar policy language. Cedar is a language for writing authorization policies and making authorization decisions based on those policies. When you create an application, you need to ensure that only authorized users can access the application, and can do only what each user is authorized to do. diff --git a/docs/js/hljs-cedar.min.js b/docs/js/hljs-cedar.min.js index aa3a4d4..7e19245 100644 --- a/docs/js/hljs-cedar.min.js +++ b/docs/js/hljs-cedar.min.js @@ -1,3 +1,3 @@ -(()=>{function n(e){let i=["decimal","ip"],s=["principal","action","resource","context"],t={match:/(?:\?resource|\?principal)\b/,scope:"template-variable"},o={keyword:["permit","forbid","when","unless","if","then","else"],literal:["true","false"],built_in:i,variable:s},a={match:/(?:,|;|\.|\[|\]|\(|\)|{|})/,scope:"punctuation"},c={begin:/(?=","<=",">","<","\\+","-","\\*","in","like","has","is"].join("|")+")"+/(?!\w)/.source,scope:"operator",relevance:0},r={scope:"number",begin:"0|-?[1-9](_?[0-9])*",relevance:0},l={scope:"title.function.invoke",begin:"(?=.)(contains|containsAll|containsAny)(?=\\()",relevance:0},p={scope:"title.function.invoke",begin:"(?=.)(lessThan|lessThanOrEqual|greaterThan|greaterThanOrEqual)(?=\\()",relevance:0},u={scope:"title.function.invoke",begin:"(?=.)(isIpv4|isIpv6|isLoopback|isMulticast|isInRange)(?=\\()",relevance:0};return{name:"Cedar",aliases:["cedar"],case_insensitive:!1,keywords:o,contains:[e.QUOTE_STRING_MODE,e.C_LINE_COMMENT_MODE,r,a,c,l,p,u,t]}}window.hljsCedar=n;})(); +(()=>{function n(e){let s={match:/\b(?:ip|decimal)(?=\()/,scope:"built_in"},a={match:/\b(?=","<=",">","<","\\+","-","\\*","in","like","has","is"].join("|")+")"+/(?!\w)/.source,scope:"operator",relevance:0},l={scope:"number",begin:"0|-?[1-9](_?[0-9])*",relevance:0},p={match:/(?=\b)(([_a-zA-Z][_a-zA-Z0-9]*::)*[_a-zA-Z][_a-zA-Z0-9]*)(?=::)/,scope:"title.class"},E={match:[/is/,/\s+/,/([_a-zA-Z][_a-zA-Z0-9]*::)*[_a-zA-Z][_a-zA-Z0-9]*/],scope:{1:"operator",3:"title.class"}},T={scope:"title.function.invoke",begin:"(?=.)(contains|containsAll|containsAny)(?=\\()",relevance:0},u={scope:"title.function.invoke",begin:"(?=.)(lessThan|lessThanOrEqual|greaterThan|greaterThanOrEqual)(?=\\()",relevance:0},b={scope:"title.function.invoke",begin:"(?=.)(isIpv4|isIpv6|isLoopback|isMulticast|isInRange)(?=\\()",relevance:0};return{name:"Cedar",aliases:["cedar"],case_insensitive:!1,keywords:o,contains:[e.QUOTE_STRING_MODE,e.C_LINE_COMMENT_MODE,s,a,t,l,i,p,E,r,T,u,b,c]}}window.hljsCedar=n;})(); //! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. //! SPDX-License-Identifier: Apache-2.0