Description Usage Arguments Details Examples
Add a local file to a knowledge repository. Unless submit = TRUE, this doesn't (yet) submit the post.
1 2 3 |
filename |
Filename to add |
path |
The path of the destination post to be added in the knowledge repo. Required if the knowledge post does not specify "path" in its headers. |
update |
Whether this should update an existing post of the same name. |
branch |
The branch to use for this addition, if not the default (which is the path of the knowledge post). |
squash |
Automatically suppress all previous commits, and replace it with this version. |
submit |
Submit newly added post. |
message |
Commit message. By default, will use 'Adding post: [title]' |
src |
Specify additional source files to add to
|
browse_pr |
If |
... |
Global arguments to |
repo |
Repository of the knowledge post to add |
Global arguments that can be passed to all knowledge_repo commands include:
repoPath to Knowledge Repository to add to. Can also set
KNOWLEDGE_REPO
variable in .Renviron
.
devWhether to skip passing control to version of code checked out in knowledge repository.
debugWhether to enable debug mode.
noupdateWhether script should update the repository before performing actions.
versionShow version and exit.
helpShow help and exit
1 2 3 4 5 6 7 8 9 10 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.