]> git.ipfire.org Git - ipfire.org.git/blobdiff - Makefile.am
analytics: Add page about docs analytics
[ipfire.org.git] / Makefile.am
index 29f551d594b0b9026eec35528d7488aaa0b6eef9..2df8b3a0598b31e9f5785a77d0df39ef419624a0 100644 (file)
@@ -49,10 +49,12 @@ CLEANFILES += \
 backend_PYTHON = \
        src/backend/__init__.py \
        src/backend/accounts.py \
+       src/backend/analytics.py \
        src/backend/asterisk.py \
        src/backend/base.py \
        src/backend/blog.py \
        src/backend/bugzilla.py \
+       src/backend/cache.py \
        src/backend/campaigns.py \
        src/backend/countries.py \
        src/backend/database.py \
@@ -61,7 +63,7 @@ backend_PYTHON = \
        src/backend/httpclient.py \
        src/backend/hwdata.py \
        src/backend/iuse.py \
-       src/backend/memcached.py \
+       src/backend/lists.py \
        src/backend/messages.py \
        src/backend/mirrors.py \
        src/backend/misc.py \
@@ -82,6 +84,7 @@ backenddir = $(pythondir)/ipfire
 
 web_PYTHON = \
        src/web/__init__.py \
+       src/web/analytics.py \
        src/web/auth.py \
        src/web/base.py \
        src/web/blog.py \
@@ -92,13 +95,12 @@ web_PYTHON = \
        src/web/fireinfo.py \
        src/web/handlers.py \
        src/web/iuse.py \
+       src/web/lists.py \
        src/web/location.py \
        src/web/nopaste.py \
-       src/web/people.py \
        src/web/ui_modules.py \
        src/web/users.py \
-       src/web/voip.py \
-       src/web/wiki.py
+       src/web/voip.py
 
 webdir = $(backenddir)/web
 
@@ -113,29 +115,40 @@ templates_DATA = \
 
 templatesdir = $(datadir)/templates
 
+templates_analytics_DATA = \
+       src/templates/analytics/docs.html \
+       src/templates/analytics/index.html
+
+templates_analyticsdir = $(templatesdir)/analytics
+
+templates_analytics_modules_DATA = \
+       src/templates/analytics/modules/summary.html
+
+templates_analytics_modulesdir = $(templates_analyticsdir)/modules
+
 templates_auth_DATA = \
        src/templates/auth/activate.html \
        src/templates/auth/activated.html \
+       src/templates/auth/join.html \
+       src/templates/auth/join-success.html \
        src/templates/auth/login.html \
        src/templates/auth/password-reset.html \
        src/templates/auth/password-reset-initiation.html \
-       src/templates/auth/password-reset-successful.html \
-       src/templates/auth/register.html \
-       src/templates/auth/register-success.html
+       src/templates/auth/password-reset-successful.html
 
 templates_authdir = $(templatesdir)/auth
 
 templates_auth_messages_DATA = \
        src/templates/auth/messages/donation-reminder.html \
        src/templates/auth/messages/donation-reminder.txt \
+       src/templates/auth/messages/join.html \
+       src/templates/auth/messages/join.txt \
        src/templates/auth/messages/password-reset.html \
        src/templates/auth/messages/password-reset.txt \
        src/templates/auth/messages/profile-setup.html \
        src/templates/auth/messages/profile-setup.txt \
        src/templates/auth/messages/profile-setup-2.html \
-       src/templates/auth/messages/profile-setup-2.txt \
-       src/templates/auth/messages/register.html \
-       src/templates/auth/messages/register.txt
+       src/templates/auth/messages/profile-setup-2.txt
 
 templates_auth_messagesdir = $(templates_authdir)/messages
 
@@ -146,17 +159,13 @@ templates_auth_modules_DATA = \
 templates_auth_modulesdir = $(templates_authdir)/modules
 
 templates_blog_DATA = \
