File tree Expand file tree Collapse file tree 3 files changed +27
-6
lines changed
Expand file tree Collapse file tree 3 files changed +27
-6
lines changed Original file line number Diff line number Diff line change @@ -12,10 +12,14 @@ sphinx:
1212# Optionally build your docs in additional formats such as PDF and ePub
1313formats :
1414- pdf
15+ # - epub
16+
17+ build :
18+ os : ubuntu-22.04
19+ tools :
20+ python : " 3.8"
1521
1622# Optionally set the version of Python and requirements required to build your docs
1723python :
18- version : 3.5
1924 install :
20- - requirements : docs/requirements.txt
21-
25+ - requirements : requirements.dev.txt
Original file line number Diff line number Diff line change 33# This file only contains a selection of the most common options. For a full
44# list see the documentation:
55# https://www.sphinx-doc.org/en/master/usage/configuration.html
6+ import os
7+ import sys
68
79# -- Path setup --------------------------------------------------------------
810
1618
1719import guzzle_sphinx_theme
1820
21+ try :
22+ filecheck_root_path = os .path .abspath (
23+ os .path .join (os .path .dirname (__file__ ), ".." )
24+ )
25+ if not os .path .isdir (filecheck_root_path ):
26+ raise FileNotFoundError
27+ sys .path .append (filecheck_root_path )
28+ from filecheck .filecheck import __version__ as filecheck_version
29+ except Exception as exception :
30+ print ( # noqa: T201
31+ f"Could not resolve a path to filecheck's root: { exception } "
32+ )
33+ sys .exit (1 )
34+
1935# -- Project information -----------------------------------------------------
2036
2137project = "FileCheck.py"
2238copyright = "2019-2023, Stanislav Pankevich"
2339author = "Stanislav Pankevich"
2440
2541# The full version, including alpha/beta/rc tags
26- release = "0.0.1"
42+ release = filecheck_version
2743
2844
2945# -- General configuration ---------------------------------------------------
5167extensions .append ("guzzle_sphinx_theme" )
5268html_theme = "guzzle_sphinx_theme"
5369
54- # html_theme = 'pyramid'
55-
5670html_theme_options = {
5771 "project_nav_name" : "Mull" ,
5872}
Original file line number Diff line number Diff line change @@ -11,3 +11,6 @@ flake8>=3.9.2
1111coverage>=5.4
1212pytest>=6.2.2
1313lit>=0.9
14+
15+ # Docs
16+ guzzle_sphinx_theme
You can’t perform that action at this time.
0 commit comments