Skip to content

Commit e44e66c

Browse files
committed
Update the theme used.
1 parent d74ca60 commit e44e66c

File tree

2 files changed

+20
-7
lines changed

2 files changed

+20
-7
lines changed

docs/requirements.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# Defining the exact version will make sure things don't break
2-
sphinx-pdj-theme==0.4.0
2+
sphinx-book-theme==1.0.1
3+
# sphinx-pdj-theme==0.4.0
34
myst-parser==2.0.0
45
markdown-it-py==3.0.0
56
sphinx-copybutton==0.5.2

docs/source/conf.py

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Configuration file for the Sphinx documentation builder.
22
# Read https://www.sphinx-doc.org/en/master/usage/configuration.html for more options available
33

4-
import sphinx_pdj_theme
4+
# import sphinx_pdj_theme
55

66
# -- Project information
77

@@ -21,6 +21,13 @@
2121
'sphinx_copybutton',
2222
]
2323

24+
# https://myst-parser.readthedocs.io/en/latest/configuration.html#setting-html-metadata
25+
myst_html_meta = {
26+
"description": "IP2Proxy PHP library enables user to query an IP address if it was being used as open proxy, web proxy, VPN anonymizer and TOR exits.",
27+
"keywords": "IP2Location, Geolocation, IP location",
28+
"google-site-verification": "DeW6mXDyMnMt4i61ZJBNuoADPimo5266DKob7Z7d6i4",
29+
}
30+
2431
# https://myst-parser.readthedocs.io/en/latest/syntax/optional.html
2532

2633
myst_enable_extensions = [
@@ -33,13 +40,16 @@
3340

3441
# -- Options for HTML output
3542

36-
html_theme = 'sphinx_pdj_theme'
37-
html_theme_path = [sphinx_pdj_theme.get_html_theme_path()]
43+
html_theme = 'sphinx_book_theme'
44+
# html_theme_path = [sphinx_pdj_theme.get_html_theme_path()]
3845

3946
# PDJ theme options, see the list of available options here: https://github.com/jucacrispim/sphinx_pdj_theme/blob/master/sphinx_pdj_theme/theme.conf
4047
html_theme_options = {
41-
# Hide the name of the project above the search bar
42-
'home_link': 'hide'
48+
"use_edit_page_button": False,
49+
"use_source_button": False,
50+
"use_issues_button": False,
51+
"use_download_button": False,
52+
"use_sidenotes": False,
4353
}
4454

4555
# The name of an image file (relative to this directory) to place at the top
@@ -49,4 +59,6 @@
4959
# Favicon
5060
html_favicon = 'images/favicon.ico'
5161

52-
html_title = "IP2Location Python"
62+
html_title = "IP2Location NodeJS"
63+
64+
html_baseurl = "https://ip2location-nodejs.readthedocs.io/en/latest/"

0 commit comments

Comments
 (0)