<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>Build on OINK 文档主题</title>
		<link>https://oink.pgsty.com/zh/project/build/</link>
		<description>Recent content in Build on OINK 文档主题</description>
		<generator>Hugo</generator>
		<language>zh-CN</language>
		
		
		
		
			<atom:link href="https://oink.pgsty.com/zh/project/build/index.xml" rel="self" type="application/rss+xml" />
			<item>
				<title>CI/CD</title>
				<link>https://oink.pgsty.com/zh/project/build/ci-cd/</link>
				<pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
				<guid>https://oink.pgsty.com/zh/project/build/ci-cd/</guid>
				<description>&lt;h2 id=&#34;agent-support-checks&#34;&gt;Agent-support checks&lt;a class=&#34;td-heading-self-link&#34; href=&#34;#agent-support-checks&#34; aria-label=&#34;Heading self-link&#34;&gt;&lt;/a&gt;&lt;/h2&gt;&#xA;&lt;p&gt;The site has an &lt;a href=&#34;https://afdocs.dev/&#34;&gt;AFDocs&lt;/a&gt; configuration and npm script to generate a scorecard&#xA;locally:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Config: &lt;a href=&#34;https://github.com/pgsty/oink.pgsty.com/blob/main/agent-docs.config.yml&#34;&gt;agent-docs.config.yml&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;Script: &lt;code&gt;_check:afdocs&lt;/code&gt; in &lt;a href=&#34;https://github.com/pgsty/oink.pgsty.com/blob/main/package.json&#34;&gt;package.json&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;To generate a fresh scorecard, run each of these commands in separate terminals:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-sh&#34; data-lang=&#34;sh&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;npm run serve             &lt;span class=&#34;c1&#34;&gt;# From one terminal&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;npm run check:afdocs:dev  &lt;span class=&#34;c1&#34;&gt;# From another terminal&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;The latter command saves the generated scorecard to&#xA;&lt;code&gt;docs/content/agent-support/afdocs-scorecard.txt&lt;/code&gt; under &lt;code&gt;content&lt;/code&gt;, which will be&#xA;included in &lt;a href=&#34;https://oink.pgsty.com/zh/docs/content/agent-support/#scorecard-examples&#34;&gt;Scorecard examples&lt;/a&gt; on the next build.&lt;/p&gt;&#xA;&lt;p&gt;Note that the scorecard generation is not run as a part of the full CI/CD&#xA;pipeline. It needs to be run manually.&lt;/p&gt;</description>
			</item>
			<item>
				<title>Git repository layout and branch model</title>
				<link>https://oink.pgsty.com/zh/project/build/git-repo/</link>
				<pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
				<guid>https://oink.pgsty.com/zh/project/build/git-repo/</guid>
				<description>&lt;h2 id=&#34;repositories&#34;&gt;Repositories&lt;a class=&#34;td-heading-self-link&#34; href=&#34;#repositories&#34; aria-label=&#34;Heading self-link&#34;&gt;&lt;/a&gt;&lt;/h2&gt;&#xA;&lt;p&gt;Oink uses two focused repositories:&lt;/p&gt;&#xA;&lt;table&gt;&#xA;&#x9;&lt;thead&gt;&#xA;&#x9;&#x9;&#x9;&lt;tr&gt;&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&lt;th&gt;Repository&lt;/th&gt;&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&lt;th&gt;Responsibility&lt;/th&gt;&#xA;&#x9;&#x9;&#x9;&lt;/tr&gt;&#xA;&#x9;&lt;/thead&gt;&#xA;&#x9;&lt;tbody&gt;&#xA;&#x9;&#x9;&#x9;&lt;tr&gt;&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&lt;td&gt;&lt;a href=&#34;https://github.com/pgsty/oink&#34;&gt;Oink theme&lt;/a&gt;&lt;/td&gt;&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&lt;td&gt;Published Hugo Module, layouts, assets, and i18n&lt;/td&gt;&#xA;&#x9;&#x9;&#x9;&lt;/tr&gt;&#xA;&#x9;&#x9;&#x9;&lt;tr&gt;&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&lt;td&gt;&lt;a href=&#34;https://github.com/pgsty/oink.pgsty.com&#34;&gt;Oink project site&lt;/a&gt;&lt;/td&gt;&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&lt;td&gt;Documentation, examples, regression tests, and CI&lt;/td&gt;&#xA;&#x9;&#x9;&#x9;&lt;/tr&gt;&#xA;&#x9;&lt;/tbody&gt;&#xA;&lt;/table&gt;&#xA;&lt;p&gt;The theme repository has no embedded example site or npm workspace. Consumer&#xA;sites import &lt;code&gt;github.com/pgsty/oink&lt;/code&gt;; the project site is one such consumer.&lt;/p&gt;&#xA;&lt;p&gt;For local development, clone both repositories as siblings and connect them with&#xA;an ignored Go workspace:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-text&#34; data-lang=&#34;text&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;~/pgsty/&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;├── oink/&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;└── oink.pgsty.com/&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-sh&#34; data-lang=&#34;sh&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;nb&#34;&gt;cd&lt;/span&gt; ~/pgsty/oink.pgsty.com&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;go work init .&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;go work edit -replace&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;github.com/pgsty/oink&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;../oink&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;nb&#34;&gt;export&lt;/span&gt; &lt;span class=&#34;nv&#34;&gt;HUGO_MODULE_WORKSPACE&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;go.work&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;npm install&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;npm run serve&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h2 id=&#34;branch-model&#34;&gt;Branch model&lt;a class=&#34;td-heading-self-link&#34; href=&#34;#branch-model&#34; aria-label=&#34;Heading self-link&#34;&gt;&lt;/a&gt;&lt;/h2&gt;&#xA;&lt;p&gt;The theme repository uses:&lt;/p&gt;</description>
			</item>
	</channel>
</rss>
