Skip to content

Commit 17813dc

Browse files
fix relative paths
1 parent dc85818 commit 17813dc

File tree

10 files changed

+15
-12
lines changed

10 files changed

+15
-12
lines changed

docs/explorer/api/annotations.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Annotations provide additional context, facilitating collaboration and agent err
88

99
<figure class='wide'>
1010

11-
<img src="{{ base_url }}/assets/annotated-trace.png" alt="An annotated trace" style="width: 100%;">
11+
<img src="site:assets/annotated-trace.png" alt="An annotated trace" style="width: 100%;">
1212

1313
<figcaption>An annotated trace in Explorer</figcaption>
1414

docs/explorer/api/client-setup.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
The SDK exposes a `Client` class. To create an object of this type, you need two variables: the Invariant API endpoint URL and the API key.
44

55
## Getting the API Key
6-
Navigate to the <img class='inline-invariant' src="{{ base_url }}/assets/logo.svg"/> [Invariant Explorer](https://explorer.invariantlabs.ai) and create an account via GitHub Sign-In.
6+
Navigate to the <img class='inline-invariant' src="site:assets/logo.svg"/> [Invariant Explorer](https://explorer.invariantlabs.ai) and create an account via GitHub Sign-In.
77

88
Once you have created an account, go to your [User Settings](https://explorer.invariantlabs.ai/settings) and generate an API key.
99

docs/explorer/api/uploading-traces/file-uploads.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Apart from API-based uploads, you can also upload datasets to Explorer using the
88

99
To upload a dataset to Explorer, navigate to the [home page](https://explorer.invariantlabs.ai) and click on the `New Dataset` button. This will open the file upload dialog.
1010

11-
![File Upload Dialog]({{ base_url }}/assets/explorer-create-dataset.png)
11+
![File Upload Dialog](site:assets/explorer-create-dataset.png)
1212

1313
Click on the `Choose a File` button and select the dataset file from your local machine. Once the file is selected, click on the `Create` button to start the upload process.
1414

docs/gateway/agent-integrations/openhands.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ Enable the `Advanced Options` toggle under settings and update the `Base URL` to
3131
https://explorer.invariantlabs.ai/api/v1/gateway/{add-your-dataset-name-here}/openai
3232
```
3333

34-
<img src="{{ base_url }}/assets/openhands-integration.png" style="height: 400px !important; display: block; margin: 0 auto;"/>
34+
<img src="site:assets/openhands-integration.png" style="height: 400px !important; display: block; margin: 0 auto;"/>
3535

3636
> **Note:** Do not include the curly braces `{}`.
3737

docs/guardrails/dataflow-rules.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Secure the dataflow of your agentic system, to ensure that sensitive data never
77
Due to their dynamic nature, agentic systems often mix and combine data from different sources, and can easily leak sensitive information. Guardrails provides a simple way to define dataflow rules, to ensure that sensitive data never leaves the system through unintended channels.
88

99
<br/><br/>
10-
<img src="{{ base_url }}/assets/guardrails/dataflow.svg" alt="Invariant Architecture" class="invariant-architecture" style="display: block; margin: 0 auto; width: 100%; max-width: 400pt;"/>
10+
<img src="site:assets/guardrails/dataflow.svg" alt="Invariant Architecture" class="invariant-architecture" style="display: block; margin: 0 auto; width: 100%; max-width: 400pt;"/>
1111
<br/><br/>
1212

1313
<div class='risks'/>

docs/guardrails/index.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Before securing an agent, it is important to understand its capabilities. This i
2020
This is important to understand, as it forms the basis for threat modeling and risk assessment. In contrast to traditional software, agentic systems are highly dynamic, meaning tools and APIs can be called in arbitrary ways, and the agent's behavior can change based on the context and the task at hand.
2121

2222
<br/><br/>
23-
<img src="{{ base_url }}/assets/guardrails/tool-calls.svg" alt="Invariant Architecture" class="invariant-architecture" style="display: block; margin: 0 auto; width: 100%; max-width: 400pt;"/>
23+
<img src="site:/assets/guardrails/tool-calls.svg" alt="Invariant Architecture" class="invariant-architecture" style="display: block; margin: 0 auto; width: 100%; max-width: 400pt;"/>
2424
<br/><br/>
2525

2626
## Constraining Your Agent's Capability space with Rules
@@ -30,7 +30,7 @@ Once you have a good understanding of your agent's capabilities, you can start w
3030
Invariant’s guardrailing runtime allows you to express these constraints declaratively, ensuring the agent only operates within predefined security boundaries—even in dynamic and open-ended environments. This makes it easier to detect policy violations, reduce risk exposure, and maintain trust in agentic systems.
3131

3232
<br/><br/>
33-
<img src="{{ base_url }}/assets/guardrails/space-overlap.svg" alt="Invariant Architecture" class="invariant-architecture" style="display: block; margin: 0 auto; width: 100%; max-width: 290pt;"/>
33+
<img src="site:assets/guardrails/space-overlap.svg" alt="Invariant Architecture" class="invariant-architecture" style="display: block; margin: 0 auto; width: 100%; max-width: 290pt;"/>
3434
<br/><br/>
3535

3636
## Writing Your First Rule
@@ -41,7 +41,7 @@ Let's assume a simple example agent that is capable of managing a user's email i
4141
* `send_email(recipient: str, subject: str, body: str)` to send an email to a user.
4242

4343
<br/><br/>
44-
<img src="{{ base_url }}/assets/guardrails/email-agent-example.svg" alt="Invariant Architecture" class="invariant-architecture" style="display: block; margin: 0 auto; width: 100%; max-width: 290pt;"/>
44+
<img src="site:assets/guardrails/email-agent-example.svg" alt="Invariant Architecture" class="invariant-architecture" style="display: block; margin: 0 auto; width: 100%; max-width: 290pt;"/>
4545
<br/><br/>
4646

4747
Unconstrained, this agent can easily fail, allowing a bad actor or sheer malfunction to induce failure states such as data leaks, spamming, or even phishing attacks.
@@ -99,7 +99,7 @@ Next, let's also consider different workflows our agent may carry out. For examp
9999
This behavior has the risk that the agent may be prompt injected by an untrusted email, leading to malicious behavior. A possible such scenario is illustratd in the figure below, where an attacker sends a malicious email to the agent, which then leaks sensitive information to the attacker.
100100

101101
<figure>
102-
<img src="{{ base_url }}/assets/guardrails/email-agent-flow.png" alt="Malicious email agent flow" class="invariant-architecture" style="display: block; margin: 0 auto; width: 100%; max-width: 450pt;"/>
102+
<img src="site:assets/guardrails/email-agent-flow.png" alt="Malicious email agent flow" class="invariant-architecture" style="display: block; margin: 0 auto; width: 100%; max-width: 450pt;"/>
103103
<figcaption>An email agent is prompt injected in a malicious email and then leaks information to an attacker.</figcaption>
104104
</figure>
105105

docs/guardrails/tool-calls.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ For security reasons, it is important to ensure that all tool calls an agent exe
1111
Guardrails provide you a powerful way to enforce such security policies, and to limit the agent's tool interface to only the tools and functions that are necessary for the task at hand.
1212

1313
<br/><br/>
14-
<img src="{{ base_url }}/assets/guardrails/tool-calls.svg" alt="Invariant Architecture" class="invariant-architecture" style="display: block; margin: 0 auto; width: 100%; max-width: 400pt;"/>
14+
<img src="site:assets/guardrails/tool-calls.svg" alt="Invariant Architecture" class="invariant-architecture" style="display: block; margin: 0 auto; width: 100%; max-width: 400pt;"/>
1515
<br/><br/>
1616

1717
<div class='risks'/>

docs/testing/writing/parameterized-tests.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,4 +44,4 @@ def test_check_weather_in(city: str):
4444

4545
When pushing the parameterized test results to Explorer (`invariant test --push`), the resulting test instances will be listed separately:
4646

47-
<img src="{{ base_url }}/assets/parameterized_tests.png"/>
47+
<img src="site:assets/parameterized_tests.png"/>

mkdocs.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ use_directory_urls: true
3232

3333
plugins:
3434
- mkdocs-jupyter
35+
- site-urls
36+
- search
3537
# TODO(Hemang): Remove these once we change the URLs in the other places.
3638
- redirects:
3739
redirect_maps:

requirements.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
mkdocs
22
mkdocs-jupyter
33
mkdocs-material
4-
mkdocs-redirects
4+
mkdocs-redirects
5+
mkdocs-site-urls

0 commit comments

Comments
 (0)