forked from ARM-software/psa-api
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconf.py
81 lines (63 loc) · 2.72 KB
/
conf.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
# SPDX-FileCopyrightText: Copyright 2018-2020, 2022-2023 Arm Limited and/or its affiliates <[email protected]>
# SPDX-License-Identifier: CC-BY-SA-4.0 AND LicenseRef-Patent-license
# PSA Certified API document configuration
#
# This is used to generate all of the sphinx configuration data and determine
# the document file name etc.
doc_info = {
# Document template
'template': 'psa-api-2022',
# Document title, MANDATORY
'title': 'PSA Certified\nAttestation API',
'author': 'Arm Limited',
# Document copyright date, default to year of 'date'
'copyright_date': '2018-2020, 2022-2023',
'copyright': 'Arm Limited and/or its affiliates',
# Arm document identifier, marked as open issue if not provided
'doc_id': 'IHI 0085',
# The short X.Y version. MANDATORY
'version': '2.0',
# Arm document quality status, marked as open issue if not provided
'quality': 'REL',
# Arm document issue number (within that version and quality status)
# Marked as open issue if not provided
'issue_no': 0,
# Identifies the sequence number of a release candidate of the same issue
# default to None
'release_candidate': None,
'draft': True,
# Arm document confidentiality. Must be either Non-confidential or Confidential
# Marked as open issue if not provided
'confidentiality': 'Non-confidential',
# Id of the legal notice for this document
# Marked as open issue if not provided
'license': 'psa-certified-api-license',
# Document date, default to build date
#'date': '17/10/2022',
# psa_spec: default header file for API definitions
# default to None, and can be set in documentation source
'header': 'psa/initial_attestation',
# Doxygen annotation level of the generated header
# 0 : None (default)
# 1 : Primary API elements
# 2 : Sub-elements of API - parameters, fields, values
'header_doxygen': 2,
# Declare a watermark for the PDF output
#'watermark': 'DRAFT',
# Include the C Identifier index. Default to True
'identifier_index': False,
# Specify where to add page breaks in main/appendix
# 'none' : no page breaks
# 'appendix' : just before the appendices
# 'chapter' : before every chapter
# Default to 'appendix'
'page_break': 'chapter'
}
# absolute or relative path to the psa_spec material from this file
# atg_sphinx_spec_dir = '../atg-sphinx-spec'
# Set up and run the atg-sphinx-spec configuration
import os
atg_sphinx_spec_dir = os.environ.get('ATG_SPHINX_SPEC') or atg_sphinx_spec_dir
exec(compile(open(os.path.join(atg_sphinx_spec_dir,'atg-sphinx-conf.py'),
encoding='utf-8').read(),
'atg-sphinx-conf.py', 'exec'))