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

Unable to update docs using docs command #251

Closed
rayraffi opened this issue Oct 20, 2020 · 0 comments · Fixed by #312
Closed

Unable to update docs using docs command #251

rayraffi opened this issue Oct 20, 2020 · 0 comments · Fixed by #312

Comments

@rayraffi
Copy link

rayraffi commented Oct 20, 2020

Hi, I am trying to use the docs command to create or update our guides in an automated way in a CI pipeline, but instead of updating a doc that exists, the CLI keeps creating a new one. I have the slug for the doc defined in the front matter of the markdown file and the file name matches this slug.

Looking at the source code for the command here it looks like when the updateDoc function is called it gets passed undefined for existingDoc parameter, which should raise an error in the if-check in the beginning of the function, which makes it always create the doc instead.

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

Successfully merging a pull request may close this issue.

1 participant