Generating a starting myst.yml
¶
Jupyter Book ships with an init
command, which initializes a myst
project in the current directory. Let’s run the command to create a simple myst.yml
:
$ jupyter book init
The init
command will ask whether you want to run the start
command, which launches a local webserver that renders your MyST project. We will exit the program by pressing n and Enter, as we do not yet have any content to look at!
Let’s inspect the myst.yml
file that has been generated.
Most of the lines in this YAML file are comments, but there are a couple of things to take note of:
project
- The
project
key defines the project frontmatter, which allows you to speocfy how your project should render and behave. We’ll look at this section later in this tutorial. site
- The
site
key defines the website configuration, used by thestart
command or when building an HTML export. Here, we’re telling MyST to use the book theme.
Configuring your project¶
A myst.yml
file comprises multiple sections that configure different parts of the MyST engine. Of particular importance is the project
field which contains the project metadata. Examples of configuration that we might add to the project frontmatter include a list of authors
, a description
/title
, and a license
. For detailed information about the possible frontmatter fields, see the MyST-MD documentation.
Let’s update our myst.yml
with some information about the project:
To proceed with building a website or PDF, we need to create some content. See Writing in MyST Markdown.