manual: Link to manual from each service

Closes #930

- Make targets to download wiki pages of each service

- Add post-processor script for DocBook file processing

Signed-off-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
Joseph Nuthalapati authored and James Valleroy committed 2018-03-22 19:49:14 -04:00
1 parent c6bccaaac0
commit 4064d6e231
128 files changed
+14994 -1539

No files matched your search

+12 -12
View File
@@ -20,13 +20,11 @@ FreedomBox app to configure Roundcube.
from django.utils.translation import ugettext_lazy as _
from plinth import actions
from plinth import action_utils
from plinth import frontpage
from plinth import service as service_module
from plinth import action_utils, actions, frontpage
from plinth.menu import main_menu
from .manifest import clients
from .manifest import clients
version = 1
@@ -42,14 +40,12 @@ description = [
'full functionality you expect from an email client, including '
'MIME support, address book, folder manipulation, message '
'searching and spell checking.'),
_('You can access Roundcube from <a href="/roundcube">'
'/roundcube</a>. Provide the username and password of the email '
'account you wish to access followed by the domain name of the '
'IMAP server for your email provider, like <code>imap.example.com'
'</code>. For IMAP over SSL (recommended), fill the server field '
'like <code>imaps://imap.example.com</code>.'),
_('For Gmail, username will be your Gmail address, password will be '
'your Google account password and server will be '
'<code>imaps://imap.gmail.com</code>. Note that you will also need '
@@ -62,11 +58,14 @@ clients = clients
service = None
manual_page = 'Roundcube'
def init():
"""Intialize the module."""
menu = main_menu.get('apps')
menu.add_urlname(name, 'glyphicon-envelope', 'roundcube:index', short_description)
menu.add_urlname(name, 'glyphicon-envelope', 'roundcube:index',
short_description)
global service
setup_helper = globals()['setup_helper']
@@ -93,9 +92,9 @@ def setup(helper, old_version=None):
def add_shortcut():
frontpage.add_shortcut(
'roundcube', name, short_description=short_description, url='/roundcube',
login_required=True)
frontpage.add_shortcut('roundcube', name,
short_description=short_description,
url='/roundcube', login_required=True)
def is_enabled():
@@ -119,7 +118,8 @@ def diagnose():
"""Run diagnostics and return the results."""
results = []
results.extend(action_utils.diagnose_url_on_all(
'https://{host}/roundcube', check_certificate=False))
results.extend(
action_utils.diagnose_url_on_all('https://{host}/roundcube',
check_certificate=False))
return results
+5 -5
View File
@@ -14,22 +14,22 @@
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
"""
URLs for the Roundcube module.
"""
from django.conf.urls import url
from plinth.views import ServiceView
from plinth.modules import roundcube
from plinth.views import ServiceView
urlpatterns = [
url(r'^apps/roundcube/$', ServiceView.as_view(
url(r'^apps/roundcube/$',
ServiceView.as_view(
service_id="roundcube",
diagnostics_module_name="roundcube",
description=roundcube.description,
show_status_block=False
show_status_block=False,
manual_page=roundcube.manual_page,
), name='index'),
]