From e34dbcb4678d180479ee751da7268a614c7cceb6 Mon Sep 17 00:00:00 2001
From: Manuel Bleichenbacher <manuel.bleichenbacher@gmail.com>
Date: Sat, 31 Jul 2021 12:51:41 +0200
Subject: [PATCH] Link to new API documentation

---
 README.md       | 2 +-
 doc/.gitignore  | 1 +
 doc/generate.sh | 4 +++-
 3 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/README.md b/README.md
index eeb5023..11ffadd 100644
--- a/README.md
+++ b/README.md
@@ -34,7 +34,7 @@ All boards with Semtech SX127x chips, RFM9x and compatibles are supported. It in
 
 ## API Documentation
 
-See the Wiki page: [API Documentation](https://github.com/manuelbl/ttn-esp32/wiki/API-Documentation)
+See [API Documentation](https://codecrete.net/ttn-esp32/) for both the C ad C++ API
 
 ## More information
 
diff --git a/doc/.gitignore b/doc/.gitignore
index 6f62fd7..af33338 100644
--- a/doc/.gitignore
+++ b/doc/.gitignore
@@ -2,3 +2,4 @@ xml/
 html/
 api.md
 node_modules/
+ttn-esp32.zip
diff --git a/doc/generate.sh b/doc/generate.sh
index 0591d59..0532104 100755
--- a/doc/generate.sh
+++ b/doc/generate.sh
@@ -1,3 +1,5 @@
 #!/bin/sh
-rm -rf html
+rm -rf html ttn-esp32.zip
 doxygen Doxyfile
+cd html
+zip -r ../ttn-esp32.zip .
\ No newline at end of file