<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Update OINK on OINK</title><link>https://pgsty.github.io/oink.pgsty.com/docs/update/</link><description>Recent content in Update OINK on OINK</description><generator>Hugo</generator><language>en-US</language><atom:link href="https://pgsty.github.io/oink.pgsty.com/docs/update/index.xml" rel="self" type="application/rss+xml"/><item><title>Update the OINK Hugo module</title><link>https://pgsty.github.io/oink.pgsty.com/docs/update/hugo-module/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://pgsty.github.io/oink.pgsty.com/docs/update/hugo-module/</guid><description>&lt;h2 id="pin-a-version"&gt;Pin a version&lt;a class="td-heading-self-link" href="#pin-a-version" aria-label="Heading self-link"&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Production sites should import a release tag or immutable commit, never an
unversioned branch. From the site root, update Oink to a specific ref:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-sh" data-lang="sh"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;hugo mod get github.com/pgsty/oink@THEME_REF
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;hugo mod tidy
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Replace &lt;code&gt;THEME_REF&lt;/code&gt; with the published root tag or commit named by the release.&lt;/p&gt;
&lt;h2 id="test-a-local-checkout"&gt;Test a local checkout&lt;a class="td-heading-self-link" href="#test-a-local-checkout" aria-label="Heading self-link"&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;To test the current OINK checkout without changing the committed module path,
use an ignored Go workspace with the local theme checkout:&lt;/p&gt;</description></item><item><title>Migrate from the Docsy npm package</title><link>https://pgsty.github.io/oink.pgsty.com/docs/update/npm-package/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://pgsty.github.io/oink.pgsty.com/docs/update/npm-package/</guid><description>&lt;p&gt;The upstream &lt;code&gt;@docsy/theme&lt;/code&gt; npm package is not an OINK distribution channel.
OINK ships Bootstrap, Font Awesome, fonts, and browser runtimes directly with
the theme so that consumer sites build with Hugo Extended alone.&lt;/p&gt;
&lt;h2 id="remove-the-npm-theme-integration"&gt;Remove the npm theme integration&lt;a class="td-heading-self-link" href="#remove-the-npm-theme-integration" aria-label="Heading self-link"&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;First select an OINK distribution: a versioned archive, Git submodule or clone,
or the compatibility Hugo module. Make that theme available to Hugo and confirm
that &lt;code&gt;hugo --gc --minify&lt;/code&gt; can resolve it.&lt;/p&gt;</description></item><item><title>Update an OINK Git submodule or clone</title><link>https://pgsty.github.io/oink.pgsty.com/docs/update/git/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://pgsty.github.io/oink.pgsty.com/docs/update/git/</guid><description>&lt;p&gt;Use the procedure matching the installation: &lt;a href="https://pgsty.github.io/oink.pgsty.com/docs/update/git/#update-the-submodule"&gt;submodule&lt;/a&gt;
or &lt;a href="https://pgsty.github.io/oink.pgsty.com/docs/update/git/#update-the-clone"&gt;clone&lt;/a&gt;. Pin the target release tag or immutable commit in
both cases.&lt;/p&gt;
&lt;h2 id="update-the-submodule"&gt;Update the submodule&lt;a class="td-heading-self-link" href="#update-the-submodule" aria-label="Heading self-link"&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;From the site root, fetch tags inside the theme and check out the target ref:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-sh" data-lang="sh"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;git -C themes/oink fetch --tags
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;git -C themes/oink checkout THEME_REF
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;git add themes/oink
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;git commit -m &lt;span class="s2"&gt;&amp;#34;Update OINK theme to THEME_REF&amp;#34;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Replace &lt;code&gt;themes/oink&lt;/code&gt; if the site uses another directory name. The parent
repository records the resulting submodule commit. Push that parent commit so CI
and other contributors resolve the same source.&lt;/p&gt;</description></item><item><title>Migrate a Docsy site to OINK</title><link>https://pgsty.github.io/oink.pgsty.com/docs/update/convert-site-to-module/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://pgsty.github.io/oink.pgsty.com/docs/update/convert-site-to-module/</guid><description>&lt;p&gt;This migration removes copied common shell overrides and the consumer-side npm
asset pipeline. It does not require a bulk rewrite of Markdown content.&lt;/p&gt;
&lt;h2 id="before-you-begin"&gt;Before you begin&lt;a class="td-heading-self-link" href="#before-you-begin" aria-label="Heading self-link"&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Create a branch and make sure the existing site builds. Inventory custom files
under &lt;code&gt;layouts/&lt;/code&gt;, &lt;code&gt;assets/&lt;/code&gt;, &lt;code&gt;static/&lt;/code&gt;, and &lt;code&gt;i18n/&lt;/code&gt;, classifying each as:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;common Docsy shell code now supplied by OINK;&lt;/li&gt;
&lt;li&gt;a reusable component now supplied by OINK;&lt;/li&gt;
&lt;li&gt;a site-owned brand, product page, or business component that must remain.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Do not delete the third category.&lt;/p&gt;</description></item></channel></rss>