<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>myDocsy – tag 4</title>
    <link>/tags/tag-4/</link>
    <description>Recent content in tag 4 on myDocsy</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en-us</language>
    
	  <atom:link href="/tags/tag-4/index.xml" rel="self" type="application/rss+xml" />
    
    
      
        
      
    
    
    <item>
      <title>Docs: Previews and Deployment</title>
      <link>/docs/dev-test-content/deployment/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/docs/dev-test-content/deployment/</guid>
      <description>
        
        
        &lt;p&gt;There are multiple possible options for deploying a Hugo site, including Netlify, Firebase Hosting, Bitbucket with Aerobatic, and more; you can read about them all in &lt;a href=&#34;https://gohugo.io/hosting-and-deployment/&#34;&gt;Hosting and Deployment&lt;/a&gt;. Hugo also makes it easy to deploy your site locally for quick previews of your content.&lt;/p&gt;
&lt;h2 id=&#34;serving-your-site-locally&#34;&gt;Serving your site locally&lt;/h2&gt;
&lt;p&gt;Depending on your deployment choice you may want to serve your site locally during development to preview content changes. To serve your site locally:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;Ensure you have an up to date local copy of your site files cloned from your repo. 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;&lt;code&gt;git clone --recurse-submodules --depth 1 https://github.com/my/example.git
&lt;/code&gt;&lt;/pre&gt;

&lt;div class=&#34;alert alert-primary&#34; role=&#34;alert&#34;&gt;
&lt;h4 class=&#34;alert-heading&#34;&gt;Note&lt;/h4&gt;

    &lt;p&gt;If you&amp;rsquo;ve just added the theme as a submodule in a local version of your site and haven&amp;rsquo;t committed it to a repo yet,  you must get local copies of the theme&amp;rsquo;s own submodules before serving your site.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;git submodule update --init --recursive
&lt;/code&gt;&lt;/pre&gt;


&lt;/div&gt;

&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Ensure you have the tools described in &lt;a href=&#34;/docs/getting-started/#prerequisites-and-installation&#34;&gt;Prerequisites and installation&lt;/a&gt; installed on your local machine, including &lt;code&gt;postcss-cli&lt;/code&gt; (you&amp;rsquo;ll need it to generate the site resources the first time you run the server).&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Run the &lt;code&gt;hugo server&lt;/code&gt; command in your site root. By default your site will be available at http://localhost:1313/.&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Now that you&amp;rsquo;re serving your site locally, Hugo will watch for changes to the content and automatically refresh your site. If you have more than one local git branch, when you switch between git branches the local website reflects the files in the current branch.&lt;/p&gt;
&lt;h2 id=&#34;deployment-with-netlify&#34;&gt;Deployment with Netlify&lt;/h2&gt;
&lt;p&gt;We recommend using &lt;a href=&#34;https://www.netlify.com/&#34;&gt;Netlify&lt;/a&gt; as a particularly simple way to serve your site from your Git provider (GitHub, GitLab, or BitBucket), with &lt;a href=&#34;https://www.netlify.com/docs/continuous-deployment/&#34;&gt;continuous deployment&lt;/a&gt;, previews of the generated site when you or your users create pull requests against the doc repo, and more. Netlify is free to use for Open Source projects, with premium tiers if you require greater support.&lt;/p&gt;
&lt;p&gt;Before deploying with Netlify, make sure that you&amp;rsquo;ve pushed your site source to your chosen GitHub (or other provider) repo, following any setup instructions in &lt;a href=&#34;/docs/getting-started/#using-the-theme&#34;&gt;Using the theme&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Then follow the instructions in &lt;a href=&#34;https://gohugo.io/hosting-and-deployment/hosting-on-netlify/&#34;&gt;Host on Netlify&lt;/a&gt; to set up a Netlify account (if you don&amp;rsquo;t have one already) and authorize access to your GitHub or other Git provider account. Once you&amp;rsquo;re logged in:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Click &lt;strong&gt;New site from Git&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Click your chosen Git provider, then choose your site repo from your list of repos.&lt;/li&gt;
&lt;li&gt;In the &lt;strong&gt;Deploy settings&lt;/strong&gt; page:
&lt;ol&gt;
&lt;li&gt;For your &lt;strong&gt;Build command&lt;/strong&gt;, specify &lt;code&gt;cd themes/docsy &amp;amp;&amp;amp; git submodule update -f --init &amp;amp;&amp;amp; cd ../.. &amp;amp;&amp;amp; hugo&lt;/code&gt;. You need to specify this rather than just &lt;code&gt;hugo&lt;/code&gt; so that Netlify can use the theme&amp;rsquo;s submodules.&lt;/li&gt;
&lt;li&gt;Click &lt;strong&gt;Show advanced&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;In the &lt;strong&gt;Advanced build settings&lt;/strong&gt; section, click &lt;strong&gt;New variable&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Specify &lt;code&gt;HUGO_VERSION&lt;/code&gt; as the &lt;strong&gt;Key&lt;/strong&gt; for the new variable, and &lt;code&gt;0.53&lt;/code&gt; or later as its &lt;strong&gt;Value&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;(Optional) Click &lt;strong&gt;New variable&lt;/strong&gt; again, and this time set &lt;code&gt;HUGO_ENV&lt;/code&gt; to &lt;code&gt;production&lt;/code&gt;. Do this if you want your site to be indexed by search engines. You must do this if you want to use a &lt;a href=&#34;/docs/adding-content/navigation/#configure-search-with-a-google-custom-search-engine&#34;&gt;Google Custom Search Engine&lt;/a&gt;.&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;Click &lt;strong&gt;Deploy site&lt;/strong&gt;.&lt;/li&gt;
&lt;/ol&gt;


