This commit is contained in:
waldo1001 2022-03-02 14:33:02 +00:00
parent 6f08d67402
commit 2f8078f0df
202 changed files with 1452 additions and 554 deletions

View file

@ -1,4 +1,32 @@
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>alguidelines.dev - Business Central Design Patterns Install Hugo</title><link>https://alguidelines.dev/docs/contributing/installhugo/</link><description>Recent content in Install Hugo on alguidelines.dev - Business Central Design Patterns</description><generator>Hugo -- gohugo.io</generator><language>en-us</language><atom:link href="https://alguidelines.dev/docs/contributing/installhugo/index.xml" rel="self" type="application/rss+xml"/><item><title>Docs: Manually on Windows 11</title><link>https://alguidelines.dev/docs/contributing/installhugo/manuallyonwindows11/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://alguidelines.dev/docs/contributing/installhugo/manuallyonwindows11/</guid><description>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>alguidelines.dev - Business Central Design Patterns Install Hugo</title><link>https://alguidelines.dev/docs/contributing/installhugo/</link><description>Recent content in Install Hugo on alguidelines.dev - Business Central Design Patterns</description><generator>Hugo -- gohugo.io</generator><language>en-us</language><atom:link href="https://alguidelines.dev/docs/contributing/installhugo/index.xml" rel="self" type="application/rss+xml"/><item><title>Docs: Devcontainer with VS Code</title><link>https://alguidelines.dev/docs/contributing/installhugo/theshortcut/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://alguidelines.dev/docs/contributing/installhugo/theshortcut/</guid><description>
&lt;h2 id="use-a-local-devcontainer">Use a local devcontainer&lt;/h2>
&lt;p>If you don&amp;rsquo;t want any local setup (apart from Docker Desktop), but still run your own Hugo instance, you can make use of the preconfigured devcontainer. If you want to learn more about the concept, visit &lt;a href="https://code.visualstudio.com/docs/remote/containers">https://code.visualstudio.com/docs/remote/containers&lt;/a>. To use it, you need to take the following steps:&lt;/p>
&lt;ol>
&lt;li>Start &lt;a href="https://www.docker.com/products/docker-desktop">Docker Desktop&lt;/a> and &lt;a href="https://docs.docker.com/desktop/windows/#switch-between-windows-and-linux-containers">switch to Linux containers&lt;/a> by right-clicking on the Docker logo in the system tray and selecting &amp;ldquo;Switch to Linux containers&amp;hellip;&amp;rdquo;. If you only see &amp;ldquo;Switch to Windows containers&amp;hellip;&amp;rdquo;, then you are already switched to Linux containers. If anything goes wrong, check if you are on the latest version of Docker Desktop and have &lt;a href="https://docs.docker.com/desktop/windows/wsl/#install">the WSL2 integration enabled&lt;/a>. If you have all that in place and it still doesn&amp;rsquo;t work, check the extended installation documentation &lt;a href="https://code.visualstudio.com/docs/remote/containers#_installation">here&lt;/a>
&lt;div class="alert alert-info" role="alert">
&lt;h4 class="alert-heading">Consequences of switching&lt;/h4>
When switching to Linux, you will probably see a warning that tells you that you &amp;ldquo;will not be able to manage the Windows containers until you switch back to Windows containers&amp;rdquo;. That means that the Docker Desktop management GUI can only show either the Windows containers or the Linux containers and if you switch to Linux, you consequently won&amp;rsquo;t see the Windows containers until you switch back. But the Windows containers will continue to run, you won&amp;rsquo;t loose data and you can keep using them e.g. for Business Central development, you just can&amp;rsquo;t manage them through the Docker Desktop GUI
&lt;/div>
&lt;/li>
&lt;li>Install the &lt;a href="https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.vscode-remote-extensionpack">Remote development extension pack&lt;/a> in Visual Studio Code&lt;/li>
&lt;li>Run the action &amp;ldquo;Remote containers: Clone Repository in Container Volume&amp;rdquo; and select the fork you created. If you haven&amp;rsquo;t done that before, go through the &lt;a href="https://alguidelines.dev/docs/contributing/forkandpr/#step-1-fork">docs&lt;/a>.&lt;/li>
&lt;li>Wait for a bit. When you do this for the first time, it can take a couple of minutes. Next time it will be faster&amp;hellip;&lt;/li>
&lt;li>After a while, you will have VS Code with the cloned repository and the terminal should show something like &amp;ldquo;Done. Press any key to close the terminal.&amp;rdquo;&lt;/li>
&lt;li>Run the action &amp;ldquo;Tasks: Run task&amp;rdquo; and select &amp;ldquo;Start local Hugo Server&amp;rdquo; from the list. If you don&amp;rsquo;t see that entry, you might have to reload your VS Code window and try again&lt;/li>
&lt;li>After Hugo has generated the site, you will get a notification that offers you to &amp;ldquo;Open a browser&amp;rdquo;. Click on that and you will see your local instance of the AL guidelines! Again, on the first try it will be a bit slow and sluggish, but the second one should be fast.&lt;/li>
&lt;li>Now you can make changes and just save them. If you open the terminal, you will see a message that tells you that a change was detected and the site was rebuilt. After that, the change should automatically appear in your browser&lt;/li>
&lt;/ol>
&lt;p>Here is a walkthrough of the full process:&lt;/p>
&lt;video width=100% controls>
&lt;source src="alguidelines walkthrough.mp4" type="video/mp4">
Your browser does not support the video tag.
&lt;/video>
&lt;h2 id="use-github-codespaces">Use GitHub Codespaces&lt;/h2>
&lt;p>What is also great about this, is that you can also use &lt;a href="https://github.com/features/codespaces">GitHub Codespaces&lt;/a> with that setup. In that case, steps 1-5 become two clicks&amp;hellip; Here is another full walkthrough:&lt;/p>
&lt;video width=100% controls>
&lt;source src="alguidelines codespace.mp4" type="video/mp4">
Your browser does not support the video tag.
&lt;/video></description></item><item><title>Docs: Manually on Windows 11</title><link>https://alguidelines.dev/docs/contributing/installhugo/manuallyonwindows11/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://alguidelines.dev/docs/contributing/installhugo/manuallyonwindows11/</guid><description>
&lt;p>This guide will walk You thrugh installing Hugo on a Windows 11 PC. For the official install guide, You can wisit &lt;a href="https://gohugo.io/getting-started/installing/">https://gohugo.io/getting-started/installing/&lt;/a>.&lt;/p>
&lt;h2 id="download-binaries">Download Binaries&lt;/h2>
&lt;p>The path of least resistance is to just download the .zip file from the official Hugo GitHub Repository &lt;a href="https://github.com/gohugoio/hugo/releases">here&lt;/a>.&lt;/p>