diff --git a/docs/websites/readme.md b/docs/websites/readme.md index 4c78d105b13b7fe3903ce3ebe39cfa5b83670a14..953028885d23096747e48145a3eab240b3ba625d 100644 --- a/docs/websites/readme.md +++ b/docs/websites/readme.md @@ -47,3 +47,42 @@ Attributes: - campus:references (optional) - program:references (optional) - session:references (optional) + +## websites/Menu + +Attributes: +- university:references +- website:references +- title:string +- identifier:string + +## websites/menu/Item + +Attributes: +- university:references +- website:references +- menu:references +- title:string +- parent:references +- position:integer +- kind:integer (enum: page, url) +- about:references (polymorphic) + +## Export du menu + +/data/menu.yml +```yaml +primary: + - title: Accueil + target: / + - title: Formations + target: /formations + children: + - title: DUT + target: /formations/dut + - title: ENT + target: https://ent.u-bordeaux3.fr +legal: + - title: Mentions légales + target: /mentions-legales +```