Skip to content

Commit 08f1943

Browse files
committed
Migrate documentation to Sphinx 3.2.
Update conf.py file to use Python 3 syntax, update sphinx.sty file to the latest version. TN: T421-010
1 parent d34904a commit 08f1943

File tree

2 files changed

+1817
-427
lines changed

2 files changed

+1817
-427
lines changed

doc/share/conf.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,25 +36,25 @@ def get_version():
3636
line = (vinfo.readline()).strip()
3737
return line
3838
except:
39-
print 'Error opening or reading version_information file'
39+
print('Error opening or reading version_information file')
4040
sys.exit(1)
4141

4242
# First retrieve the name of the documentation we are building
4343
doc_name = os.environ.get('DOC_NAME', None)
4444
if doc_name is None:
45-
print 'DOC_NAME environment variable should be set'
45+
print('DOC_NAME environment variable should be set')
4646
sys.exit(1)
4747

4848
if doc_name not in DOCS:
49-
print '%s is not a valid documentation name' % doc_name
49+
print('%s is not a valid documentation name' % doc_name)
5050
sys.exit(1)
5151

5252
# Exclude sources that are not part of the current documentation
5353
exclude_patterns = []
5454
for d in os.listdir(root_source_dir):
5555
if d not in ('share', doc_name, doc_name + '.rst'):
5656
exclude_patterns.append(d)
57-
print 'ignoring %s' % d
57+
print('ignoring %s' % d)
5858

5959
extensions = []
6060
templates_path = ['_templates']
@@ -69,7 +69,7 @@ def get_version():
6969
version = get_version()
7070
release = get_version()
7171

72-
pygments_style = 'sphinx'
72+
pygments_style = None
7373
html_theme = 'sphinxdoc'
7474
if os.path.isfile('adacore_transparent.png'):
7575
html_logo = 'adacore_transparent.png'

0 commit comments

Comments
 (0)