From 94a67156679026c48440a6c51052867c08b33322 Mon Sep 17 00:00:00 2001 From: Harttle Date: Sat, 28 Dec 2024 21:49:29 +0800 Subject: [PATCH] docs: zh-cn translation for static analyze features --- docs/source/tutorials/static-analysis.md | 16 +- .../source/zh-cn/tutorials/static-analysis.md | 292 ++++++++++++++++++ docs/themes/navy/languages/zh-cn.yml | 1 + 3 files changed, 303 insertions(+), 6 deletions(-) create mode 100644 docs/source/zh-cn/tutorials/static-analysis.md diff --git a/docs/source/tutorials/static-analysis.md b/docs/source/tutorials/static-analysis.md index b8535f9d6..86c580a39 100644 --- a/docs/source/tutorials/static-analysis.md +++ b/docs/source/tutorials/static-analysis.md @@ -4,8 +4,12 @@ title: Static Template Analysis {% since %}v10.20.0{% endsince %} +{% note warn Experimental %} +Note that this is an experimental feature and future APIs are subject to change. And internal structures returned can be changed w/o a major version bump. +{% endnote %} + {% note info Sync and Async %} -There are synchronous and asynchronous versions of each of the methods demonstrated on this page. See the [Liquid API](liquid-api) for a complete reference. +There are synchronous and asynchronous versions of each of the methods demonstrated on this page. See the [Liquid API][liquid-api] for a complete reference. {% endnote %} ## Variables @@ -17,7 +21,7 @@ import { Liquid } from 'liquidjs' const engine = new Liquid() -const template = engine.parse(`\ +const template = engine.parse(`

{% assign title = user.title | capitalize %} {{ title }} {{ user.first_name | default: user.name }} {{ user.last_name }} @@ -129,7 +133,7 @@ By default, LiquidJS will try to load and analyze any included and rendered temp ```javascript import { Liquid } from 'liquidjs' -const footer = `\ +const footer = `