TestSyntax

=======

This file file serves as your book's preface, a great place to describe your book's content and ideas.

This is my first gitbook describe my shuati journey. I had done Lintcode and this is for Leetcode only. Decouple is clean.

  • 测试png插图: maximumSquare
  • 测试代码高亮:

    /**
     * Inspired by https://leetcode.com/discuss/71652/java-solution-with-hashmap-string-string-beats-submissions
     *
     * @param dictionary
     */
    public UniqueWordAbbreviation(String[] dictionary) {
      for (String ss : dictionary) {
        String key = getKey(ss);
        if (map.containsKey(ss)) {
          if (!map.get(key).equals(ss)) {
            map.put(key, "");  // say: head, huud. then h2d is not a valid key
          }
        }
        else {
          map.put(key, ss);
        }
      }
    }
    
  • 比较作业部落: zybuluo支持TOC, tag. 但是gitbook支持导入图片, 这样我就不用先保存到七牛, 再导入过来了. 但是gitbook也不支持直接插入github代码. 而且似乎只能export到github, 但是gitbook修改的话并不会自动update github repo. 好处是Gitbook有无限revision.

  • Link a book and a GitHub repository

    • When your GitHub account is correctly linked to your GitBook account, linking a book to a repository is easy.

    • Caution: When you specify a GitHub repository in your book's settings, it will take priority over GitBook's git repository, this means that the editor will directly edit content on GitHub.

    • The sync is unidirectional(只能github通知gitbook), only changes made on GitHub will trigger builds on GitBook, GitBook will not update your GitHub repository with any content written before.

    • Open the GitHub section in your book settings: Click on the button Add a deployment webhook. You can now edit your GitHub repository from the web editor (if you have authorized the correct permissions), and your commit on GitHub will trigger builds on GitBook

  • 记录出过的问题:

    • 在synch的时候, 显示出错, 所以我在nodejs也build, 发现: TypeError: Path must be a string. Received null (In file 'dp.md'), 检查发现我之前链接[动归方程大全](???), 因为找不到那个link了. 但是zybuluo照常显示, 所以我就直接copy到gitbook editor里面, 也没问题. 但是gitbook build的时候出问题了.