Skip to content

Commit

Permalink
docs fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
artur-trzesiok committed May 17, 2022
1 parent 422bea6 commit b29a1f1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ There are two ways of changing data in the plot:
:filename: interaction/Interaction01.py
Using the backend to send data at each timestep
---------------------------------------------
-----------------------------------------------

The Python backend can update attribute of any plot object in K3D-jupyter.

Expand Down
11 changes: 5 additions & 6 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
import sys
import time
import sphinx_rtd_theme
import json
from os.path import dirname
from source.k3d_directives.plot import K3D_Plot

Expand Down Expand Up @@ -76,16 +77,14 @@
#

repo = os.path.join(here, '..', '..')
_version_py = os.path.join(repo, 'k3d', '_version.py')
_version_py = os.path.join(repo, 'package.json')
version_ns = {}
with open(_version_py) as f:
exec(f.read(), version_ns)

# The short X.Y version.
version = '%i.%i' % version_ns['version_info'][:2]
with open(_version_py) as f:
version = json.load(f)["version"]

# The full version, including alpha/beta/rc tags.
release = version_ns['__version__']
release = version

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
Expand Down

0 comments on commit b29a1f1

Please sign in to comment.