使用Powershell的Antora上的
我尝试将冒号添加到第8行
site:
title: Antora Demo Site
url: https://example.org/docs
start_page: antora-project::index-template.adoc
content:
sources:
- url:
home/Users/rashmi.p1/Sample/antora-project/content/feature1
- url:
home/Users/rashmi.p1/Sample/antora-project/content/feature2
start_path: docs
ui:
bundle:
url:
home/Users/rashmi.p1/Sample/antora-project/resources
snapshot: true
我希望编译工作可以开始并生成网站
答案 0 :(得分:0)
在useDispatch()
下,URL应该与dispatch
在同一行,我认为您需要指定要使用的分支。
按照定义,您的URL是相对的,但看起来它们应该是绝对的。如果这些路径可以从您调用Antora的文件夹中正确解析,则它们应该可以正常工作。
sources:
URL必须指向捆绑的Antora UI的ZIP文件。您不能简单地使用代表UI的文件夹。在下面的示例中,我将您使用的URL替换为Antora的默认UI的URL。
因此您的剧本文件应更像:
- url:
答案 1 :(得分:0)
我也遇到过同样的例外,但不是同一问题。我的问题在说明下,而在参数下。我在那里只保留了一些空间。删除空间后,它可以正常工作。
您可以在此图像中找到它,以了解加倍器:
希望有帮助。
答案 2 :(得分:0)
检查您是否有引号。用 \"Sometext\"
逃脱它们。示例 YAML:
---
title: Bad relationships still require work. Don't compromise
lastUpdate: 19 July 2021
tags: ['personal', 'relationships', 'compromise']
slug: bad-relationships-require-work
meta:
title: Bad relationships still require work. Don't compromise
description: "ERROR HERE The relationship is bad, therefore I can maintain it with less work. ERROR HERE" That's usually a sneaky fallacy.
---
见ERROR HERE
。引号应该被转义