Skip to content

Commit d7938f8

Browse files
dbkinderlijinxia
authored andcommitted
doc: initial doc commit
Signed-off-by: David B. Kinder <david.b.kinder@intel.com>
1 parent 981dd9a commit d7938f8

22 files changed

+4914
-1
lines changed

doc/.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
doxygen
2+
_build
3+
devicemodel
4+
hypervisor

doc/Makefile

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# Minimal makefile for Sphinx documentation
2+
#
3+
4+
# You can set these variables from the command line.
5+
SPHINXOPTS =
6+
SPHINXBUILD = sphinx-build
7+
SPHINXPROJ = "Project ACRN"
8+
SOURCEDIR = .
9+
BUILDDIR = _build
10+
11+
# Put it first so that "make" without argument is like "make help".
12+
help:
13+
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
14+
15+
.PHONY: help Makefile
16+
17+
18+
doxy:
19+
$(Q)(cat doxyfile) | doxygen - 2>&1
20+
21+
clean:
22+
$(Q)(rm -fr $(BUILDDIR) doxygen)
23+
24+
25+
# Catch-all target: route all unknown targets to Sphinx using the new
26+
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
27+
%: Makefile doxy
28+
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)

doc/README.md

Lines changed: 0 additions & 1 deletion
This file was deleted.

doc/api/devicemodel_api.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
.. _devicemodel_apis:
2+
3+
Device Model APIs
4+
#################
5+
6+
This section contains APIs for the SOS Device Model services.
7+
8+
.. doxygengroup:: acrn_virtio
9+
:project: Project ACRN

doc/api/hypercall_api.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
.. _hypercall_apis:
2+
3+
Hypercall APIs
4+
##############
5+
6+
This section contains APIs for the hypercall services.
7+
8+
.. doxygengroup:: acrn_hypercall
9+
:project: Project ACRN

doc/api/index.rst

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
.. _acrn_apis:
2+
3+
Project ACRN APIs
4+
#################
5+
6+
7+
.. toctree::
8+
:maxdepth: 1
9+
10+
hypercall_api.rst
11+
devicemodel_api.rst

doc/conf.py

