Skip to content

Commit 5c7ff8b

Browse files
author
committed
Deployed 7592e7b with MkDocs version: 1.6.1
0 parents  commit 5c7ff8b

File tree

179 files changed

+89839
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

179 files changed

+89839
-0
lines changed

Diff for: .nojekyll

Whitespace-only changes.

Diff for: 404.html

+615
Large diffs are not rendered by default.

Diff for: _generator/api/conf.py

+248
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,248 @@
1+
# -*- coding: utf-8 -*-
2+
#
3+
# Configuration file for the Sphinx documentation builder.
4+
#
5+
# This file does only contain a selection of the most common options. For a
6+
# full list see the documentation:
7+
# http://www.sphinx-doc.org/en/master/config
8+
9+
# -- Path setup --------------------------------------------------------------
10+
11+
# If extensions (or modules to document with autodoc) are in another directory,
12+
# add these directories to sys.path here. If the directory is relative to the
13+
# documentation root, use os.path.abspath to make it absolute, like shown here.
14+
#
15+
16+
import os
17+
import sys
18+
import re
19+
20+
sys.path.insert(0, os.path.abspath('..'))
21+
sys.path.insert(0, os.path.abspath('_ext'))
22+
sys.path.insert(0, os.path.abspath('.'))
23+
24+
# -- Project information -----------------------------------------------------
25+
26+
project = u'Collective Mind (CM)'
27+
copyright = u'2022-2024 MLCommons'
28+
author = u'Grigori Fursin'
29+
30+
version=''
31+
release=version
32+
33+
edit_on_github_url='https://github.com'
34+
edit_on_github_project = 'mlcommons/ck/tree/master/docs/'
35+
36+
kernel_file=os.path.join('..', '..', '..', 'cm', 'cmind', '__init__.py')
37+
38+
with open(kernel_file, encoding="utf-8") as f:
39+
search = re.search(r'__version__ = ["\']([^"\']+)', f.read())
40+
41+
if not search:
42+
raise ValueError("We can't find the Collective Mind version in cmind/__init__.py")
43+
44+
version = search.group(1)
45+
46+
47+
# -- General configuration ---------------------------------------------------
48+
49+
# If your documentation needs a minimal Sphinx version, state it here.
50+
#
51+
# needs_sphinx = '1.0'
52+
53+
# Add any Sphinx extension module names here, as strings. They can be
54+
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
55+
# ones.
56+
extensions = [
57+
'sphinx.ext.autodoc',
58+
'sphinx.ext.autosummary',
59+
'sphinx.ext.doctest',
60+
'sphinx.ext.intersphinx',
61+
'sphinx.ext.todo',
62+
'sphinx.ext.coverage',
63+
'sphinx.ext.mathjax',
64+
'sphinx.ext.ifconfig',
65+
'sphinx.ext.viewcode',
66+
'sphinx.ext.githubpages',
67+
'recommonmark',
68+
'sphinx.ext.napoleon',
69+
'sphinx_markdown_tables'
70+
]
71+
72+
autosummary_generate = True
73+
74+
# Napoleon settings
75+
napoleon_google_docstring = True
76+
napoleon_numpy_docstring = False
77+
napoleon_include_init_with_doc = False
78+
napoleon_include_private_with_doc = False
79+
napoleon_include_special_with_doc = True
80+
napoleon_use_admonition_for_examples = True
81+
napoleon_use_admonition_for_notes = True
82+
napoleon_use_admonition_for_references = True
83+
napoleon_use_ivar = False
84+
napoleon_use_param = False
85+
napoleon_use_rtype = False
86+
87+
# Add any paths that contain templates here, relative to this directory.
88+
templates_path = ['_templates']
89+
90+
# The suffix(es) of source filenames.
91+
# You can specify multiple suffix as a list of string:
92+
#
93+
source_suffix = ['.rst', '.md', '.html']
94+
#source_suffix = '.rst'
95+
96+
# The master toctree document.
97+
master_doc = 'index'
98+
99+
# The language for content autogenerated by Sphinx. Refer to documentation
100+
# for a list of supported languages.
101+
#
102+
# This is also used if you do content translation via gettext catalogs.
103+
# Usually you set "language" from the command line for these cases.
104+
# language =
105+
106+
# List of patterns, relative to source directory, that match files and
107+
# directories to ignore when looking for source files.
108+
# This pattern also affects html_static_path and html_extra_path.
109+
exclude_patterns = [u'_build', 'Thumbs.db', '.DS_Store']
110+
111+
# The name of the Pygments (syntax highlighting) style to use.
112+
pygments_style = 'sphinx'
113+
114+
# -- Options for HTML output -------------------------------------------------
115+
116+
# The theme to use for HTML and HTML Help pages. See the documentation for
117+
# a list of builtin themes.
118+
#
119+
html_theme = 'sphinx_rtd_theme'
120+
121+
html_show_sourcelink = False
122+
123+
# Theme options are theme-specific and customize the look and feel of a theme
124+
# further. For a list of options available for each theme, see the
125+
# documentation.
126+
#
127+
html_theme_options = {
128+
'style_nav_header_background': 'black',
129+
'collapse_navigation': False,
130+
'style_external_links': True,
131+
'analytics_id': 'UA-5727962-14', # Provided by Google in your dashboard
132+
}
133+
134+
html_context = {
135+
"display_github": True,
136+
"github_user": "mlcommons",
137+
"github_repo": "ck",
138+
"github_version": "master/docs/",
139+
}
140+
141+
html_logo = 'static/logo.png'
142+
143+
# Add any paths that contain custom static files (such as style sheets) here,
144+
# relative to this directory. They are copied after the builtin static files,
145+
# so a file named "default.css" will overwrite the builtin "default.css".
146+
html_static_path = ['static']
147+
148+
# Custom sidebar templates, must be a dictionary that maps document names
149+
# to template names.
150+
#
151+
# The default sidebars (for documents that don't match any pattern) are
152+
# defined by theme itself. Builtin themes are using these templates by
153+
# default: ``['localtoc.html', 'relations.html', 'sourcelink.html',
154+
# 'searchbox.html']``.
155+
#
156+
# html_sidebars = {}
157+
158+
# -- Options for HTMLHelp output ---------------------------------------------
159+
160+
# Output file base name for HTML help builder.
161+
htmlhelp_basename = 'CMindDoc'
162+
163+
164+
# -- Options for LaTeX output ------------------------------------------------
165+
166+
latex_elements = {
167+
# The paper size ('letterpaper' or 'a4paper').
168+
#
169+
'papersize': 'a4paper',
170+
171+
# The font size ('10pt', '11pt' or '12pt').
172+
#
173+
'pointsize': '10pt',
174+
175+
# Additional stuff for the LaTeX preamble.
176+
#
177+
'preamble': '',
178+
179+
# Latex figure (float) alignment
180+
#
181+
# 'figure_align': 'htbp',
182+
}
183+
184+
# Grouping the document tree into LaTeX files. List of tuples
185+
# (source start file, target name, title,
186+
# author, documentclass [howto, manual, or own class]).
187+
latex_documents = [
188+
(master_doc, 'cmind.tex', u'Collective Mind',
189+
u'Grigori Fursin', 'manual'),
190+
]
191+
192+
193+
# -- Options for manual page output ------------------------------------------
194+
195+
# One entry per manual page. List of tuples
196+
# (source start file, name, description, authors, manual section).
197+
man_pages = [
198+
(master_doc, 'cmind.tex', u'Collective Mind',
199+
[author], 1)
200+
]
201+
202+
203+
# -- Options for Texinfo output ----------------------------------------------
204+
205+
# Grouping the document tree into Texinfo files. List of tuples
206+
# (source start file, target name, title, author,
207+
# dir menu entry, description, category)
208+
texinfo_documents = [
209+
(master_doc, 'cmind.tex', u'Collective Mind',
210+
author, 'CM', 'common-research-languge', 'reusability', 'automation', 'mlops2devops', 'mlops', 'devops'),
211+
]
212+
213+
214+
# -- Options for Epub output -------------------------------------------------
215+
216+
# Bibliographic Dublin Core info.
217+
epub_title = project
218+
219+
# The unique identifier of the text. This can be a ISBN number
220+
# or the project homepage.
221+
#
222+
# epub_identifier = ''
223+
224+
# A unique identification for the text.
225+
#
226+
# epub_uid = ''
227+
228+
# A list of files that should not be packed into the epub file.
229+
epub_exclude_files = ['search.html']
230+
231+
232+
# -- Extension configuration -------------------------------------------------
233+
234+
# -- Options for intersphinx extension ---------------------------------------
235+
236+
# Example configuration for intersphinx: refer to the Python standard library.
237+
intersphinx_mapping = {'https://docs.python.org/': None}
238+
239+
# -- Options for todo extension ----------------------------------------------
240+
241+
# If true, `todo` and `todoList` produce output, else they produce nothing.
242+
todo_include_todos = True
243+
244+
autoclass_content = 'both'
245+
246+
def setup(app):
247+
# app.add_stylesheet('css/custom.css')
248+
app.add_css_file('css/custom.css')

