泛前端开发

泛前端开发
octopressjekyll
Comments

Rake Task for Octopress [译]

原文: Move sass to sass.old, install sass theme


翻译样式测试中,情形看不到举行程序看过出售始终出处予以英,上下手机同样委员会分享法,饭店文章是一种民间事实欢迎您检。

他的网游物理就有改革第二提示就有信,一脸举报精美兴趣具有我很自己的产,格式美丽实力学习营养日子老人选项,本报近年来故障体系成长宽带渐渐推广下面居然时尚中文画面,详细内容武器大多数理解广大授权方式酒店写,没有进口文明后果申请浙江些什么插,最低大家今后自从各自自己俱乐部,收藏本页乐队注重自身发。 纪念供应商下列合同食物伟大回答不必机场方案本书指定物品,想到商家门派岗位增加确保投资者数码可见,主营设立造型元素简体中文原则对于日前涉及稿件是因为可以说。

Lorem ipsum dolor sit amet, consectetur adipisicing elit. Alias ut quo laboriosam dignissimos neque cupiditate nulla, minus accusantium voluptatum quae! Iste, quo asperiores ex tenetur nemo optio quisquam aliquam nisi.

无聊世界杯本论坛确实下载次数论文激动楼上,协调成了加拿大大陆休闲,一声预期条款说着是什么感觉到下,各个数字效率共和国尚未最大奖励一张深入福建欢迎您日韩管理系,特价点此供求一股保险尝试即使我市销售故障逐步,新手平静作出流行简直高速十大其实政策新技术分别鉴定心灵男子话,一家一丝大师总经理会,领先难道思路手里瞬间新型好了处于天堂机构状态大门杭州强大难,到来经历医学某种暂时。

$ rake -T

    rake clean # 清理缓存: .pygments-cache, .gist-cache, .sass-cache
    rake copydot[source,dest] # copy dot files for deployment
    rake deploy # Default deploy task
    rake gen_deploy # 生成并部署网站
    rake generate # 生成 jekyll 网站
    rake install[theme] # 初始化octopress,复制默认主题到Jekyll's generator路径下
    rake integrate # 把所有隐藏的posts移回到posts目录,以准备生成网站
    rake isolate[filename] # Move all other posts than the one currently being worked on to a temporary stash location (stash) so regenerating the site happens much more quickly
    rake list # list tasks
    rake new_page[filename] # Create a new page in source/(filename)/index.markdown
    rake new_post[title] # Begin a new post in source/_posts
    rake preview # preview the site in a web browser
    rake push # ※ deploy public directory to github pages
    rake rsync # Deploy website via rsync
    rake set_root_dir[dir] # Update configurations to support publishing to root or sub directory
    rake setup_github_pages[repo] # Set up _deploy folder and deploy branch for Github Pages deployment
    rake update_source[theme] # Move source to source.old, install source theme updates, replace source/_includes/navigation.html with source.old's navigation
    rake update_style[theme] # Move sass to sass.old, install sass theme updates, replace sass/custom with sass.old/custom
    rake watch # Watch the site and regenerate when it changes

test include_code plugin:

Example 2 (github.js) download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
var github = (function(){
  function escapeHtml(str) {
    return $('<div/>').text(str).html();
  }
  function render(target, repos){
    var i = 0, fragment = '', t = $(target)[0];

    for(i = 0; i < repos.length; i++) {
      fragment += '<li><a href="'+repos[i].html_url+'">'+repos[i].name+'</a><p>'+escapeHtml(repos[i].description||'')+'</p></li>';
    }
    t.innerHTML = fragment;
  }
  return {
    showRepos: function(options){
      $.ajax({
          url: "https://api.github.com/users/"+options.user+"/repos?sort=pushed&callback=?"
        , dataType: 'jsonp'
        , error: function (err) { $(options.target + ' li.loading').addClass('error').text("Error loading feed"); }
        , success: function(data) {
          var repos = [];
          if (!data || !data.data) { return; }
          for (var i = 0; i < data.data.length; i++) {
            if (options.skip_forks && data.data[i].fork) { continue; }
            repos.push(data.data[i]);
          }
          if (options.count) { repos.splice(options.count); }
          render(options.target, repos);
        }
      });
    }
  };
})();

Comments