Include-csv

Gitbook 插件:展示 csv 文件。

[!TIP|style:flat|iconVisibility:hidden|labelVisibility:hidden] npm install --save gitbook-plugin-include-csv

https://github.com/TakuroFukamizu/gitbook-plugin-include-csv

{
    "plugins": ["include-csv"]
}

使用示例1:

{% includeCsv src="./demo.csv", useHeader="true" %}

{% endincludeCsv %}

其中, demo.csv 中的内容:

编程语言,排名,份额
Java, 1,16.88
C , 2,16.18
Python, 3,9.09

效果如下所示:

编程语言 排名 份额
Java 1 16.88
C 2 16.18
Python 3 9.09

使用示例2:

{% includeCsv %}
hoge,fuga
a,0001
b,002
{% endincludeCsv %}

效果如下所示:

编程语言 排名 份额
Java 1 16.88
C 2 16.18
Python 3 9.09

results matching ""

    No results matching ""