{"id":18898415,"url":"https://github.com/hychen/octopress-admin","last_synced_at":"2026-03-01T10:30:17.447Z","repository":{"id":1962100,"uuid":"2892679","full_name":"hychen/octopress-admin","owner":"hychen","description":"octopress blog management script","archived":false,"fork":false,"pushed_at":"2011-12-18T13:34:22.000Z","size":105,"stargazers_count":3,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-12-31T08:45:43.780Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hychen.png","metadata":{"files":{"readme":"README.markdown","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2011-12-01T17:13:31.000Z","updated_at":"2023-04-08T05:43:48.000Z","dependencies_parsed_at":"2022-09-09T06:10:50.470Z","dependency_job_id":null,"html_url":"https://github.com/hychen/octopress-admin","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hychen%2Foctopress-admin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hychen%2Foctopress-admin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hychen%2Foctopress-admin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hychen%2Foctopress-admin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hychen","download_url":"https://codeload.github.com/hychen/octopress-admin/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239879317,"owners_count":19712176,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-08T08:42:33.072Z","updated_at":"2026-03-01T10:30:16.453Z","avatar_url":"https://github.com/hychen.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"hychen's octopress admin script\n\n# Requirement\n\n- python (\u003e=2.5)\n- git\n- sensible-editor\n- python modules:\n\t- [UCLTIP](pypi.python.org/pypi/ucltip) (\u003e= 0.6)\n\n# Installation\n\n## install dependecy for Ubuntu/Debian users\n\n\tuser@host:~$ apt-get install git\n\tuser@host:~$ apt-get install python-ucltip\n\n## get source\n\n\tuser@host:~$ git clone http://github.com/hychen/octopress-admin\n\n## install script\n\n\tuser@host:~$ cd octopress-admin\n\tuser@host:octopress-admin$ python setup.py install\n\nor just create a link\n\n\tuser@host:octopress-admin$ ln -s ~/bin/blog $PWD/octopress-admin/bin/octopress-admin\n\n*notice*: if you want to use command located in ~/bin, you need to add ~/bin to PATH variable, like this\n\n\tPATH=~/bin:$PATH\n\n## How to use it\n\nbefore using this tool, please setup your ruby enviroment for octopress\n\n### create a new blog site\n\ncloned octopress source\n\n\t$ octopress-admin new hyblog\n\n\n### install bundle, do setup of github\n\nsetup for deploy to github\n\nnote: a user gh_page repository in github link is required\n\n\t$ octopress-admin new hyblog\n\n### create a draft post\n\ncreate a new post and commit in a git branch, every draft post is\nmapping to a git branch name starts with a drafts prefix\n\n\t$ octopress-admin post 'this is a new post'\n\t---\n\tlayout: post\n\ttitle: \"\"hello\"\"\n\tdate: 2011-12-04 05:15\n\tcomments: true\n\tcategories:\n\t---\n\nhere is how log look likes\n\n\t2011-12-04 Hsin-Yi Chen (hyc~ o [source] enable facebook like\n\t2011-12-04 Hsin-Yi Chen (hyc~ │ o [drafts/2011-12-04-hiello] start to write hiello\n\t2011-12-04 Hsin-Yi Chen (hyc~ I─┘ Finished github deploy settings\n\n### list draft posts you have\n\nlist posts in drafts/* branchs\n\n\t$ octopress-admin drafts\n\t[1] source/_posts/2011-12-04-hello.markdown (branch: drafts/2011-12-04-hello)\n\n### edit a draft post\n\ncheckout to a draft branch and use user favor editor to modify the draft post\n\n\t$ octopress-admin edit 1\n\t---\n\tlayout: post\n\ttitle: \"\"hello\"\"\n\tdate: 2011-12-04 05:15\n\tcomments: true\n\tcategories:\n\t---\n\n1 is a number as a index of draft branchs, it is recommand to use\n`octopress-admin drafts` to know the index of drafts now, because branch index is not always the same.\n\n### publish a draft post\n\nmerge a draft post to source and also delete a draft branch which means\nthe draft post will be include in next blog site building\n\n\t$ octopress-admin publish 1\n\n1 is a number as a index of draft branchs\n\nhere is the commit log after publish the draft\n\n\t2011-12-04 Hsin-Yi Chen (hyc~ M─┐ [source] Merge branch 'drafts/2011-12-04-hello' into source\n\t2011-12-04 Hsin-Yi Chen (hyc~ │ o start to write hello\n\t2011-12-04 Hsin-Yi Chen (hyc~ o │ enable facebook like\n\t2011-12-04 Hsin-Yi Chen (hyc~ o─┘ Finished github deploy settings\n\n### deploy blog\n\ngenerate contents of blog site and push to github\n\n\t$ octopress-admin deploy\n\n### upgrade blog\n\nget lastest octopress source code and install\n\n\t$ octopress-admin upgrade\n\n### preview blog\n\nrun `rake preview`\n\n\t$ octopress-admin preview\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhychen%2Foctopress-admin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhychen%2Foctopress-admin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhychen%2Foctopress-admin/lists"}