Diff for: _generator/api/generate.bat

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
@ECHO OFF
2+
3+
rd /Q /S api
4+
5+
sphinx-apidoc -f -T -o api ../../../cm/cmind
6+
7+
cm replace_string_in_file utils --input=api/cmind.rst --string="cmind package" --replacement="CM python package API"
8+
9+
sphinx-build -M html . api
10+
11+
cd api/html
12+
tar cf api.tar *
13+
bzip2 api.tar
14+
15+
move api.tar.bz2 ../..
16+

Diff for: _generator/api/generate.sh

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
rm -rf api
2+
3+
sphinx-apidoc -H "CM python package API" -f -T -o api ../../../cm/cmind
4+
5+
sphinx-build -M html . api
6+
7+
cd api/html
8+
tar cf api.tar *
9+
bzip2 api.tar
10+
11+
move api.tar.bz2 ../..

Diff for: _generator/api/index.rst

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
.. Copyright MLCommons
2+
3+
.. CM documentation master file
4+
5+
.. toctree::
6+
:maxdepth: 2
7+
8+
api/cmind
9+
10+
Index
11+
=====
12+
13+
* :ref:`genindex`

Diff for: _generator/api/static/css/custom.css

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
/* adds scrollbar to sidenav */
2+
.wy-side-scroll {
3+
width: auto;
4+
scrollbar-width:thin;
5+
overflow-y: auto;
6+
}

