@@ -299,12 +299,20 @@ def dummy_setup(session: nox.Session):
299299 "icon" : "minecraft:amethyst_shard" ,
300300 "description" : "Foo bar baz qux$(br)$(li)quux$(br)$(li2)corge$(br)$(li3)grault$(br)$(li4)garply$(li)waldo$(br)fred plugh xyzzy thud" ,
301301 "sortnum" : 0 ,
302+ "flag" : "foo:bar" ,
303+ },
304+ "categories/disabled.json" : {
305+ "name" : "Disabled" ,
306+ "icon" : "minecraft:bedrock" ,
307+ "description" : "Disabled" ,
308+ "flag" : "foo:baz" ,
302309 },
303310 "entries/bar.json" : {
304311 "name" : "Dummy Entry" ,
305312 "category" : "dummy:foo" ,
306313 "icon" : "minecraft:textures/mob_effect/nausea.png" ,
307314 "sortnum" : 0 ,
315+ "flag" : "foo:bar" ,
308316 "pages" : [
309317 {
310318 "type" : "patchouli:text" ,
@@ -471,6 +479,77 @@ def dummy_setup(session: nox.Session):
471479 },
472480 ],
473481 },
482+ "entries/flags.json" : {
483+ "name" : "Flags" ,
484+ "category" : "dummy:foo" ,
485+ "icon" : "minecraft:paper" ,
486+ "pages" : [
487+ {
488+ "type" : "patchouli:text" ,
489+ "text" : "enabled 1" ,
490+ "flag" : "does not exist" ,
491+ },
492+ {
493+ "type" : "patchouli:text" ,
494+ "text" : "enabled 2" ,
495+ "flag" : "foo:bar" ,
496+ },
497+ {
498+ "type" : "patchouli:text" ,
499+ "text" : "enabled 3" ,
500+ "flag" : "advancements_disabled_foo" ,
501+ },
502+ {
503+ "type" : "patchouli:text" ,
504+ "text" : "enabled 4" ,
505+ "flag" : "mod:aaaaaaaaa" ,
506+ },
507+ {
508+ "type" : "patchouli:text" ,
509+ "text" : "enabled 5" ,
510+ "flag" : "mod:minecraft" ,
511+ },
512+ {
513+ "type" : "patchouli:text" ,
514+ "text" : "disabled 1" ,
515+ "flag" : "foo:baz" ,
516+ },
517+ {
518+ "type" : "patchouli:text" ,
519+ "text" : "disabled 2" ,
520+ "flag" : "mod:foo" ,
521+ },
522+ {
523+ "type" : "patchouli:text" ,
524+ "text" : "disabled 3" ,
525+ "flag" : "advancements_disabled_bar" ,
526+ },
527+ {
528+ "type" : "patchouli:text" ,
529+ "text" : "disabled 4" ,
530+ "flag" : "debug" ,
531+ },
532+ {
533+ "type" : "patchouli:text" ,
534+ "text" : "web only" ,
535+ "flag" : "mod:hexdoc:web_only" ,
536+ },
537+ {
538+ "type" : "patchouli:text" ,
539+ "text" : "ingame only" ,
540+ "flag" : "!mod:hexdoc:web_only" ,
541+ },
542+ ],
543+ },
544+ "entries/disabled.json" : {
545+ "name" : "Disabled" ,
546+ "category" : "dummy:foo" ,
547+ "icon" : "minecraft:bedrock" ,
548+ "flag" : "foo:baz" ,
549+ "pages" : [
550+ "disabled" ,
551+ ],
552+ },
474553 },
475554 },
476555 "data/dummy" : {
@@ -553,6 +632,12 @@ def dummy_setup(session: nox.Session):
553632 ]
554633 export_dir = "src/hexdoc_dummy/_export/generated"
555634
635+ [flags]
636+ "foo:bar" = true
637+ advancements_disabled_foo = true
638+ "foo:baz" = false
639+ "mod:foo" = false
640+
556641 [template]
557642 icon = "icon.png"
558643 include = [
0 commit comments