occupo netlify Я следовал этому уроку https://www.vuejsradar.com/vuepress-netlify-cms-integration/ это мое репо https://github.com/DanielJDA/handbook_Spot из того, что я изменил, будет репозиторий и имя файла config.yml
backend:
name: github
repo: DanielJDA/handbook_Spot
branch: master # Branch to update (optional; defaults to master)
media_folder: "docs/.vuepress/public/images"
public_folder: "docs/.vuepress/dist/"
collections:
- name: "doc" # Used in routes, e.g., /admin/collections/blog
label: "Doc" # Used in the UI
folder: "docs" # The path to the folder where the documents are stored
create: true # Allow users to create new documents in this collection
slug: "{{slug}}" # Filename template, e.g., YYYY-MM-DD-title.md
fields: # The fields for each document, usually in front matter
- {label: "Title", name: "title", widget: "string"}
- {label: "Body", name: "body", widget: "markdown"}
моя проблема в том, что когда я нахожусь в админе, я делаю новый документ, и он создается, но он не добавляет его в меню и не показывает его уже в справочнике, мне пришлось бы отправить егоздесь для вызова config.js
module.exports = {
title: 'Netlify CMS + VuePress',
description: 'Netlify + VuePress',
themeConfig: {
docsDir: 'docs',
repo: ' DanielJDA/handbook_Spot',
sidebar: [
'/',
'/welcome',
'/test'
],
nav: [
{
text: 'Admin',
link: '/admin/#/',
}
]
}
}