<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>Advanced on OINK</title>
		<link>https://oink.pgsty.com/docs/advanced/</link>
		<description>Recent content in Advanced on OINK</description>
		<generator>Hugo</generator>
		<language>en-US</language>
		
		
		
		
			<atom:link href="https://oink.pgsty.com/docs/advanced/index.xml" rel="self" type="application/rss+xml" />
			<item>
				<title>Multi-language support</title>
				<link>https://oink.pgsty.com/docs/advanced/language/</link>
				<pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
				<guid>https://oink.pgsty.com/docs/advanced/language/</guid>
				<description>&lt;p&gt;OINK uses Hugo&amp;rsquo;s multilingual page model rather than site-specific domain or&#xA;template assumptions. The included site makes English the primary language, and&#xA;Simplified Chinese (&lt;code&gt;zh&lt;/code&gt;) the second language.&lt;/p&gt;&#xA;&lt;h2 id=&#34;configure-languages&#34;&gt;Configure languages&lt;a class=&#34;td-heading-self-link&#34; href=&#34;#configure-languages&#34; aria-label=&#34;Heading self-link&#34;&gt;&lt;/a&gt;&lt;/h2&gt;&#xA;&lt;p&gt;Define the default language and every enabled language in &lt;code&gt;hugo.yaml&lt;/code&gt;:&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-yaml&#34; data-lang=&#34;yaml&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;nt&#34;&gt;defaultContentLanguage&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;l&#34;&gt;en&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;w&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;nt&#34;&gt;languages&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;w&#34;&gt;  &lt;/span&gt;&lt;span class=&#34;nt&#34;&gt;en&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;w&#34;&gt;    &lt;/span&gt;&lt;span class=&#34;nt&#34;&gt;label&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;l&#34;&gt;English&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;w&#34;&gt;    &lt;/span&gt;&lt;span class=&#34;nt&#34;&gt;locale&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;l&#34;&gt;en-US&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;w&#34;&gt;    &lt;/span&gt;&lt;span class=&#34;nt&#34;&gt;weight&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;m&#34;&gt;1&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;w&#34;&gt;    &lt;/span&gt;&lt;span class=&#34;nt&#34;&gt;title&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;l&#34;&gt;Product Documentation&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;w&#34;&gt;    &lt;/span&gt;&lt;span class=&#34;nt&#34;&gt;params&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;w&#34;&gt;      &lt;/span&gt;&lt;span class=&#34;nt&#34;&gt;description&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;l&#34;&gt;Product guides and reference&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;w&#34;&gt;  &lt;/span&gt;&lt;span class=&#34;nt&#34;&gt;zh&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;w&#34;&gt;    &lt;/span&gt;&lt;span class=&#34;nt&#34;&gt;label&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;l&#34;&gt;简体中文&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;w&#34;&gt;    &lt;/span&gt;&lt;span class=&#34;nt&#34;&gt;locale&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;l&#34;&gt;zh-CN&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;w&#34;&gt;    &lt;/span&gt;&lt;span class=&#34;nt&#34;&gt;weight&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;m&#34;&gt;2&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;w&#34;&gt;    &lt;/span&gt;&lt;span class=&#34;nt&#34;&gt;title&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;l&#34;&gt;产品文档&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;w&#34;&gt;    &lt;/span&gt;&lt;span class=&#34;nt&#34;&gt;params&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;w&#34;&gt;      &lt;/span&gt;&lt;span class=&#34;nt&#34;&gt;description&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;l&#34;&gt;产品指南与参考资料&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;w&#34;&gt;      &lt;/span&gt;&lt;span class=&#34;nt&#34;&gt;time_format_default&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;l&#34;&gt;2006年1月2日&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;w&#34;&gt;      &lt;/span&gt;&lt;span class=&#34;nt&#34;&gt;time_format_blog&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;l&#34;&gt;2006年1月2日&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;&lt;code&gt;weight&lt;/code&gt; controls both language ordering and the selector order. &lt;code&gt;label&lt;/code&gt; is&#xA;shown in that language&amp;rsquo;s own script. &lt;code&gt;locale&lt;/code&gt; supplies standards-friendly&#xA;language tags for HTML, alternate links, and Open Graph metadata.&lt;/p&gt;</description>
			</item>
			<item>
				<title>Search</title>
				<link>https://oink.pgsty.com/docs/advanced/search/</link>
				<pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
				<guid>https://oink.pgsty.com/docs/advanced/search/</guid>
				<description>&lt;p&gt;OINK&amp;rsquo;s default and recommended search is local. Hugo generates a per-language&#xA;index; the theme serves Lunr and its CJK fallback from same-origin assets. The&#xA;site can build and search without a public crawler, external account, CDN, or&#xA;network connection.&lt;/p&gt;&#xA;&lt;p&gt;Google Custom Search and Algolia DocSearch remain compatible online&#xA;integrations. They are disabled by default and should be enabled only when the&#xA;site accepts their external requests, indexing, availability, and privacy&#xA;boundaries.&lt;/p&gt;</description>
			</item>
			<item>
				<title>Versioning</title>
				<link>https://oink.pgsty.com/docs/advanced/versioning/</link>
				<pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
				<guid>https://oink.pgsty.com/docs/advanced/versioning/</guid>
				<description>&lt;!-- markdownlint-disable blanks-around-headings no-bare-urls single-h1 --&gt;&#xA;&lt;p&gt;Depending on your project&amp;rsquo;s releases and versioning, you may want to let your&#xA;users access previous versions of your documentation. How you deploy the&#xA;previous versions is up to you. This page describes the Oink features that you&#xA;can use to provide navigation between the various versions of your docs and to&#xA;display an information banner on the archived sites.&lt;/p&gt;&#xA;&lt;h2 id=&#34;adding-a-version-drop-down-menu&#34;&gt;Adding a version drop-down menu&lt;a class=&#34;td-heading-self-link&#34; href=&#34;#adding-a-version-drop-down-menu&#34; aria-label=&#34;Heading self-link&#34;&gt;&lt;/a&gt;&lt;/h2&gt;&#xA;&lt;p&gt;If you add some &lt;code&gt;[params.versions]&lt;/code&gt; in &lt;code&gt;hugo.toml&lt;/code&gt;/&lt;code&gt;hugo.yaml&lt;/code&gt;/&lt;code&gt;hugo.json&lt;/code&gt;, the&#xA;Oink adds a version selector drop-down to the navbar. You specify a URL and a&#xA;name for each version you would like to add to the menu, as in the following&#xA;example:&lt;/p&gt;</description>
			</item>
			<item>
				<title>Comments with giscus</title>
				<link>https://oink.pgsty.com/docs/advanced/giscus/</link>
				<pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
				<guid>https://oink.pgsty.com/docs/advanced/giscus/</guid>
				<description>&lt;p&gt;OINK supports &lt;a href=&#34;https://giscus.app/&#34;&gt;giscus&lt;/a&gt; through a &lt;a href=&#34;https://imfing.github.io/hextra/docs/advanced/comments/&#34;&gt;Hextra-compatible comments configuration&lt;/a&gt;&#xA;under &lt;code&gt;params.comments&lt;/code&gt;. giscus gives each content page a comment thread backed&#xA;by &lt;a href=&#34;https://docs.github.com/en/discussions&#34;&gt;GitHub Discussions&lt;/a&gt; and lets readers comment through GitHub OAuth.&lt;/p&gt;&#xA;&lt;h2 id=&#34;how-giscus-works&#34;&gt;How giscus works&lt;a class=&#34;td-heading-self-link&#34; href=&#34;#how-giscus-works&#34; aria-label=&#34;Heading self-link&#34;&gt;&lt;/a&gt;&lt;/h2&gt;&#xA;&lt;p&gt;When a page loads, giscus searches the configured repository for a Discussion&#xA;that matches the page. If it does not find one, the giscus bot creates it when a&#xA;reader submits the first comment or reaction. Maintainers moderate comments in&#xA;GitHub Discussions.&lt;/p&gt;</description>
			</item>
			<item>
				<title>Analytics, user feedback, and SEO</title>
				<link>https://oink.pgsty.com/docs/advanced/analytics/</link>
				<pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
				<guid>https://oink.pgsty.com/docs/advanced/analytics/</guid>
				<description>&lt;p&gt;OINK does not contact analytics, form, comment, or advertising services by&#xA;default. These integrations are site decisions: enable them explicitly, document&#xA;the data boundary, and provide any consent or policy required by the site&amp;rsquo;s&#xA;users and jurisdiction.&lt;/p&gt;&#xA;&lt;h2 id=&#34;adding-analytics&#34;&gt;Adding analytics&lt;a class=&#34;td-heading-self-link&#34; href=&#34;#adding-analytics&#34; aria-label=&#34;Heading self-link&#34;&gt;&lt;/a&gt;&lt;/h2&gt;&#xA;&lt;p&gt;Hugo provides embedded templates for analytics services. When a site configures&#xA;Google Analytics, browser usage information such as page views and custom events&#xA;is sent to Google. This is incompatible with a fully air-gapped runtime and may&#xA;be incompatible with a strict same-origin Content Security Policy.&lt;/p&gt;</description>
			</item>
			<item>
				<title>Repository links and page information</title>
				<link>https://oink.pgsty.com/docs/advanced/repository-links/</link>
				<pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
				<guid>https://oink.pgsty.com/docs/advanced/repository-links/</guid>
				<description>&lt;p&gt;OINK&amp;rsquo;s documentation and blog layouts can show links to the current page&amp;rsquo;s&#xA;source repository:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;strong&gt;View page source&lt;/strong&gt; opens the source file.&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Edit this page&lt;/strong&gt; opens an editable source view.&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Create child page&lt;/strong&gt; starts a new file below the current page and can use the&#xA;site&amp;rsquo;s &lt;code&gt;assets/stubs/new-page-template.md&lt;/code&gt; template.&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Create documentation issue&lt;/strong&gt; opens an issue against the documentation&#xA;repository with page context.&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Create project issue&lt;/strong&gt; optionally targets a separate product repository.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;The built-in URL patterns target GitHub-style repositories. Verify every action&#xA;when using another compatible host, and override the relevant partial for a&#xA;different URL scheme.&lt;/p&gt;</description>
			</item>
			<item>
				<title>AI-agent support</title>
				<link>https://oink.pgsty.com/docs/advanced/agent-support/</link>
				<pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
				<guid>https://oink.pgsty.com/docs/advanced/agent-support/</guid>
				<description>&lt;div class=&#34;td-alert td-alert--md alert alert-note&#34; role=&#34;alert&#34;&gt;&lt;div class=&#34;td-alert-heading alert-heading&#34; role=&#34;heading&#34; aria-level=&#34;4&#34;&gt;Early evaluation&lt;/div&gt;&#xA;  &lt;div class=&#34;td-alert-body&#34;&gt;&#xA;    &lt;p&gt;Features described in this page are &lt;a href=&#34;https://oink.pgsty.com/project/about/changelog/#experimental&#34;&gt;experimental&lt;/a&gt;, and are useful for early&#xA;adoption and evaluation. Output details and validation coverage may change in&#xA;future releases. To track the phased evolution of the agent-support feature,&#xA;see &lt;a href=&#34;https://github.com/google/docsy/issues/2614&#34;&gt;Improve support for AI-agent doc consumption #2614&lt;/a&gt;.&lt;/p&gt;&#xA;    &lt;/div&gt;&#xA;&lt;/div&gt;&#xA;&lt;h2 id=&#34;features&#34;&gt;Features&lt;a class=&#34;td-heading-self-link&#34; href=&#34;#features&#34; aria-label=&#34;Heading self-link&#34;&gt;&lt;/a&gt;&lt;/h2&gt;&#xA;&lt;p&gt;When your site opts in, these are the user-facing and machine-readable behaviors&#xA;Oink enables:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;strong&gt;&lt;a href=&#34;https://oink.pgsty.com/docs/advanced/agent-support/#markdown-output&#34;&gt;Markdown output format&lt;/a&gt;&lt;/strong&gt; support. Your project&amp;rsquo;s&#xA;&lt;code&gt;outputs&lt;/code&gt; configuration controls which page kinds publish Markdown.&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Discovery&lt;/strong&gt;: page HTML headers include &lt;code&gt;rel=&amp;quot;alternate&amp;quot;&lt;/code&gt; links to the&#xA;Markdown version of the page.&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;View Markdown&lt;/strong&gt;: page meta area includes a &lt;strong&gt;View Markdown&lt;/strong&gt; link to the&#xA;Markdown version of the page.&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;&lt;a href=&#34;https://oink.pgsty.com/docs/advanced/agent-support/#llms-txt&#34;&gt;&lt;code&gt;llms.txt&lt;/code&gt;&lt;/a&gt;&lt;/strong&gt;: site-root file listing.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;The remainder of this page explains how to enable each feature, and discusses&#xA;&lt;a href=&#34;https://oink.pgsty.com/docs/advanced/agent-support/#validation-and-metrics&#34;&gt;validation and metrics&lt;/a&gt; supported with examples.&lt;/p&gt;</description>
			</item>
			<item>
				<title>Print support</title>
				<link>https://oink.pgsty.com/docs/advanced/print/</link>
				<pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
				<guid>https://oink.pgsty.com/docs/advanced/print/</guid>
				<description>&lt;p&gt;Individual documentation pages print well from most browsers as the layouts have&#xA;been styled to omit navigational chrome from the printed output.&lt;/p&gt;&#xA;&lt;p&gt;On some sites, it can be useful to enable a &amp;ldquo;print entire section&amp;rdquo; feature (as&#xA;seen in this user guide). Selecting this option renders the entire current&#xA;top-level section (such as Advanced for this page) with all of its child pages&#xA;and sections in a format suited to printing, complete with a table of contents&#xA;for the section.&lt;/p&gt;</description>
			</item>
	</channel>
</rss>