Diff for: _generator/api/static/logo.png

9.72 KB
Loading

Diff for: _generator/generate_api.bat

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
pip install sphinx recommonmark sphinx_markdown_tables sphinx_rtd_theme
2+
3+
cd api
4+
generate.bat

Diff for: _generator/generate_api.sh

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
pip install sphinx recommonmark sphinx_markdown_tables sphinx_rtd_theme
2+
3+
cd api
4+
./generate.sh

Diff for: _generator/generate_toc.cmd

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
cd ../tutorials
2+
3+
cm create-toc-from-md utils --input=scc23-mlperf-inference-bert.md
4+
cm create-toc-from-md utils --input=sc22-scc-mlperf.md
5+
cm create-toc-from-md utils --input=sc22-scc-mlperf-part2.md
6+
cm create-toc-from-md utils --input=sc22-scc-mlperf-part3.md
7+
cm create-toc-from-md utils --input=mlperf-inference-submission.md
8+
cm create-toc-from-md utils --input=concept.md
9+
cm create-toc-from-md utils --input=reproduce-mlperf-tiny.md
10+
cm create-toc-from-md utils --input=automate-mlperf-tiny.md
11+
cm create-toc-from-md utils --input=reproduce-mlperf-training.md
12+
cm create-toc-from-md utils --input=common-interface-to-reproduce-research-projects.md
13+
14+
cd ../artifact-evaluation
15+
16+
cm create-toc-from-md utils --input=faq.md
17+
18+
cd ../
19+
20+
cm create-toc-from-md utils --input=taskforce.md
21+
cm create-toc-from-md utils --input=installation.md
22+
cm create-toc-from-md utils --input=faq.md
23+
cm create-toc-from-md utils --input=README.md
24+
cm create-toc-from-md utils --input=getting-started.md
25+
26+
cd mlperf/inference
27+
28+
cm create-toc-from-md utils --input=README.md
29+
30+
cd ../../../
31+
cd cm-mlops/project/mlperf-inference-v3.0-submissions/docs
32+
cm create-toc-from-md utils --input=crowd-benchmark-mlperf-bert-inference-cuda.md
33+
34+
cd ../../../automation/script
35+
cm create-toc-from-md utils --input=README-extra.md
36+
37+
cd ../experiment
38+
cm create-toc-from-md utils --input=README-extra.md

Diff for: _generator/list_automations.cmd

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
cm doc automation --output_dir=..

Diff for: _generator/list_scripts.cmd

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
cm doc script --output_dir=..

Diff for: _generator/list_scripts_test.cmd

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
cm doc script app-loadgen-generic-python --output_dir=..

0 commit comments

Comments
 (0)