Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support traversing specified content #16

Open
eryajf opened this issue Jun 14, 2022 · 3 comments
Open

Support traversing specified content #16

eryajf opened this issue Jun 14, 2022 · 3 comments

Comments

@eryajf
Copy link
Contributor

eryajf commented Jun 14, 2022

大多数时候遍历需要运行在README的多个地方,目前好像还没有版本配置遍历指定内容到某个位置。

我想到的一个思路是,比如以ops开头的配置文件,我可以再配置遍历的时候,指定这批文件。以test开头的配置文件,在需要遍历的地方指定以test开头。

@LinuxSuRen
Copy link
Owner

如果结构相同的话,可以用分组模式

image

image

image

@eryajf
Copy link
Contributor Author

eryajf commented Jun 14, 2022

groupby: year 是个固定的按年来过滤吗。有一些目录没有这样的规则,又该如何排列呢

@LinuxSuRen
Copy link
Owner

LinuxSuRen commented Jun 14, 2022

groupby 是个参数,YAML 中只要有对应字段即可,排序的话可以用 orderby。解析的目录是通过参数 pattern 来设置的。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants