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

看云支持了目录层次,大佬有时间更新下支持文件夹目录生成summary吗 #1

Open
Layty opened this issue Jul 26, 2018 · 2 comments
Labels
good first issue Good for newcomers

Comments

@Layty
Copy link

Layty commented Jul 26, 2018

按照现在的,生成的目录层次不是按照文件夹的,有计划做更新吗

@YYago
Copy link
Owner

YYago commented Jul 26, 2018

我记得加了缩进(按文件夹层级递增)的,算是按文件夹生成的意图,这可能因为系统而有所差异。我windows 下的测试结果:

* [kc-cli](def.md)
  * [sss](dirA/b_a.md)
  * [c_A](dirA/c_a.md)
  * [my test](dirA/my.md)
  * [a](dirB/a.md)
  * [undefined](dirB/_summary.md)
    * [test db](dirB/dirB/db.md)
      * [test dba](dirB/dirB/dB_a/dba.md)
        * [test A](dirB/dirB/dB_a/dB_a_a/dbaa.md)

当然,指定某个文件夹进行缩进(分级)——类似gitbook的分级模式也考虑过,但中文作为文件夹名是不太妥的,因此就没设计。

不过这个顺序终究是要靠手动调的——哪怕是按文件夹生成的(这也是不直接重写SUMMARY.md文件的原因)。设计这个只是为方便把'* [文章标题](文章路径)'这样的结构整理出来而已。

@YYago YYago added the good first issue Good for newcomers label Jul 26, 2018
@Layty
Copy link
Author

Layty commented Jul 26, 2018

了解了,还是要手动调节一下. 这个工具主要用来生成链接,目录结构需要自己调整

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

No branches or pull requests

2 participants