File tree Expand file tree Collapse file tree 4 files changed +21
-10
lines changed
Expand file tree Collapse file tree 4 files changed +21
-10
lines changed Original file line number Diff line number Diff line change 11#! /bin/sh
22
3- mkdocs build
3+ if [ -z " $( pip3 list | grep " mkdocs" ) " ] ; then
4+ echo " install mkdocs"
5+ pip3 install mkdocs
6+ fi
7+
8+ if command -v mkdocs ; then
9+ mkdocs build
10+ else
11+ python3 -m mkdocs -- build
12+ fi
413
514# [ -f ./site/index.html ] && command -v firefox && firefox ./site/index.html & disown
Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ if ! command -v sphinx-apidoc ; then
1919fi
2020
2121if [ -z " $( pip3 list | grep " sphinx-rtd-theme" ) " ] ; then
22+ echo " install sphinx-rtd-theme"
2223 pip3 install sphinx-rtd-theme
2324fi
2425
Original file line number Diff line number Diff line change @@ -20,10 +20,7 @@ max_playback_fps: 0
2020# or width of the screen depending on the aspect ratio of the video.
2121preview_scaling : 0.6
2222
23- # Set the video type. All available options can be obtained from the projection.yaml file.
24- # Each root keys represent an option.
25- #
26- # Available Options:
23+ # Set the video type. Available Options:
2724# - 'flat': 2D Videos
2825# - 'vr_he_sbs': 3D VR Side-By-Side Video
2926projection : ' vr_he_sbs'
Original file line number Diff line number Diff line change 55
66PACKAGE = 'funscript_editor'
77DESCRIPTION = "A tool to create funscripts"
8+ INCLUDE_REQUIREMENTS = False
89
910TAGS = sorted (git .Repo ('.' ).tags , key = lambda x : x .commit .committed_datetime ) if os .path .exists ('.git' ) else []
1011VERSION = str (TAGS [- 1 ]) if len (TAGS ) > 0 else "0.0.0"
2223with open ("README.md" , "r" , encoding = "utf-8" ) as f :
2324 long_description = f .read ()
2425
25- with open ("requirements.txt" , "r" , encoding = "utf-8" ) as f :
26- requirements = [x .strip () for x in f .readlines ()\
27- if not any (a in x .lower () for a in ['opencv' , 'pyqt' ])]
28- #NOTE: I recommend to install this packages with your favorite package manager.
29- # Otherwise they will not work reliably. e.g. use pacman -Sy python-opencv python-pyqt5 ...
26+ if INCLUDE_REQUIREMENTS :
27+ with open ("requirements.txt" , "r" , encoding = "utf-8" ) as f :
28+ requirements = [x .strip () for x in f .readlines ()\
29+ if not any (a in x .lower () for a in ['opencv' , 'pyqt' ])]
30+ #NOTE: I recommend to install this packages with your favorite package manager.
31+ # Otherwise they will not work reliably. e.g. use pacman -Sy python-opencv python-pyqt5 ...
32+ else :
33+ requirements = []
3034
3135with open (os .path .join (PACKAGE , 'VERSION.txt' ), 'w' ) as f :
3236 f .write (VERSION )
You can’t perform that action at this time.
0 commit comments