Skip to content

Commit 18a05ee

Browse files
authored
Merge pull request #124 from Project-MONAI/populate_docs
Populate initial user guide docs
2 parents fb2354d + 2dee46a commit 18a05ee

30 files changed

+3404
-54
lines changed

docs/_static/custom.css

Lines changed: 77 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,27 +7,101 @@ https://pydata-sphinx-theme.readthedocs.io/en/latest/user_guide/customizing.html
77
body {
88
font-family: "Roboto", sans-serif;
99
}
10+
1011
.wy-menu-vertical p.caption {
1112
color: #7cccc7;
1213
}
14+
1315
* {
1416
font-variant-ligatures: none;
1517
}
18+
1619
.autoclasstoc td {
1720
padding: 0.2rem;
1821
line-height: normal;
1922
}
20-
dl.field-list > dt {
23+
24+
dl.field-list>dt {
2125
word-break: normal;
2226
}
2327

24-
25-
2628
h5.card-header {
2729
margin-top: 0px;
2830
margin-bottom: 0px;
2931
}
32+
3033
h5.card-header::before {
3134
height: 0px;
3235
margin-top: 0px;
3336
}
37+
38+
39+
/* Customize styles */
40+
41+
:root {
42+
--pst-color-inline-code: 232, 62, 140;
43+
--pst-font-size-h1: 32px;
44+
--pst-font-size-h2: 26px;
45+
--pst-font-size-h3: 21px;
46+
--pst-font-size-h4: 18px;
47+
--pst-font-size-h5: 16px;
48+
--pst-font-size-h6: 14px;
49+
}
50+
51+
52+
/* Customize headings */
53+
54+
.heading-style,
55+
h1 {
56+
font-family: Content-font, Roboto, sans-serif;
57+
font-weight: 500;
58+
line-height: 1.5;
59+
}
60+
61+
/* Code Highlight */
62+
div[class^="highlight"] pre {
63+
color: rgb(248, 248, 242);
64+
background-color: rgb(41, 44, 46);
65+
border: 0px;
66+
box-shadow: none;
67+
}
68+
div.highlight{
69+
border-radius: 5px;
70+
}
71+
div.highlight pre {
72+
border-radius: 5px;
73+
}
74+
div.cell div.cell_input div.highlight {
75+
border-radius: 0px;
76+
}
77+
78+
/* Code Block Caption */
79+
div.code-block-caption {
80+
font-weight: bold;
81+
font-style: italic;
82+
}
83+
84+
/* Code Line Highlight */
85+
.highlight .hll {
86+
background-color: rgb(133, 132, 24);
87+
}
88+
89+
/* Left bar color for cells in Jupyter Notebook */
90+
div.cell div.cell_input {
91+
border-left-color: rgb(127, 218, 255)
92+
}
93+
94+
/* Code highlight in source code view */
95+
.viewcode-block:target {
96+
background-color: #382927;
97+
}
98+
99+
/* Backquote */
100+
blockquote {
101+
background-color: rgb(129 252 255 / 30%);
102+
border-left: 8px solid rgb(127, 218, 255);
103+
padding: 15px 30px 15px 15px;
104+
}
105+
blockquote p {
106+
margin-bottom: 0px;
107+
}

docs/requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,4 @@ sphinxcontrib-htmlhelp
3030
sphinxcontrib-jsmath
3131
sphinxcontrib-qthelp
3232
sphinxcontrib-serializinghtml
33+
sphinxcontrib-mermaid

docs/source/_templates/navbar-logo.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
<img src="{{ pathto('_static/' + logo, 1) }}" class="logo" alt="logo">
1111
</a>
1212
<a href="{{ pathto(master_doc) }}">
13-
<p style="z-index:100; position:absolute; font-size:16px; font-weight:bold; left:5px; top:45px; margin-bottom:0;">
14-
Deploy Application SDK
13+
<p style="z-index:100; position:absolute; font-size:16px; font-weight:bold; left:12px; top:45px; margin-bottom:0;">
14+
Deploy App SDK
1515
</p>
1616
</a>
1717
</div>
@@ -22,6 +22,6 @@
2222
{% endif %}
2323
{% else %}
2424
<a class="navbar-brand" href="{{ pathto(master_doc) }}">
25-
<p class="title">{{ project }}</p>
25+
<p class="title">{{ project }}</p>
2626
</a>
27-
{% endif %}
27+
{% endif %}

docs/source/_templates/sidebar-quicklinks.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
<h5 class="card-header font-weight-bold">Version {{ release }}</h5>
33
<div class="card-body">
44
<ul class="list-group list-group-flush list-unstyled quicklinks">
5-
<li><a href="{{ pathto('getting_started/tutorials/index.html', 1) }}"><i class="text-muted fas fa-book fa-fw"></i> Tutorials</a></li>
6-
<li><a href="{{ pathto('release_notes/v' + version + '.html', 1) }}"><i class="text-muted fas fa-newspaper fa-fw"></i> Changelog</a></li>
5+
<li><a href="{{ pathto('release_notes/v' + version + '.html', 1) }}"><i class="text-muted fas fa-newspaper fa-fw"></i> What's New</a></li>
6+
<li><a href="{{ pathto('getting_started/tutorials/index.html', 1) }}"><i class="text-muted fas fa-book fa-fw"></i> Tutorials</a></li>
77
<li><a href="{{ pathto('https://github.com/Project-MONAI/monai-deploy-app-sdk/issues/new/choose', 1) }}"><i class="text-muted fas fa-question-circle fa-fw"></i> Get help</a></li>
88
<li><a href="{{ pathto('introduction/contributing.html', 1) }}"><i class="text-muted fas fa-code-branch fa-fw"></i> Contribute</a></li>
99
</ul>

docs/source/_templates/title.html

Lines changed: 0 additions & 4 deletions
This file was deleted.

docs/source/conf.py

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,7 @@
3434
# List of patterns, relative to source directory, that match files and
3535
# directories to ignore when looking for source files.
3636
# This pattern also affects html_static_path and html_extra_path.
37-
exclude_patterns = [] # type: ignore
38-
37+
exclude_patterns = ["_build"] # type: ignore
3938

4039
# -- General configuration ---------------------------------------------------
4140

@@ -67,12 +66,17 @@
6766
# https://myst-parser.readthedocs.io/en/latest/sphinx/use.html#automatically-create-targets-for-section-headers
6867
# "sphinx.ext.autosectionlabel", <== don't need anymore from v0.13.0
6968
"sphinx_autodoc_typehints",
69+
"sphinxcontrib.mermaid",
7070
]
7171