&lt;div class=&#34;alert alert-primary&#34; role=&#34;alert&#34;&gt;
&lt;h4 class=&#34;alert-heading&#34;&gt;Note&lt;/h4&gt;

    &lt;p&gt;Netlify uses your site repo&amp;rsquo;s &lt;code&gt;package.json&lt;/code&gt; file to install any JavaScript dependencies (like &lt;code&gt;postcss&lt;/code&gt;) before building your site. If you haven&amp;rsquo;t just copied our example site&amp;rsquo;s version of this file, make sure that you&amp;rsquo;ve specified all our &lt;a href=&#34;/docs/getting-started/#install-postcss&#34;&gt;prerequisites&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;For example, if you want to use a version of &lt;code&gt;postcss-cli&lt;/code&gt; later than version 8.0.0, you need to ensure that your &lt;code&gt;package.json&lt;/code&gt; also specifies &lt;code&gt;postcss&lt;/code&gt; separately:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;  &amp;quot;devDependencies&amp;quot;: {
    &amp;quot;autoprefixer&amp;quot;: &amp;quot;^9.8.6&amp;quot;,
    &amp;quot;postcss-cli&amp;quot;: &amp;quot;^8.0.0&amp;quot;,
    &amp;quot;postcss&amp;quot;: &amp;quot;^8.0.0&amp;quot;
  }
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;Alternatively, you can follow the same instructions but specify your &lt;strong&gt;Deploy settings&lt;/strong&gt; in a &lt;a href=&#34;https://docs.netlify.com/configure-builds/file-based-configuration/&#34;&gt;&lt;code&gt;netlify.toml&lt;/code&gt; file&lt;/a&gt; in your repo rather than in the &lt;strong&gt;Deploy settings&lt;/strong&gt; page. You can see an example of this in the &lt;a href=&#34;https://github.com/google/docsy/blob/master/netlify.toml&#34;&gt;Docsy theme repo&lt;/a&gt; (though note that the build command here is a little unusual because the Docsy user guide is &lt;em&gt;inside&lt;/em&gt; the theme repo).&lt;/p&gt;
&lt;p&gt;If you have an existing deployment you can view and update the relevant information by selecting the site from your list of sites in Netlify, then clicking &lt;strong&gt;Site settings&lt;/strong&gt; - &lt;strong&gt;Build and deploy&lt;/strong&gt;. Ensure that &lt;strong&gt;Ubuntu Xenial 16.04&lt;/strong&gt; is selected in the &lt;strong&gt;Build image selection&lt;/strong&gt; section - if you&amp;rsquo;re creating a new deployment this is used by default. You need to use this image to run the extended version of Hugo.&lt;/p&gt;

      </description>
    </item>
    
    <item>
      <title>Docs: Guidelines for Contribution to Docsy</title>
      <link>/docs/dev-test-content/contribution-guidelines/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/docs/dev-test-content/contribution-guidelines/</guid>
      <description>
        
        
        &lt;p&gt;Docsy is an open source project and we love getting patches and contributions to make Docsy and its docs even better.&lt;/p&gt;
