PyChina / weekly

Pelican as static blog for http://weekly.pychina.org
53 stars 11 forks source link

weekly.PyChina.org

in fact from 2003 there is CZUG.org ~ the 1st(and only one) focus Zope tech community be set up;

so years ago, there is soooooooo many python tech abt. commuity in China

but never group as one unify community brand, like as: perl-china/ruby-china etc.

so after PyCon2013China, some old Chinese Pythonista together and building:

goal

organizer

path

usage

How to update the site contents

main loop:

  1. git clone
  2. edit some .md in content/
  3. fab build && fab serve for test local
  4. cd output this is another repo. yet!
  5. mark the article you have applied on GitCafe Ticket
  6. git add->ci->push
  7. fab deploy published all

writing

文章格式

deploy

支持本地调试! 使用 fabric 进行管理, 支持的命令:

fab 
Available commands:

    build       编译所有页面
    deploy      向主机部署所有页面
    reserve     重编译所有页面再启动本地服务
    serve       启动本地服务 localhost:8000

注意! 向主机部署,需要有相关权限,并在本地配置好对应 SSH 信息

design

基于 pelican-bootstrap3 深度定制

贡献

提交你的贡献到CPyUG / weekly,先确保自己的仓库与上游仓库同步

# 在 Fork 的代码库中添加上游代码库的 remote 源,(操作一次就可以,以后不必每次添加)
git remote add upstream https://gitcafe.com/CPyUG/weekly.git

# 查看添加的上游仓库
git remote -v

# 提交本地修改
git add .
git commit -m "****"

# 同步上游版本
git remote update upstream
git rebase upstream/master

# push代码到gitcafe
git push origin master

# pull request
在自己gitcafe项目仓库下提交pull request到上游仓库

changelog