Skip to content

Commit 4987374

Browse files
Natalie.ZhouNatalie.Zhou
Natalie.Zhou
authored and
Natalie.Zhou
committed
Site updated: 2022-08-03 15:27:57
1 parent 8703638 commit 4987374

File tree

23 files changed

+392
-348
lines changed

23 files changed

+392
-348
lines changed

Build-your-Personal-Blog/index.html

+8-8
Original file line numberDiff line numberDiff line change
@@ -235,39 +235,39 @@ <h4 id="install-Git"><a href="#install-Git" class="headerlink" title="install Gi
235235
<h3 id="Set-up-github-io-Repository"><a href="#Set-up-github-io-Repository" class="headerlink" title="Set up github.io Repository"></a>Set up github.io Repository</h3><p>Set your ssh key.</p>
236236
<p>Name the repository as YourGithubName.github.io</p>
237237
<p><img src="https://pic.jitudisk.com/public/2022/06/26/d96d8e25152c9.png" alt="SetupRepository.png"></p>
238-
<h3 id="Install-and-initialize-hexo"><a href="#Install-and-initialize-hexo" class="headerlink" title="Install and initialize hexo"></a>Install and initialize hexo</h3><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">$ npm install -g hexo-cli</span><br></pre></td></tr></table></figure>
238+
<h3 id="Install-and-initialize-hexo"><a href="#Install-and-initialize-hexo" class="headerlink" title="Install and initialize hexo"></a>Install and initialize hexo</h3><figure class="highlight bash"><table><tr><td class="code"><pre><span class="line">$ npm install -g hexo-cli</span><br></pre></td></tr></table></figure>
239239
<p>you can use <strong>hexo -v</strong> to check whether hexo is successfully installed.</p>
240240
<p>Some common commands of hexo.</p>
241241
<blockquote>
242242
<p><strong>Hexo init</strong>: used to initialize the local folder as the root of the web site<br><strong>Hexo new / hexo n</strong>: used to create a new article<br><strong>Hexo generate / hexo G</strong>: used to generate static files<br><strong>Hexo server / hexo s</strong>: used to start the local server<br><strong>Hexo deploy / hero D</strong>: for deploying websites<br><strong>Hexo clean</strong>: used to clean cache files</p>
243243
</blockquote>
244244
<p>Then you can create a folder in favorite location, such as blog. </p>
245-
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">$ hexo init blog</span><br></pre></td></tr></table></figure>
245+
<figure class="highlight bash"><table><tr><td class="code"><pre><span class="line">$ hexo init blog</span><br></pre></td></tr></table></figure>
246246
<p><strong>brief introducation of the main files:</strong></p>
247247
<blockquote>
248248
<p><strong>_config.yml</strong>: global configuration file, which configures many information of the website, such as website name, subtitle, description, author, language, theme, deployment, etc.<br><strong>package.json</strong>: configure the parameters and dependent plug-ins of the hexo framework<br><strong>scaffolds</strong>: When a new article is created, hexo is built according to the files in this directory.<br><strong>source</strong>: All new articles are saved in this directory* Posts is where we write* MD files in the posts directory will be compiled into HTML files and put into the public folder.<br><strong>themes</strong>: website subject directory, the default is landscape<br><strong>node_modules</strong>: it is mainly used to store some functional files of hexo, such as renderers and various plug-ins<br><strong>public</strong>: store the generated static file and generate it after the hexo g command</p>
249249
</blockquote>
250-
<h3 id="Edit-config-yml"><a href="#Edit-config-yml" class="headerlink" title="Edit _config.yml"></a>Edit _config.yml</h3><figure class="highlight yaml"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br></pre></td><td class="code"><pre><span class="line"><span class="attr">deploy:</span></span><br><span class="line"> <span class="attr">type:</span> <span class="string">&#x27;git&#x27;</span></span><br><span class="line"> <span class="attr">branch:</span> <span class="string">main</span></span><br><span class="line"> <span class="attr">repo:</span> <span class="string">&#x27;https://github.com/NatalieXSelina/NatalieXSelina.github.io.git&#x27;</span> <span class="comment"># put your Github name here</span></span><br></pre></td></tr></table></figure>
250+
<h3 id="Edit-config-yml"><a href="#Edit-config-yml" class="headerlink" title="Edit _config.yml"></a>Edit _config.yml</h3><figure class="highlight yml"><table><tr><td class="code"><pre><span class="line"><span class="attr">deploy:</span></span><br><span class="line"> <span class="attr">type:</span> <span class="string">&#x27;git&#x27;</span></span><br><span class="line"> <span class="attr">branch:</span> <span class="string">main</span></span><br><span class="line"> <span class="attr">repo:</span> <span class="string">&#x27;https://github.com/NatalieXSelina/NatalieXSelina.github.io.git&#x27;</span> <span class="comment"># put your Github name here</span></span><br></pre></td></tr></table></figure>
251251

