Skip to content
Draft
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
4 changes: 2 additions & 2 deletions docs/docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ will change. As you read through this section, try changing the input, queries,
and rules and observe the difference in output.

They can also be run locally on your machine using the
[`opa eval` command, here are setup instructions.](#running-opa)
[`opa eval` command, here are setup instructions.](#install-and-run-opa)
:::

:::note
Expand Down Expand Up @@ -736,7 +736,7 @@ This example demonstrates how we can use Rego to create a clear list of policy
violations that can be handed back to the infrastructure as code system to
present to the user, making it easy for them to see what's gone wrong.

## Running OPA
## Install and Run OPA

This section explains how you can query OPA directly and interact with it on
your own machine. If you just want to quickly get a feel for the language
Expand Down
36 changes: 29 additions & 7 deletions docs/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -310,13 +310,6 @@ The Linux Foundation has registered trademarks and uses trademarks. For a list o
sidebarPath: require.resolve("./src/lib/sidebar-auto.js"),
},
],
[
require.resolve("@easyops-cn/docusaurus-search-local"),
{
indexPages: true,
explicitSearchResultPath: true,
},
],
() => ({
name: "raw-loader",
configureWebpack() {
Expand Down Expand Up @@ -685,6 +678,7 @@ The Linux Foundation has registered trademarks and uses trademarks. For a list o
],
clientModules: [
require.resolve("./src/lib/playground.js"),
require.resolve("./src/lib/kapa.js"),
],
stylesheets: [
{
Expand All @@ -696,6 +690,34 @@ The Linux Foundation has registered trademarks and uses trademarks. For a list o
src: "https://unpkg.com/@antonz/codapi@0.19.8/dist/snippet.js",
defer: true,
},
{
src: "https://widget.kapa.ai/kapa-widget.bundle.js",
"data-website-id": "5c4af137-a024-4ba2-9488-826f1055852c",
"data-project-name": "Open Policy Agent",
"data-project-logo": "https://openpolicyagent.org/img/nav/logo.png",
"data-search-mode-enabled": "true",
// Source UUIDs come from https://app.kapa.ai/422cffb8-2750-48c9-9659-7e8d40b9d5d2/sources
"data-search-source-ids-include":
"f9c26922-8a4c-4a3c-913d-08c2a53a1011,e9daf266-5a9f-410f-8069-18a57dcfb6ee,723b2ac1-807a-43c1-a2aa-bcf8311d2354,fff41a96-7ebe-4fc5-bb60-359e5d830a87,799aac5c-a157-4734-9785-9c754c7c40a0",
"data-modal-open-on-command-k": "true",
"data-modal-command-k-search-mode-default": "true",
"data-deep-thinking-button-hover-background-color": "#f1f8f1",
"data-deep-thinking-button-hover-color": "#2e7d32",
"data-deep-thinking-button-enabled-background-color": "#e8f5e9",
"data-deep-thinking-button-enabled-color": "#2e7d32",
"data-deep-thinking-button-enabled-hover-background-color": "#c8e6c9",
"data-deep-thinking-button-enabled-hover-color": "#1b5e20",
"data-deep-thinking-button-hover-background-color-dark": "#1e3320",
"data-deep-thinking-button-hover-color-dark": "#81c784",
"data-deep-thinking-button-enabled-background-color-dark": "#1a3d1c",
"data-deep-thinking-button-enabled-color-dark": "#a5d6a7",
"data-deep-thinking-button-enabled-hover-background-color-dark": "#245427",
"data-deep-thinking-button-enabled-hover-color-dark": "#c8e6c9",
"data-modal-title": "OPA Chat and Search",
"data-color-scheme-selector": "[data-theme='dark']",

async: true,
},
],
}
);
1 change: 1 addition & 0 deletions docs/eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ export default [
navigator: "readonly",
URL: "readonly",
fetch: "readonly",
MutationObserver: "readonly",
},
},
rules: {
Expand Down
Loading