<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>myDocsy – Getting Started</title>
    <link>/docs/dev-test-content/getting-started/</link>
    <description>Recent content in Getting Started on myDocsy</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en-us</language>
    <lastBuildDate>Mon, 30 Jul 2018 00:00:00 +0000</lastBuildDate>
    
	  <atom:link href="/docs/dev-test-content/getting-started/index.xml" rel="self" type="application/rss+xml" />
    
    
      
        
      
    
    
    <item>
      <title>Docs: Getting Started</title>
      <link>/docs/dev-test-content/getting-started/getting-started-copy/</link>
      <pubDate>Mon, 30 Jul 2018 00:00:00 +0000</pubDate>
      
      <guid>/docs/dev-test-content/getting-started/getting-started-copy/</guid>
      <description>
        
        
        &lt;h2 id=&#34;prerequisites-and-installation&#34;&gt;Prerequisites and installation&lt;/h2&gt;
&lt;h3 id=&#34;use-our-docker-image&#34;&gt;Use our Docker image&lt;/h3&gt;
&lt;p&gt;We provide a Docker image that you can use to run and test your Docsy site
locally, without having to install all Docsy&amp;rsquo;s dependencies.&lt;/p&gt;
&lt;p&gt;You can see how to get started with this approach by following our &lt;a href=&#34;quickstart-docker&#34;&gt;Docker
Quickstart tutorial&lt;/a&gt;. If you don&amp;rsquo;t want to use Docker,
follow the instructions below to install Hugo and PostCSS.&lt;/p&gt;
&lt;h3 id=&#34;install-hugo&#34;&gt;Install Hugo&lt;/h3&gt;
&lt;p&gt;You need a &lt;a href=&#34;https://github.com/gohugoio/hugo/releases&#34;&gt;recent &lt;strong&gt;extended&lt;/strong&gt; version&lt;/a&gt; (we recommend version 0.75.0 or later) of &lt;a href=&#34;https://gohugo.io/&#34;&gt;Hugo&lt;/a&gt; to do local builds and previews of sites (like this one) that use Docsy. If you install from the release page, make sure to get the &lt;code&gt;extended&lt;/code&gt; Hugo version, which supports &lt;a href=&#34;https://sass-lang.com/documentation/file.SCSS_FOR_SASS_USERS.html&#34;&gt;SCSS&lt;/a&gt;; you may need to scroll down the list of releases to see it.&lt;/p&gt;
&lt;p&gt;For comprehensive Hugo documentation, see &lt;a href=&#34;https://gohugo.io/&#34;&gt;gohugo.io&lt;/a&gt;.&lt;/p&gt;
&lt;h4 id=&#34;linux&#34;&gt;Linux&lt;/h4&gt;
&lt;p&gt;Be careful using &lt;code&gt;sudo apt-get install hugo&lt;/code&gt;, as it &lt;a href=&#34;https://gohugo.io/getting-started/installing/#debian-and-ubuntu&#34;&gt;doesn&amp;rsquo;t get you the &lt;code&gt;extended&lt;/code&gt; version for all Debian/Ubuntu versions&lt;/a&gt;, and may not be up-to-date with the most recent Hugo version.&lt;/p&gt;
&lt;p&gt;If you&amp;rsquo;ve already installed Hugo, check your version:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;hugo version
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;If the result is &lt;code&gt;v0.75&lt;/code&gt; or earlier, or if you don&amp;rsquo;t see &lt;code&gt;Extended&lt;/code&gt;, you&amp;rsquo;ll need to install the latest version. You can see a complete list of Linux installation options in &lt;a href=&#34;https://gohugo.io/getting-started/installing/#linux&#34;&gt;Install Hugo&lt;/a&gt;. The following shows you how to install Hugo from the release page:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;Go to the &lt;a href=&#34;https://github.com/gohugoio/hugo/releases&#34;&gt;Hugo releases&lt;/a&gt; page.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;In the most recent release, scroll down until you find a list of
&lt;strong&gt;Extended&lt;/strong&gt; versions.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Download the latest extended version (&lt;code&gt;hugo_extended_0.5X_Linux-64bit.tar.gz&lt;/code&gt;).&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Create a new directory:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;mkdir hugo
&lt;/code&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Extract the files you downloaded to &lt;code&gt;hugo&lt;/code&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Switch to your new directory:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;cd hugo
&lt;/code&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Install Hugo:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;sudo install hugo /usr/bin    
&lt;/code&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;h4 id=&#34;macos&#34;&gt;macOS&lt;/h4&gt;
&lt;p&gt;Install Hugo using &lt;a href=&#34;https://gohugo.io/getting-started/installing/#homebrew-macos&#34;&gt;Brew&lt;/a&gt;.&lt;/p&gt;
&lt;h4 id=&#34;as-an-npm-module&#34;&gt;As an &lt;code&gt;npm&lt;/code&gt; module&lt;/h4&gt;
&lt;p&gt;You can install Hugo as an &lt;code&gt;npm&lt;/code&gt; module using &lt;a href=&#34;https://www.npmjs.com/package/hugo-bin&#34;&gt;&lt;code&gt;hugo-bin&lt;/code&gt;&lt;/a&gt;. This adds &lt;code&gt;hugo-bin&lt;/code&gt; to your &lt;code&gt;node_modules&lt;/code&gt; folder and adds the dependency to your &lt;code&gt;package.json&lt;/code&gt; file.  To install the extended version of Hugo:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;npm install hugo-extended --save-dev
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;See the &lt;a href=&#34;https://www.npmjs.com/package/hugo-bin&#34;&gt;&lt;code&gt;hugo-bin&lt;/code&gt; documentation&lt;/a&gt; for usage details.&lt;/p&gt;
&lt;h3 id=&#34;install-postcss&#34;&gt;Install PostCSS&lt;/h3&gt;
&lt;p&gt;To build or update your site&amp;rsquo;s CSS resources, you also need &lt;a href=&#34;https://postcss.org/&#34;&gt;&lt;code&gt;PostCSS&lt;/code&gt;&lt;/a&gt; to create the final assets. If you need to install it, you must have a recent version of &lt;a href=&#34;https://nodejs.org/en/&#34;&gt;NodeJS&lt;/a&gt; installed on your machine so you can use &lt;code&gt;npm&lt;/code&gt;, the Node package manager. By default &lt;code&gt;npm&lt;/code&gt; installs tools under the directory where you run &lt;a href=&#34;https://docs.npmjs.com/cli/v6/commands/npm-install#description&#34;&gt;&lt;code&gt;npm install&lt;/code&gt;&lt;/a&gt;:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;sudo npm install -D autoprefixer
sudo npm install -D postcss-cli
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Starting in &lt;a href=&#34;https://github.com/postcss/postcss-cli/blob/master/CHANGELOG.md&#34;&gt;version 8 of &lt;code&gt;postcss-cli&lt;/code&gt;&lt;/a&gt;, you must also separately install &lt;code&gt;postcss&lt;/code&gt;:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;sudo npm install -D postcss
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Note that versions of &lt;code&gt;PostCSS&lt;/code&gt; later than 5.0.1 will not load &lt;code&gt;autoprefixer&lt;/code&gt; if installed &lt;a href=&#34;https://flaviocopes.com/npm-packages-local-global/&#34;&gt;globally&lt;/a&gt;, you must use a local install.&lt;/p&gt;
&lt;h2 id=&#34;using-the-theme&#34;&gt;Using the theme&lt;/h2&gt;
&lt;p&gt;To use the Docsy Hugo theme, you have a couple of options:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Copy and edit the source for the &lt;a href=&#34;https://github.com/google/docsy-example&#34;&gt;Docsy example site&lt;/a&gt;.&lt;/strong&gt; This approach gives you a skeleton structure for your site, with top-level and documentation sections and templates that you can modify as necessary. The example site uses Docsy as a &lt;a href=&#34;https://git-scm.com/book/en/v2/Git-Tools-Submodules&#34;&gt;Git submodule&lt;/a&gt;, so it&amp;rsquo;s easy to &lt;a href=&#34;/docs/updating/&#34;&gt;keep up to date&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Build your own site using the Docsy theme.&lt;/strong&gt; Specify the &lt;a href=&#34;https://github.com/google/docsy&#34;&gt;Docsy theme&lt;/a&gt; like any other &lt;a href=&#34;https://gohugo.io/themes/&#34;&gt;Hugo theme&lt;/a&gt; when creating or updating your site. With this option, you&amp;rsquo;ll get Docsy look and feel, navigation, and other features, but you&amp;rsquo;ll need to specify your own site structure.&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id=&#34;option-1-copy-the-docsy-example-site&#34;&gt;Option 1: Copy the Docsy example site&lt;/h3&gt;
&lt;p&gt;The &lt;a href=&#34;https://example.docsy.dev&#34;&gt;Example Site&lt;/a&gt; gives you a good starting point for building your docs site and is
pre-configured to use the Docsy theme as a Git submodule. You can copy the Example Site either by:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&#34;#using-the-github-ui&#34;&gt;Using the GitHub UI&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;#using-the-command-line&#34;&gt;Using the command line&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h4 id=&#34;using-the-github-ui&#34;&gt;Using the GitHub UI&lt;/h4&gt;
&lt;p&gt;This is the simplest approach, as the Docsy example site repo is a &lt;a href=&#34;https://github.blog/2019-06-06-generate-new-repositories-with-repository-templates/&#34;&gt;template repository&lt;/a&gt;. To create your own copy of the Docsy example site repo:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;Go to the &lt;a href=&#34;https://github.com/google/docsy-example&#34;&gt;repo page&lt;/a&gt; and click &lt;strong&gt;Use this template&lt;/strong&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Type your chosen name for your new repository in the &lt;strong&gt;Repository name&lt;/strong&gt; field. You can also add an optional &lt;strong&gt;Description&lt;/strong&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Click &lt;strong&gt;Create repository from template&lt;/strong&gt; to create your new repository. Congratulations, you now have a Docsy site repo!&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;To test your copied site locally with Hugo, or make local edits, you&amp;rsquo;ll also need to make a local copy of your new repository. To do this, use &lt;code&gt;git clone&lt;/code&gt;, replacing &lt;code&gt;https://github.com/my/example.git&lt;/code&gt; with your repo&amp;rsquo;s web URL (don&amp;rsquo;t forget to use &lt;code&gt;--recurse-submodules&lt;/code&gt; or you won&amp;rsquo;t pull down some of the code you need to generate a working site):&lt;/p&gt;
 &lt;pre&gt;
 git clone --recurse-submodules --depth 1 &lt;em&gt;https://github.com/my/example.git&lt;/em&gt;
 &lt;/pre&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;You can now edit your local versions of the site&amp;rsquo;s source files. To preview your site, go to your site root directory and run &lt;code&gt;hugo server&lt;/code&gt; (&lt;a href=&#34;#known-issues&#34;&gt;see the known issues on MacOS&lt;/a&gt;). By default, your site will be available at http://localhost:1313/. To push changes to your new repo, go to your site root directory and use &lt;code&gt;git push&lt;/code&gt;.&lt;/p&gt;
&lt;h4 id=&#34;using-the-command-line&#34;&gt;Using the command line&lt;/h4&gt;
&lt;p&gt;To copy the example site:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;Make a local working copy of the example site directly using &lt;code&gt;git clone&lt;/code&gt;:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;git clone https://github.com/google/docsy-example.git
&lt;/code&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Switch to the root of the cloned project, for example:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt; cd docsy-example
&lt;/code&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Get local copies of the project submodules so you can build and run your site locally:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt; git submodule update --init --recursive
&lt;/code&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Build your site:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt; hugo server
&lt;/code&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Preview your site in your browser at: http://localhost:1313/. You can use &lt;code&gt;Ctrl + c&lt;/code&gt; to stop the Hugo server whenever you like.
&lt;a href=&#34;#known-issues&#34;&gt;See the known issues on MacOS&lt;/a&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Now that you have a site running, you can push it to a new repository:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;&lt;a href=&#34;https://help.github.com/en/articles/create-a-repo&#34;&gt;Create a new repository in GitHub&lt;/a&gt;
for your site with your chosen repo name. For clarity you may also want to rename the root
directory (&lt;code&gt;docsy-example&lt;/code&gt;) of your working copy to match, though everything will still
work even if you don&amp;rsquo;t.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Configure
&lt;a href=&#34;https://help.github.com/en/articles/configuring-a-remote-for-a-fork&#34;&gt;&lt;code&gt;origin&lt;/code&gt;&lt;/a&gt;
in your project. From your site&amp;rsquo;s root directory, set the URL for &lt;code&gt;origin&lt;/code&gt; to your new
repo (otherwise you&amp;rsquo;ll be trying to push changes to &lt;code&gt;google/docsy&lt;/code&gt; rather than to your repo):&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;  git remote set-url origin https://github.com/MY-SITE/EXAMPLE.git
&lt;/code&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Verify that your remote is configured correctly by running:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;  git remote -v
&lt;/code&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Push your Docsy site to your repository:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;  git push -u origin master
&lt;/code&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;h3 id=&#34;option-2-use-the-docsy-theme-in-your-own-site&#34;&gt;Option 2: Use the Docsy theme in your own site&lt;/h3&gt;
&lt;p&gt;Specify the &lt;a href=&#34;https://github.com/google/docsy&#34;&gt;Docsy theme&lt;/a&gt; like any other Hugo theme when creating or updating your site. This gives you all the theme-y goodness but you&amp;rsquo;ll need to specify your own site structure.  You can either use the theme as a submodule (our recommended approach for easy updates), or just clone the theme into your project&amp;rsquo;s &lt;code&gt;themes&lt;/code&gt; subdirectory.&lt;/p&gt;
&lt;p&gt;Whichever approach you use, for simplicity we recommend copying and editing our &lt;a href=&#34;#basic-site-configuration&#34;&gt;example site configuration&lt;/a&gt; for your project, or you may get Hugo errors for missing parameters and values when you try to build your site.&lt;/p&gt;
&lt;h4 id=&#34;using-the-docsy-theme-as-a-submodule&#34;&gt;Using the Docsy theme as a submodule&lt;/h4&gt;
&lt;p&gt;Adding Docsy as a Git submodule is our recommended approach for using the theme, as it means your project
always refers to the Docsy repo version at your chosen revision, rather than you having your own copy in
your repo that may result in merge conflicts when you try to update it. This is the approach used by our
&lt;a href=&#34;https://github.com/google/docsy-example&#34;&gt;example project&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;To create a new Hugo site project and then add the Docs theme as a submodule, run the following commands from your project&amp;rsquo;s root directory.&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre style=&#34;background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4&#34;&gt;&lt;code class=&#34;language-shell&#34; data-lang=&#34;shell&#34;&gt;hugo new site myproject
&lt;span style=&#34;color:#204a87&#34;&gt;cd&lt;/span&gt; myproject
git init
git submodule add https://github.com/google/docsy.git themes/docsy
&lt;span style=&#34;color:#204a87&#34;&gt;echo&lt;/span&gt; &lt;span style=&#34;color:#4e9a06&#34;&gt;&amp;#39;theme = &amp;#34;docsy&amp;#34;&amp;#39;&lt;/span&gt; &amp;gt;&amp;gt; config.toml
git submodule update --init --recursive
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;To add the Docsy theme to an existing site, run the following commands from your project&amp;rsquo;s root directory:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;git submodule add https://github.com/google/docsy.git themes/docsy
echo &#39;theme = &amp;quot;docsy&amp;quot;&#39; &amp;gt;&amp;gt; config.toml
git submodule update --init --recursive
&lt;/code&gt;&lt;/pre&gt;&lt;h4 id=&#34;cloning-the-docsy-theme-to-your-projects-themes-subdirectory&#34;&gt;Cloning the Docsy theme to your project&amp;rsquo;s &lt;code&gt;themes&lt;/code&gt; subdirectory&lt;/h4&gt;
&lt;p&gt;If you don&amp;rsquo;t want to use a submodules (for example, if you want to customize and maintain your  own copy of the theme directly, or your deployment choice requires you to include a copy of the theme in your repository), you can clone the theme into your project.&lt;/p&gt;
&lt;p&gt;To clone Docsy into your project&amp;rsquo;s &lt;code&gt;theme&lt;/code&gt; folder, run the following commands from your project&amp;rsquo;s root directory:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;cd themes
git clone https://github.com/google/docsy
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;If you want to build and/or serve your site &lt;a href=&#34;/docs/deployment/#serving-your-site-locally&#34;&gt;locally&lt;/a&gt;, you also need to get local copies of the theme’s own submodules:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;git submodule update --init --recursive
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;For more information, see &lt;a href=&#34;https://gohugo.io/hugo-modules/theme-components/&#34;&gt;Theme Components&lt;/a&gt; on the &lt;a href=&#34;https://gohugo.io&#34;&gt;Hugo&lt;/a&gt; site.&lt;/p&gt;
&lt;h4 id=&#34;preview-your-site&#34;&gt;Preview your site&lt;/h4&gt;
&lt;p&gt;To build and preview your site locally:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;cd myproject
hugo server
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;By default, your site will be available at http://localhost:1313/. &lt;a href=&#34;#known-issues&#34;&gt;See the known issues on MacOS&lt;/a&gt;.&lt;/p&gt;
&lt;h2 id=&#34;basic-site-configuration&#34;&gt;Basic site configuration&lt;/h2&gt;
&lt;p&gt;Site-wide configuration details and parameters are defined in your project&amp;rsquo;s &lt;code&gt;config.toml&lt;/code&gt; file. These include your chosen Hugo theme (Docsy, of course!), project name, community links, Google Analytics configuration, and Markdown parser parameters. See the examples with comments in &lt;a href=&#34;https://github.com/google/docsy-example/blob/master/config.toml&#34;&gt;&lt;code&gt;config.toml&lt;/code&gt; in the example project&lt;/a&gt; for how to add this information. &lt;strong&gt;We recommend copying this &lt;code&gt;config.toml&lt;/code&gt; and editing it even if you&amp;rsquo;re just using the theme and not copying the entire Docsy example site&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;The Docsy example site comes with some defaults you may want to remove or customize straight away:&lt;/p&gt;
&lt;h3 id=&#34;internationalization&#34;&gt;Internationalization&lt;/h3&gt;
&lt;p&gt;The Docsy example site supports content in English and Norwegian. You can find out more about how Docsy supports multi-language content in &lt;a href=&#34;/docs/language/&#34;&gt;Multi-language support&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;If you don&amp;rsquo;t intend to translate your site to Norwegian, you can remove the language switcher by removing the following lines from &lt;code&gt;config.toml&lt;/code&gt;:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;[languages.no]
title = &amp;quot;Docsy&amp;quot;
description = &amp;quot;Docsy er operativsystem for skyen&amp;quot;
languageName =&amp;quot;Norsk&amp;quot;
contentDir = &amp;quot;content/no&amp;quot;
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;To remove the translated source files, delete the &lt;code&gt;docsy-example/content/no&lt;/code&gt; directory.&lt;/p&gt;
&lt;h3 id=&#34;search&#34;&gt;Search&lt;/h3&gt;
&lt;p&gt;By default, the Docsy example site uses its own &lt;a href=&#34;https://cse.google.com/cse/all&#34;&gt;Google Custom Search Engine&lt;/a&gt;. To disable this site search, delete or comment out the following lines:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;# Google Custom Search Engine ID. Remove or comment out to disable search.
gcs_engine_id = &amp;quot;011737558837375720776:fsdu1nryfng&amp;quot;
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;To use your own Custom Search Engine, replace the value in the &lt;code&gt;gcs_engine_id&lt;/code&gt; with the ID of your own search engine. Or &lt;a href=&#34;/docs/adding-content/navigation/#site-search-options&#34;&gt;choose another search option&lt;/a&gt;.&lt;/p&gt;
&lt;h2 id=&#34;known-issues&#34;&gt;Known issues&lt;/h2&gt;
&lt;h3 id=&#34;macos-1&#34;&gt;MacOS&lt;/h3&gt;
&lt;h4 id=&#34;errors-too-many-open-files-or-fatal-error-pipe-failed&#34;&gt;Errors: &lt;code&gt;too many open files&lt;/code&gt; or &lt;code&gt;fatal error: pipe failed&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;By default, MacOS permits a small number of open File Descriptors. For larger sites, or when you&amp;rsquo;re simultaneously running multiple applications,
you might receive one of the following errors when you run &lt;a href=&#34;https://gohugo.io/commands/hugo_server/&#34;&gt;&lt;code&gt;hugo server&lt;/code&gt;&lt;/a&gt; to preview your site locally:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;POSTCSS v7 and earlier:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;ERROR 2020/04/14 12:37:16 Error: listen tcp 127.0.0.1:1313: socket: too many open files
&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;POSTCSS v8 and later:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;fatal error: pipe failed
&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h5 id=&#34;workaround&#34;&gt;Workaround&lt;/h5&gt;
&lt;p&gt;To temporarily allow more open files:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;View your current settings by running:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;sudo launchctl limit maxfiles
&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Increase the limit to &lt;code&gt;65535&lt;/code&gt; files by running the following commands. If your site has fewer files, you can set choose to set lower soft (&lt;code&gt;65535&lt;/code&gt;) and
hard (&lt;code&gt;200000&lt;/code&gt;) limits.&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre style=&#34;background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4&#34;&gt;&lt;code class=&#34;language-shell&#34; data-lang=&#34;shell&#34;&gt;sudo launchctl limit maxfiles &lt;span style=&#34;color:#0000cf;font-weight:bold&#34;&gt;65535&lt;/span&gt; &lt;span style=&#34;color:#0000cf;font-weight:bold&#34;&gt;200000&lt;/span&gt;
&lt;span style=&#34;color:#204a87&#34;&gt;ulimit&lt;/span&gt; -n &lt;span style=&#34;color:#0000cf;font-weight:bold&#34;&gt;65535&lt;/span&gt;
sudo sysctl -w kern.maxfiles&lt;span style=&#34;color:#ce5c00;font-weight:bold&#34;&gt;=&lt;/span&gt;&lt;span style=&#34;color:#0000cf;font-weight:bold&#34;&gt;200000&lt;/span&gt;
sudo sysctl -w kern.maxfilesperproc&lt;span style=&#34;color:#ce5c00;font-weight:bold&#34;&gt;=&lt;/span&gt;&lt;span style=&#34;color:#0000cf;font-weight:bold&#34;&gt;65535&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Note that you might need to set these limits for each new shell.
&lt;a href=&#34;https://www.google.com/search?q=mac+os+launchctl+limit+maxfiles+site%3Aapple.stackexchange.com&amp;amp;oq=mac+os+launchctl+limit+maxfiles+site%3Aapple.stackexchange.com&#34;&gt;Learn more about these limits and how to make them permanent&lt;/a&gt;.&lt;/p&gt;
&lt;h2 id=&#34;whats-next&#34;&gt;What&amp;rsquo;s next?&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&#34;/docs/adding-content/&#34;&gt;Add content and customize your site&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Get some ideas from our &lt;a href=&#34;https://github.com/google/docsy-example&#34;&gt;Example Site&lt;/a&gt; and other &lt;a href=&#34;/docs/examples/&#34;&gt;Examples&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;/docs/deployment/&#34;&gt;Publish your site&lt;/a&gt;.&lt;/li&gt;
&lt;/ul&gt;

      </description>
    </item>
    
    <item>
      <title>Docs: Docker Quickstart</title>
      <link>/docs/dev-test-content/getting-started/quickstart-docker/</link>
      <pubDate>Mon, 30 Jul 2018 00:00:00 +0000</pubDate>
      
      <guid>/docs/dev-test-content/getting-started/quickstart-docker/</guid>
      <description>
        
        
        &lt;h2 id=&#34;install-the-prerequisites&#34;&gt;Install the prerequisites&lt;/h2&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;On Mac and Windows, download and install &lt;a href=&#34;ihttps://www.docker.com/get-started&#34;&gt;Docker
Desktop&lt;/a&gt;.  On Linux, install &lt;a href=&#34;https://docs.docker.com/engine/install/#server&#34;&gt;Docker
engine&lt;/a&gt; and &lt;a href=&#34;https://docs.docker.com/compose/install/&#34;&gt;Docker
compose&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;The installation may require you to reboot your computer for the changes to
take effect.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;a href=&#34;https://github.com/git-guides/install-git&#34;&gt;Install git&lt;/a&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;h2 id=&#34;create-your-repository-from-the-docsy-example-template&#34;&gt;Create your repository from the docsy-example template&lt;/h2&gt;
&lt;p&gt;The docsy-example repository provides a basic site structure that you can use
as starting point to create your own documentation.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;Use the &lt;a href=&#34;https://github.com/google/docsy-example&#34;&gt;docsy-example template&lt;/a&gt;
to &lt;a href=&#34;https://docs.github.com/en/github/creating-cloning-and-archiving-repositories/creating-a-repository-from-a-template&#34;&gt;create your own repository&lt;/a&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Download the code to your local machine by &lt;a href=&#34;https://docs.github.com/en/github/creating-cloning-and-archiving-repositories/cloning-a-repository&#34;&gt;cloning your newly created
repository&lt;/a&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Change your working directory to the newly created folder:&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre style=&#34;background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span style=&#34;color:#204a87&#34;&gt;cd&lt;/span&gt; docsy-example
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;h2 id=&#34;build-and-run-the-container&#34;&gt;Build and run the container&lt;/h2&gt;
&lt;p&gt;The docsy-example repository includes a
&lt;a href=&#34;https://docs.docker.com/engine/reference/builder/&#34;&gt;Dockerfile&lt;/a&gt; that you can
use to run your site.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;Build the docker image:&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre style=&#34;background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;docker-compose build
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Run the built image:&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre style=&#34;background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;docker-compose up
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Open the address &lt;code&gt;http://localhost:1313&lt;/code&gt; in your web browser to load the
docsy-example homepage. You can now make changes to the source files, those
changes will be live-reloaded in your browser.&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;h2 id=&#34;cleanup&#34;&gt;Cleanup&lt;/h2&gt;
&lt;p&gt;To cleanup your system and delete the container image follow the next steps.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;Stop Docker Compose with &lt;strong&gt;Ctrl + C&lt;/strong&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Remove the produced images&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre style=&#34;background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;docker-compose rm
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;h2 id=&#34;whats-next&#34;&gt;What&amp;rsquo;s next?&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;Learn about &lt;a href=&#34;/docs/getting-started/&#34;&gt;basic setup and configurations for Docsy&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;/docs/adding-content/&#34;&gt;Add content and customize your site&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;/docs/deployment/&#34;&gt;Publish your site&lt;/a&gt;.&lt;/li&gt;
&lt;/ul&gt;

      </description>
    </item>
    
  </channel>
</rss>
