Skip to content

Commit 94e41bd

Browse files
b-genteivindj-nordic
authored andcommitted
doc: add S115 release and migration notes
Incorporate the S115 release notes and migration notes in RST format into the BM documentation structure. Signed-off-by: Bartosz Gentkowski <[email protected]>
1 parent 742a3d8 commit 94e41bd

File tree

3 files changed

+23
-0
lines changed

3 files changed

+23
-0
lines changed

doc/nrf-bm/gen_docs.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
pdf_source_dir = os.path.abspath('../../components/softdevice/s115/') # Path to the PDF source directory
1414
pdf_destination_dir = os.path.join(source_dir, 'pdfs') # Destination directory within _static
1515
images_dir = os.path.join(script_dir, "images") # Path to the images directory
16+
softdevice_rst_source = os.path.abspath('../../components/softdevice/s115/doc')
1617

1718
# Install packages from requirements.txt
1819
if os.path.exists(requirements_path):
@@ -59,6 +60,13 @@
5960
os.makedirs(dest_dir, exist_ok=True)
6061
shutil.copy2(os.path.join(root, file), dest_dir)
6162

63+
# Copy SoftDevice RST files to the _build/source directory
64+
for file_name in os.listdir(softdevice_rst_source):
65+
if file_name.endswith('.rst'):
66+
src_file_path = os.path.join(softdevice_rst_source, file_name)
67+
shutil.copy2(src_file_path, source_dir)
68+
print(f"Copied {file_name} to {source_dir}")
69+
6270
# Copy the _static directory
6371
dest_static_dir = os.path.join(source_dir, "_static")
6472
if os.path.exists(dest_static_dir):

doc/nrf-bm/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,3 +40,4 @@ The |BMlong| is a distinct repository that incorporates elements from the existi
4040
samples.rst
4141
app_dev/dfu/index.rst
4242
release_notes.rst
43+
s115_docs.rst

doc/nrf-bm/s115_docs.rst

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
.. _s115_docs:
2+
3+
S115 SoftDevice release notes and migration notes
4+
#################################################
5+
6+
See the following documentation for the details regarding new releases of the S115 SoftDevice.
7+
8+
.. toctree::
9+
:maxdepth: 2
10+
:glob:
11+
:caption: Subpages:
12+
13+
s115_9.0.0-3.prototype_release-notes.main.rst
14+
s115_9.0.0-3.prototype_migration-document.main.rst

0 commit comments

Comments
 (0)