Skip to content

Commit

Permalink
Update documentation (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
domvwt authored Apr 23, 2021
1 parent 5d5b0c4 commit c38bb8b
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 13 deletions.
14 changes: 11 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ esparto
[![codecov](https://codecov.io/gh/domvwt/esparto/branch/main/graph/badge.svg?token=35J8NZCUYC)](https://codecov.io/gh/domvwt/esparto)
[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=domvwt_esparto&metric=alert_status)](https://sonarcloud.io/dashboard?id=domvwt_esparto)

Esparto is a minimal frontend web framework written in Python.
It aims to be the first choice for designing self-contained documents with productivity as the main concern.
Esparto is a super minimal frontend web framework written in Python. Its primary use is for generating shareable single page documents
with content from popular analytics and data science libraries.

Full documentation available at [domvwt.github.io/esparto/](https://domvwt.github.io/esparto/).
Full documentation and examples at [domvwt.github.io/esparto/](https://domvwt.github.io/esparto/).

### Features
* Lightweight API
Expand All @@ -18,3 +18,11 @@ Full documentation available at [domvwt.github.io/esparto/](https://domvwt.githu
* Self contained / inline dependencies
* Jupyter Notebook support
* MIT License

## Supported Content
* Markdown text
* Images
* Matplotlib figures
* Pandas DataFrames
* Bokeh objects
* Plotly figures
Binary file modified docs/01-getting-started/esparto-image-screenshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/01-getting-started/esparto-quickstart-screenshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 3 additions & 3 deletions docs/01-getting-started/quickstart.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ my_page.save("esparto-quick.html")

The rendered HTML document:

<img src='../esparto-quickstart-screenshot.png' style='border: 1px dotted lightgrey; width: 80%; height: 80%'>
<img src='../esparto-quickstart-screenshot.png' style='border: 1px dotted lightgrey; width: 60%; height: auto'>

<br>

Expand All @@ -45,15 +45,15 @@ Your *content* goes **here!**
"""

my_page += content_md
my_page += "../notebooks/iris-virginica.jpg"
my_page += "image.jpg"

html = my_page.save("esparto-quick-image.html")
```
<br>

Esparto determines that the string points to a valid image and loads the file:

<img src='../esparto-image-screenshot.png' height=70% style='border: 1px dotted lightgrey; width: 80%; height: 80%'>
<img src='../esparto-image-screenshot.png' height=70% style='border: 1px dotted lightgrey; width: 60%; height: auto%'>

<br>

Expand Down
2 changes: 1 addition & 1 deletion docs/02-user-guide/examples.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ with few lines of code.
With the [Plotly backend for Pandas](https://plotly.com/python/pandas-backend/)
we can access the Plotly Express API directly from the '.plot()' method of any DataFrame or Series.

This example will show basic examples from each library:
This notebook shows basic examples from each library:

* Interactive plotting with Bokeh and Plotly
* Adding interactive content to the page
Expand Down
9 changes: 3 additions & 6 deletions docs/index.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Welcome
Esparto is a minimal frontend web framework written in Python.
It aims to be the first choice for designing self-contained documents with productivity as the main concern.
Esparto is a super minimal frontend web framework written in Python. Its primary use is for generating shareable single page documents
with content from popular analytics and data science libraries.

## Overview
The library provides a streamlined API that lets users define their page in terms of
Expand All @@ -26,10 +26,7 @@ and iteratively build documents without disrupting their workflow.
* Self contained / inline dependencies
* MIT License


## Integrations
The following content types are currently supported

## Supported Content
* Markdown text
* Images
* Matplotlib figures
Expand Down

0 comments on commit c38bb8b

Please sign in to comment.