This mainly adds a categorization and meta-description layer on top of this and other example collections.
- edit
index.yaml
- call
./index.py
or just do a simplemake
to call that script.
-
Goal: autogenerated JSON for the CoCalc UI, such that user can select examples from a library -- no need to think about the specific representation, only the elements that are the actually moving parts for such a selector.
-
YAML Document Types
- first document: metadata
- description of tags
- description of license
- references: point to another index description file
- remaining documents are for each indexed entry:
src
: Filename/Directorytitle
description
tags
: for categorizationlicense
start
: entry point file
- first document: metadata
note: The index.py
file contains additional verification of the data for validity and consistency. Just follow what the assert-exceptions complain about ...
If you forgot to git clone --recursive
:
git submodule update --init --recursive
If you want to update all submodules in one go, do something like
git submodule foreach "git checkout master; git pull origin master"
or with resets
git submodule foreach "git fetch origin; git checkout master; git reset --hard origin/master"
You can also do make update
or something like that (see makefile
)
To add a new submodule, just do what the git doc says
Unless otherwise noted, Apache 2.0 for code and CC BY 4.0 for content.