From a2837d41844dd1e21d85dcbd68b40a69ffa2c445 Mon Sep 17 00:00:00 2001 From: Jason Buckner Date: Fri, 17 Jul 2026 08:05:07 -0700 Subject: [PATCH] Add a live demo page to GitHub Pages A static page under /demo that runs live searches against advancedsearch.php, the endpoint behind search(), and shows the Swift equivalent of each request. Ships through the same Pages workflow as the DocC docs. Closes #27 Co-Authored-By: Claude Fable 5 Claude-Session: https://claude.ai/code/session_015u2FT1T8yYQsEztyKg6UGf --- .github/workflows/docs.yml | 3 + README.md | 2 +- demo/index.html | 152 +++++++++++++++++++++++++++++++++++++ 3 files changed, 156 insertions(+), 1 deletion(-) create mode 100644 demo/index.html diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 76b1339..75e805a 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -38,6 +38,9 @@ jobs: HTML + - name: Add the demo page + run: cp -R demo site/demo + - uses: actions/upload-pages-artifact@v3 with: path: site diff --git a/README.md b/README.md index 48b41b5..4869b53 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,7 @@ For more information about the Internet Archive's structure, see their [Python L ## Documentation -See the [documenation](https://jbuckner.github.io/InternetArchiveKit/) for a full API reference +See the [documentation](https://jbuckner.github.io/InternetArchiveKit/) for a full API reference, or try the [live demo](https://jbuckner.github.io/InternetArchiveKit/demo/) in your browser ## Basic Usage diff --git a/demo/index.html b/demo/index.html new file mode 100644 index 0000000..cd6b232 --- /dev/null +++ b/demo/index.html @@ -0,0 +1,152 @@ + + + + + +InternetArchiveKit demo + + + +

InternetArchiveKit demo

+

+ Live queries against the same archive.org endpoints + InternetArchiveKit + wraps. The Swift equivalent of each request is shown below the form. +

+ +
+ + + +
+ +

+
+

+ + +
+ Requests go straight from your browser to + archive.org/advancedsearch.php, the endpoint behind + InternetArchive.search(). + See the API documentation. +
+ + + +