Lines changed: 189 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,189 @@
1+
# -*- coding: utf-8 -*-
2+
#
3+
# Project ACRN documentation build configuration file, created by
4+
# sphinx-quickstart on Wed Jan 10 20:51:29 2018.
5+
#
6+
# This file is execfile()d with the current directory set to its
7+
# containing dir.
8+
#
9+
# Note that not all possible configuration values are present in this
10+
# autogenerated file.
11+
#
12+
# All configuration values have a default; values that are commented out
13+
# serve to show the default.
14+
15+
# If extensions (or modules to document with autodoc) are in another directory,
16+
# add these directories to sys.path here. If the directory is relative to the
17+
# documentation root, use os.path.abspath to make it absolute, like shown here.
18+
#
19+
import os
20+
import sys
21+
sys.path.insert(0, os.path.abspath('.'))
22+
23+
24+
# -- General configuration ------------------------------------------------
25+
26+
# If your documentation needs a minimal Sphinx version, state it here.
27+
#
28+
# needs_sphinx = '1.0'
29+
30+
# Add any Sphinx extension module names here, as strings. They can be
31+
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
32+
# ones.
33+
extensions = ['breathe']
34+
35+
# Add any paths that contain templates here, relative to this directory.
36+
templates_path = ['_templates']
37+
38+
# The suffix(es) of source filenames.
39+
# You can specify multiple suffix as a list of string:
40+
#
41+
# source_suffix = ['.rst', '.md']
42+
source_suffix = '.rst'
43+
44+
# The master toctree document.
45+
master_doc = 'index'
46+
47+
# General information about the project.
48+
project = u'Project ACRN'
49+
copyright = u'2018, Project ACRN'
50+
author = u'Project ARCN developers'
51+
52+
# The version info for the project you're documenting, acts as replacement for
53+
# |version| and |release|, also used in various other places throughout the
54+
# built documents.
55+
#
56+
# The short X.Y version.
57+
version = u'1.0.0'
58+
# The full version, including alpha/doc/beta/doc/rc tags.
59+
release = u'1.0.0'
60+
61+
# The language for content autogenerated by Sphinx. Refer to documentation
62+
# for a list of supported languages.
63+
#
64+
# This is also used if you do content translation via gettext catalogs.
65+
# Usually you set "language" from the command line for these cases.
66+
language = None
67+
68+
# List of patterns, relative to source directory, that match files and
69+
# directories to ignore when looking for source files.
70+
# This patterns also effect to html_static_path and html_extra_path
71+
exclude_patterns = ['_build' ]
72+
73+
# The name of the Pygments (syntax highlighting) style to use.
74+
pygments_style = 'sphinx'
75+
76+
# If true, `todo` and `todoList` produce output, else they produce nothing.
77+
todo_include_todos = False
78+
79+
# -- Options for HTML output ----------------------------------------------
80+
81+
# The theme to use for HTML and HTML Help pages. See the documentation for
82+
# a list of builtin themes.
83+
#
84+
try:
85+
import sphinx_rtd_theme
86+
except ImportError:
87+
html_theme = 'alabaster'
88+
# This is required for the alabaster theme
89+
# refs: http://alabaster.readthedocs.io/en/latest/installation.html#sidebars
90+
html_sidebars = {
91+
'**': [
92+
'relations.html', # needs 'show_related': True theme option to display
93+
'searchbox.html',
94+
]
95+
}
96+
else:
97+
html_theme = "sphinx_rtd_theme"
98+
html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
99+
100+
# Theme options are theme-specific and customize the look and feel of a theme
101+
# further. For a list of options available for each theme, see the
102+
# documentation.
103+
#
104+
# html_theme_options = {}
105+
106+
html_logo = 'images/ACRNlogo.png'
107+
108+
# Add any paths that contain custom static files (such as style sheets) here,
109+
# relative to this directory. They are copied after the builtin static files,
110+
# so a file named "default.css" will overwrite the builtin "default.css".
111+
html_static_path = ['static']
112+
113+
def setup(app):
114+
app.add_stylesheet("acrn-custom.css")
115+
116+
# Custom sidebar templates, must be a dictionary that maps document names
117+
# to template names.
118+
#
119+
120+
# If true, "Created using Sphinx" is shown in the HTML footer. Default is True.
121+
html_show_sphinx = False
122+
123+
# If true, links to the reST sources are added to the pages.
124+
html_show_sourcelink = False
125+
126+
127+
# -- Options for HTMLHelp output ------------------------------------------
128+
129+
# Output file base name for HTML help builder.
130+
htmlhelp_basename = 'ACRN Project Help'
131+
132+
133+
# -- Options for LaTeX output ---------------------------------------------
134+
135+
latex_elements = {
136+
# The paper size ('letterpaper' or 'a4paper').
137+
#
138+
# 'papersize': 'letterpaper',
139+
140+
# The font size ('10pt', '11pt' or '12pt').
141+
#
142+
# 'pointsize': '10pt',
143+
144+
# Additional stuff for the LaTeX preamble.
145+
#
146+
# 'preamble': '',
147+
148+
# Latex figure (float) alignment
149+
#
150+
# 'figure_align': 'htbp',
151+
}
152+
153+
# Grouping the document tree into LaTeX files. List of tuples
154+
# (source start file, target name, title,
155+
# author, documentclass [howto, manual, or own class]).
156+
latex_documents = [
157+
(master_doc, 'acrn.tex', u'Project ACRN Documentation',
158+
u'Project ACRN', 'manual'),
159+
]
160+
161+
162+
# -- Options for manual page output ---------------------------------------
163+
164+
# One entry per manual page. List of tuples
165+
# (source start file, name, description, authors, manual section).
166+
man_pages = [
167+
(master_doc, 'acrn', u'Project ACRN Documentation',
168+
[author], 1)
169+
]
170+
171+
172+
# -- Options for Texinfo output -------------------------------------------
173+
174+
# Grouping the document tree into Texinfo files. List of tuples
175+
# (source start file, target name, title, author,
176+
# dir menu entry, description, category)
177+
texinfo_documents = [
178+
(master_doc, 'Project ACRN', u'Project ACRN Documentation',
179+
author, 'Project ACRN',
180+
'IoT-Optimized Hypervisor for Intel Architecture',
181+
'Miscellaneous'),
182+
]
183+
184+
185+
186+
breathe_projects = {
187+
"Project ACRN" : "doxygen/xml",
188+
}
189+
breathe_default_project = "Project ACRN"

0 commit comments

Comments
 (0)