-       src/templates/blog/author.html \
-       src/templates/blog/base.html \
-       src/templates/blog/compose.html \
        src/templates/blog/delete.html \
        src/templates/blog/drafts.html \
        src/templates/blog/feed.xml \
        src/templates/blog/index.html \
        src/templates/blog/post.html \
        src/templates/blog/publish.html \
-       src/templates/blog/search-results.html \
-       src/templates/blog/tag.html \
+       src/templates/blog/write.html \
        src/templates/blog/year.html
 
 templates_blogdir = $(templatesdir)/blog
@@ -169,8 +178,7 @@ templates_blog_messagesdir = $(templates_blogdir)/messages
 
 templates_blog_modules_DATA = \
        src/templates/blog/modules/history-navigation.html \
-       src/templates/blog/modules/list.html \
-       src/templates/blog/modules/post.html
+       src/templates/blog/modules/list.html
 
 templates_blog_modulesdir = $(templates_blogdir)/modules
 
@@ -200,28 +208,34 @@ templates_donate_messagesdir = $(templates_donatedir)/messages
 templates_docs_DATA = \
        src/templates/docs/404.html \
        src/templates/docs/base.html \
+       src/templates/docs/confirm-delete.html \
        src/templates/docs/confirm-restore.html \
        src/templates/docs/diff.html \
+       src/templates/docs/edit.html \
        src/templates/docs/page.html \
        src/templates/docs/recent-changes.html \
        src/templates/docs/revisions.html \
        src/templates/docs/search-results.html \
-       src/templates/docs/tree.html
+       src/templates/docs/tree.html \
+       src/templates/docs/watchlist.html
 
 templates_docsdir = $(templatesdir)/docs
 
 templates_docs_files_DATA = \
-       src/templates/docs/files/detail.html
+       src/templates/docs/files/detail.html \
+       src/templates/docs/files/index.html
 
 templates_docs_filesdir = $(templates_docsdir)/files
 
 templates_docs_modules_DATA = \
        src/templates/docs/modules/diff.html \
-       src/templates/docs/modules/header.html
+       src/templates/docs/modules/header.html \
+       src/templates/docs/modules/list.html
 
 templates_docs_modulesdir = $(templates_docsdir)/modules
 
 templates_downloads_DATA = \
+       src/templates/downloads/cloud.html \
        src/templates/downloads/mirrors.html \
        src/templates/downloads/release.html \
        src/templates/downloads/thank-you.html
@@ -249,7 +263,6 @@ templates_fireinfo_modulesdir = $(templates_fireinfodir)/modules
 
 templates_location_DATA = \
        src/templates/location/base.html \
-       src/templates/location/blacklists.html \
        src/templates/location/download.html \
        src/templates/location/how-to-use.html \
        src/templates/location/index.html \
@@ -257,15 +270,21 @@ templates_location_DATA = \
 
 templates_locationdir = $(templatesdir)/location
 
+templates_lists_DATA = \
+       src/templates/lists/index.html
+
+templates_listsdir = $(templatesdir)/lists
+
 templates_messages_DATA = \
        src/templates/messages/base.html \
        src/templates/messages/base-promo.html \
+       src/templates/messages/fonts.css \
        src/templates/messages/main.css
 
 templates_messagesdir = $(templatesdir)/messages
 
 templates_modules_DATA = \
-       src/templates/modules/christmas-banner.html \
+       src/templates/modules/ipfire-logo.html \
        src/templates/modules/map.html \
        src/templates/modules/progress-bar.html
 
@@ -291,14 +310,6 @@ templates_nopaste_modules_DATA = \
 
 templates_nopaste_modulesdir = $(templates_nopastedir)/modules
 
-templates_people_DATA = \
-       src/templates/people/index.html \
-       src/templates/people/subscribed.html \
-       src/templates/people/unsubscribe.html \
-       src/templates/people/unsubscribed.html
-
-templates_peopledir = $(templatesdir)/people
-
 templates_people_messages_DATA = \
        src/templates/people/messages/new-account.txt
 
