Skip to content

SWE-agent takes a GitHub issue and tries to automatically fix it, using your LM of choice. It can also be employed for offensive cybersecurity or competitive coding challenges. [NeurIPS 2024]

Doc: Fix broken references in markdown files (#1258)

Bala5e670197c7e5
diff --git a/.github/workflows/check-links-periodic.yaml b/.github/workflows/check-links-periodic.yaml
index 4892f8de..bb32cb92 100644
--- a/.github/workflows/check-links-periodic.yaml
+++ b/.github/workflows/check-links-periodic.yaml
@@ -5,7 +5,7 @@ on:
push:
branches:
- main
- - link-checker-test*
+ - bala/fix_broken_links
schedule:
- cron: "0 0 1 * *"
diff --git a/docs/usage/batch_mode.md b/docs/usage/batch_mode.md
index e85e5fb0..37f141a8 100644
--- a/docs/usage/batch_mode.md
+++ b/docs/usage/batch_mode.md
@@ -45,8 +45,8 @@ Kind of slow, isn't it?
!!! tip "All command line options"
- * See [`RunBatchConfig`](../reference/run_batch_config.md/#sweagent.run.run_batch.RunBatchConfig) for an overview of all options.
- * SWE-bench config: [`SWEBenchInstances`](../reference/batch_instances.md/#sweagent.run.batch_instances.SWEBenchInstances).
+ * See [`RunBatchConfig`](../reference/run_batch_config.md#sweagent.run.run_batch.RunBatchConfig) for an overview of all options.
+ * SWE-bench config: [`SWEBenchInstances`](../reference/batch_instances.md#sweagent.run.batch_instances.SWEBenchInstances).
!!! tip "Evaluating on SWE-bench"
If you are using [`sb-cli`](https://www.swebench.com/sb-cli/), you can automatically evaluate on SWE-bench by adding the `--evaluate=True` flag.
@@ -108,7 +108,7 @@ You'll see output that looks like this (only with 3 workers instead of 30):
</figure>
!!! tip "All command line options"
- See [`RunBatchConfig`](../reference/run_batch_config.md/#sweagent.run.run_batch.RunBatchConfig) for an overview of all options.
+ See [`RunBatchConfig`](../reference/run_batch_config.md#sweagent.run.run_batch.RunBatchConfig) for an overview of all options.
When starting a lot of parallel instances with the docker backend, it might happen that you see some bottleneck effects
(e.g., when running on a platform with few CPUs, you might see some timeouts because there's not enough CPUs to handle the startup of all containers in time).
@@ -148,8 +148,8 @@ Here'the simplest example of what such a file can look like
However, we temporarily support both names.
!!! tip "More options"
- * There's a few more fields that you can populate. See [`SimpleBatchInstances`](../reference/batch_instances.md/#sweagent.run.batch_instances.SimpleBatchInstance) for more information.
- * For all command line options with this instance type, see [`InstancesFromFile`](../reference/batch_instances.md/#sweagent.run.batch_instances.InstancesFromFile).
+ * There's a few more fields that you can populate. See [`SimpleBatchInstances`](../reference/batch_instances.md#sweagent.run.batch_instances.SimpleBatchInstance) for more information.
+ * For all command line options with this instance type, see [`InstancesFromFile`](../reference/batch_instances.md#sweagent.run.batch_instances.InstancesFromFile).
## Huggingface instances
@@ -166,7 +166,7 @@ sweagent run-batch \
```
!!! tip "All instance options"
- See [`InstancesFromHuggingFace`](../reference/batch_instances.md/#sweagent.run.batch_instances.InstancesFromHuggingFace).
+ See [`InstancesFromHuggingFace`](../reference/batch_instances.md#sweagent.run.batch_instances.InstancesFromHuggingFace).
## Expert instances
@@ -204,7 +204,7 @@ where `instances.yaml` could look like this:
```
!!! tip "All instance options"
- See [`ExpertInstances`](../reference/batch_instances.md/#sweagent.run.batch_instances.ExpertInstancesFromFile).
+ See [`ExpertInstances`](../reference/batch_instances.md#sweagent.run.batch_instances.ExpertInstancesFromFile).
## Output files and next steps
diff --git a/mlc_config.json b/mlc_config.json
index 7c1dbd2b..d9933c4c 100644
--- a/mlc_config.json
+++ b/mlc_config.json
@@ -23,15 +23,6 @@
},
{
"pattern": "https://leetcode.com/problems/.*"
- },
- {
- "pattern": ".*\\.md/#sweagent\\..*"
- }
- ],
- "replacements": [
- {
- "pattern": "/#.*",
- "replacement": ""
}
]
}