Skip to content

This repos keeps public repos to host public posts of knowledge-repo.come

Notifications You must be signed in to change notification settings

mengting1010/knowledge-repo.com

 
 

Repository files navigation

Knowledge Repository

This is a git repository that stores documents called "Knowledge Posts" in a format compatible with that of the Knowledge Repo project.

If you are looking to contribute a post to this repository, please follow the below quickstart guide or the upstream documentation.

Live Demo

A hosted website for this project is available at https://www.knowledge-repo.com.

Quickstart

1. Install the knowledge-repo tooling

pip install  --upgrade "knowledge-repo[all]"

2. Clone this repository to your local machine

git clone <git_url> <repo_path>

Note: If you regularly interact with this repository, you can avoid adding --repo <repo_path> in all of the below commands by exporting a shell environment variable:

export KNOWLEDGE_REPO="<repo_path>"

3. Create a post template

For a Jupyter notebook:

knowledge_repo create ipynb example_post.ipynb

For a R markdown:

knowledge_repo create Rmd example_post.Rmd

For a general markdown:

knowledge_repo create md example_post.md

4. Edit the notebook file example_post.ipynb, example_post.Rmd, or example_post.md as you normally would.

5. Add your post to the repo with in-repository path of example/post_name

knowledge_repo add <post_file> -p example/post_name

6. Preview the added post to ensure everything is rendering correctly

knowledge_repo preview example/post_name

7. Submit post as a new git branch in this repository

knowledge_repo submit example/post_name

8. Open a pull/merge request on your branch through GitHub

Once ready, merge your branch into master, and your post will shortly thereafter appear in attached Knowledge Repo servers.

About

This repos keeps public repos to host public posts of knowledge-repo.come

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Jupyter Notebook 100.0%