252252
<p><img src="https://pic.jitudisk.com/public/2022/06/26/67f708bbbb54c.png" alt="ymlEdit.png"></p>
253-
<h3 id="Install-deployer"><a href="#Install-deployer" class="headerlink" title="Install deployer"></a>Install deployer</h3><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">$ npm install hexo-deployer-git --save</span><br></pre></td></tr></table></figure>
253+
<h3 id="Install-deployer"><a href="#Install-deployer" class="headerlink" title="Install deployer"></a>Install deployer</h3><figure class="highlight bash"><table><tr><td class="code"><pre><span class="line">$ npm install hexo-deployer-git --save</span><br></pre></td></tr></table></figure>
254254

255255
<p>build local blog</p>
256-
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">$ hexo cl &amp;&amp; hexo g &amp;&amp; hexo s <span class="comment"># visit http://localhost:4000</span></span><br></pre></td></tr></table></figure>
256+
<figure class="highlight bash"><table><tr><td class="code"><pre><span class="line">$ hexo cl &amp;&amp; hexo g &amp;&amp; hexo s <span class="comment"># visit http://localhost:4000</span></span><br></pre></td></tr></table></figure>
257257

258258
<p>build remote websites</p>
259-
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">$ hexo cl &amp;&amp; hexo g &amp;&amp; hexo d <span class="comment"># vist https://nataliexselina.github.io/ here should be your githubname </span></span><br></pre></td></tr></table></figure>
259+
<figure class="highlight bash"><table><tr><td class="code"><pre><span class="line">$ hexo cl &amp;&amp; hexo g &amp;&amp; hexo d <span class="comment"># vist https://nataliexselina.github.io/ here should be your githubname </span></span><br></pre></td></tr></table></figure>
260260

261261

262262

263263
<h3 id="Write-MD-File"><a href="#Write-MD-File" class="headerlink" title="Write MD File"></a>Write MD File</h3><p>You can create a new MD file with the following command:</p>
264-
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">hexo new <span class="string">&quot;articleTitle&quot;</span></span><br></pre></td></tr></table></figure>
264+
<figure class="highlight bash"><table><tr><td class="code"><pre><span class="line">hexo new <span class="string">&quot;articleTitle&quot;</span></span><br></pre></td></tr></table></figure>
265265
<p>Then write your own MD file.</p>
266266
<p><img src="https://pic.jitudisk.com/public/2022/06/26/a717403c65653.png" alt="mdEditor.png"></p>
267267
<h3 id="Choose-the-theme-you-like"><a href="#Choose-the-theme-you-like" class="headerlink" title="Choose the theme you like"></a>Choose the theme you like</h3><p>You can choose other themes to build blog with your style. <a target="_blank" rel="noopener" href="https://hexo.io/themes/">https://hexo.io/themes/</a></p>
268268
<p><img src="https://pic.jitudisk.com/public/2022/06/26/ef1a31f6083bf.png" alt="themes.png"></p>
269269
<p><strong>edit _config.yml</strong></p>
270-
<figure class="highlight yaml"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line"><span class="attr">theme:</span> <span class="string">hexo-theme-Chic</span></span><br></pre></td></tr></table></figure>
270+
<figure class="highlight yaml"><table><tr><td class="code"><pre><span class="line"><span class="attr">theme:</span> <span class="string">hexo-theme-Chic</span></span><br></pre></td></tr></table></figure>
271271

272272
<p><img src="https://pic.jitudisk.com/public/2022/06/26/47f49e32e383d.png" alt="theme.png"></p>
273273
<h3 id="How-to-Build-Categories-and-Tags"><a href="#How-to-Build-Categories-and-Tags" class="headerlink" title="How to Build Categories and Tags"></a>How to Build Categories and Tags</h3><p><a target="_blank" rel="noopener" href="https://hexo.io/docs/front-matter">https://hexo.io/docs/front-matter</a></p>

Create-files-of-specific-size-in-Windows/index.html

+3-3
Original file line numberDiff line numberDiff line change
@@ -223,13 +223,13 @@ <h1 class="post-title">Create files of specific size in Windows</h1>
223223
</header>
224224

