Skip to content

Latest commit

 

History

History
24 lines (18 loc) · 1.19 KB

README.md

File metadata and controls

24 lines (18 loc) · 1.19 KB

教程

教程作为文档的一部分包含在它们自己的章节中。

创建一个新的教程:

  • _doc/tutorials/中创建一个新的目录索引文件,比如cp wurstbeginner.md new_tutorial.md
  • Create a new set of tuturial pages in _doc/tutorials/ - e.g. cp -r wurstbeginner new_tutorial.
  • Define the pages by changing the contents of _doc/tutorials/new_tutorial/ - usually one or two markdown files will suffice.
  • Add the new tutorial to the tutorials listing in _doc/tutorials.md - just need to add a uri in the navigation section.
  • Setup new_tutorial.md as necessary for your pages:
    • Edit the title, excerpt, date, icon, color.
    • Change the sections to match the uri of the pages of your tutorial.
  • Write your tutorial pages, being sure to update the heading sections as necessary.

在本地搭建页面

  1. 检查你是否安装了ruby 2.1.0或者更高的版本:ruby --version
  2. 安装 Bundler:gem install bundler
  3. 在本仓库的根目录中执行 bundle install
  4. 运行服务器:bundle exec jekyll serve