Skip to content

Commit 16ed695

Browse files
authored
doc: Add new theme to doc (#582)
Add new theme to doc Signed-off-by: divya pillai <divya.pillai@nordicsemi.no>
1 parent 9d91455 commit 16ed695

3 files changed

Lines changed: 16 additions & 3 deletions

File tree

docs/_static/hide-versions.css

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
.ncs-header-top .dropdown:has(.ncs-btn-versions) {
2+
display: none !important;
3+
}

docs/conf.py

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,17 @@
77
# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information
88

99
project = 'hello-nrfcloud firmware'
10-
copyright = '2024, Nordic Semiconductor'
10+
copyright = '2026, Nordic Semiconductor'
1111
author = 'Nordic Semiconductor'
1212
release = '1.0.0'
1313

1414
# -- General configuration ---------------------------------------------------
1515
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration
1616

17-
extensions = []
17+
extensions = [
18+
"sphinxcontrib.jquery",
19+
"sphinx_copybutton",
20+
]
1821

1922
templates_path = ['_templates']
2023
exclude_patterns = ['_build_sphinx', 'Thumbs.db', '.DS_Store']
@@ -23,6 +26,11 @@
2326
# https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output
2427

2528
html_theme = 'sphinx_ncs_theme'
29+
html_show_sphinx = False
30+
html_static_path = ["_static"]
31+
html_css_files = ["hide-versions.css"]
32+
33+
html_theme_options = {'docsets': {},"addons_url": "https://nrfconnect.github.io/ncs-app-index/","bare_metal_url": "","ncs_url": "https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/index.html", "ncs_label": "nRF Connect SDK Docs", "logo_url": "https://docs.nordicsemi.com"}
2634

2735
# Include following files at the end of each .rst file.
2836
rst_epilog = """

docs/requirements.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
Sphinx==5.3.0
22
breathe==4.35.0
3-
sphinx-ncs-theme==0.7.4
3+
sphinx-ncs-theme<2.1
44
sphinx-tabs>=3.4
55
sphinx-togglebutton>=0.3.2
66
Pillow>=9.0.1
7+
sphinxcontrib.jquery
8+
sphinx-copybutton

0 commit comments

Comments
 (0)