Skip to content

Commit

Permalink
sphinx docs conf.py gets lib ver from json
Browse files Browse the repository at this point in the history
  • Loading branch information
2bndy5 committed Oct 31, 2021
1 parent f33bacf commit dbaf785
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 0 additions & 2 deletions RPi/RF24Network/README.md

This file was deleted.

2 changes: 0 additions & 2 deletions RPi/readme.md

This file was deleted.

8 changes: 6 additions & 2 deletions docs/sphinx/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 <https://github.com/nRF24>`_"
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.
Expand Down

0 comments on commit dbaf785

Please sign in to comment.