225225
<div class="post-content">
226-
<h2 id="Export-Single-File"><a href="#Export-Single-File" class="headerlink" title="Export Single File"></a>Export Single File</h2><h3 id="CMD-Command"><a href="#CMD-Command" class="headerlink" title="CMD Command"></a>CMD Command</h3><figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">fsutil file createNew &lt;filename&gt; &lt;length&gt;</span><br></pre></td></tr></table></figure>
226+
<h2 id="Export-Single-File"><a href="#Export-Single-File" class="headerlink" title="Export Single File"></a>Export Single File</h2><h3 id="CMD-Command"><a href="#CMD-Command" class="headerlink" title="CMD Command"></a>CMD Command</h3><figure class="highlight shell"><table><tr><td class="code"><pre><span class="line">fsutil file createNew &lt;filename&gt; &lt;length&gt;</span><br></pre></td></tr></table></figure>
227227
<p>Example</p>
228-
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">fsutil file createNew C:\testfile.txt 1000</span><br></pre></td></tr></table></figure>
228+
<figure class="highlight shell"><table><tr><td class="code"><pre><span class="line">fsutil file createNew C:\testfile.txt 1000</span><br></pre></td></tr></table></figure>
229229
<blockquote>
230230
<p>10K =10 * 1024 = 10240<br>10M = 10 * 1024 * 1024 = 10485760<br>100M = 100 * 1024 * 1024 = 10485760</p>
231231
</blockquote>
232-
<h2 id="Export-Mutiple-Files"><a href="#Export-Mutiple-Files" class="headerlink" title="Export Mutiple Files"></a>Export Mutiple Files</h2><h3 id="Create-a-bat-file"><a href="#Create-a-bat-file" class="headerlink" title="Create a .bat file"></a>Create a .bat file</h3><figure class="highlight bat"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br></pre></td><td class="code"><pre><span class="line">@<span class="built_in">echo</span> off</span><br><span class="line"></span><br><span class="line"><span class="built_in">set</span> a=<span class="number">0</span></span><br><span class="line">:loop</span><br><span class="line">fsutil file createnew file<span class="variable">%a%</span>.txt <span class="number">10485760</span> # size: <span class="number">10</span>M</span><br><span class="line"><span class="built_in">echo</span> file<span class="variable">%a%</span> done</span><br><span class="line"><span class="built_in">set</span> /a a+=<span class="number">1</span></span><br><span class="line"><span class="keyword">if</span> <span class="variable">%a%</span> <span class="keyword">lss</span> <span class="number">20</span> <span class="keyword">goto</span> :loop # <span class="number">20</span> files</span><br><span class="line"></span><br><span class="line"><span class="built_in">pause</span></span><br></pre></td></tr></table></figure>
232+
<h2 id="Export-Mutiple-Files"><a href="#Export-Mutiple-Files" class="headerlink" title="Export Mutiple Files"></a>Export Mutiple Files</h2><h3 id="Create-a-bat-file"><a href="#Create-a-bat-file" class="headerlink" title="Create a .bat file"></a>Create a .bat file</h3><figure class="highlight dos"><table><tr><td class="code"><pre><span class="line">@<span class="built_in">echo</span> off</span><br><span class="line"></span><br><span class="line"><span class="built_in">set</span> a=<span class="number">0</span></span><br><span class="line">:loop</span><br><span class="line">fsutil file createnew file<span class="variable">%a%</span>.txt <span class="number">10485760</span> # size: <span class="number">10</span>M</span><br><span class="line"><span class="built_in">echo</span> file<span class="variable">%a%</span> done</span><br><span class="line"><span class="built_in">set</span> /a a+=<span class="number">1</span></span><br><span class="line"><span class="keyword">if</span> <span class="variable">%a%</span> <span class="keyword">lss</span> <span class="number">20</span> <span class="keyword">goto</span> :loop # <span class="number">20</span> files</span><br><span class="line"></span><br><span class="line"><span class="built_in">pause</span></span><br></pre></td></tr></table></figure>
233233

234234

235235
</div>

Cypress-Advanced/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ <h3 id="Define-Methods-in-Your-Project"><a href="#Define-Methods-in-Your-Project
241241
<p> When a function needs to be called in a number of other files, but does not need to be defined globally, you can use this way.</p>
242242
</li>
243243
</ol>
244-
<h3 id="Examples-for-call-methods"><a href="#Examples-for-call-methods" class="headerlink" title="Examples for call methods"></a>Examples for call methods</h3><figure class="highlight js"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br></pre></td><td class="code"><pre><span class="line">cy.<span class="title function_">login</span>() <span class="comment">// login() is defined in command.js</span></span><br><span class="line">cy.<span class="title function_">task</span>(<span class="string">&#x27;A&#x27;</span>) <span class="comment">// task A is defined in plugins/index.js</span></span><br><span class="line">cy.<span class="title function_">exec</span>(<span class="string">&#x27;node test.js&#x27;</span>) <span class="comment">// test.js is defined in root directory</span></span><br><span class="line">dash.<span class="title function_">check</span>() <span class="comment">// function check() is defined in dash.utils.js</span></span><br></pre></td></tr></table></figure>
244+
<h3 id="Examples-for-call-methods"><a href="#Examples-for-call-methods" class="headerlink" title="Examples for call methods"></a>Examples for call methods</h3><figure class="highlight javascript"><table><tr><td class="code"><pre><span class="line">cy.<span class="title function_">login</span>() <span class="comment">// login() is defined in command.js</span></span><br><span class="line">cy.<span class="title function_">task</span>(<span class="string">&#x27;A&#x27;</span>) <span class="comment">// task A is defined in plugins/index.js</span></span><br><span class="line">cy.<span class="title function_">exec</span>(<span class="string">&#x27;node test.js&#x27;</span>) <span class="comment">// test.js is defined in root directory</span></span><br><span class="line">dash.<span class="title function_">check</span>() <span class="comment">// function check() is defined in dash.utils.js</span></span><br></pre></td></tr></table></figure>
245245
</div>
246246

247247

0 commit comments

Comments
 (0)