&lt;h2 id=&#34;contributing-to-docsy&#34;&gt;Contributing to Docsy&lt;/h2&gt;
&lt;p&gt;The Docsy theme itself lives in &lt;a href=&#34;https://github.com/google/docsy&#34;&gt;https://github.com/google/docsy&lt;/a&gt;.&lt;/p&gt;
&lt;h3 id=&#34;contributor-license-agreement&#34;&gt;Contributor License Agreement&lt;/h3&gt;
&lt;p&gt;Contributions to this project must be accompanied by a Contributor License
Agreement. You (or your employer) retain the copyright to your contribution;
this simply gives us permission to use and redistribute your contributions as
part of the project. Head over to &lt;a href=&#34;https://cla.developers.google.com/&#34;&gt;https://cla.developers.google.com/&lt;/a&gt; to see
your current agreements on file or to sign a new one.&lt;/p&gt;
&lt;p&gt;You generally only need to submit a CLA once, so if you&amp;rsquo;ve already submitted one
(even if it was for a different project), you probably don&amp;rsquo;t need to do it
again.&lt;/p&gt;
&lt;h3 id=&#34;code-reviews&#34;&gt;Code reviews&lt;/h3&gt;
&lt;p&gt;All submissions, including submissions by project members, require review. We
use GitHub pull requests for this purpose. Consult
&lt;a href=&#34;https://help.github.com/articles/about-pull-requests/&#34;&gt;GitHub Help&lt;/a&gt; for more
information on using pull requests.&lt;/p&gt;
&lt;h3 id=&#34;previewing-your-changes&#34;&gt;Previewing your changes&lt;/h3&gt;
&lt;p&gt;As Docsy is a theme rather than a site, you can&amp;rsquo;t serve the theme directly to check your changes work. Instead use your updated local theme in a local copy of the Docsy example site (copy or make your changes in the &lt;code&gt;themes/docsy&lt;/code&gt; directory) and &lt;a href=&#34;/docs/deployment/&#34;&gt;preview&lt;/a&gt; from there. Alternatively, clone the &lt;a href=&#34;https://github.com/google/docsy&#34;&gt;Docsy theme repo&lt;/a&gt; and test your changes in a local copy of this site, as described &lt;a href=&#34;#previewing-your-changes-locally&#34;&gt;below&lt;/a&gt;.&lt;/p&gt;
&lt;h3 id=&#34;community-guidelines&#34;&gt;Community guidelines&lt;/h3&gt;
&lt;p&gt;This project follows
&lt;a href=&#34;https://opensource.google.com/conduct/&#34;&gt;Google&amp;rsquo;s Open Source Community Guidelines&lt;/a&gt;.&lt;/p&gt;
&lt;h3 id=&#34;creating-issues&#34;&gt;Creating issues&lt;/h3&gt;
&lt;p&gt;Alternatively, if there&amp;rsquo;s something you&amp;rsquo;d like to see in Docsy (or if you&amp;rsquo;ve found something that isn&amp;rsquo;t working the way you&amp;rsquo;d expect), but you&amp;rsquo;re not sure how to fix it yourself, please create an &lt;a href=&#34;https://github.com/google/docsy/issues&#34;&gt;issue&lt;/a&gt;.&lt;/p&gt;
&lt;h2 id=&#34;contributing-to-these-docs&#34;&gt;Contributing to these docs&lt;/h2&gt;
&lt;p&gt;This user guide is, like our example site, a Docsy site that uses the Hugo static site generator. We welcome updates to the docs!&lt;/p&gt;
&lt;p&gt;We use &lt;a href=&#34;https://www.netlify.com/&#34;&gt;Netlify&lt;/a&gt; to manage the deployment of the site and provide previews of doc updates. The instructions here assume you&amp;rsquo;re familiar with basic GitHub workflows.&lt;/p&gt;
&lt;h3 id=&#34;quick-start-with-netlify&#34;&gt;Quick start with Netlify&lt;/h3&gt;
&lt;ol&gt;
&lt;li&gt;Fork the &lt;a href=&#34;https://github.com/google/docsy&#34;&gt;Docsy repo&lt;/a&gt; on GitHub: this site&amp;rsquo;s files live in the &lt;code&gt;userguide&lt;/code&gt; subdirectory.&lt;/li&gt;
&lt;li&gt;Make your changes and send a pull request (PR).&lt;/li&gt;
&lt;li&gt;If you&amp;rsquo;re not yet ready for a review, add &amp;ldquo;WIP&amp;rdquo; to the PR name to indicate
it&amp;rsquo;s a work in progress. (&lt;strong&gt;Don&amp;rsquo;t&lt;/strong&gt; add the Hugo property
&amp;ldquo;draft = true&amp;rdquo; to the page front matter, because that prevents the
auto-deployment of the content preview described in the next point.)&lt;/li&gt;
&lt;li&gt;Wait for the automated PR workflow to do some checks. When it&amp;rsquo;s ready,
you should see a comment like this: &lt;strong&gt;deploy/netlify — Deploy preview ready!&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;Click &lt;strong&gt;Details&lt;/strong&gt; to the right of &amp;ldquo;Deploy preview ready&amp;rdquo; to see a preview
of your updates.&lt;/li&gt;
&lt;li&gt;Continue updating your doc and pushing your changes until you&amp;rsquo;re happy with
the content.&lt;/li&gt;
&lt;li&gt;When you&amp;rsquo;re ready for a review, add a comment to the PR, and remove any
&amp;ldquo;WIP&amp;rdquo; markers.&lt;/li&gt;
&lt;/ol&gt;
&lt;h3 id=&#34;updating-a-single-page&#34;&gt;Updating a single page&lt;/h3&gt;
&lt;p&gt;If you&amp;rsquo;ve just spotted something you&amp;rsquo;d like to change while using the docs, Docsy has a shortcut for you:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Click &lt;strong&gt;Edit this page&lt;/strong&gt; in the top right hand corner of the page.&lt;/li&gt;
&lt;li&gt;If you don&amp;rsquo;t already have an up to date fork of the project repo, you are prompted to get one - click &lt;strong&gt;Fork this repository and propose changes&lt;/strong&gt; or &lt;strong&gt;Update your Fork&lt;/strong&gt; to get an up to date version of the project to edit. The appropriate page in your fork is displayed in edit mode.&lt;/li&gt;
&lt;li&gt;Follow the rest of the &lt;a href=&#34;#quick-start-with-netlify&#34;&gt;Quick start with Netlify&lt;/a&gt; process above to make and preview your changes.&lt;/li&gt;
&lt;/ol&gt;
&lt;h3 id=&#34;previewing-your-changes-locally&#34;&gt;Previewing your changes locally&lt;/h3&gt;
&lt;p&gt;If you want to run your own local Hugo server to preview your changes as you work:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;Follow the instructions in &lt;a href=&#34;/docs/getting-started&#34;&gt;Getting started&lt;/a&gt; to install Hugo and any other tools you need.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Fork the &lt;a href=&#34;https://github.com/google/docsy&#34;&gt;Docsy&lt;/a&gt; repo into your own project, then create a local copy using &lt;code&gt;git clone&lt;/code&gt;. Don’t forget to use &lt;code&gt;--recurse-submodules&lt;/code&gt; or you won’t pull down some of the code you need to generate a working site.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;git clone --recurse-submodules --depth 1 https://github.com/google/docsy.git
&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Change to the &lt;code&gt;userguide&lt;/code&gt; directory and run the following Hugo command to build the site and start the Hugo server.
Note that you need the &lt;code&gt;themesDir&lt;/code&gt; flag because the site files are inside the theme repo.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;cd userguide
hugo server --themesDir ../..
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;By default your site will be available at http://localhost:1313/. Now that you&amp;rsquo;re serving your site locally, Hugo will watch for changes to the content and automatically refresh your site.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Continue with the usual GitHub workflow to edit files, commit them, push the
changes up to your fork, and create a pull request.&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;h3 id=&#34;creating-an-issue&#34;&gt;Creating an issue&lt;/h3&gt;
&lt;p&gt;If there&amp;rsquo;s something you&amp;rsquo;d like to see in the docs, but you&amp;rsquo;re not sure how to fix it yourself, please create an issue in &lt;a href=&#34;https://github.com/google/docsy&#34;&gt;this repository&lt;/a&gt;. You can also create an issue about a specific page by clicking the &lt;strong&gt;Create Issue&lt;/strong&gt; button in the top right hand corner of the page.&lt;/p&gt;

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