From 763b191bf667e90dfc2981d60d4a296b3e650983 Mon Sep 17 00:00:00 2001 From: Albina Ezus Date: Mon, 26 May 2025 15:32:05 +0200 Subject: [PATCH 1/6] Switch to python 3 --- README.md | 2 +- package.json | 2 +- serve_docs.py | 5 ++--- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 140c992..f080ae9 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ A place to put documentation about interacting with our APIs. ## Running locally -You can view the documentation site locally by running `npm start` -- you just need to have Python 2 installed on your local machine. +You can view the documentation site locally by running `npm start` -- you just need to have Python 3 installed on your local machine. The start script serves the docs here: http://localhost:8000 Since it's a static site, you can also just open `/docs/index.html` directly in a web browser if you prefer. diff --git a/package.json b/package.json index 7255fb1..5efb00e 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,7 @@ "scripts": { "build": "rm -rf docs/graphql/types && graphqldoc --force", "test": "echo \"Error: no test specified\" && exit 1", - "start": "python -m serve_docs 8000", + "start": "python3 -m serve_docs 8000", "prettify-webhooks": "prettier --write docs/webhooks" }, "repository": { diff --git a/serve_docs.py b/serve_docs.py index f95ffb8..2fc68a9 100644 --- a/serve_docs.py +++ b/serve_docs.py @@ -1,12 +1,11 @@ -import SimpleHTTPServer +import http.server import os def main(): pwd = os.getcwd() - try: os.chdir("./docs") - SimpleHTTPServer.test() + http.server.test(http.server.SimpleHTTPRequestHandler) finally: os.chdir(pwd) From dd89936416952f0f3c80930f5ea998c8b78a8371 Mon Sep 17 00:00:00 2001 From: Albina Ezus Date: Mon, 26 May 2025 15:37:20 +0200 Subject: [PATCH 2/6] interview -> interviews --- docs/webhooks/index.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/webhooks/index.html b/docs/webhooks/index.html index 17283b6..aae5f85 100644 --- a/docs/webhooks/index.html +++ b/docs/webhooks/index.html @@ -79,7 +79,7 @@

Table of Contents

-
  • Events for CodeSignal Live Interview
  • +
  • Events for CodeSignal Interviews