innoconv.manifest
The manifest comprises course metadata.
A manifest.yml
file needs to exist in every course content and resided at
the content root directory. It is usually written by hand.
There is also a representation in the JSON format. It is generated
automatically by the converter and additionally includes the table of contents
that is generated from the section structure. It can be found in the output
folder.
Example
title:
en: Example title
de: Beispiel-Titel
languages: en,de
-
class
innoconv.manifest.
Manifest
(data)[source]
Represents course metadata.
-
classmethod
from_yaml
(yaml_data)[source]
Create a manifest from YAML data.
Parameters: | yaml_data (str) – YAML representation of a manifest |
-
class
innoconv.manifest.
ManifestEncoder
(*, skipkeys=False, ensure_ascii=True, check_circular=True, allow_nan=True, sort_keys=False, indent=None, separators=None, default=None)[source]
JSON encoder that can handle Manifest objects.
-
default
(o)[source]
Return dict for Manifest objects.