Skip to content

Commit 73f2198

Browse files
authored
docs: add more reference docs (#2850)
1 parent 7e2a3d4 commit 73f2198

Some content is hidden

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

42 files changed

+546
-286
lines changed

design/003-interactive-session/003-interactive-session.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ class ISessionProvider:
138138
:param image_descriptor: Path to the container image descriptor file.
139139
:param image_name: Container image name.
140140
:param config: Path to the session provider specific configuration YAML.
141-
:returns: a unique id for the created interactive sesssion.
141+
:returns: a unique id for the created interactive session.
142142
"""
143143
pass
144144

@@ -184,7 +184,7 @@ class ISessionProvider:
184184
:param mem_request: Memory size request for the session.
185185
:param disk_request: Disk size request for the session.
186186
:param gpu_request: GPU device request for the session.
187-
:returns: a unique id for the created interactive sesssion.
187+
:returns: a unique id for the created interactive session.
188188
"""
189189
pass
190190

docs/conf.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@
335335

336336
# Autodoc configuraton.
337337
autoclass_content = "both"
338-
autodoc_mock_imports = ["persistent", "ZODB"]
338+
autodoc_mock_imports = ["persistent", "ZODB", "calamus"]
339339
autodoc_typehints = "none"
340340
autodoc_typehints_description_target = "documented"
341341

@@ -364,3 +364,10 @@
364364
("py:class", '"ValueResolver"'),
365365
("py:exc", "errors.ParameterError"),
366366
]
367+
368+
nitpick_ignore_regex = [
369+
("py:class", r"calamus.*"),
370+
("py:class", r"docker.*"),
371+
("py:class", r"marshmallow.*"),
372+
("py:class", r"yaml.*"),
373+
]

docs/introduction.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
installation
2525
gettingstarted
2626
reference/index
27-
api
2827
changes
2928
license
3029

File renamed without changes.

docs/reference/core.rst

