Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion DataPlotly/core/core_utils.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""COre Utilities
"""Core Utilities

.. note:: This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
Expand All @@ -8,6 +8,7 @@
import uuid
from qgis.PyQt.QtCore import QByteArray

DOC_URL = "https://dataplotly-docs.readthedocs.io"

def safe_str_xml(s):
""" replaces spaces by .
Expand Down
6 changes: 4 additions & 2 deletions DataPlotly/data_plotly.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@
from qgis.core import QgsApplication, QgsExpression, QgsProject
from qgis.gui import QgsGui

# Help
from DataPlotly.core.core_utils import DOC_URL

# Import the code for the dialog
from DataPlotly.gui.dock import DataPlotlyDockManager
from DataPlotly.gui.gui_utils import GuiUtils
Expand Down Expand Up @@ -281,8 +284,7 @@ def unload(self):
@staticmethod
def open_help():
""" Open the online help. """
QDesktopServices.openUrl(
QUrl('https://github.com/ghtmtt/DataPlotly/blob/master/README.md'))
QDesktopServices.openUrl(QUrl(DOC_URL))

def loadPlotFromDic(self, plot_dic, dock_id='DataPlotly'):
"""
Expand Down
4 changes: 2 additions & 2 deletions DataPlotly/gui/plot_settings_widget.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@
)
from qgis.utils import iface

from DataPlotly.core.core_utils import DOC_URL
from DataPlotly.core.plot_factory import PlotFactory
from DataPlotly.core.plot_settings import PlotSettings
from DataPlotly.gui.gui_utils import GuiUtils
Expand Down Expand Up @@ -586,8 +587,7 @@ def helpPage(self):

self.help_view.load(QUrl(''))
self.layouth.addWidget(self.help_view)
help_url = QUrl(
f'https://dataplotly-docs.readthedocs.io/en/latest/{self.ptype}.html')
help_url = QUrl(f'{DOC_URL}/en/latest/{self.ptype}.html')
self.help_view.load(help_url)

def resizeEvent(self, event):
Expand Down
2 changes: 1 addition & 1 deletion DataPlotly/metadata.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ email=matteo.ghetta@gmail.com

about=Draw D3 plots in QGIS

homepage=https://github.com/ghtmtt/DataPlotly/blob/master/README.md
homepage=https://dataplotly-docs.readthedocs.io
tracker=https://github.com/ghtmtt/DataPlotly/issues
repository=https://github.com/ghtmtt/DataPlotly
# End of mandatory metadata
Expand Down
Loading