Skip to content

Commit d485138

Browse files
committed
Fix HTML of logo
1 parent f2b158a commit d485138

File tree

3 files changed

+33
-18
lines changed

3 files changed

+33
-18
lines changed

README.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -10,26 +10,26 @@ jupytext:
1010
jupytext_version: 1.13.8
1111
---
1212

13-
% summary-start
13+
% badges-start
1414

1515
# ![logo](https://adaptive.readthedocs.io/en/latest/_static/logo.png) adaptive
1616

17-
[[Binder](https://mybinder.org/badge.svg)](https://mybinder.org/v2/gh/python-adaptive/adaptive/master?filepath=example-notebook.ipynb)
18-
[[Conda](https://img.shields.io/badge/install%20with-conda-green.svg)](https://anaconda.org/conda-forge/adaptive)
19-
[[Coverage](https://img.shields.io/codecov/c/github/python-adaptive/adaptive)](https://codecov.io/gh/python-adaptive/adaptive)
20-
[[DOI](https://img.shields.io/badge/doi-10.5281%2Fzenodo.1182437-blue.svg)](https://doi.org/10.5281/zenodo.1182437)
21-
[[Documentation](https://readthedocs.org/projects/adaptive/badge/?version=latest)](https://adaptive.readthedocs.io/en/latest/?badge=latest)
22-
[[Downloads](https://img.shields.io/conda/dn/conda-forge/adaptive.svg)](https://anaconda.org/conda-forge/adaptive)
23-
[[GitHub](https://img.shields.io/github/stars/python-adaptive/adaptive.svg?style=social)](https://github.com/python-adaptive/adaptive/stargazers)
24-
[[Gitter](https://img.shields.io/gitter/room/nwjs/nw.js.svg)](https://gitter.im/python-adaptive/adaptive)
25-
[[Pipeline-status](https://dev.azure.com/python-adaptive/adaptive/_apis/build/status/python-adaptive.adaptive?branchName=master)](https://dev.azure.com/python-adaptive/adaptive/_build/latest?definitionId=6?branchName=master)
26-
[[PyPI](https://img.shields.io/pypi/v/adaptive.svg)](https://pypi.python.org/pypi/adaptive)
27-
17+
[![Binder](https://mybinder.org/badge.svg)](https://mybinder.org/v2/gh/python-adaptive/adaptive/master?filepath=example-notebook.ipynb)
18+
[![Conda](https://img.shields.io/badge/install%20with-conda-green.svg)](https://anaconda.org/conda-forge/adaptive)
19+
[![Coverage](https://img.shields.io/codecov/c/github/python-adaptive/adaptive)](https://codecov.io/gh/python-adaptive/adaptive)
20+
[![DOI](https://img.shields.io/badge/doi-10.5281%2Fzenodo.1182437-blue.svg)](https://doi.org/10.5281/zenodo.1182437)
21+
[![Documentation](https://readthedocs.org/projects/adaptive/badge/?version=latest)](https://adaptive.readthedocs.io/en/latest/?badge=latest)
22+
[![Downloads](https://img.shields.io/conda/dn/conda-forge/adaptive.svg)](https://anaconda.org/conda-forge/adaptive)
23+
[![GitHub](https://img.shields.io/github/stars/python-adaptive/adaptive.svg?style=social)](https://github.com/python-adaptive/adaptive/stargazers)
24+
[![Gitter](https://img.shields.io/gitter/room/nwjs/nw.js.svg)](https://gitter.im/python-adaptive/adaptive)
25+
[![Pipeline-status](https://dev.azure.com/python-adaptive/adaptive/_apis/build/status/python-adaptive.adaptive?branchName=master)](https://dev.azure.com/python-adaptive/adaptive/_build/latest?definitionId=6?branchName=master)
26+
[![PyPI](https://img.shields.io/pypi/v/adaptive.svg)](https://pypi.python.org/pypi/adaptive)
2827

2928
> *Adaptive*: parallel active learning of mathematical functions.
3029
31-
```{include} logo.md
32-
```
30+
% badges-end
31+
32+
% summary-start
3333

3434
`adaptive` is an open-source Python library designed to make adaptive parallel function evaluation simple. With `adaptive` you just supply a function with its bounds, and it will be evaluated at the “best” points in parameter space, rather than unnecessarily computing *all* points on a dense grid.
3535
With just a few lines of code you can evaluate functions on a computing cluster, live-plot the data as it returns, and fine-tune the adaptive sampling algorithm.

docs/source/index.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
```{include} ../../README.md
2+
---
3+
start-after: badges-start
4+
end-before: badges-end
5+
---
6+
```
7+
8+
```{include} logo.md
9+
```
10+
111
```{include} ../../README.md
212
---
313
start-after: summary-start

docs/source/logo.md

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ jupytext:
1212

1313
```{code-cell} ipython3
1414
:tags: [remove-input]
15+
1516
import os
1617
1718
import matplotlib.tri as mtri
@@ -117,7 +118,11 @@ if __name__ == "__main__":
117118
main(fname)
118119
```
119120

120-
<video autoplay loop muted playsinline webkit-playsinline
121-
style="width: 400px; max-width: 100%; margin: 0 auto; display:block;">
122-
<source src="_static/logo_docs.mp4" type="video/mp4">
123-
</video><br>
121+
```{eval-rst}
122+
.. raw:: html
123+
124+
<video autoplay loop muted playsinline webkit-playsinline
125+
style="width: 400px; max-width: 100%; margin: 0 auto; display:block;">
126+
<source src="_static/logo_docs.mp4" type="video/mp4">
127+
</video><br>
128+
```

0 commit comments

Comments
 (0)