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 @@ +
+ This tool was born from recent work on our housing site where we started + documenting some of our code using + jupyter notebooks. In summary: +
jupyter notebook
and you want to put it on a Lume
site, you need to convert it to a format Lume
knows about.markdown
with jupyter nbconvert
. OI Lume charts
or parts of other pages using {{ "{{ includes }}" |> escape }}
tags, you need a .vento
(or .njk
) file.markdown
format to vento
, preserving things like front matter, and various HTML
tags. It adds {{ "" |> escape }}
tags to sentences and formats any code blocks correctly so that they can be styled using the prism
plugin.
+ 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.
+
- 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.
-
Drop a markdown file here
or
@@ -22,5 +11,5 @@ title: Markdown to Vento ConverterThis programme runs in the browser - nothing ever leaves your computer.