Skip to content

Commit 1cb1890

Browse files
docs: correct manual link (#249)
* docs: correct manual link * [pre-commit.ci] auto fixes from pre-commit hooks --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent c7ac084 commit 1cb1890

File tree

3 files changed

+25
-4
lines changed

3 files changed

+25
-4
lines changed

news/doctab.rst

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
**Added:**
2+
3+
* <news item>
4+
5+
**Changed:**
6+
7+
* Changed the removed local manual link to the online page.
8+
9+
**Deprecated:**
10+
11+
* <news item>
12+
13+
**Removed:**
14+
15+
* <news item>
16+
17+
**Fixed:**
18+
19+
* <news item>
20+
21+
**Security:**
22+
23+
* <news item>

src/diffpy/pdfgui/gui/mainframe.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2528,10 +2528,8 @@ def onSaveCalc(self, event):
25282528
def onDocumentation(self, event):
25292529
"""Show information about the documentation."""
25302530
import webbrowser
2531-
from urllib.request import pathname2url
25322531

2533-
url = "file://" + pathname2url(docMainFile)
2534-
webbrowser.open(url)
2532+
webbrowser.open(docMainFile)
25352533
return
25362534

25372535
# MISC INTERACTION ITEMS

src/diffpy/pdfgui/gui/pdfguiglobals.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
APPDATADIR = os.path.abspath(APPDATADIR)
5555

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

5959
del _upbasedir
6060
del _development_mode

0 commit comments

Comments
 (0)