diff --git a/app/src/lib/footer.svelte b/app/src/lib/footer.svelte index a2412c4..a13dc0a 100644 --- a/app/src/lib/footer.svelte +++ b/app/src/lib/footer.svelte @@ -14,44 +14,34 @@ diff --git a/app/static/animations.css b/app/static/animations.css index 6406f43..a807121 100644 --- a/app/static/animations.css +++ b/app/static/animations.css @@ -9,13 +9,3 @@ border-color: transparent; } } - -@keyframes typing { - from { - width: 0%; - } - - to { - width: 100%; - } -} diff --git a/app/static/profile/cool.png b/app/static/profile/cool.png index b36bbd5..cf6aca7 100644 Binary files a/app/static/profile/cool.png and b/app/static/profile/cool.png differ diff --git a/app/static/profile/sad.png b/app/static/profile/sad.png index 18318d3..3bb7175 100644 Binary files a/app/static/profile/sad.png and b/app/static/profile/sad.png differ diff --git a/app/static/profile/tired.png b/app/static/profile/tired.png index c9fbe94..528cfad 100644 Binary files a/app/static/profile/tired.png and b/app/static/profile/tired.png differ diff --git a/app/static/robots.txt b/app/static/robots.txt new file mode 100644 index 0000000..3e4d6c9 --- /dev/null +++ b/app/static/robots.txt @@ -0,0 +1,2 @@ +User-Agent: * +Disallow: /doc/ diff --git a/doc/docs/api.en.json b/doc/docs/api.en.json index 2fb2cb6..75b6a21 100644 --- a/doc/docs/api.en.json +++ b/doc/docs/api.en.json @@ -1,4 +1,4 @@ { - "title": "API documentation", + "title": "API", "desc": "Website's API documentation" } diff --git a/doc/docs/api.en.md b/doc/docs/api.en.md index b5714f5..445cfca 100644 --- a/doc/docs/api.en.md +++ b/doc/docs/api.en.md @@ -1,6 +1,7 @@ -My website's API stores information about my self-hosted services, it also allows me to -publish news and updates about these services using an Atom feed and it keeps track of -visitor metrics. The API itself is written in Go and uses SQLite for storage. +My website's API, [api.ngn.tf](https://api.ngn.tf), stores information about my +self-hosted services, it also allows me to publish news and updates about these +services using an Atom feed and it keeps track of visitor metrics. The API itself is +written in Go and uses SQLite for storage. This documentation contains information about all the available API endpoints. diff --git a/doc/docs/api.tr.json b/doc/docs/api.tr.json index 3370c54..0bc89c7 100644 --- a/doc/docs/api.tr.json +++ b/doc/docs/api.tr.json @@ -1,4 +1,4 @@ { - "title": "API dökümantasyonu", + "title": "API", "desc": "Websitesinin API dökümantasyonu" } diff --git a/doc/docs/api.tr.md b/doc/docs/api.tr.md index 92a4d75..52e68d6 100644 --- a/doc/docs/api.tr.md +++ b/doc/docs/api.tr.md @@ -1,6 +1,7 @@ -Websitemin API self-host edilen servisler hakkında bilgileri tutuyor, bu servisler hakkında -haberleri ve güncellemeleri bir Atom feed'i aracılığı ile paylaşmama izin veriyor ve ziyartçi -metriklerini takip ediyor. API'ın kendisi Go ile yazıldı ve veritabanı olarak SQLite kullanıyor. +Websitemin API, [api.ngn.tf](https://api.ngn.tf), self-host edilen servisler hakkında bilgileri +tutuyor, bu servisler hakkında haberleri ve güncellemeleri bir Atom feed'i aracılığı ile +paylaşmama izin veriyor ve ziyartçi metriklerini takip ediyor. API'ın kendisi Go ile yazıldı ve +veritabanı olarak SQLite kullanıyor. Bu dökümentasyon tüm erişeme açık API endpoint'leri hakkında bilgiler içeriyor. diff --git a/doc/docs/license.en.json b/doc/docs/license.en.json index 78d79e1..9c01123 100644 --- a/doc/docs/license.en.json +++ b/doc/docs/license.en.json @@ -1,4 +1,4 @@ { - "title": "License", + "title": "source license", "desc": "Source code license" } diff --git a/doc/docs/license.tr.json b/doc/docs/license.tr.json index 4ce245b..a5506ea 100644 --- a/doc/docs/license.tr.json +++ b/doc/docs/license.tr.json @@ -1,4 +1,4 @@ { - "title": "Lisans", + "title": "kaynak lisansı", "desc": "Kaynak kodu lisansı" } diff --git a/doc/docs/privacy.en.json b/doc/docs/privacy.en.json index e367c11..a5f9282 100644 --- a/doc/docs/privacy.en.json +++ b/doc/docs/privacy.en.json @@ -1,4 +1,4 @@ { - "title": "Privacy", + "title": "privacy", "desc": "Learn how I respect your privacy" } diff --git a/doc/docs/privacy.tr.json b/doc/docs/privacy.tr.json index e886f1a..5d9fb17 100644 --- a/doc/docs/privacy.tr.json +++ b/doc/docs/privacy.tr.json @@ -1,4 +1,4 @@ { - "title": "Gizlilik", + "title": "gizlilik", "desc": "Gizliliğinize nasıl önem verdiğimi öğrenin" } diff --git a/doc/src/config.c b/doc/src/config.c index bbbcfbf..ed7e271 100644 --- a/doc/src/config.c +++ b/doc/src/config.c @@ -10,6 +10,7 @@ #include "util.h" option_t options[] = { + // name value requied {"host", "0.0.0.0:7003", true }, // host the server should listen on {"docs_dir", "./docs", true }, // documentation directory {"", NULL, false}, diff --git a/doc/src/main.c b/doc/src/main.c index 401bfc0..2a3e897 100644 --- a/doc/src/main.c +++ b/doc/src/main.c @@ -13,7 +13,11 @@ int main() { if (!config_load(&conf)) return EXIT_FAILURE; - host = config_get(&conf, "host"); + + if (NULL == (host = config_get(&conf, "host"))) { + ctorm_fail("failed to get the host configuration"); + return EXIT_FAILURE; + } ctorm_config_new(&app_config); app_config.disable_logging = true; @@ -22,7 +26,6 @@ int main() { // middlewares MIDDLEWARE_ALL(app, "/*", route_cors); MIDDLEWARE_ALL(app, "/*/*", route_cors); - MIDDLEWARE_ALL(app, "/*/*/*", route_cors); // routes GET(app, "/list", route_list);