@@ -307,7 +318,8 @@ templates_people_messagesdir = $(templates_peopledir)/messages
 templates_static_DATA = \
        src/templates/static/about.html \
        src/templates/static/legal.html \
-       src/templates/static/help.html
+       src/templates/static/help.html \
+       src/templates/static/sitemap.html
 
 templates_staticdir = $(templatesdir)/static
 
@@ -317,7 +329,11 @@ templates_users_DATA = \
        src/templates/users/edit.html \
        src/templates/users/index.html \
        src/templates/users/passwd.html \
-       src/templates/users/show.html
+       src/templates/users/show.html \
+       src/templates/users/subscribe.html \
+       src/templates/users/subscribed.html \
+       src/templates/users/unsubscribe.html \
+       src/templates/users/unsubscribed.html
 
 templates_usersdir = $(templatesdir)/users
 
@@ -345,28 +361,13 @@ templates_voip_modules_DATA = \
 
 templates_voip_modulesdir = $(templates_voipdir)/modules
 
-templates_wiki_DATA = \
-       src/templates/wiki/confirm-delete.html \
-       src/templates/wiki/edit.html \
-       src/templates/wiki/watchlist.html
-
 templates_wikidir = $(templatesdir)/wiki
 
-templates_wiki_files_DATA = \
-       src/templates/wiki/files/index.html
-
-templates_wiki_filesdir = $(templates_wikidir)/files
-
 templates_wiki_messages_DATA = \
        src/templates/wiki/messages/page-changed.txt
 
 templates_wiki_messagesdir = $(templates_wikidir)/messages
 
-templates_wiki_modules_DATA = \
-       src/templates/wiki/modules/list.html
-
-templates_wiki_modulesdir = $(templates_wikidir)/modules
-
 # ------------------------------------------------------------------------------
 
 SASS_FILES = \
@@ -377,9 +378,11 @@ SASS_FILES = \
 
 EXTRA_DIST += \
        src/sass/listing.sass \
+       src/templates/messages/fonts.sass \
        src/templates/messages/main.sass
 
 CLEANFILES += \
+       src/templates/messages/fonts.css \
        src/templates/messages/main.css
 
 static_DATA = \
@@ -982,6 +985,28 @@ static_img_DATA = \
 
 static_imgdir = $(staticdir)/img
 
+# From https://www.pexels.com/photo/123-let-s-go-imaginary-text-704767/
+
+dist_static_img_auth_DATA = \
+       src/static/img/auth/join.jpg
+
+static_img_auth_DATA = \
+       src/static/img/auth/join@600.jpg
+
+CLEANFILES += \
+       src/static/img/auth/join@600.jpg
+
+static_img_authdir = $(static_imgdir)/auth
+
+static_img_downloadsdir = $(static_imgdir)/downloads
+
+dist_static_img_downloads_cloud_DATA = \
+       src/static/img/downloads/cloud/aws.svg \
+       src/static/img/downloads/cloud/exoscale.svg \
+       src/static/img/downloads/cloud/hetzner.svg
+
+static_img_downloads_clouddir = $(static_img_downloadsdir)/cloud
+
 static_images_tux_DATA = \
        src/static/img/tux/ipfire_tux_16x16.png \
        src/static/img/tux/ipfire_tux_20x20.png \
@@ -1105,6 +1130,11 @@ src/static/img/apple-touch-icon-%-precomposed.png: src/static/img/ipfire-tux.png
                -extent $(patsubst src/static/img/apple-touch-icon-%-precomposed.png,%,$@)x$(patsubst src/static/img/apple-touch-icon-%-precomposed.png,%,$@) \
                $< $@
 
+# Resizes images for being used in messages which are 600px wide
+%@600.jpg: %.jpg
+       $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
+       $(CONVERT) -units PixelsPerInch $< -resize 600x -strip -quality 85 $@
+
 # Video Stuff
 
 FFMPEG += \