Import custom StyleBooks 编辑

After you have built your StyleBook, you have to import it to Citrix Application Delivery Management (ADM) to use it. Citrix ADM allows you to import a single StyleBook in YAML form or multiple StyleBook YAML files as a bundle in a .zip, .tgz, or .gz form. The Citrix ADM system validates your StyleBooks on import. The StyleBook is now ready to be used for creating configurations.

Citrix ADM also has a built-in YAML editor that you can use to compose the StyleBook YAML contents. The YAML editor allows you to validate your YAML constructs from the Citrix ADM GUI itself. You do not need to use a separate tool for these validation checks. The content is validated against YAML standards and any deviation is highlighted. You can then correct the content and attempt to import the StyleBook into Citrix ADM. The built-in YAML editor provides two advantages while writing your own StyleBook.

  • Color coded. The editor displays the StyleBook content parsed as per YAML guidelines, and the color coding helps you to differentiate easily between the keys and the values defined in the YAML content.
  • YAML validation. The content is validated for any YAML errors as you type in and any deviation is immediately highlighted. This validation allows you to write text that conforms to YAML guidelines even before you import the StyleBook in the ADM.

Note

Currently, the editor validates the content according to YAML guidelines. It does not validate for code correctness and typographical errors.

To import your StyleBook

  1. In Citrix ADM, navigate to Applications > Configuration > StyleBooks, and then click Import New StyleBook.

  2. Click one of the following options to import a StyleBook.

    • File - select the required file or the bundle of files from your local storage.

      Note

      In this example, import the lb-vserver.yml StyleBook that you had created in StyleBook to Create a Load Balancing Virtual Server.

      Import a StyleBook file

    • Bundle - Citrix ADM allows you to import multiple StyleBooks in YAML format. You can import more than one YAML StyleBook files that are compressed in a zip (.zip) format or tarball (.tgz, .gz) format.

      Import a StyleBook bundle

      You can now include icons to each StyleBook in the bundle. Ensure to have the resources folder that contains icons in the PNG, GIF, or JPEG formats. If the icon file name matches the StyleBook name, the icons are automatically mapped to the StyleBooks. Otherwise, do the following:

      1. Add the icon_mapping.json file in the resources folder.

      2. Map StyleBooks and icons in the icon_mapping.json file as follows:

        <StyleBook file name> : <icon file name>
        <!--NeedCopy-->
        

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据

词条统计

浏览:40 次

字数:3978

最后编辑:6年前

编辑次数:0 次

    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文