7272
autoclass_content = "both"
7373
add_module_names = True
7474
source_encoding = "utf-8"
75-
autosectionlabel_prefix_document = True
75+
# Prefix document path to section labels, to use:
76+
# `path/to/file:heading` instead of just `heading`
77+
# (https://www.sphinx-doc.org/en/master/usage/extensions/autosectionlabel.html)
78+
# autosectionlabel_prefix_document = True
79+
# autosectionlabel_maxdepth = 4
7680
napoleon_use_param = True
7781
napoleon_include_init_with_doc = True
7882
set_type_checking_flag = True
@@ -140,7 +144,7 @@
140144
"index": ["search-field", "sidebar-quicklinks", "sidebar-nav-bs"],
141145
"**": ["search-field", "sidebar-nav-bs"],
142146
}
143-
pygments_style = "sphinx"
147+
pygments_style = "monokai"
144148

145149

146150
# -- Options for pydata-sphinx-theme -------------------------------------------------
@@ -182,14 +186,14 @@
182186
"dollarmath",
183187
"html_admonition",
184188
"html_image",
185-
"linkify",
189+
# "linkify", # disable linkify to not confuse with the file name such as `app.py`
186190
"replacements",
187191
# "smartquotes",
188192
"substitution",
189193
"tasklist",
190194
]
191195
# https://myst-parser.readthedocs.io/en/latest/syntax/optional.html#syntax-header-anchors
192-
myst_heading_anchors = 2
196+
myst_heading_anchors = 4
193197

194198

195199
# -- Options for myst-nb -------------------------------------------------

docs/source/developing_with_sdk/connecting_operators.md

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
11
# Core concepts
2+
3+
This document introduces the basic concepts of the MONAI Deploy App SDK. If you are eager to try out the SDK in practice, you can start with the tutorial. After the tutorial, you can return to this document to learn more about how MONAI Deploy App SDK works.
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
11
# Creating Application class
2+
3+
The Application class is perhaps the most important class that MONAI Deploy App developers will interact with. A developer will inherit a new Application from the monai.core.Application base class. The base application class provides support for chaining up operators, as well as a mechanism to execute the application. The compose method of this class needs to be implemented in the inherited class to instantiate Operators and connect them together to form a Directed Acyclic Graph.

docs/source/developing_with_sdk/executing_docker_image_locally.md

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

0 commit comments

Comments
 (0)