<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>Forem: Gokhan Ugurel</title>
    <description>The latest articles on Forem by Gokhan Ugurel (@gugurel).</description>
    <link>https://forem.com/gugurel</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F565297%2F86593a93-dedb-4f06-90fb-8b697df2a4ac.jpg</url>
      <title>Forem: Gokhan Ugurel</title>
      <link>https://forem.com/gugurel</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/gugurel"/>
    <language>en</language>
    <item>
      <title>GitLab Wiki Page Tips</title>
      <dc:creator>Gokhan Ugurel</dc:creator>
      <pubDate>Fri, 29 Jan 2021 17:40:03 +0000</pubDate>
      <link>https://forem.com/gugurel/gitlab-wiki-page-tips-5f10</link>
      <guid>https://forem.com/gugurel/gitlab-wiki-page-tips-5f10</guid>
      <description>&lt;p&gt;First of all, I am a big fan of &lt;strong&gt;GitLab&lt;/strong&gt; ❤️&lt;/p&gt;

&lt;p&gt;I work as a software team leader on an embedded software project. We are using GitLab to manage our software life cycle. GitLab offers hosting our software repositories, a simple issue tracking system, visualized gitflow architectures with different member access permissions, CI/CD support, &lt;strong&gt;wiki support&lt;/strong&gt; and more.&lt;/p&gt;

&lt;p&gt;When I was writing the wiki pages of our software project, I decided to note down the important tips that I have learned during this process.&lt;/p&gt;

&lt;p&gt;Let's start! 🚀&lt;/p&gt;

&lt;h3&gt;
  
  
  &lt;strong&gt;✅ Use a Separate GitLab Project to Host Wiki Pages&lt;/strong&gt;
&lt;/h3&gt;

&lt;p&gt;Let's say you have multiple software projects inside your GitLab group/subgroup, and you have to prepare common documentation for these software projects. Since &lt;em&gt;"GitLab Free Plan"&lt;/em&gt; (GitLab Release 13.8) does not support group/subgroup level wikis, we need to find a sensible place to host this wiki. &lt;/p&gt;

&lt;p&gt;Let's create a new project on the same hierarchical level with our software projects. This project will only host common wiki pages for our software projects, nothing more. This solves our common project documentation problem.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fz99axa4gl8bb5t50z9ef.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fz99axa4gl8bb5t50z9ef.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  &lt;strong&gt;✅ Set Homepage of Wiki&lt;/strong&gt;
&lt;/h3&gt;

&lt;p&gt;When I start generating wiki pages, one thing bothered me. Why was I seeing the &lt;strong&gt;&lt;em&gt;"Create New Page"&lt;/em&gt;&lt;/strong&gt; screen as the homepage of my wiki? How can I specify an existing page as the homepage of my wiki?&lt;/p&gt;

&lt;p&gt;The solution is to create a page named &lt;strong&gt;&lt;em&gt;home&lt;/em&gt;&lt;/strong&gt; (home.md). The default behavior of GitLab is to show the page &lt;strong&gt;&lt;em&gt;home&lt;/em&gt;&lt;/strong&gt; as the homepage of the wiki. Without a &lt;strong&gt;&lt;em&gt;home&lt;/em&gt;&lt;/strong&gt; page, &lt;strong&gt;&lt;em&gt;"Create New Page"&lt;/em&gt;&lt;/strong&gt; screen is always shown to the user.&lt;/p&gt;

&lt;h3&gt;
  
  
  &lt;strong&gt;✅ Disable Other Features in Wiki Project&lt;/strong&gt;
&lt;/h3&gt;

&lt;p&gt;Since our wiki project will only host wiki data, other features that are available on the left sidebar menu can be disabled for the sake of simplicity. &lt;/p&gt;

&lt;p&gt;&lt;em&gt;Left Sidebar Menu&lt;/em&gt; ➡️ &lt;em&gt;Settings&lt;/em&gt; ➡️ &lt;em&gt;General&lt;/em&gt; ➡️ &lt;em&gt;Visibility, project features, permissions&lt;/em&gt; ➡️ &lt;strong&gt;&lt;em&gt;Issues, Repository, Analytics, Pages and Operations&lt;/em&gt;&lt;/strong&gt;&lt;br&gt;
can all be disabled.&lt;/p&gt;