Lines changed: 284 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,284 @@
1+
..
2+
Copyright 2017-2022 - Swiss Data Science Center (SDSC)
3+
A partnership between École Polytechnique Fédérale de Lausanne (EPFL) and
4+
Eidgenössische Technische Hochschule Zürich (ETHZ).
5+
6+
Licensed under the Apache License, Version 2.0 (the "License");
7+
you may not use this file except in compliance with the License.
8+
You may obtain a copy of the License at
9+
10+
http://www.apache.org/licenses/LICENSE-2.0
11+
12+
Unless required by applicable law or agreed to in writing, software
13+
distributed under the License is distributed on an "AS IS" BASIS,
14+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
See the License for the specific language governing permissions and
16+
limitations under the License.
17+
18+
19+
Core Business Logic
20+
===================
21+
22+
``renku.core`` contains the business logic of renku-python. Functionality is
23+
split into subfolders based on topic, such as ``dataset`` or ``workflow``.
24+
25+
Command Builder
26+
---------------
27+
28+
Most renku commands require context (database/git/etc.) to be set up for them.
29+
The command builder pattern makes this easy by wrapping commands in factory
30+
methods.
31+
32+
.. automodule:: renku.command.command_builder
33+
:members:
34+
35+
JSON-LD Schemes
36+
---------------
37+
38+
Schema classes used to serialize domain models to JSON-LD.
39+
40+
.. automodule:: renku.command.schema.activity
41+
:members:
42+
:show-inheritance:
43+
44+
.. automodule:: renku.command.schema.agent
45+
:members:
46+
:show-inheritance:
47+
48+
.. automodule:: renku.command.schema.annotation
49+
:members:
50+
:show-inheritance:
51+
52+
.. automodule:: renku.command.schema.calamus
53+
:members:
54+
:show-inheritance:
55+
56+
.. automodule:: renku.command.schema.composite_plan
57+
:members:
58+
:show-inheritance:
59+
60+
.. automodule:: renku.command.schema.dataset
61+
:members:
62+
:show-inheritance:
63+
64+
.. automodule:: renku.command.schema.entity
65+
:members:
66+
:show-inheritance:
67+
68+
.. automodule:: renku.command.schema.parameter
69+
:members:
70+
:show-inheritance:
71+
72+
.. automodule:: renku.command.schema.plan
73+
:members:
74+
:show-inheritance:
75+
76+
.. automodule:: renku.command.schema.project
77+
:members:
78+
:show-inheritance:
79+
80+
81+
Datasets
82+
--------
83+
84+
.. automodule:: renku.core.dataset.dataset
85+
:members:
86+
:show-inheritance:
87+
88+
.. automodule:: renku.core.dataset.dataset_add
89+
:members:
90+
:show-inheritance:
91+
92+
.. automodule:: renku.core.dataset.constant
93+
:members:
94+
:show-inheritance:
95+
96+
.. automodule:: renku.core.dataset.context
97+
:members:
98+
:show-inheritance:
99+
100+
.. automodule:: renku.core.dataset.datasets_provenance
101+
:members:
102+
:show-inheritance:
103+
104+
.. automodule:: renku.core.dataset.pointer_file
105+
:members:
106+
:show-inheritance:
107+
108+
.. automodule:: renku.core.dataset.request_model
109+
:members:
110+
:show-inheritance:
111+
112+
.. automodule:: renku.core.dataset.tag
113+
:members:
114+
:show-inheritance:
115+
116+
117+
Dataset Providers
118+
-----------------
119+
120+
Providers for dataset import and export
121+
122+
.. automodule:: renku.core.dataset.providers.api
123+
:members:
124+
:show-inheritance:
125+
126+
.. automodule:: renku.core.dataset.providers.dataverse
127+
:members:
128+
:show-inheritance:
129+
130+
.. automodule:: renku.core.dataset.providers.dataverse_metadata_templates
131+
:members:
132+
:show-inheritance:
133+
134+
.. automodule:: renku.core.dataset.providers.doi
135+
:members:
136+
:show-inheritance:
137+
138+
.. automodule:: renku.core.dataset.providers.models
139+
:members:
140+
:show-inheritance:
141+
142+
.. automodule:: renku.core.dataset.providers.olos
143+
:members:
144+
:show-inheritance:
145+
146+
.. automodule:: renku.core.dataset.providers.renku
147+
:members:
148+
:show-inheritance:
149+
150+
.. automodule:: renku.core.dataset.providers.zenodo
151+
:members:
152+
:show-inheritance:
153+
154+
Workflows
155+
---------
156+
157+
.. automodule:: renku.core.workflow.activity
158+
:members:
159+
:show-inheritance:
160+
161+
.. automodule:: renku.core.workflow.concrete_execution_graph
162+
:members:
163+
:show-inheritance:
164+
165+
.. automodule:: renku.core.workflow.plan_factory
166+
:members:
167+
:show-inheritance:
168+
169+
.. automodule:: renku.core.workflow.types
170+
:members:
171+
172+
.. automodule:: renku.core.workflow.value_resolution
173+
:members:
174+
:show-inheritance:
175+
176+
177+
Sessions
178+
--------
179+
180+
.. automodule:: renku.core.session.docker
181+
:members:
182+
:show-inheritance:
183+
184+
.. automodule:: renku.core.session.session
185+
:members:
186+
:show-inheritance:
187+
188+
Templates
189+
---------
190+
191+
.. automodule:: renku.core.template.template
192+
:members:
193+
:show-inheritance:
194+
195+
.. automodule:: renku.core.template.usecase
196+
:members:
197+
:show-inheritance:
198+
199+
200+
Errors
201+
------
202+
Errors that can be raised by ``renku.core``.
203+
204+
.. automodule:: renku.core.errors
205+
:members:
206+
:show-inheritance:
207+
208+
Utilities
209+
---------
210+
211+
.. automodule:: renku.core.util.communication
212+
:members:
213+
:show-inheritance:
214+
215+
.. automodule:: renku.core.util.contexts
216+
:members:
217+
:show-inheritance:
218+
219+
.. automodule:: renku.core.util.datetime8601
220+
:members:
221+
:show-inheritance:
222+
223+
.. automodule:: renku.core.util.doi
224+
:members:
225+
:show-inheritance:
226+
227+
.. automodule:: renku.core.util.file_size
228+
:members:
229+
:show-inheritance:
230+
231+
.. automodule:: renku.core.util.git
232+
:members:
233+
:show-inheritance:
234+
235+
.. automodule:: renku.core.util.metadata
236+
:members:
237+
:show-inheritance:
238+
239+
.. automodule:: renku.core.util.os
240+
:members:
241+
:show-inheritance:
242+
243+
.. automodule:: renku.core.util.requests
244+
:members:
245+
:show-inheritance:
246+
247+
.. automodule:: renku.core.util.scm
248+
:members:
249+
:show-inheritance:
250+
251+
.. automodule:: renku.core.util.shacl
252+
:members:
253+
:show-inheritance:
254+
255+
.. automodule:: renku.core.util.urls
256+
:members:
257+
:show-inheritance:
258+
259+
.. automodule:: renku.core.util.util
260+
:members:
261+
:show-inheritance:
262+
263+
.. automodule:: renku.core.util.uuid
264+
:members:
265+
:show-inheritance:
266+
267+
.. automodule:: renku.core.util.yaml
268+
:members:
269+
:show-inheritance:
270+
271+
Repository
272+
----------
273+
274+
.. automodule:: renku.core.management.repository
275+
:members:
276+
277+
Git Internals
278+
-------------
279+
280+
.. automodule:: renku.core.management.git
281+
:members:
282+
283+
.. automodule:: renku.domain_model.git
284+
:members:

docs/reference/database.rst

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,24 @@ Renku uses an internal database store in the ``.renku/metadata`` that uses a
2323
custom implementation of the ZODB object database, with a separate file per
2424
main entity.
2525

26+
Database
27+
--------
28+
2629
.. automodule:: renku.infrastructure.database
2730
:members:
31+
32+
Persistent
33+
----------
34+
35+
Extension of ``persistent.Persistent`` that supports immutability.
36+
37+
.. automodule:: renku.infrastructure.persistent
38+
:members:
39+
40+
Immutable
41+
---------
42+
43+
Classes to support immutability of renku models.
44+
45+
.. automodule:: renku.infrastructure.immutable
46+
:members:

0 commit comments

Comments
 (0)