-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #14 from scientificcomputing/dokken/documentation
Initial thoughts regarding documentation
- Loading branch information
Showing
6 changed files
with
124 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,43 @@ | ||
# Documentation basic | ||
|
||
Here is an example of basic documentation with jupyter-book | ||
Here is an example of basic documentation with [jupyter-book](https://jupyterbook.org/) and some of the features of markdown. | ||
|
||
We can get a breakdown of the current page by adding sub-headings by using `##` for a second level heading, and `###` for a third level heading etch | ||
|
||
## Subheading | ||
|
||
Here we have some more text. | ||
We can add a block of code with 3x` syntax, i.e. | ||
```` | ||
```python | ||
import numpy as np | ||
# Here is a comment | ||
``` | ||
```` | ||
### Code example | ||
The above code would render as | ||
```python | ||
import numpy as np | ||
# Here is a comment | ||
``` | ||
|
||
## New sub heading | ||
You can also add more fancy things, such as a note | ||
```{note} | ||
This is a note | ||
``` | ||
and warnings | ||
```{warning} | ||
I warn you | ||
``` | ||
### References | ||
We add a bibliography file `references.bib` to our repo, and cite things as | ||
{cite}`Yogi2018` | ||
See: [Jupyter-book: Citations](https://jupyterbook.org/en/stable/content/citations.html) for more information | ||
|
||
|
||
## Bibliography | ||
```{bibliography} | ||
:style: alpha | ||
:filter: docname in docnames | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
@inproceedings{Yogi2018, | ||
author = {Zaheer, Manzil and Reddi, Sashank and Sachan, Devendra and Kale, Satyen and Kumar, Sanjiv}, | ||
booktitle = {Advances in Neural Information Processing Systems}, | ||
editor = {S. Bengio and H. Wallach and H. Larochelle and K. Grauman and N. Cesa-Bianchi and R. Garnett}, | ||
pages = {}, | ||
publisher = {Curran Associates, Inc.}, | ||
title = {Adaptive Methods for Nonconvex Optimization}, | ||
url = {https://proceedings.neurips.cc/paper_files/paper/2018/file/90365351ccc7437a1309dc64e4db32a3-Paper.pdf}, | ||
volume = {31}, | ||
year = {2018} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters