This commit is contained in:
waldo1001 2022-02-28 21:41:22 +00:00
parent d5790b8abb
commit 7e9d4c18d3
232 changed files with 25544 additions and 58300 deletions

View file

@ -7,11 +7,11 @@
<h4 class="alert-heading">info</h4>
<p>For the purpose of this install guide, we are assuming You will want to follow the “standard” used by Hugo for installing. We will be creating a <code>Hugo</code> folder in the root of <code>C:\</code>. That folder will have a <code>Bin</code> folder for the binaries, and a <code>Sites</code> folder for each website You are building.</p>
<p>Once You are done, You should have a folder structure that looks like this:</p>
<div class="highlight"><pre tabindex="0" style="background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4"><code class="language-text" data-lang="text">C:\Hugo
├── Bin # Binaries
└┬─ Sites # Hugo Site Repositories
└── alguidelines # Hugo Source for alguidelines.dev
</code></pre></div>
<div class="highlight"><pre tabindex="0" style="background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-text" data-lang="text"><span style="display:flex;"><span>C:\Hugo
</span></span><span style="display:flex;"><span>├── Bin # Binaries
</span></span><span style="display:flex;"><span>└┬─ Sites # Hugo Site Repositories
</span></span><span style="display:flex;"><span> └── alguidelines # Hugo Source for alguidelines.dev
</span></span></code></pre></div>
</div>
<p><img src="SelectExtended.png" alt="image"></p>
<p>After downloading the .zip file, extract the zip-file to <code>c:\Hugo\Bin</code></p>
@ -30,12 +30,12 @@
<p>Once complete. You should now be able to preview the Hugo site on <a href="http://localhost:1313">http://localhost:1313</a> by opening a command promt, and open the <code>C:\Hugo\Sites\alguidelines</code> folder and execute <code>Hugo Serve</code></p>
&lt;p>&lt;img src="HugoServe.png" alt="image">&lt;/p></description></item><item><title>Docs: Powershell on Windows 11</title><link>https://alguidelines.dev/docs/contributing/installhugo/usingpowershellonwindows11/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://alguidelines.dev/docs/contributing/installhugo/usingpowershellonwindows11/</guid><description>
&lt;p>It is possible to use a powershell script and Chocolatey to install and other dependencies. Execute the following script:&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" style="background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4">&lt;code class="language-powershell" data-lang="powershell">&lt;span style="color:#204a87">Set-ExecutionPolicy&lt;/span> &lt;span style="color:#000">Bypass&lt;/span> &lt;span style="color:#000">-Scope&lt;/span> &lt;span style="color:#204a87;font-weight:bold">Process&lt;/span> &lt;span style="color:#000">-Force&lt;/span>
&lt;span style="color:#000">[System.Net.ServicePointManager]&lt;/span>&lt;span style="color:#000;font-weight:bold">::&lt;/span>&lt;span style="color:#000">SecurityProtocol&lt;/span> &lt;span style="color:#000;font-weight:bold">=&lt;/span> &lt;span style="color:#000">[System.Net.ServicePointManager]&lt;/span>&lt;span style="color:#000;font-weight:bold">::&lt;/span>&lt;span style="color:#000">SecurityProtocol&lt;/span> &lt;span style="color:#ce5c00;font-weight:bold">-bor&lt;/span> &lt;span style="color:#000">3072&lt;/span>
&lt;span style="color:#204a87">Invoke-Expression&lt;/span> &lt;span style="color:#000;font-weight:bold">((&lt;/span>&lt;span style="color:#204a87">New-Object&lt;/span> &lt;span style="color:#000">System&lt;/span>&lt;span style="color:#000;font-weight:bold">.&lt;/span>&lt;span style="color:#000">Net&lt;/span>&lt;span style="color:#000;font-weight:bold">.&lt;/span>&lt;span style="color:#000">WebClient&lt;/span>&lt;span style="color:#000;font-weight:bold">).&lt;/span>&lt;span style="color:#000">DownloadString&lt;/span>&lt;span style="color:#000;font-weight:bold">(&lt;/span>&lt;span style="color:#4e9a06">&amp;#39;https://community.chocolatey.org/install.ps1&amp;#39;&lt;/span>&lt;span style="color:#000;font-weight:bold">))&lt;/span>
&lt;span style="color:#000">choco&lt;/span> &lt;span style="color:#000">install&lt;/span> &lt;span style="color:#000">-y&lt;/span> &lt;span style="color:#000">nodejs&lt;/span>
&lt;span style="color:#000">choco&lt;/span> &lt;span style="color:#000">install&lt;/span> &lt;span style="color:#000">-y&lt;/span> &lt;span style="color:#204a87">hugo-extended&lt;/span>
&lt;/code>&lt;/pre>&lt;/div>&lt;p>Once complete, in root of of the repository execute the following commands&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" style="background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4">&lt;code class="language-powershell" data-lang="powershell">&lt;span style="color:#000">git&lt;/span> &lt;span style="color:#000">submodule&lt;/span> &lt;span style="color:#000">update&lt;/span> &lt;span style="color:#000;font-weight:bold">-&lt;/span>&lt;span style="color:#000">-init&lt;/span> &lt;span style="color:#000;font-weight:bold">-&lt;/span>&lt;span style="color:#000">-recursive&lt;/span> &lt;span style="color:#000;font-weight:bold">-&lt;/span>&lt;span style="color:#000">-depth&lt;/span> &lt;span style="color:#000">1&lt;/span>
&lt;span style="color:#000">npm&lt;/span> &lt;span style="color:#000">install&lt;/span>
&lt;/code>&lt;/pre>&lt;/div></description></item></channel></rss>
&lt;div class="highlight">&lt;pre tabindex="0" style="background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-powershell" data-lang="powershell">&lt;span style="display:flex;">&lt;span>&lt;span style="color:#204a87">Set-ExecutionPolicy&lt;/span> &lt;span style="color:#000">Bypass&lt;/span> &lt;span style="color:#000">-Scope&lt;/span> &lt;span style="color:#204a87;font-weight:bold">Process&lt;/span> &lt;span style="color:#000">-Force&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>&lt;span style="color:#000">[System.Net.ServicePointManager]&lt;/span>&lt;span style="color:#000;font-weight:bold">::&lt;/span>&lt;span style="color:#000">SecurityProtocol&lt;/span> &lt;span style="color:#000;font-weight:bold">=&lt;/span> &lt;span style="color:#000">[System.Net.ServicePointManager]&lt;/span>&lt;span style="color:#000;font-weight:bold">::&lt;/span>&lt;span style="color:#000">SecurityProtocol&lt;/span> &lt;span style="color:#ce5c00;font-weight:bold">-bor&lt;/span> &lt;span style="color:#000">3072&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>&lt;span style="color:#204a87">Invoke-Expression&lt;/span> &lt;span style="color:#000;font-weight:bold">((&lt;/span>&lt;span style="color:#204a87">New-Object&lt;/span> &lt;span style="color:#000">System&lt;/span>&lt;span style="color:#000;font-weight:bold">.&lt;/span>&lt;span style="color:#000">Net&lt;/span>&lt;span style="color:#000;font-weight:bold">.&lt;/span>&lt;span style="color:#000">WebClient&lt;/span>&lt;span style="color:#000;font-weight:bold">).&lt;/span>&lt;span style="color:#000">DownloadString&lt;/span>&lt;span style="color:#000;font-weight:bold">(&lt;/span>&lt;span style="color:#4e9a06">&amp;#39;https://community.chocolatey.org/install.ps1&amp;#39;&lt;/span>&lt;span style="color:#000;font-weight:bold">))&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>&lt;span style="color:#000">choco&lt;/span> &lt;span style="color:#000">install&lt;/span> &lt;span style="color:#000">-y&lt;/span> &lt;span style="color:#000">nodejs&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>&lt;span style="color:#000">choco&lt;/span> &lt;span style="color:#000">install&lt;/span> &lt;span style="color:#000">-y&lt;/span> &lt;span style="color:#204a87">hugo-extended&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>Once complete, in root of of the repository execute the following commands&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" style="background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-powershell" data-lang="powershell">&lt;span style="display:flex;">&lt;span>&lt;span style="color:#000">git&lt;/span> &lt;span style="color:#000">submodule&lt;/span> &lt;span style="color:#000">update&lt;/span> &lt;span style="color:#000;font-weight:bold">-&lt;/span>&lt;span style="color:#000">-init&lt;/span> &lt;span style="color:#000;font-weight:bold">-&lt;/span>&lt;span style="color:#000">-recursive&lt;/span> &lt;span style="color:#000;font-weight:bold">-&lt;/span>&lt;span style="color:#000">-depth&lt;/span> &lt;span style="color:#000">1&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>&lt;span style="color:#000">npm&lt;/span> &lt;span style="color:#000">install&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div></description></item></channel></rss>