&lt;p&gt;After disabling, GitLab will automatically show the homepage of wiki (home.md) as the new project homepage.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fty7zfa3jpvtdyiwzt20o.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fty7zfa3jpvtdyiwzt20o.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  &lt;strong&gt;✅ Group Pages Inside Directories&lt;/strong&gt;
&lt;/h3&gt;

&lt;p&gt;You can group related wiki pages inside directories. When creating a new page, you can name your page as;&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;

Directory/Page


&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;and GitLab will create a directory named &lt;strong&gt;&lt;em&gt;Directory&lt;/em&gt;&lt;/strong&gt; and create your &lt;strong&gt;&lt;em&gt;Page&lt;/em&gt;&lt;/strong&gt; inside your &lt;strong&gt;&lt;em&gt;Directory&lt;/em&gt;&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fkj7jwhl2k0ixq7xc8j9r.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fkj7jwhl2k0ixq7xc8j9r.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  &lt;strong&gt;✅ Edit Right Sidebar&lt;/strong&gt;
&lt;/h3&gt;

&lt;p&gt;After finishing all my wiki pages, another thing bothered me. How can I change the order of the wiki page links on the right sidebar? One can desire to order these links according to their priorities or alphabetically. By clicking &lt;strong&gt;&lt;em&gt;"Edit Sidebar"&lt;/em&gt;&lt;/strong&gt; button on the right sidebar, you can create a page named &lt;strong&gt;&lt;em&gt;_sidebar&lt;/em&gt;&lt;/strong&gt;. Similar to the &lt;strong&gt;&lt;em&gt;home&lt;/em&gt;&lt;/strong&gt; name, &lt;strong&gt;&lt;em&gt;_sidebar&lt;/em&gt;&lt;/strong&gt; is a special name in GitLab. The contents of &lt;strong&gt;&lt;em&gt;_sidebar&lt;/em&gt;&lt;/strong&gt; page is used to design your custom right sidebar. You can add headers, links, images, basically everything that you can do with a markdown file. An example content of a &lt;strong&gt;&lt;em&gt;_sidebar&lt;/em&gt;&lt;/strong&gt; page is given below. Example pages named &lt;strong&gt;&lt;em&gt;a-page, b-page and c-page&lt;/em&gt;&lt;/strong&gt; will be sorted alphabetically on the right sidebar and the page named &lt;strong&gt;&lt;em&gt;home&lt;/em&gt;&lt;/strong&gt; will be the header page.&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;

### [Home](home)

- [A Page](a-page)
- [B Page](b-page)
- [C Page](c-page)



&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fgxanofogwgpl3u4c5d5x.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fgxanofogwgpl3u4c5d5x.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  &lt;strong&gt;✅ Edit Wiki Locally with Gollum&lt;/strong&gt;
&lt;/h3&gt;

&lt;p&gt;What if we want to edit our wiki when we are not connected to the GitLab server? Using &lt;strong&gt;&lt;em&gt;Gollum&lt;/em&gt;&lt;/strong&gt;, this is also possible. Get installation instructions and more information from &lt;a href="https://github.com/gollum/gollum/wiki/Installation" rel="noopener noreferrer"&gt;here&lt;/a&gt;. Since every wiki is actually a Git repository, we can clone our wiki to our local computer, start Gollum and edit our wiki locally. When the GitLab server is available again, we can push our changes back to GitLab.&lt;/p&gt;

&lt;h3&gt;
  
  
  &lt;strong&gt;✅ Last Words&lt;/strong&gt;
&lt;/h3&gt;

&lt;p&gt;GitLab Wiki is simple to use if you are familiar with markdown language. Keeping the documentation of your software project outside of your source code repository provides a faster Git experience. To be able to compare older versions of wiki pages with the page history feature is also a plus. In future, I will use GitLab or equivalent wiki pages more often instead of traditional documentation methods.&lt;/p&gt;

&lt;p&gt;Thanks for reading 💻 &lt;/p&gt;

</description>
      <category>gitlab</category>
      <category>wiki</category>
      <category>opensource</category>
      <category>documentation</category>
    </item>
  </channel>
</rss>
