From a8be1400ee4746e0ff1605a43a902468b8a7b750 Mon Sep 17 00:00:00 2001 From: luke-strange <92686634+luke-strange@users.noreply.github.com> Date: Fri, 6 Sep 2024 17:26:56 +0100 Subject: [PATCH] Update docs --- src/_includes/content/description.vto | 18 ++++++++++++++++++ src/index.vto | 21 +++++---------------- 2 files changed, 23 insertions(+), 16 deletions(-) create mode 100644 src/_includes/content/description.vto diff --git a/src/_includes/content/description.vto b/src/_includes/content/description.vto new file mode 100644 index 0000000..148bae9 --- /dev/null +++ b/src/_includes/content/description.vto @@ -0,0 +1,18 @@ +

Why?

+

+ This tool was born from recent work on our housing site where we started + documenting some of our code using + jupyter notebooks. In summary: +

+

+

How to use:

+

+ First, convert your notebook using the command line: jupyter nbconvert your_notebok.ipynb --to markdown. + The output will be saved in your current working directory. Then use this tool to convert the markdown to vento. +

+ diff --git a/src/index.vto b/src/index.vto index 1af999e..9b68a84 100644 --- a/src/index.vto +++ b/src/index.vto @@ -1,20 +1,9 @@ --- -title: Markdown to Vento Converter +title: --- -

- On our housing site we recently started - documenting some of our code using - jupyter notebooks. It's easy to convert these to markdown format using jupyter nbconvert, and Lume - supports markdown as a template format. This worked fine until we wanted to put - OI Lume charts onto those pages as well. At this point, we needed to convert the files to Vento to allow us to load - the charts and maintain the styling for the code blocks. This was a tedious manual process, so we made a tool to do it for us. - This programme runs in the browser - nothing ever leaves your computer. -

-

- First, convert your notebook using the command line: jupyter nbconvert your_notebok.ipynb --to markdown. - The output will be saved in your current working directory. Read the docs - for more detailed info. Then use this tool to convert the markdown to vento. -

+ +{{ include 'content/description.vto' }} +

Drop a markdown file here

or

@@ -22,5 +11,5 @@ title: Markdown to Vento Converter

Download Converted File

- +

This programme runs in the browser - nothing ever leaves your computer.