在Netlify CMS的config.yml中,如何指定站点在存储库的子目录中?

时间:2020-03-29 16:25:30

标签: github-pages netlify-cms

我在github.com/some_user/some_repo上有一个存储库,它设置为通过master分支的./docs子文件夹中的GitHub页面部署到example.com。

./ docs / admin / config.yml(和example.com/admin/config.yml)具有以下代码:

backend:
  name: github
  repo: some_user/some_repo
  branch: master
  base_url: https://my-authentication-server.example.com

如何告诉netlify CMS代码在./docs子文件夹中,而不是代码库的根目录?有这样的东西吗?

backend:
  ...
  site_directory: docs
  ...

1 个答案:

答案 0 :(得分:0)

据我所知,没有这样的指令,但是,每个文件或文件夹都应设置为驻留在子目录中,例如:

tips = sns.load_dataset('tips')
ax = sns.stripplot(x="day", y="total_bill", data=tips, edgecolor='k', linewidth=2)

等然后就可以了。