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: Set up for versioning

Kilian Lieret7c8b4ba52168
diff --git a/.github/workflows/build-docs.yaml b/.github/workflows/build-docs.yaml
index 5a05349d..381bad3e 100644
--- a/.github/workflows/build-docs.yaml
+++ b/.github/workflows/build-docs.yaml
@@ -40,4 +40,4 @@ jobs:
run: mkdocs build
- name: Build + Deploy Documentation
if: github.ref == 'refs/heads/main'
- run: mkdocs gh-deploy --force
+ run: mike deploy --push 0.7 latest
diff --git a/mkdocs.yml b/mkdocs.yml
index 815b8fb1..1db9f043 100644
--- a/mkdocs.yml
+++ b/mkdocs.yml
@@ -90,16 +90,22 @@ nav:
- "Environment utils": "reference/env_utils.md"
- "FAQ": "faq.md"
plugins:
- - glightbox
- - search
- - include-markdown
- - mkdocstrings:
+ - glightbox
+ - search
+ - include-markdown
+ - mkdocstrings:
default_handler: python
handlers:
python:
paths: [sweagent]
+ - mike:
+ canonical_version: latest
+ version_selector: true
repo_url: https://github.com/princeton-nlp/SWE-agent
repo_name: princeton-nlp/SWE-agent
edit_uri: edit/main/docs/
extra_css:
- assets/custom.css
+extra:
+ version:
+ provider: mike