From 1c652ec5e82a52aab8b93bb1719cec6309d6b178 Mon Sep 17 00:00:00 2001 From: Rowan Cockett Date: Wed, 20 Mar 2024 11:55:21 -0600 Subject: [PATCH 1/2] Example template of a book --- myst.yml | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/myst.yml b/myst.yml index ed720e3..b0439eb 100644 --- a/myst.yml +++ b/myst.yml @@ -5,7 +5,7 @@ project: description: | An overview of 2i2c's impact and operations over the first three years of its existence, as part of a grant final narrative for CZI. - thumbnail: "images/social.png" + thumbnail: 'images/social.png' keywords: [open grants, open science, jupyter, open infrastructure] authors: - name: Chris Holdgraf @@ -18,19 +18,19 @@ project: github: https://github.com/2i2c-org license: CC-BY-4.0 open_access: true - date: "2023-03-01" + date: '2023-03-01' funding: This report is for the [seed funding from CZI described in this blog post](https://2i2c.org/blog/2021/czi-core-support/). # bibliography: [] # Neither of these exports works, so for now I'm just ignoring them. exports: - # - format: typst - # template: lapreprint-typst - # toc: _toc.yml - # output: _build/pdf/my-document-typst.pdf + - format: typst + template: https://github.com/rowanc1/typst-book.git + toc: _toc.yml + output: report.pdf # - format: pdf # template: volcanica - # article_type: Report + # article_type: Report # toc: _toc.yml # output: _build/pdf/my-document-latex.pdf site: @@ -39,7 +39,7 @@ site: options: logo: images/logo.png favicon: images/favicon.png - logo_text: "2023 three year report" + logo_text: '2023 three year report' nav: - title: 2i2c links children: @@ -48,4 +48,4 @@ site: - title: Service documentation url: https://docs.2i2c.org/en/latest/ - title: Infrastructure guide - url: https://infrastructure.2i2c.org/en/latest/ + url: https://infrastructure.2i2c.org/en/latest/ From 2efdd6176305789b4bc697aaff46288a03f18fc7 Mon Sep 17 00:00:00 2001 From: Rowan Cockett Date: Wed, 20 Mar 2024 12:07:44 -0600 Subject: [PATCH 2/2] Toc ignores the index page --- myst.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/myst.yml b/myst.yml index b0439eb..e6ac3c9 100644 --- a/myst.yml +++ b/myst.yml @@ -26,7 +26,11 @@ project: exports: - format: typst template: https://github.com/rowanc1/typst-book.git - toc: _toc.yml + articles: + - main.md + - year3.md + - year2.md + - year1.md output: report.pdf # - format: pdf # template: volcanica