From 28b14901d33ecb74124a3460097cd584f28d35ca Mon Sep 17 00:00:00 2001 From: Yang Jun Date: Fri, 25 Oct 2024 21:30:00 +0800 Subject: [PATCH] docs: add context json for playground default demo, #764 --- docs/themes/navy/layout/partial/demo.json | 7 +++ docs/themes/navy/layout/partial/demo.liquid | 2 - docs/themes/navy/layout/playground.swig | 17 +++++--- .../navy/source/css/_partial/playground.styl | 43 ++++++++++--------- 4 files changed, 41 insertions(+), 28 deletions(-) create mode 100644 docs/themes/navy/layout/partial/demo.json diff --git a/docs/themes/navy/layout/partial/demo.json b/docs/themes/navy/layout/partial/demo.json new file mode 100644 index 0000000000..d237b39116 --- /dev/null +++ b/docs/themes/navy/layout/partial/demo.json @@ -0,0 +1,7 @@ +{ + "people": [ + "alice", + "bob", + "carol" + ] +} diff --git a/docs/themes/navy/layout/partial/demo.liquid b/docs/themes/navy/layout/partial/demo.liquid index 21739b90fb..b8bf0d5ea8 100644 --- a/docs/themes/navy/layout/partial/demo.liquid +++ b/docs/themes/navy/layout/partial/demo.liquid @@ -1,5 +1,3 @@ -{% assign people = "alice, bob, carol" | split: ", " -%} -