-
Notifications
You must be signed in to change notification settings - Fork 33
Expand file tree
/
Copy pathconf.py
More file actions
97 lines (76 loc) · 3.42 KB
/
conf.py
File metadata and controls
97 lines (76 loc) · 3.42 KB
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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
# SPDX-FileCopyrightText: Copyright 2025 Arm Limited and/or its affiliates
# 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-2025',
# Document title, MANDATORY
'title': 'PSA Certified\nCrypto Driver Interface',
'author': 'Arm Limited',
# Document copyright date, default to year of 'date'
'copyright_date': '2020-2025',
'copyright': 'Arm Limited and/or its affiliates',
# Arm document identifier, marked as open issue if not provided
'doc_id': '111106',
# The short X.Y version. MANDATORY
'version': '1.0',
# Arm document quality status, marked as open issue if not provided
'quality': 'ALP',
# Arm document issue number (within that version and quality status)
# Marked as open issue if not provided
'issue_no': 1,
# Identifies the sequence number of a release candidate of the same issue
# default to None
# 'release_candidate': 1,
# Draft status - use this to indicate the document is not ready for publication
#'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': '30/09/2025',
# Default header file for API definitions
# default to None, and can be set in documentation source
#'header': 'psa/crypto',
# 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',
# List of optional content that should be included in the build.
# Valid options are:
# 'rationale' : This enables output of ..rationale:: directives
# 'banner' : This enables output of the title page banner
# 'todo' : This enables output of ..todo:: directives
'include_content': ['banner','rationale'],
# Optional ordering of return error values
# This list is used to create a standard ordering of return value responses
# throughout the document, irrespective of their ordering in the source text
# Return values that are not in the ordering are sorted above any that are in
# the list and appear in source text order.
#'error_order': [],
# 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'))