Skip to content

Commit

Permalink
docs: correct manual link
Browse files Browse the repository at this point in the history
  • Loading branch information
Tieqiong committed Jan 14, 2025
1 parent 5e5cc7f commit 1dcc1b9
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 5 deletions.
23 changes: 23 additions & 0 deletions news/doctab.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
**Added:**

* <news item>

**Changed:**

* Changed the removed local manual link to the online page.

**Deprecated:**

* <news item>

**Removed:**

* <news item>

**Fixed:**

* <news item>

**Security:**

* <news item>
6 changes: 2 additions & 4 deletions src/diffpy/pdfgui/gui/mainframe.py
Original file line number Diff line number Diff line change
Expand Up @@ -2522,10 +2522,8 @@ def onSaveCalc(self, event):
def onDocumentation(self, event):
"""Show information about the documentation."""
import webbrowser
from urllib.request import pathname2url

url = "file://" + pathname2url(docMainFile)
webbrowser.open(url)

webbrowser.open(docMainFile)
return

# MISC INTERACTION ITEMS
Expand Down
2 changes: 1 addition & 1 deletion src/diffpy/pdfgui/gui/pdfguiglobals.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
APPDATADIR = os.path.abspath(APPDATADIR)

# Location of the HTML manual
docMainFile = os.path.join(APPDATADIR, "doc/manual/pdfgui.html")
docMainFile = "https://diffpy.github.io/diffpy.pdfgui/manual.html"

del _upbasedir
del _development_mode
Expand Down

0 comments on commit 1dcc1b9

Please sign in to comment.