You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/dev_docs/HowToTutorial.md
+77-6Lines changed: 77 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -192,13 +192,50 @@ inline equations use the `\\(\mathbf{p}\\)` sytanx: \\(\mathbf{p}\\)
192
192
193
193
### Citations
194
194
195
-
Sphinx has a built in citation manager for bibtex: [sphinxcontrib-bibtex](https://sphinxcontrib-bibtex.readthedocs.io/en/latest/). Works well for RST, but we are still working on it for markdown. Another option may be [Myst](https://myst-parser.readthedocs.io/en/latest/)
195
+
Since we are using Sphinx to build the documentation, we can use its citation manager, sphinxcontrib-bibtex. We will provide some exmples here, but for more information, refer to the [sphinxcontrib-bibtex documentation](https://sphinxcontrib-bibtex.readthedocs.io/en/latest/index.html).
196
196
197
-
TODO.
197
+
Citations to include in the UncertainSCI docs can be included in the `UncertainSCI/docs/references.bib` file. For the keys, please use the convention: Initials of the contributor, colon, first three letters of the author (with apropriate capitalization), and the year. For example `JDT:Bur2020`. For multiple citations from the same author in the same year, lowercase letters can be appended to the key: `JDT:Bur2020a`.
198
198
199
+
After the reference has been added to `UncertainSCI/docs/references.bib`, the final step is to include the command in the appropriate place.
200
+
201
+
The sphinxcontrib-bibtex is built to run with rst in Sphinx. However, it can be used in markdown using the [AutoStructify](https://recommonmark.readthedocs.io/en/latest/auto_structify.html) package. This will require using using an `eval_rst` block as follows:
202
+
203
+
````
204
+
```eval_rst
205
+
The whole paragraph will need to be in the eval_rst block :cite:p:`JDT:Bur2020`. For multiple references: :cite:p:`JDT:Bur2020,gupta1983`
206
+
```
207
+
````
208
+
209
+
```eval_rst
210
+
The whole paragraph will need to be in the eval_rst block :cite:p:`JDT:Bur2020`. For multiple references: :cite:p:`JDT:Bur2020,gupta1983`
211
+
```
212
+
213
+
add a bibliography section
214
+
````
215
+
```eval_rst
216
+
.. bibliography::
217
+
```
218
+
````
219
+
220
+
#### Bibliography
221
+
```eval_rst
222
+
.. bibliography::
223
+
```
199
224
200
225
### Snippets
201
226
227
+
Basic markdown ``some snippet``
228
+
229
+
```
230
+
def function():
231
+
return True
232
+
```
233
+
234
+
```python
235
+
deffunction():
236
+
returnTrue
237
+
```
238
+
202
239
### Links
203
240
Including links in Markdown is simple, just use `<>` or `[]()`. For example, an internal link for section [Adding Content](#adding-content) is :
204
241
```
@@ -233,22 +270,56 @@ Tables can be used with normal markdown syntax with the [sphinx-markdown-tables]
233
270
| Paragraph | Text |
234
271
235
272
273
+
```eval_rst
274
+
+------------+------------+-----------+
275
+
| Header 1 | Header 2 | Header 3 |
276
+
+============+============+===========+
277
+
| body row 1 | column 2 | column 3 |
278
+
+------------+------------+-----------+
279
+
| body row 2 | Cells may span columns.|
280
+
+------------+------------+-----------+
281
+
```
236
282
237
-
### Referencing Sphynx
238
283
239
-
TODO
284
+
### Referencing Sphinx
240
285
241
-
To link the UncertainSCI API generated using Sphynx, Use this syntax: [`[text](../api_docs/pce.html#polynomial-chaos-expansions)`](../api_docs/pce.html#polynomial-chaos-expansions).
286
+
287
+
To link the UncertainSCI API generated using Sphinx, Use this syntax: [`[text](../api_docs/pce.html#polynomial-chaos-expansions)`](../api_docs/pce.html#polynomial-chaos-expansions).
242
288
243
289
## Content Guide
244
290
245
291
TODO
246
292
247
293
## Supplemental Materials
248
294
249
-
TODO
295
+
Some things to consider including with the tutorial.
250
296
251
297
### Example Scripts
298
+
299
+
Example scripts should be located in the `UncertainSCI/demos/` directory. Consider using one of the existing demos as a template and try to follow the coding standards outlined in the [contribution guide](contribute.html).
300
+
252
301
### Movies
302
+
303
+
Movies should be stored in a serperate place. We host most of ours on youtube or vimeo.
304
+
305
+
#### Youtube
306
+
307
+
Get the imbed link from the youtube video. This can be found by pressing the share button.
308
+
309
+
#### Vimeo
310
+
311
+
Get the imbed link from the vimeo video. This can be found by pressing the share button. There are more options if for some users who own the video. More info [here.](https://vimeo.zendesk.com/hc/en-us/articles/224969968-Embedding-videos-overview)
312
+
313
+
With the embed link, just include the html into the markdown file.
Datasets should be located serperately, unless the size is small. Please [ask](https://github.com/SCIInstitute/UncertainSCI/discussions) if you have any questions.
Copy file name to clipboardExpand all lines: docs/index.rst
+9Lines changed: 9 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,6 +16,9 @@ About UncertainSCI
16
16
UncertainSCI is a Python-based toolkit that harnesses modern techniques to estimate model and parametric uncertainty, with a particular emphasis on needs for biomedical simulations and applications. This toolkit enables non-intrusive integration of these techniques with well-established biomedical simulation software.
17
17
18
18
19
+
Currently implemented in UncertainSCI is Polynomial Chaos Expansion (PCE) with a number of input distributions. For more information about these techniques, see: :cite:p:`JDT:Bur2020,narayan_computation_2018,guo_weighted_2018,cohen_optimal_2017`
20
+
21
+
19
22
.. toctree::
20
23
:maxdepth:2
21
24
:caption:Contents:
@@ -36,6 +39,12 @@ Acknowledgements
36
39
37
40
This project was supported by grants from the National Institute of Biomedical Imaging and Bioengineering (U24EB029012) from the National Institutes of Health.
Copy file name to clipboardExpand all lines: docs/tutorials/template.md
+12-2Lines changed: 12 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -55,9 +55,19 @@ inline equations use the `\\(\mathbf{p}\\)` sytanx: \\(\mathbf{p}\\)
55
55
56
56
### Citations
57
57
58
-
Sphinx has a built in citation manager for bibtex: [sphinxcontrib-bibtex](https://sphinxcontrib-bibtex.readthedocs.io/en/latest/). Works well for RST, but we are still working on it for markdown. Another option may be [Myst](https://myst-parser.readthedocs.io/en/latest/)
58
+
Sphinx has a built in citation manager for bibtex: [sphinxcontrib-bibtex](https://sphinxcontrib-bibtex.readthedocs.io/en/latest/). Works well for RST, but we are still working on it for markdown. The sphinxcontrib-bibtex is built to run with rst in Sphinx. However, it can be used in markdown using the [AutoStructify](https://recommonmark.readthedocs.io/en/latest/auto_structify.html) package.
59
59
60
-
TODO.
60
+
```eval_rst
61
+
The whole paragraph will need to be in the eval_rst block :cite:p:`JDT:Bur2020`. For multiple references: :cite:p:`JDT:Bur2020,gupta1983`
0 commit comments