-
Notifications
You must be signed in to change notification settings - Fork 0
totemofwolf/totemofwolf.github.io
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
<!DOCTYPE html> <html lang="zh-cn"> <head prefix="og: http://ogp.me/ns#"><meta name="generator" content="Hexo 3.8.0"> <meta charset="utf-8"> <title>Contributing | W0ng.Unic0rn blog</title> <meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1"> <meta name="viewport" content="width=device-width, initial-scale=1"> <!-- Canonical links --> <link rel="canonical" href="https://hexo.io/docs/contributing.html"> <!-- Alternative links --> <link rel="alternative" hreflang="en" href="https://hexo.io/docs/contributing.html"> <link rel="alternative" hreflang="zh-tw" href="https://hexo.io/zh-tw/docs/contributing.html"> <link rel="alternative" hreflang="zh-cn" href="https://hexo.io/zh-cn/docs/contributing.html"> <link rel="alternative" hreflang="ru" href="https://hexo.io/ru/docs/contributing.html"> <link rel="alternative" hreflang="ko" href="https://hexo.io/ko/docs/contributing.html"> <link rel="alternative" hreflang="pt-br" href="https://hexo.io/pt-br/docs/contributing.html"> <link rel="alternative" hreflang="th" href="https://hexo.io/th/docs/contributing.html"> <!-- Icon --> <link rel="apple-touch-icon" sizes="57x57" href="/icon/apple-touch-icon-57x57.png"> <link rel="apple-touch-icon" sizes="114x114" href="/icon/apple-touch-icon-114x114.png"> <link rel="apple-touch-icon" sizes="72x72" href="/icon/apple-touch-icon-72x72.png"> <link rel="apple-touch-icon" sizes="144x144" href="/icon/apple-touch-icon-144x144.png"> <link rel="apple-touch-icon" sizes="60x60" href="/icon/apple-touch-icon-60x60.png"> <link rel="apple-touch-icon" sizes="120x120" href="/icon/apple-touch-icon-120x120.png"> <link rel="apple-touch-icon" sizes="76x76" href="/icon/apple-touch-icon-76x76.png"> <link rel="apple-touch-icon" sizes="152x152" href="/icon/apple-touch-icon-152x152.png"> <link rel="icon" type="image/png" href="/icon/favicon-196x196.png" sizes="196x196"> <link rel="icon" type="image/png" href="/icon/favicon-160x160.png" sizes="160x160"> <link rel="icon" type="image/png" href="/icon/favicon-96x96.png" sizes="96x96"> <link rel="icon" type="image/png" href="/icon/favicon-16x16.png" sizes="16x16"> <link rel="icon" type="image/png" href="/icon/favicon-32x32.png" sizes="32x32"> <meta name="msapplication-TileColor" content="#2f83cd"> <meta name="msapplication-TileImage" content="/icon/mstile-144x144.png"> <!-- CSS --> <!-- build:css build/css/navy.css --> <link rel="stylesheet" href="/css/navy.css"> <!-- endbuild --> <link href="https://fonts.googleapis.com/css?family=Lato:300,400,700" rel="stylesheet" type="text/css"> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css"> <link rel="stylesheet" href="https://cdn.jsdelivr.net/docsearch.js/1/docsearch.min.css"> <!-- RSS --> <link rel="alternate" href="/atom.xml" title="W0ng.Unic0rn blog"> <!-- Open Graph --> <meta name="description" content="DevelopmentWe welcome you to join the development of Hexo. This document will help you through the process. Before You StartPlease follow the coding style: Follow Google JavaScript Style Guide. Use s"> <meta property="og:type" content="website"> <meta property="og:title" content="Contributing"> <meta property="og:url" content="https://hexo.io/docs/contributing.html"> <meta property="og:site_name" content="W0ng.Unic0rn blog"> <meta property="og:description" content="DevelopmentWe welcome you to join the development of Hexo. This document will help you through the process. Before You StartPlease follow the coding style: Follow Google JavaScript Style Guide. Use s"> <meta property="og:locale" content="zh-cn"> <meta property="og:updated_time" content="2019-01-08T10:02:39.000Z"> <meta name="twitter:card" content="summary"> <meta name="twitter:title" content="Contributing"> <meta name="twitter:description" content="DevelopmentWe welcome you to join the development of Hexo. This document will help you through the process. Before You StartPlease follow the coding style: Follow Google JavaScript Style Guide. Use s"> <!-- Google Analytics --> <script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script> <script> (adsbygoogle = window.adsbygoogle || []).push({ google_ad_client: "ca-pub-6482217598104186", enable_page_level_ads: true }); </script> </head> <body> <div id="container"> <header id="header" class="wrapper"> <div id="header-inner" class="inner"> <h1 id="logo-wrap"> <a href="/zh-cn/" id="logo">Hexo</a> </h1> <nav id="main-nav"> <a href="/zh-cn/docs/" class="main-nav-link">文档</a><a href="/zh-cn/api/" class="main-nav-link">API</a><a href="/news/" class="main-nav-link">新闻</a><a href="/plugins/" class="main-nav-link">插件</a><a href="/themes/" class="main-nav-link">主题</a> <a href="https://github.com/" class="main-nav-link"><i class="fa fa-github-alt"></i></a> <div id="search-input-wrap"> <div id="search-input-icon"> <i class="fa fa-search"></i> </div> <input type="search" id="search-input" placeholder="Search..."> </div> </nav> <div id="lang-select-wrap"> <label id="lang-select-label"><i class="fa fa-globe"></i><span>简体中文</span></label> <select id="lang-select" data-canonical="docs/contributing.html"> <option value="en">English</option> <option value="zh-tw">正體中文</option> <option value="zh-cn" selected>简体中文</option> <option value="ru">Русский</option> <option value="ko">한국어</option> <option value="pt-br">Português (Brasil)</option> <option value="th">ภาษาไทย</option> </select> </div> <a id="mobile-nav-toggle"> <span class="mobile-nav-toggle-bar"></span> <span class="mobile-nav-toggle-bar"></span> <span class="mobile-nav-toggle-bar"></span> </a> </div> </header> <div id="content-wrap"> <div id="content" class="wrapper"> <div id="content-inner"> <article class="article-container" itemscope itemtype="http://schema.org/Article"> <div class="article-inner"> <div class="article"> <div class="inner"> <header class="article-header"> <h1 class="article-title" itemprop="name">Contributing</h1> <a href="https://github.com/hexojs/site/edit/master/source/docs/contributing.md" class="article-edit-link" title="改进本文"><i class="fa fa-pencil"></i></a> </header> <div class="article-content" itemprop="articleBody"> <h2 id="Development" class="article-heading"><a href="#Development" class="headerlink" title="Development"></a>Development<a class="article-anchor" href="#Development" aria-hidden="true"></a></h2><p>We welcome you to join the development of Hexo. This document will help you through the process.</p> <h3 id="Before-You-Start" class="article-heading"><a href="#Before-You-Start" class="headerlink" title="Before You Start"></a>Before You Start<a class="article-anchor" href="#Before-You-Start" aria-hidden="true"></a></h3><p>Please follow the coding style:</p> <ul> <li>Follow <a href="https://google.github.io/styleguide/jsguide.html" target="_blank" rel="noopener">Google JavaScript Style Guide</a>.</li> <li>Use soft-tabs with a two space indent.</li> <li>Don’t put commas first.</li> </ul> <h3 id="Workflow" class="article-heading"><a href="#Workflow" class="headerlink" title="Workflow"></a>Workflow<a class="article-anchor" href="#Workflow" aria-hidden="true"></a></h3><ol> <li>Fork <a href="https://github.com/hexojs/hexo" target="_blank" rel="noopener">hexojs/hexo</a>.</li> <li><p>Clone the repository to your computer and install dependencies.</p> <figure class="highlight plain"><table><tr><td class="code"><pre><span class="line">$ git clone https://github.com/<username>/hexo.git</span><br><span class="line">$ cd hexo</span><br><span class="line">$ npm install</span><br><span class="line">$ git submodule update --init</span><br></pre></td></tr></table></figure> </li> <li><p>Create a feature branch.</p> <figure class="highlight plain"><table><tr><td class="code"><pre><span class="line">$ git checkout -b new_feature</span><br></pre></td></tr></table></figure> </li> <li><p>Start hacking.</p> </li> <li><p>Push the branch:</p> <figure class="highlight plain"><table><tr><td class="code"><pre><span class="line">$ git push origin new_feature</span><br></pre></td></tr></table></figure> </li> <li><p>Create a pull request and describe the change.</p> </li> </ol> <h3 id="Notice" class="article-heading"><a href="#Notice" class="headerlink" title="Notice"></a>Notice<a class="article-anchor" href="#Notice" aria-hidden="true"></a></h3><ul> <li>Don’t modify version number in <code>package.json</code>.</li> <li><p>Your pull request will only get merged when tests passed. Don’t forget to run tests before submission.</p> <figure class="highlight plain"><table><tr><td class="code"><pre><span class="line">$ npm test</span><br></pre></td></tr></table></figure> </li> </ul> <h2 id="Updating-Documentation" class="article-heading"><a href="#Updating-Documentation" class="headerlink" title="Updating Documentation"></a>Updating Documentation<a class="article-anchor" href="#Updating-Documentation" aria-hidden="true"></a></h2><p>The Hexo documentation is open source and you can find the source code on <a href="https://github.com/hexojs/site" target="_blank" rel="noopener">hexojs/site</a>.</p> <h3 id="Workflow-1" class="article-heading"><a href="#Workflow-1" class="headerlink" title="Workflow"></a>Workflow<a class="article-anchor" href="#Workflow-1" aria-hidden="true"></a></h3><ol> <li>Fork <a href="https://github.com/hexojs/site" target="_blank" rel="noopener">hexojs/site</a></li> <li><p>Clone the repository to your computer and install dependencies.</p> <figure class="highlight plain"><table><tr><td class="code"><pre><span class="line">$ git clone https://github.com/<username>/site.git</span><br><span class="line">$ cd site</span><br><span class="line">$ npm install</span><br></pre></td></tr></table></figure> </li> <li><p>Start editing the documentation. You can start the server for live previewing.</p> <figure class="highlight plain"><table><tr><td class="code"><pre><span class="line">$ hexo server</span><br></pre></td></tr></table></figure> </li> <li><p>Push the branch.</p> </li> <li>Create a pull request and describe the change.</li> </ol> <h3 id="Translating" class="article-heading"><a href="#Translating" class="headerlink" title="Translating"></a>Translating<a class="article-anchor" href="#Translating" aria-hidden="true"></a></h3><ol> <li>Add a new language folder in <code>source</code> folder. (All lower case)</li> <li>Copy Markdown and template files in <code>source</code> folder to the new language folder.</li> <li>Add the new language to <code>source/_data/language.yml</code>.</li> <li>Copy <code>en.yml</code> in <code>themes/navy/languages</code> and rename to the language name (all lower case).</li> </ol> <h2 id="Reporting-Issues" class="article-heading"><a href="#Reporting-Issues" class="headerlink" title="Reporting Issues"></a>Reporting Issues<a class="article-anchor" href="#Reporting-Issues" aria-hidden="true"></a></h2><p>When you encounter some problems when using Hexo, you can find the solutions in <a href="troubleshooting.html">Troubleshooting</a> or ask me on <a href="https://github.com/hexojs/hexo/issues" target="_blank" rel="noopener">GitHub</a> or <a href="https://groups.google.com/group/hexo" target="_blank" rel="noopener">Google Group</a>. If you can’t find the answer, please report it on GitHub.</p> <ol> <li>Represent the problem in <a href="commands.html#Debug_mode">debug mode</a>.</li> <li>Run <code>hexo version</code> and check the version info. </li> <li>Post both debug message and version info on GitHub.</li> </ol> </div> <footer class="article-footer"> <time class="article-footer-updated" datetime="2019-01-08T10:02:39.000Z" itemprop="dateModified">上次更新:2019-01-08</time> <a href="troubleshooting.html" class="article-footer-prev" title="问题解答"><i class="fa fa-chevron-left"></i><span>上一页</span></a> </footer> </div> </div> <aside id="article-toc" role="navigation"> <div id="article-toc-inner"> <script async type="text/javascript" src="//cdn.carbonads.com/carbon.js?zoneid=1673&serve=C6AILKT&placement=hexoio" id="_carbonads_js"></script> <strong class="sidebar-title">目录</strong> <ol class="toc"><li class="toc-item toc-level-2"><a class="toc-link" href="#Development"><span class="toc-text">Development</span></a><ol class="toc-child"><li class="toc-item toc-level-3"><a class="toc-link" href="#Before-You-Start"><span class="toc-text">Before You Start</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#Workflow"><span class="toc-text">Workflow</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#Notice"><span class="toc-text">Notice</span></a></li></ol></li><li class="toc-item toc-level-2"><a class="toc-link" href="#Updating-Documentation"><span class="toc-text">Updating Documentation</span></a><ol class="toc-child"><li class="toc-item toc-level-3"><a class="toc-link" href="#Workflow-1"><span class="toc-text">Workflow</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#Translating"><span class="toc-text">Translating</span></a></li></ol></li><li class="toc-item toc-level-2"><a class="toc-link" href="#Reporting-Issues"><span class="toc-text">Reporting Issues</span></a></li></ol> <a href="#" id="article-toc-top">回到顶部</a> </div> </aside> </div> </article> <aside id="sidebar" role="navigation"> <div class="inner"> <strong class="sidebar-title">开始使用</strong><a href="index.html" class="sidebar-link">概述</a><a href="setup.html" class="sidebar-link">建站</a><a href="configuration.html" class="sidebar-link">配置</a><a href="commands.html" class="sidebar-link">命令</a><a href="migration.html" class="sidebar-link">迁移</a><strong class="sidebar-title">基本操作</strong><a href="writing.html" class="sidebar-link">写作</a><a href="front-matter.html" class="sidebar-link">Front-matter</a><a href="tag-plugins.html" class="sidebar-link">标签插件</a><a href="asset-folders.html" class="sidebar-link">资源文件夹</a><a href="data-files.html" class="sidebar-link">数据文件夹</a><a href="server.html" class="sidebar-link">服务器</a><a href="generating.html" class="sidebar-link">生成器</a><a href="deployment.html" class="sidebar-link">部署</a><strong class="sidebar-title">自定义</strong><a href="permalinks.html" class="sidebar-link">永久链接</a><a href="themes.html" class="sidebar-link">主题</a><a href="templates.html" class="sidebar-link">模版</a><a href="variables.html" class="sidebar-link">变量</a><a href="helpers.html" class="sidebar-link">辅助函数</a><a href="internationalization.html" class="sidebar-link">国际化 (i18n)</a><a href="plugins.html" class="sidebar-link">插件</a><strong class="sidebar-title">其他</strong><a href="troubleshooting.html" class="sidebar-link">问题解答</a><a href="contributing.html" class="sidebar-link current">贡献</a> </div> </aside> </div> </div> </div> <footer id="footer" class="wrapper"> <div class="inner"> <div id="footer-copyright"> © 2019 <a href="https://github.com/hexojs/hexo/graphs/contributors" target="_blank">W0ng.Unic0rn</a><br> Documentation licensed under <a href="http://creativecommons.org/licenses/by/4.0/" target="_blank">CC BY 4.0</a>. </div> <div id="footer-links"> <a href="https://twitter.com/" class="footer-link" target="_blank"><i class="fa fa-twitter"></i></a> <a href="https://github.com/" class="footer-link" target="_blank"><i class="fa fa-github-alt"></i></a> </div> </div> </footer> </div> <div id="mobile-nav-dimmer"></div> <nav id="mobile-nav"> <div id="mobile-nav-inner"> <ul id="mobile-nav-list"> <a href="/zh-cn/docs/" class="mobile-nav-link">文档</a><a href="/zh-cn/api/" class="mobile-nav-link">API</a><a href="/news/" class="mobile-nav-link">新闻</a><a href="/plugins/" class="mobile-nav-link">插件</a><a href="/themes/" class="mobile-nav-link">主题</a> <li class="mobile-nav-item"> <a href="https://github.com/" class="mobile-nav-link" rel="external" target="_blank">GitHub</a> </li> </ul> <strong class="mobile-nav-title">开始使用</strong><a href="index.html" class="mobile-nav-link">概述</a><a href="setup.html" class="mobile-nav-link">建站</a><a href="configuration.html" class="mobile-nav-link">配置</a><a href="commands.html" class="mobile-nav-link">命令</a><a href="migration.html" class="mobile-nav-link">迁移</a><strong class="mobile-nav-title">基本操作</strong><a href="writing.html" class="mobile-nav-link">写作</a><a href="front-matter.html" class="mobile-nav-link">Front-matter</a><a href="tag-plugins.html" class="mobile-nav-link">标签插件</a><a href="asset-folders.html" class="mobile-nav-link">资源文件夹</a><a href="data-files.html" class="mobile-nav-link">数据文件夹</a><a href="server.html" class="mobile-nav-link">服务器</a><a href="generating.html" class="mobile-nav-link">生成器</a><a href="deployment.html" class="mobile-nav-link">部署</a><strong class="mobile-nav-title">自定义</strong><a href="permalinks.html" class="mobile-nav-link">永久链接</a><a href="themes.html" class="mobile-nav-link">主题</a><a href="templates.html" class="mobile-nav-link">模版</a><a href="variables.html" class="mobile-nav-link">变量</a><a href="helpers.html" class="mobile-nav-link">辅助函数</a><a href="internationalization.html" class="mobile-nav-link">国际化 (i18n)</a><a href="plugins.html" class="mobile-nav-link">插件</a><strong class="mobile-nav-title">其他</strong><a href="troubleshooting.html" class="mobile-nav-link">问题解答</a><a href="contributing.html" class="mobile-nav-link current">贡献</a> </div> <div id="mobile-lang-select-wrap"> <span id="mobile-lang-select-label"><i class="fa fa-globe"></i><span>简体中文</span></span> <select id="mobile-lang-select" data-canonical="docs/contributing.html"> <option value="en">English</option> <option value="zh-tw">正體中文</option> <option value="zh-cn" selected>简体中文</option> <option value="ru">Русский</option> <option value="ko">한국어</option> <option value="pt-br">Português (Brasil)</option> <option value="th">ภาษาไทย</option> </select> </div> </nav> <!-- Scripts --> <!-- Cookie --> <script src="https://cdnjs.cloudflare.com/ajax/libs/js-cookie/2.2.0/js.cookie.min.js"></script> <!-- build:js build/js/main.js --> <script src="/js/lang_select.js"></script> <script src="/js/toc.js"></script> <script src="/js/mobile_nav.js"></script> <!-- endbuild --> <!-- Algolia --> </body> </html>
About
No description, website, or topics provided.
Contributing
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published