-
Notifications
You must be signed in to change notification settings - Fork 0
/
conf.py
165 lines (132 loc) · 5.87 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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
import os
import petljadoc
from runestone import runestone_static_dirs, runestone_extensions
#petljadoc.runestone_ext.add_module('blockly')
#petljadoc.runestone_ext.add_module('blockpylib')
#petljadoc.runestone_ext.add_module('simanim')
#petljadoc.runestone_ext.add_module('pycode')
#petljadoc.runestone_ext.add_module('p5js')
#petljadoc.runestone_ext.add_module('dbDirective')
#petljadoc.runestone_ext.add_module('regexcheck')
#petljadoc.runestone_ext.add_module('nimgame')
extensions = ['sphinx.ext.mathjax'] + runestone_extensions() + petljadoc.runestone_ext.extensions()
# Add any paths that contain templates here, relative to this directory.
templates_path = ['_templates']
# The suffix of source filenames.
source_suffix = '.rst'
# The root toctree document.
root_doc = 'index'
# General information about the project.
project = 'Petlja - os4_dig_svet'
#pylint: disable=redefined-builtin
copyright = '2023 me'
# The version info for the project you're documenting, acts as replacement for
# |version| and |release|, also used in various other places throughout the
# built documents.
#
# The short X.Y version.
version = '0.0.1'
# The full version, including alpha/beta/rc tags.
release = '0.0'
# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
language = 'sr_RS'
locale_dirs = ['locals']
# The name of the Pygments (syntax highlighting) style to use.
pygments_style = 'sphinx'
# `keep_warnings <http://www.sphinx-doc.org/en/stable/config.html#confval-keep_warnings>`_:
# If true, keep warnings as “system message” paragraphs in the built documents.
# Regardless of this setting, warnings are always written to the standard error
# stream when sphinx-build is run.
keep_warnings = True
# `rst_prolog <http://www.sphinx-doc.org/en/stable/config.html#confval-rst_prolog>`_:
# A string of reStructuredText that will be included at the beginning of every
# source file that is read.
rst_prolog = (
# For fill-in-the-blank questions, provide a convenient means to indicate a blank.
"""
.. |blank| replace:: :blank:`x`
"""
)
# -- Options for HTML output ---------------------------------------------------
html_context = {'course_id': 'os4_dig',
'login_required':'false',
'appname': "runestone",
'loglevel': int("0"),
'course_url': "http://127.0.0.1:8000",
'use_services': 'false',
'python3': 'true',
'dburl': os.environ['DBURL'] if 'DBURL' in os.environ else '',
'default_ac_lang': 'python',
'basecourse': 'os4_dig',
'jobe_server': 'http://jobe2.cosc.canterbury.ac.nz',
'proxy_uri_runs': '/jobe/index.php/restapi/runs/',
'proxy_uri_files': '/jobe/index.php/restapi/files/',
'downloads_enabled': 'false',
'enable_chatcodes': 'false',
'course':petljadoc.cli.read_course(),
'page_settings':petljadoc.cli.read_page_settings(),
}
# The theme to use for HTML and HTML Help pages. See the documentation for
# a list of builtin themes.
html_theme = 'petljadoc_course_theme'
# Theme options are theme-specific and customize the look and feel of a theme
# further. For a list of options available for each theme, see the
# documentation.
html_theme_options = {
# Navigation bar title. (Default: ``project`` value)
'navbar_title': "Petlja - os4_dig_svet",
# Tab name for entire site. (Default: "Site")
'navbar_site_name': "Chapters",
# Global TOC depth for "site" navbar tab. (Default: 1)
# Switching to -1 shows all levels.
'globaltoc_depth': 1,
# Include hidden TOCs in Site navbar?
#
# Note: If this is "false", you cannot have mixed ``:hidden:`` and
# non-hidden ``toctree`` directives in the same page, or else the build
# will break.
#
# Values: "true" (default) or "false"
'globaltoc_includehidden': "false",
# HTML navbar class (Default: "navbar") to attach to <div> element.
# For black navbar, do "navbar navbar-inverse"
'navbar_class': "navbar",
# Fix navigation bar to top of page?
# Values: "true" (default) or "false"
'navbar_fixed_top': "false",
# Location of link to source.
# Options are "nav" (default), "footer" or anything else to exclude.
'source_link_position': "nav",
# Bootswatch (http://bootswatch.com/) theme.
#
# Options are nothing with "" (default) or the name of a valid theme
# such as "amelia" or "cosmo".
#
# Note that this is served off CDN, so won't be available offline.
#'bootswatch_theme': "slate",
}
# Add any paths that contain custom themes here, relative to this directory.
html_theme_path = ["_templates/plugin_layouts"]
# The name for this set of Sphinx documents. If None, it defaults to
# "<project> v<release> documentation".
html_title = 'Petlja - os4_dig_svet'
# A shorter title for the navigation bar. Default is the same as html_title.
html_short_title ='Petlja - os4_dig_svet'
# Add any paths that contain custom static files (such as style sheets) here,
# relative to this directory. They are copied after the builtin static files,
# so a file named "default.css" will overwrite the builtin "default.css".
html_static_path = ['_static'] + runestone_static_dirs() + petljadoc.runestone_ext.static_dirs()
# Custom sidebar templates, maps document names to template names.
html_sidebars = {
'**' : ['globaltoc.html']
}
# If true, links to the reST sources are added to the pages.
html_show_sourcelink = False
# If true, "Created using Sphinx" is shown in the HTML footer. Default is True.
html_show_sphinx = False
# If true, "(C) Copyright ..." is shown in the HTML footer. Default is True.
html_show_copyright = False
# If false, no index is generated.
html_use_index = False
petljadoc.runestone_ext.config_values_for_components(globals())