-
Notifications
You must be signed in to change notification settings - Fork 686
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
Improve tooling and backend for creating and working with knowledge posts #308
Conversation
b7baf87
to
ab40974
Compare
ab40974
to
115fb69
Compare
❌ Build knowledge-repo 1.0.569 failed (commit 2d97a670be by @matthewwardrop) |
✅ Build knowledge-repo 1.0.571 completed (commit 3e6de6fe42 by @matthewwardrop) |
✅ Build knowledge-repo 1.0.573 completed (commit 90d0803e86 by @) |
@danfrankj Build errors are unrelated to this change (conda issues related to R sources). |
✅ Build knowledge-repo 1.0.575 completed (commit 45d239e113 by @) |
1d16dc5
to
145cc98
Compare
✅ Build knowledge-repo 1.0.577 completed (commit c0e3e6a8b4 by @matthewwardrop) |
145cc98
to
07ed1b4
Compare
This PR begins work on improving the user experience when working with knowledge posts. This PR utilises the portable knowledge posts introduced in earlier work to act as the repository-independent representation of knowledge post that can the be added to one or more repositories at whim.
kp
for interacting with knowledge posts in their new native.kp
format (will replaceknowledge_repo
for these tasks)kp <post_path> from <source_path> [--format <format>] [--src *args]
kp <post_path> to <target_path> [--format <format>]
kp <post_path> preview
kp <post_path> submit [<repo_url>] repo_path [--update] [--message <message>]
FolderKnowledgeRepository
class for local filesystem accessThe
FolderKnowledgeRepository
is used for previews of knowledge posts that can now be located anywhere on your hard drive. Unless explicitly requested by referencing the repository using thefile://
protocol, it will automatically be replaced by aGitKnowledgeRepository
if a '.git' folder is found within it, ensuring backwards compatibility.In the future we can extend this new tooling with such functionality as
edit
andcreate
.Auto-reviewers: @NiharikaRay @matthewwardrop @earthmancash @danfrankj