From 70e8f51d40162979f8a98287cea869adbecd65cb Mon Sep 17 00:00:00 2001 From: Lova Andriarimalala <43842786+Xpirix@users.noreply.github.com> Date: Mon, 25 Nov 2024 12:18:11 +0300 Subject: [PATCH] Fix publish page formatting --- qgis-app/docs.py | 14 ++ .../templates/flatpages/docs_publish.html | 214 ++++++++++++++++++ qgis-app/urls.py | 4 +- 3 files changed, 231 insertions(+), 1 deletion(-) create mode 100644 qgis-app/docs.py create mode 100644 qgis-app/templates/flatpages/docs_publish.html diff --git a/qgis-app/docs.py b/qgis-app/docs.py new file mode 100644 index 00000000..68eb0665 --- /dev/null +++ b/qgis-app/docs.py @@ -0,0 +1,14 @@ +from django.shortcuts import render +from django.utils.translation import gettext_lazy as _ + + + +def docs_publish(request): + """ + Renders the docs_publish page + """ + return render( + request, + "flatpages/docs_publish.html", + {}, + ) \ No newline at end of file diff --git a/qgis-app/templates/flatpages/docs_publish.html b/qgis-app/templates/flatpages/docs_publish.html new file mode 100644 index 00000000..cb987b90 --- /dev/null +++ b/qgis-app/templates/flatpages/docs_publish.html @@ -0,0 +1,214 @@ +{% extends BASE_TEMPLATE %} + +{% block content %} +
+

How to add your plugin to this repository

+ +

Requirements

+ +

Recommendations

+ +

Tips and Tricks

+ +

Plugin approval process

+

+ The approval of plugins is primarily carried out by contributors. Currently, + the primary contributor is Admire Nyakudya (addloe@gmail.com). Do not + hesitate to get in touch with him if you have any questions about the plugin + approval process. +

+

The approval process involves the following steps.

+
New Plugins
+

All new plugins follow the rough guidelines outlined below:

+ +

+ Note: Plugins cover a whole range of domains which the person doing the + approval might not be versed with. With such an expectation, we will try to + do random tests (random plugins will be selected) to see if the plugin + installs and runs without crashing QGIS. We also expect plugins to be + cross-platform, working on Unix systems and Windows. In the list of + published plugins, we have a diverse range of plugins offering different + functionality. We encourage plugin developers to collaborate on plugins + offering the same functionality as developing plugins with functionality + that is almost similar. If you need to enhance a particular plugin, we are + able to facilitate this with an existing author. For issues relating to the + transfer of ownership, or updating any other metadata about existing + plugins, please do not hesitate to contact us through the QGIS Developer + mailing lists. +

+
Existing Plugins (New updates)
+

+ These are plugins that are already in use and being enhanced by new versions + being uploaded. During the approval process, we expect the following: +

+ +

+ Note: Testing will also be done randomly to see if the plugin still works + and does not crash QGIS. +

+

+ We try to publish/approve plugins daily with the exception of weekends. If + you have uploaded a plugin on Friday-Sunday, it will most likely be approved + on Monday. During extended holiday periods, the timelines might be even + longer. We also take into consideration that contributors live in different + parts of the world with different public holidays. This might also impact + the timelines for approval. +

+
+

dai nomi dei campi)

+ +
+
+{% endblock %} diff --git a/qgis-app/urls.py b/qgis-app/urls.py index 90acac68..280b0b97 100644 --- a/qgis-app/urls.py +++ b/qgis-app/urls.py @@ -15,6 +15,7 @@ # from users.views import * from homepage import homepage from rest_framework import permissions +from docs import docs_publish admin.autodiscover() @@ -91,6 +92,7 @@ # Home urlpatterns += [ url(r"^$", homepage), + url(r"^publish", docs_publish, name="docs_publish"), ] # API @@ -122,6 +124,6 @@ "/layerdefinitions/?order_by=-upload_date&&is_gallery=true", "/models/?order_by=-upload_date&&is_gallery=true", "/wavefronts/?order_by=-upload_date&&is_gallery=true", - FlatPage.objects.all(), + FlatPage.objects.exclude(url="/publish/"), simplemenu.models.URLItem.objects.all(), )