{
    "componentChunkName": "component---src-templates-plugin-docs-tsx",
    "path": "/plugins/scm-documentation-viewer-plugin/docs/latest/en/overview/",
    "result": {"data":{"plugin":{"name":"scm-documentation-viewer-plugin","displayName":"Documentation Viewer","description":"Plugin to view and edit the markdown documentation of a repository","author":"Cloudogu GmbH","documentation":[{"version":"1.1.x","languages":["de","en"]},{"version":"1.0.x","languages":["de","en"]}]},"navigation":{"nodes":[{"section":"Features","entries":[{"frontmatter":{"title":"Overview","subtitle":null,"partiallyActive":null},"fields":{"slug":"/plugins/scm-documentation-viewer-plugin/docs/1.1.x/en/overview/"}},{"frontmatter":{"title":"Markdown Text Editor","subtitle":null,"partiallyActive":null},"fields":{"slug":"/plugins/scm-documentation-viewer-plugin/docs/1.1.x/en/markdown-text-editor/"}}]}]},"versions":{"group":[{"fieldValue":"1.0.x"},{"fieldValue":"1.1.x"}]},"languages":{"group":[{"fieldValue":"de"},{"fieldValue":"en"}]},"markdownRemark":{"html":"<p>The documentation viewer plugin eases the management of a markdown based documentation contained within a repository.</p>\n<h2 id=\"configuration\" style=\"position:relative;\"><a href=\"#configuration\" aria-label=\"configuration permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>Configuration</h2>\n<p>The configuration of this plugin is done via a <code class=\"language-text\">documentation.yaml</code> file, contained in the root directory of the corresponding repository.\nAlternatively it is also possible to use a <code class=\"language-text\">documentation.yml</code> file instead.\nBut it is not allowed to have both files in the root directory of the repository.</p>\n<p><span\n      class=\"gatsby-resp-image-wrapper\"\n      style=\"position: relative; display: block; margin-left: auto; margin-right: auto; max-width: 590px; \"\n    >\n      <span\n    class=\"gatsby-resp-image-background-image\"\n    style=\"padding-bottom: 41.21621621621622%; position: relative; bottom: 0; left: 0; background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAICAYAAAD5nd/tAAAACXBIWXMAAAsTAAALEwEAmpwYAAABFElEQVQoz61Sy24DIQzkr/sH/Zkceuln9NR71YeaKKwUbXcDGIxhKjtZkmMPtTRiMMYMAy6czzgcDpi8h/dHeO+x3+8xTd64QkSg0Xsf2EJaB18hvcOFEHA6nRApgwojpIQYI1JKBuNEICJbW0JCjgG7txXPnwG794jH1xUPLzOePiIcV0HmiioCac3UNMWVqxod5S5HlPD9E3FcE47njK+FMCXByg2utW7Kaq23a4jYXBuoMm16z82CdgFnQklx7HXqwUqMxDKSzAWlFNs4z/NQqDznbDW1A9JhllDO6FePXamCUMQaZr5cS9VtKtVHHbecrrcmyFXA0hBDwLIs4+GcFYzCG+SPOT2ImccvcPin2L7SL/7VcSHbhY9pAAAAAElFTkSuQmCC'); background-size: cover; display: block;\"\n  ></span>\n  <img\n        class=\"gatsby-resp-image-image\"\n        alt=\"Configuration file inside the Repository\"\n        title=\"Configuration file inside the Repository\"\n        src=\"/static/819fa5c6d007aafce5ba7801cf108cc1/fcda8/documentationYamlInRepository.png\"\n        srcset=\"/static/819fa5c6d007aafce5ba7801cf108cc1/12f09/documentationYamlInRepository.png 148w,\n/static/819fa5c6d007aafce5ba7801cf108cc1/e4a3f/documentationYamlInRepository.png 295w,\n/static/819fa5c6d007aafce5ba7801cf108cc1/fcda8/documentationYamlInRepository.png 590w,\n/static/819fa5c6d007aafce5ba7801cf108cc1/efc66/documentationYamlInRepository.png 885w,\n/static/819fa5c6d007aafce5ba7801cf108cc1/c83ae/documentationYamlInRepository.png 1180w,\n/static/819fa5c6d007aafce5ba7801cf108cc1/78612/documentationYamlInRepository.png 1260w\"\n        sizes=\"(max-width: 590px) 100vw, 590px\"\n        style=\"width:100%;height:100%;margin:0;vertical-align:middle;position:absolute;top:0;left:0;\"\n        loading=\"lazy\"\n        decoding=\"async\"\n      />\n    </span></p>\n<p>In this yaml file a user can configure two properties.\nThe first one is <code class=\"language-text\">basePath</code>.\n<code class=\"language-text\">basePath</code> allows the user to determine in which directory of the repository the documentation is stored.\nThe second one is <code class=\"language-text\">landingPage</code>.\nThis allows the user to determine which file in the documentation directory is the landing page of the documentation.\nSince this plugin only supports markdown files, the name of the landing page needs to have <code class=\"language-text\">.md</code> as a file extension.\nThe following shows an example configuration:</p>\n<div class=\"gatsby-highlight\" data-language=\"yaml\"><pre class=\"language-yaml\"><code class=\"language-yaml\"><span class=\"token key atrule\">basePath</span><span class=\"token punctuation\">:</span> <span class=\"token string\">'/docs'</span>\n<span class=\"token key atrule\">landingPage</span><span class=\"token punctuation\">:</span> <span class=\"token string\">'home.md'</span></code></pre></div>\n<p>With this configuration, the plugin assumes, that the documentation is stored under the <code class=\"language-text\">/docs</code> directory of the repository.\nIt also assumes the <code class=\"language-text\">home.md</code> file is supposed to be present at that directory and should be used as a landing page.\nBoth values are optional and are not required to be set.\nIf they are not set, a default value will be used.\nThe default values can also be seen in the example above.</p>\n<h2 id=\"accessing-the-documentation\" style=\"position:relative;\"><a href=\"#accessing-the-documentation\" aria-label=\"accessing the documentation permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>Accessing the documentation</h2>\n<p>As soon the plugin is configured properly, a navigation link to the documentation appears.\nThis navigation link can be seen in the repository side bar navigation.\nBy clicking this link, the user gets redirected to the landing page.</p>\n<p><span\n      class=\"gatsby-resp-image-wrapper\"\n      style=\"position: relative; display: block; margin-left: auto; margin-right: auto; max-width: 590px; \"\n    >\n      <span\n    class=\"gatsby-resp-image-background-image\"\n    style=\"padding-bottom: 34.45945945945946%; position: relative; bottom: 0; left: 0; background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAHCAYAAAAIy204AAAACXBIWXMAAAsTAAALEwEAmpwYAAABD0lEQVQoz01SW07DMBDMvfngRggJrtErgIpKmyhFjd+PXXvQ2sTE0nrt8WY9M860LAuu1yvmeQYzQ0atFcdRD/MRLRWgIiHrfj59Xy5Y7z9QxsKFiOA9/DFCQAgBznso62DUhrdPjfezxcuHwfPpgafTA69n3xvamJGJGyvm0liW0nPHeGDEjJwzbpvBoj1WbfF137B6gs2lNyQixBiHkH0vWWs95Dvn/usKN8nOGuTghwVSO9nEiMRiXAPKgVFKqWXBhZmErOufz5uP8CmPmtZQpQKdKxJ3JrtUYWiMGazER/G02VEBUSjnm1Ltov0xm4c2EUzMIBKPUmOWUmwfSCO5ZLeBmZAyIWYatcc/4xeBSyJFW7m1yAAAAABJRU5ErkJggg=='); background-size: cover; display: block;\"\n  ></span>\n  <img\n        class=\"gatsby-resp-image-image\"\n        alt=\"Link to the documentation\"\n        title=\"Link to the documentation\"\n        src=\"/static/4ed634271aea9aefa4cf15b38c7e009c/fcda8/documentation-viewer-link.png\"\n        srcset=\"/static/4ed634271aea9aefa4cf15b38c7e009c/12f09/documentation-viewer-link.png 148w,\n/static/4ed634271aea9aefa4cf15b38c7e009c/e4a3f/documentation-viewer-link.png 295w,\n/static/4ed634271aea9aefa4cf15b38c7e009c/fcda8/documentation-viewer-link.png 590w,\n/static/4ed634271aea9aefa4cf15b38c7e009c/efc66/documentation-viewer-link.png 885w,\n/static/4ed634271aea9aefa4cf15b38c7e009c/c83ae/documentation-viewer-link.png 1180w,\n/static/4ed634271aea9aefa4cf15b38c7e009c/5b795/documentation-viewer-link.png 1455w\"\n        sizes=\"(max-width: 590px) 100vw, 590px\"\n        style=\"width:100%;height:100%;margin:0;vertical-align:middle;position:absolute;top:0;left:0;\"\n        loading=\"lazy\"\n        decoding=\"async\"\n      />\n    </span></p>","description":"The documentation viewer plugin eases the management of a markdown based documentation contained within a repository. Configuration The configuration of this…","tableOfContents":"<ul>\n<li><a href=\"#configuration\">Configuration</a></li>\n<li><a href=\"#accessing-the-documentation\">Accessing the documentation</a></li>\n</ul>","frontmatter":{"title":"Overview","subtitle":null,"description":null,"keywords":null,"displayToc":null,"image":null}}},"pageContext":{"name":"scm-documentation-viewer-plugin","slug":"/plugins/scm-documentation-viewer-plugin/docs/1.1.x/en/overview/","version":"1.1.x","latestVersion":"1.1.x","latestPageVersion":"1.1.x","language":"en","canonicalPath":"/plugins/scm-documentation-viewer-plugin/docs/latest/en/overview/","latestRootPath":"/plugins/scm-documentation-viewer-plugin/docs/1.1.x/en/"}},
    "staticQueryHashes": ["1973669194","2742214048","2956773653","2957019495","698804963"]}