From dbaf785f87eb8ff630f528aad853287f3e7f7f63 Mon Sep 17 00:00:00 2001 From: 2bndy5 <2bndy5@gmail.com> Date: Sat, 30 Oct 2021 22:01:08 -0700 Subject: [PATCH] sphinx docs conf.py gets lib ver from json --- RPi/RF24Network/README.md | 2 -- RPi/readme.md | 2 -- docs/sphinx/conf.py | 8 ++++++-- 3 files changed, 6 insertions(+), 6 deletions(-) delete mode 100644 RPi/RF24Network/README.md delete mode 100644 RPi/readme.md diff --git a/RPi/RF24Network/README.md b/RPi/RF24Network/README.md deleted file mode 100644 index 8950bc3b..00000000 --- a/RPi/RF24Network/README.md +++ /dev/null @@ -1,2 +0,0 @@ - -See https://github.com/TMRh20/RF24Network/README.md diff --git a/RPi/readme.md b/RPi/readme.md deleted file mode 100644 index 8950bc3b..00000000 --- a/RPi/readme.md +++ /dev/null @@ -1,2 +0,0 @@ - -See https://github.com/TMRh20/RF24Network/README.md diff --git a/docs/sphinx/conf.py b/docs/sphinx/conf.py index 9b7380ae..3755b488 100644 --- a/docs/sphinx/conf.py +++ b/docs/sphinx/conf.py @@ -15,15 +15,19 @@ # sys.path.insert(0, os.path.abspath('.')) import subprocess import os +import json # -- Project information ----------------------------------------------------- project = "RF24Network library" -copyright = "2021, `nRF24 org `_" +copyright = "2021, nRF24" author = "nRF24" # The full version, including alpha/beta/rc tags -release = "1.4.2" +release = "1.0.16" # the minimum version that supports sphinx builds and RTD hosting +with open("../../library.json", "rb") as lib_json: + # get updated info from PlatformIO JSON + release = json.load(lib_json)["version"] # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages.