aimodelshare 0.3.7__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- aimodelshare/README.md +26 -0
- aimodelshare/__init__.py +100 -0
- aimodelshare/aimsonnx.py +2381 -0
- aimodelshare/api.py +836 -0
- aimodelshare/auth.py +163 -0
- aimodelshare/aws.py +511 -0
- aimodelshare/aws_client.py +173 -0
- aimodelshare/base_image.py +154 -0
- aimodelshare/bucketpolicy.py +106 -0
- aimodelshare/color_mappings/color_mapping_keras.csv +121 -0
- aimodelshare/color_mappings/color_mapping_pytorch.csv +117 -0
- aimodelshare/containerisation.py +244 -0
- aimodelshare/containerization.py +712 -0
- aimodelshare/containerization_templates/Dockerfile.txt +8 -0
- aimodelshare/containerization_templates/Dockerfile_PySpark.txt +23 -0
- aimodelshare/containerization_templates/buildspec.txt +14 -0
- aimodelshare/containerization_templates/lambda_function.txt +40 -0
- aimodelshare/custom_approach/__init__.py +1 -0
- aimodelshare/custom_approach/lambda_function.py +17 -0
- aimodelshare/custom_eval_metrics.py +103 -0
- aimodelshare/data_sharing/__init__.py +0 -0
- aimodelshare/data_sharing/data_sharing_templates/Dockerfile.txt +3 -0
- aimodelshare/data_sharing/data_sharing_templates/__init__.py +1 -0
- aimodelshare/data_sharing/data_sharing_templates/buildspec.txt +15 -0
- aimodelshare/data_sharing/data_sharing_templates/codebuild_policies.txt +129 -0
- aimodelshare/data_sharing/data_sharing_templates/codebuild_trust_relationship.txt +12 -0
- aimodelshare/data_sharing/download_data.py +620 -0
- aimodelshare/data_sharing/share_data.py +373 -0
- aimodelshare/data_sharing/utils.py +8 -0
- aimodelshare/deploy_custom_lambda.py +246 -0
- aimodelshare/documentation/Makefile +20 -0
- aimodelshare/documentation/karma_sphinx_theme/__init__.py +28 -0
- aimodelshare/documentation/karma_sphinx_theme/_version.py +2 -0
- aimodelshare/documentation/karma_sphinx_theme/breadcrumbs.html +70 -0
- aimodelshare/documentation/karma_sphinx_theme/layout.html +172 -0
- aimodelshare/documentation/karma_sphinx_theme/search.html +50 -0
- aimodelshare/documentation/karma_sphinx_theme/searchbox.html +14 -0
- aimodelshare/documentation/karma_sphinx_theme/static/css/custom.css +2 -0
- aimodelshare/documentation/karma_sphinx_theme/static/css/custom.css.map +1 -0
- aimodelshare/documentation/karma_sphinx_theme/static/css/theme.css +2751 -0
- aimodelshare/documentation/karma_sphinx_theme/static/css/theme.css.map +1 -0
- aimodelshare/documentation/karma_sphinx_theme/static/css/theme.min.css +2 -0
- aimodelshare/documentation/karma_sphinx_theme/static/css/theme.min.css.map +1 -0
- aimodelshare/documentation/karma_sphinx_theme/static/font/fontello.eot +0 -0
- aimodelshare/documentation/karma_sphinx_theme/static/font/fontello.svg +32 -0
- aimodelshare/documentation/karma_sphinx_theme/static/font/fontello.ttf +0 -0
- aimodelshare/documentation/karma_sphinx_theme/static/font/fontello.woff +0 -0
- aimodelshare/documentation/karma_sphinx_theme/static/font/fontello.woff2 +0 -0
- aimodelshare/documentation/karma_sphinx_theme/static/js/theme.js +68 -0
- aimodelshare/documentation/karma_sphinx_theme/theme.conf +9 -0
- aimodelshare/documentation/make.bat +35 -0
- aimodelshare/documentation/requirements.txt +2 -0
- aimodelshare/documentation/source/about.rst +18 -0
- aimodelshare/documentation/source/advanced_features.rst +137 -0
- aimodelshare/documentation/source/competition.rst +218 -0
- aimodelshare/documentation/source/conf.py +58 -0
- aimodelshare/documentation/source/create_credentials.rst +86 -0
- aimodelshare/documentation/source/example_notebooks.rst +132 -0
- aimodelshare/documentation/source/functions.rst +151 -0
- aimodelshare/documentation/source/gettingstarted.rst +390 -0
- aimodelshare/documentation/source/images/creds1.png +0 -0
- aimodelshare/documentation/source/images/creds2.png +0 -0
- aimodelshare/documentation/source/images/creds3.png +0 -0
- aimodelshare/documentation/source/images/creds4.png +0 -0
- aimodelshare/documentation/source/images/creds5.png +0 -0
- aimodelshare/documentation/source/images/creds_file_example.png +0 -0
- aimodelshare/documentation/source/images/predict_tab.png +0 -0
- aimodelshare/documentation/source/index.rst +110 -0
- aimodelshare/documentation/source/modelplayground.rst +132 -0
- aimodelshare/exceptions.py +11 -0
- aimodelshare/generatemodelapi.py +1270 -0
- aimodelshare/iam/codebuild_policy.txt +129 -0
- aimodelshare/iam/codebuild_trust_relationship.txt +12 -0
- aimodelshare/iam/lambda_policy.txt +15 -0
- aimodelshare/iam/lambda_trust_relationship.txt +12 -0
- aimodelshare/json_templates/__init__.py +1 -0
- aimodelshare/json_templates/api_json.txt +155 -0
- aimodelshare/json_templates/auth/policy.txt +1 -0
- aimodelshare/json_templates/auth/role.txt +1 -0
- aimodelshare/json_templates/eval/policy.txt +1 -0
- aimodelshare/json_templates/eval/role.txt +1 -0
- aimodelshare/json_templates/function/policy.txt +1 -0
- aimodelshare/json_templates/function/role.txt +1 -0
- aimodelshare/json_templates/integration_response.txt +5 -0
- aimodelshare/json_templates/lambda_policy_1.txt +15 -0
- aimodelshare/json_templates/lambda_policy_2.txt +8 -0
- aimodelshare/json_templates/lambda_role_1.txt +12 -0
- aimodelshare/json_templates/lambda_role_2.txt +16 -0
- aimodelshare/leaderboard.py +174 -0
- aimodelshare/main/1.txt +132 -0
- aimodelshare/main/1B.txt +112 -0
- aimodelshare/main/2.txt +153 -0
- aimodelshare/main/3.txt +134 -0
- aimodelshare/main/4.txt +128 -0
- aimodelshare/main/5.txt +109 -0
- aimodelshare/main/6.txt +105 -0
- aimodelshare/main/7.txt +144 -0
- aimodelshare/main/8.txt +142 -0
- aimodelshare/main/__init__.py +1 -0
- aimodelshare/main/authorization.txt +275 -0
- aimodelshare/main/eval_classification.txt +79 -0
- aimodelshare/main/eval_lambda.txt +1709 -0
- aimodelshare/main/eval_regression.txt +80 -0
- aimodelshare/main/lambda_function.txt +8 -0
- aimodelshare/main/nst.txt +149 -0
- aimodelshare/model.py +1543 -0
- aimodelshare/modeluser.py +215 -0
- aimodelshare/moral_compass/README.md +408 -0
- aimodelshare/moral_compass/__init__.py +65 -0
- aimodelshare/moral_compass/_version.py +3 -0
- aimodelshare/moral_compass/api_client.py +601 -0
- aimodelshare/moral_compass/apps/__init__.py +69 -0
- aimodelshare/moral_compass/apps/ai_consequences.py +540 -0
- aimodelshare/moral_compass/apps/bias_detective.py +714 -0
- aimodelshare/moral_compass/apps/ethical_revelation.py +898 -0
- aimodelshare/moral_compass/apps/fairness_fixer.py +889 -0
- aimodelshare/moral_compass/apps/judge.py +888 -0
- aimodelshare/moral_compass/apps/justice_equity_upgrade.py +853 -0
- aimodelshare/moral_compass/apps/mc_integration_helpers.py +820 -0
- aimodelshare/moral_compass/apps/model_building_game.py +1104 -0
- aimodelshare/moral_compass/apps/model_building_game_beginner.py +687 -0
- aimodelshare/moral_compass/apps/moral_compass_challenge.py +858 -0
- aimodelshare/moral_compass/apps/session_auth.py +254 -0
- aimodelshare/moral_compass/apps/shared_activity_styles.css +349 -0
- aimodelshare/moral_compass/apps/tutorial.py +481 -0
- aimodelshare/moral_compass/apps/what_is_ai.py +853 -0
- aimodelshare/moral_compass/challenge.py +365 -0
- aimodelshare/moral_compass/config.py +187 -0
- aimodelshare/placeholders/model.onnx +0 -0
- aimodelshare/placeholders/preprocessor.zip +0 -0
- aimodelshare/playground.py +1968 -0
- aimodelshare/postprocessormodules.py +157 -0
- aimodelshare/preprocessormodules.py +373 -0
- aimodelshare/pyspark/1.txt +195 -0
- aimodelshare/pyspark/1B.txt +181 -0
- aimodelshare/pyspark/2.txt +220 -0
- aimodelshare/pyspark/3.txt +204 -0
- aimodelshare/pyspark/4.txt +187 -0
- aimodelshare/pyspark/5.txt +178 -0
- aimodelshare/pyspark/6.txt +174 -0
- aimodelshare/pyspark/7.txt +211 -0
- aimodelshare/pyspark/8.txt +206 -0
- aimodelshare/pyspark/__init__.py +1 -0
- aimodelshare/pyspark/authorization.txt +258 -0
- aimodelshare/pyspark/eval_classification.txt +79 -0
- aimodelshare/pyspark/eval_lambda.txt +1441 -0
- aimodelshare/pyspark/eval_regression.txt +80 -0
- aimodelshare/pyspark/lambda_function.txt +8 -0
- aimodelshare/pyspark/nst.txt +213 -0
- aimodelshare/python/my_preprocessor.py +58 -0
- aimodelshare/readme.md +26 -0
- aimodelshare/reproducibility.py +181 -0
- aimodelshare/sam/Dockerfile.txt +8 -0
- aimodelshare/sam/Dockerfile_PySpark.txt +24 -0
- aimodelshare/sam/__init__.py +1 -0
- aimodelshare/sam/buildspec.txt +11 -0
- aimodelshare/sam/codebuild_policies.txt +129 -0
- aimodelshare/sam/codebuild_trust_relationship.txt +12 -0
- aimodelshare/sam/codepipeline_policies.txt +173 -0
- aimodelshare/sam/codepipeline_trust_relationship.txt +12 -0
- aimodelshare/sam/spark-class.txt +2 -0
- aimodelshare/sam/template.txt +54 -0
- aimodelshare/tools.py +103 -0
- aimodelshare/utils/__init__.py +78 -0
- aimodelshare/utils/optional_deps.py +38 -0
- aimodelshare/utils.py +57 -0
- aimodelshare-0.3.7.dist-info/METADATA +298 -0
- aimodelshare-0.3.7.dist-info/RECORD +171 -0
- aimodelshare-0.3.7.dist-info/WHEEL +5 -0
- aimodelshare-0.3.7.dist-info/licenses/LICENSE +5 -0
- aimodelshare-0.3.7.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
{# Support for Sphinx 1.3+ page_source_suffix, but don't break old builds. #}
|
|
2
|
+
|
|
3
|
+
{% if page_source_suffix %}
|
|
4
|
+
{% set suffix = page_source_suffix %}
|
|
5
|
+
{% else %}
|
|
6
|
+
{% set suffix = source_suffix %}
|
|
7
|
+
{% endif %}
|
|
8
|
+
|
|
9
|
+
{% if meta is defined and meta is not none %}
|
|
10
|
+
{% set check_meta = True %}
|
|
11
|
+
{% else %}
|
|
12
|
+
{% set check_meta = False %}
|
|
13
|
+
{% endif %}
|
|
14
|
+
|
|
15
|
+
{% if check_meta and 'github_url' in meta %}
|
|
16
|
+
{% set display_github = True %}
|
|
17
|
+
{% endif %}
|
|
18
|
+
|
|
19
|
+
{% if check_meta and 'bitbucket_url' in meta %}
|
|
20
|
+
{% set display_bitbucket = True %}
|
|
21
|
+
{% endif %}
|
|
22
|
+
|
|
23
|
+
{% if check_meta and 'gitlab_url' in meta %}
|
|
24
|
+
{% set display_gitlab = True %}
|
|
25
|
+
{% endif %}
|
|
26
|
+
|
|
27
|
+
<div role="navigation" aria-label="breadcrumbs navigation">
|
|
28
|
+
|
|
29
|
+
<ul class="breadcrumbs">
|
|
30
|
+
{% block breadcrumbs %}
|
|
31
|
+
<li><a href="{{ pathto(master_doc) }}">{{ _('Docs') }}</a></li>
|
|
32
|
+
{% for doc in parents %}
|
|
33
|
+
<li><a href="{{ doc.link|e }}">{{ doc.title }}</a></li>
|
|
34
|
+
{% endfor %}
|
|
35
|
+
<li>{{ title }}</li>
|
|
36
|
+
{% endblock %}
|
|
37
|
+
{% block breadcrumbs_aside %}
|
|
38
|
+
<li class="breadcrumbs-aside">
|
|
39
|
+
{% if hasdoc(pagename) %}
|
|
40
|
+
{% if display_github %}
|
|
41
|
+
{% if check_meta and 'github_url' in meta %}
|
|
42
|
+
<!-- User defined GitHub URL -->
|
|
43
|
+
<a href="{{ meta['github_url'] }}"><i class="icon-github-circled"></i> {{ _('Edit on GitHub') }}</a>
|
|
44
|
+
{% else %}
|
|
45
|
+
<a href="https://{{ github_host|default("github.com") }}/{{ github_user }}/{{ github_repo }}/blob/{{ github_version }}{{ conf_py_path }}{{ pagename }}{{ suffix }}"><i class="icon-github-circled"></i> {{ _('Edit on GitHub') }}</a>
|
|
46
|
+
{% endif %}
|
|
47
|
+
{% elif display_bitbucket %}
|
|
48
|
+
{% if check_meta and 'bitbucket_url' in meta %}
|
|
49
|
+
<!-- User defined Bitbucket URL -->
|
|
50
|
+
<a href="{{ meta['bitbucket_url'] }}"><i class="icon-bitbucket"></i> {{ _('Edit on Bitbucket') }}</a>
|
|
51
|
+
{% else %}
|
|
52
|
+
<a href="https://bitbucket.org/{{ bitbucket_user }}/{{ bitbucket_repo }}/src/{{ bitbucket_version}}{{ conf_py_path }}{{ pagename }}{{ suffix }}"><i class="icon-bitbucket"></i> {{ _('Edit on Bitbucket') }}</a>
|
|
53
|
+
{% endif %}
|
|
54
|
+
{% elif display_gitlab %}
|
|
55
|
+
{% if check_meta and 'gitlab_url' in meta %}
|
|
56
|
+
<!-- User defined GitLab URL -->
|
|
57
|
+
<a href="{{ meta['gitlab_url'] }}"><i class="icon-gitlab"></i> {{ _('Edit on GitLab') }}</a>
|
|
58
|
+
{% else %}
|
|
59
|
+
<a href="https://{{ gitlab_host|default("gitlab.com") }}/{{ gitlab_user }}/{{ gitlab_repo }}/blob/{{ gitlab_version }}{{ conf_py_path }}{{ pagename }}{{ suffix }}"><i class="icon-gitlab"></i> {{ _('Edit on GitLab') }}</a>
|
|
60
|
+
{% endif %}
|
|
61
|
+
{% elif show_source and source_url_prefix %}
|
|
62
|
+
<a href="{{ source_url_prefix }}{{ pagename }}{{ suffix }}">{{ _('View page source') }}</a>
|
|
63
|
+
{% elif show_source and has_source and sourcename %}
|
|
64
|
+
<a href="{{ pathto('_sources/' + sourcename, true)|e }}" rel="nofollow"> {{ _('View page source') }}</a>
|
|
65
|
+
{% endif %}
|
|
66
|
+
{% endif %}
|
|
67
|
+
</li>
|
|
68
|
+
{% endblock %}
|
|
69
|
+
</ul>
|
|
70
|
+
</div>
|
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
{# TEMPLATE VAR SETTINGS #}
|
|
2
|
+
{%- set url_root = pathto('', 1) %}
|
|
3
|
+
{%- if url_root == '#' %}{% set url_root = '' %}{% endif %}
|
|
4
|
+
{%- if not embedded and docstitle %}
|
|
5
|
+
{%- set titlesuffix = " — "|safe + docstitle|e %}
|
|
6
|
+
{%- else %}
|
|
7
|
+
{%- set titlesuffix = "" %}
|
|
8
|
+
{%- endif %}
|
|
9
|
+
{%- set lang_attr = 'en' if language == None else (language | replace('_', '-')) %}
|
|
10
|
+
|
|
11
|
+
<!DOCTYPE html>
|
|
12
|
+
<head>
|
|
13
|
+
<meta charset="utf-8">
|
|
14
|
+
{{ metatags }}
|
|
15
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
16
|
+
{% block htmltitle %}
|
|
17
|
+
<title>{{ title|striptags|e }}{{ titlesuffix }}</title>
|
|
18
|
+
{% endblock %}
|
|
19
|
+
|
|
20
|
+
{# FAVICON #}
|
|
21
|
+
{% if favicon %}
|
|
22
|
+
<link rel="shortcut icon" href="{{ pathto('_static/' + favicon, 1) }}"/>
|
|
23
|
+
{% endif %}
|
|
24
|
+
{# CANONICAL URL #}
|
|
25
|
+
{% if theme_canonical_url %}
|
|
26
|
+
<link rel="canonical" href="{{ theme_canonical_url }}{{ pagename }}.html"/>
|
|
27
|
+
{% endif %}
|
|
28
|
+
|
|
29
|
+
{# CSS #}
|
|
30
|
+
|
|
31
|
+
{# OPENSEARCH #}
|
|
32
|
+
{% if not embedded %}
|
|
33
|
+
{% if use_opensearch %}
|
|
34
|
+
<link rel="search" type="application/opensearchdescription+xml"
|
|
35
|
+
title="{% trans docstitle=docstitle|e %}Search within {{ docstitle }}{% endtrans %}"
|
|
36
|
+
href="{{ pathto('_static/opensearch.xml', 1) }}"/>
|
|
37
|
+
{% endif %}
|
|
38
|
+
|
|
39
|
+
{% endif %}
|
|
40
|
+
|
|
41
|
+
<link rel="stylesheet" href="{{ pathto('_static/' + style, 1) }}" type="text/css" />
|
|
42
|
+
<link rel="stylesheet" href="{{ pathto('_static/css/custom.css', 1) }}" type="text/css" />
|
|
43
|
+
<link rel="stylesheet" href="{{ pathto('_static/pygments.css', 1) }}" type="text/css" />
|
|
44
|
+
{%- for css in css_files %}
|
|
45
|
+
{%- if css|attr("rel") %}
|
|
46
|
+
<link rel="{{ css.rel }}" href="{{ pathto(css.filename, 1) }}" type="text/css"{% if css.title is not none %} title="{{ css.title }}"{% endif %} />
|
|
47
|
+
{%- else %}
|
|
48
|
+
<link rel="stylesheet" href="{{ pathto(css, 1) }}" type="text/css" />
|
|
49
|
+
{%- endif %}
|
|
50
|
+
{%- endfor %}
|
|
51
|
+
{%- for cssfile in extra_css_files %}
|
|
52
|
+
<link rel="stylesheet" href="{{ pathto(cssfile, 1) }}" type="text/css" />
|
|
53
|
+
{%- endfor %}
|
|
54
|
+
|
|
55
|
+
{%- block linktags %}
|
|
56
|
+
{%- if hasdoc('about') %}
|
|
57
|
+
<link rel="author" title="{{ _('About these documents') }}" href="{{ pathto('about') }}" />
|
|
58
|
+
{%- endif %}
|
|
59
|
+
{%- if hasdoc('genindex') %}
|
|
60
|
+
<link rel="index" title="{{ _('Index') }}" href="{{ pathto('genindex') }}" />
|
|
61
|
+
{%- endif %}
|
|
62
|
+
{%- if hasdoc('search') %}
|
|
63
|
+
<link rel="search" title="{{ _('Search') }}" href="{{ pathto('search') }}" />
|
|
64
|
+
{%- endif %}
|
|
65
|
+
{%- if hasdoc('copyright') %}
|
|
66
|
+
<link rel="copyright" title="{{ _('Copyright') }}" href="{{ pathto('copyright') }}" />
|
|
67
|
+
{%- endif %}
|
|
68
|
+
{%- if next %}
|
|
69
|
+
<link rel="next" title="{{ next.title|striptags|e }}" href="{{ next.link|e }}" />
|
|
70
|
+
{%- endif %}
|
|
71
|
+
{%- if prev %}
|
|
72
|
+
<link rel="prev" title="{{ prev.title|striptags|e }}" href="{{ prev.link|e }}" />
|
|
73
|
+
{%- endif %}
|
|
74
|
+
{%- endblock %}
|
|
75
|
+
{%- block extrahead %} {% endblock %}
|
|
76
|
+
|
|
77
|
+
</head>
|
|
78
|
+
|
|
79
|
+
<body>
|
|
80
|
+
|
|
81
|
+
{%- block header %}
|
|
82
|
+
<header>
|
|
83
|
+
<div class="container">
|
|
84
|
+
<a class="site-nav-toggle hidden-lg-up"><i class="icon-menu"></i></a>
|
|
85
|
+
<a class="site-title" href="{{ pathto('index') }}">
|
|
86
|
+
{{ project }}
|
|
87
|
+
</a>
|
|
88
|
+
</div>
|
|
89
|
+
</header>
|
|
90
|
+
{% endblock %}
|
|
91
|
+
|
|
92
|
+
<div class="breadcrumbs-outer hidden-xs-down">
|
|
93
|
+
<div class="container">
|
|
94
|
+
{% include "breadcrumbs.html" %}
|
|
95
|
+
</div>
|
|
96
|
+
</div>
|
|
97
|
+
|
|
98
|
+
{%- block content %}
|
|
99
|
+
<div class="main-outer">
|
|
100
|
+
<div class="container">
|
|
101
|
+
<div class="row">
|
|
102
|
+
<div class="col-12 col-lg-3 site-nav">
|
|
103
|
+
{% include "searchbox.html" %}
|
|
104
|
+
<div class="site-nav-tree">
|
|
105
|
+
{% block menu %}
|
|
106
|
+
{% set global_toc = toctree(
|
|
107
|
+
maxdepth=theme_navigation_depth|int,
|
|
108
|
+
collapse=False,
|
|
109
|
+
includehidden=theme_includehidden|tobool,
|
|
110
|
+
titles_only=theme_titles_only|tobool
|
|
111
|
+
) %}
|
|
112
|
+
{% if global_toc %}
|
|
113
|
+
{{ global_toc }}
|
|
114
|
+
{% else %}
|
|
115
|
+
<div class="local-toc">{{ toc }}</div>
|
|
116
|
+
{% endif %}
|
|
117
|
+
{% endblock %}
|
|
118
|
+
</div>
|
|
119
|
+
</div>
|
|
120
|
+
<div class="col-12 col-lg-9">
|
|
121
|
+
<div class="document">
|
|
122
|
+
{% block document %}
|
|
123
|
+
{% block body %} {% endblock %}
|
|
124
|
+
{% endblock %}
|
|
125
|
+
</div>
|
|
126
|
+
</div>
|
|
127
|
+
</div>
|
|
128
|
+
</div>
|
|
129
|
+
</div>
|
|
130
|
+
{% endblock %}
|
|
131
|
+
|
|
132
|
+
{% if not embedded %}
|
|
133
|
+
|
|
134
|
+
<script type="text/javascript">
|
|
135
|
+
var DOCUMENTATION_OPTIONS = {
|
|
136
|
+
URL_ROOT:'{{ url_root }}',
|
|
137
|
+
VERSION:'{{ release|e }}',
|
|
138
|
+
LANGUAGE:'{{ language }}',
|
|
139
|
+
COLLAPSE_INDEX:false,
|
|
140
|
+
FILE_SUFFIX:'{{ '' if no_search_suffix else file_suffix }}',
|
|
141
|
+
HAS_SOURCE: {{ has_source|lower }},
|
|
142
|
+
SOURCELINK_SUFFIX: '{{ sourcelink_suffix }}'
|
|
143
|
+
};
|
|
144
|
+
</script>
|
|
145
|
+
{%- for scriptfile in script_files %}
|
|
146
|
+
<script type="text/javascript" src="{{ pathto(scriptfile, 1) }}"></script>
|
|
147
|
+
{%- endfor %}
|
|
148
|
+
<script type="text/javascript" src="{{ pathto('_static/js/theme.js', 1) }}"></script>
|
|
149
|
+
{% endif %}
|
|
150
|
+
|
|
151
|
+
{%- block footer %}
|
|
152
|
+
<div class="footer" role="contentinfo">
|
|
153
|
+
<div class="container">
|
|
154
|
+
{%- if show_copyright %}
|
|
155
|
+
{%- if hasdoc('copyright') %}
|
|
156
|
+
{% trans path=pathto('copyright'), copyright=copyright|e %}© <a href="{{ path }}">Copyright</a> {{ copyright }}.{% endtrans %}
|
|
157
|
+
{%- else %}
|
|
158
|
+
{% trans copyright=copyright|e %}© Copyright {{ copyright }}.{% endtrans %}
|
|
159
|
+
{%- endif %}
|
|
160
|
+
{%- endif %}
|
|
161
|
+
{%- if last_updated %}
|
|
162
|
+
{% trans last_updated=last_updated|e %}Last updated on {{ last_updated }}.{% endtrans %}
|
|
163
|
+
{%- endif %}
|
|
164
|
+
{%- if show_sphinx %}
|
|
165
|
+
{% trans sphinx_version=sphinx_version|e %}Created using <a href="http://sphinx-doc.org/">Sphinx</a> {{ sphinx_version }}.{% endtrans %}
|
|
166
|
+
{%- endif %}
|
|
167
|
+
</div>
|
|
168
|
+
</div>
|
|
169
|
+
{%- endblock %}
|
|
170
|
+
|
|
171
|
+
</body>
|
|
172
|
+
</html>
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
{#
|
|
2
|
+
basic/search.html
|
|
3
|
+
~~~~~~~~~~~~~~~~~
|
|
4
|
+
|
|
5
|
+
Template for the search page.
|
|
6
|
+
|
|
7
|
+
:copyright: Copyright 2007-2013 by the Sphinx team, see AUTHORS.
|
|
8
|
+
:license: BSD, see LICENSE for details.
|
|
9
|
+
#}
|
|
10
|
+
{%- extends "layout.html" %}
|
|
11
|
+
{% set title = _('Search') %}
|
|
12
|
+
{% set script_files = script_files + ['_static/searchtools.js'] %}
|
|
13
|
+
{% block footer %}
|
|
14
|
+
<script type="text/javascript">
|
|
15
|
+
jQuery(function() { Search.loadIndex("{{ pathto('searchindex.js', 1) }}"); });
|
|
16
|
+
</script>
|
|
17
|
+
{# this is used when loading the search index using $.ajax fails,
|
|
18
|
+
such as on Chrome for documents on localhost #}
|
|
19
|
+
<script type="text/javascript" id="searchindexloader"></script>
|
|
20
|
+
{{ super() }}
|
|
21
|
+
{% endblock %}
|
|
22
|
+
{% block body %}
|
|
23
|
+
<noscript>
|
|
24
|
+
<div id="fallback" class="admonition warning">
|
|
25
|
+
<p class="last">
|
|
26
|
+
{% trans %}Please activate JavaScript to enable the search
|
|
27
|
+
functionality.{% endtrans %}
|
|
28
|
+
</p>
|
|
29
|
+
</div>
|
|
30
|
+
</noscript>
|
|
31
|
+
|
|
32
|
+
{% if search_performed %}
|
|
33
|
+
<h2>{{ _('Search Results') }}</h2>
|
|
34
|
+
{% if not search_results %}
|
|
35
|
+
<p>{{ _('Your search did not match any documents. Please make sure that all words are spelled correctly and that you\'ve selected enough categories.') }}</p>
|
|
36
|
+
{% endif %}
|
|
37
|
+
{% endif %}
|
|
38
|
+
<div id="search-results">
|
|
39
|
+
{% if search_results %}
|
|
40
|
+
<ul>
|
|
41
|
+
{% for href, caption, context in search_results %}
|
|
42
|
+
<li>
|
|
43
|
+
<a href="{{ pathto(item.href) }}">{{ caption }}</a>
|
|
44
|
+
<p class="context">{{ context|e }}</p>
|
|
45
|
+
</li>
|
|
46
|
+
{% endfor %}
|
|
47
|
+
</ul>
|
|
48
|
+
{% endif %}
|
|
49
|
+
</div>
|
|
50
|
+
{% endblock %}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
{%- if builder != 'singlehtml' %}
|
|
2
|
+
<div role="search">
|
|
3
|
+
<form class="search" action="{{ pathto('search') }}" method="get">
|
|
4
|
+
<div class="icon-input">
|
|
5
|
+
<input type="text" name="q" placeholder="Search" />
|
|
6
|
+
<span class="icon-search"></span>
|
|
7
|
+
</div>
|
|
8
|
+
<input type="submit" value="{{ _('Go') }}" class="d-hidden" />
|
|
9
|
+
<input type="hidden" name="check_keywords" value="yes" />
|
|
10
|
+
<input type="hidden" name="area" value="default" />
|
|
11
|
+
</form>
|
|
12
|
+
</div>
|
|
13
|
+
|
|
14
|
+
{%- endif %}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"custom.css"}
|