# OINK > A local-first Hugo theme for technical documentation ## Site index - [Home page](https://oink.pgsty.com/v1.8/index.md) - [navigation.json](https://oink.pgsty.com/v1.8/navigation.json) - [Docs](https://oink.pgsty.com/v1.8/docs/index.md): Build a technical content site. Use shared navigation, multilingual support, and search for documentation, blogs, books, and API references. - [Book](https://oink.pgsty.com/book/) - [Case](https://oink.pgsty.com/case/) - [Blog](https://oink.pgsty.com/blog/) - [Release](https://oink.pgsty.com/release/) ## Documentation index - [Introduction](https://oink.pgsty.com/v1.8/docs/about/index.md): Decide whether OINK fits your project, what you get with it, how it differs from Docsy and MDX-based tools, and where it falls short. - [Highlights](https://oink.pgsty.com/v1.8/docs/about/features/index.md): Look up what OINK adds to an ordinary Hugo theme, one capability at a time, with the setting that turns it on and a link to its guide. - [Cases](https://oink.pgsty.com/v1.8/docs/about/showcase/index.md): Find the OINK production case closest to your documentation, book, blog, catalog, or community site. - [License](https://oink.pgsty.com/v1.8/docs/about/license/index.md): Find which license covers the theme, this documentation and each bundled third-party runtime, and what you must keep when you reuse them. - [Contributing](https://oink.pgsty.com/v1.8/docs/about/contributing/index.md): Report a problem or send a fix to the repository that owns it, with the checks a theme or documentation change needs before review. - [Get started](https://oink.pgsty.com/v1.8/docs/start/index.md): Clone the OINK docs site to run a full site locally in two minutes, then build your own personal or project site with an AI agent, from scratch, or inside a project's docs/ folder. - [Browse locally](https://oink.pgsty.com/v1.8/docs/start/local/index.md): Clone an existing OINK repository and run hugo serve to read docs in your browser, preview edits as you type, and watch AI agents' latest reports render live. - [From scratch](https://oink.pgsty.com/v1.8/docs/start/from-scratch/index.md): See what a minimal standalone OINK project looks like, build one from an empty directory, add OINK to an existing Hugo site, or install it without Go modules. - [Add docs to a project](https://oink.pgsty.com/v1.8/docs/start/add-docs/index.md): Add a self-contained OINK documentation site inside an existing open-source repository's docs/ directory, keep build outputs out of Git, and wire GitHub Pages and Cloudflare Pages auto-builds. - [Authoring](https://oink.pgsty.com/v1.8/docs/write/index.md): Write documentation pages, blog posts, books, image albums, release pages and API references, and arrange them into a sidebar. - [Writing pages](https://oink.pgsty.com/v1.8/docs/write/pages/index.md): Create a documentation page, from where the file goes and the front matter it needs to stable anchors, links, images, drafts and the controls the theme adds at the end. - [Organizing content](https://oink.pgsty.com/v1.8/docs/write/organize/index.md): Arrange folders and `_index.md` files into the sidebar you want, then control order, section indexes, icons, folding, hidden pages and where documentation lives. - [Page parameters](https://oink.pgsty.com/v1.8/docs/write/frontmatter/index.md): Look up every front matter key OINK reads, with its type, default and effect, to change one page or a whole section. - [Blog posts](https://oink.pgsty.com/v1.8/docs/write/blog/index.md): Write blog posts with dates, bylines, series and featured images, then choose how the blog index, RSS feed and share bar present them. - [Books](https://oink.pgsty.com/v1.8/docs/write/book/index.md): Turn a directory tree into a book with `type: book`: chapter numbering, numbered figures and tables, cross-references, generated indexes and whole-book print. - [Expo albums](https://oink.pgsty.com/v1.8/docs/write/expo/index.md): Create an image album, add optional metadata, select a layout, and use the image viewer. - [Releases and downloads](https://oink.pgsty.com/v1.8/docs/write/releases/index.md): Publish a release page with a GitHub release card, a checksummed asset table and install instructions, all built from facts kept in your repository. - [API reference](https://oink.pgsty.com/v1.8/docs/write/openapi/index.md): Render an OpenAPI specification as a browsable API reference with the bundled Swagger UI or Redoc, without a CDN. - [Components](https://oink.pgsty.com/v1.8/docs/components/index.md): Pick the component that fits what you are writing and look up its shortest syntax, its form and whether it loads a script. - [Callouts](https://oink.pgsty.com/v1.8/docs/components/callout/index.md): Write notes, warnings, and collapsible asides with colors, icons, and titles. Use `> [!NOTE]` blockquotes without shortcodes. - [Code Blocks](https://oink.pgsty.com/v1.8/docs/components/code/index.md): Show commands, configuration and source code in a Markdown fence with a filename, exact copying, line numbers, highlighting, wrapping, folding and linkable lines. - [Tabs](https://oink.pgsty.com/v1.8/docs/components/tabs/index.md): Put equivalent alternatives such as package managers or config formats side by side, and let one reader choice follow them across every page. - [Tables](https://oink.pgsty.com/v1.8/docs/components/table/index.md): Turn an ordinary Markdown table into a captioned table, a compatibility matrix, a field list, a numbered book table or a tab set, and give wide technical tables room to read. - [Fields](https://oink.pgsty.com/v1.8/docs/components/fields/index.md): Document configuration keys, command flags and API fields as a field list that stays readable on a phone and gives every entry its own link. - [Steps](https://oink.pgsty.com/v1.8/docs/components/steps/index.md): Add `{.steps}` to an ordered list for a numbered procedure. Use the steps shortcode when each step needs a table-of-contents heading. - [Badge](https://oink.pgsty.com/v1.8/docs/components/badge/index.md): Mark a feature, version or table cell with a short status label such as Beta or deprecated, in one of five semantic tones. - [Kbd](https://oink.pgsty.com/v1.8/docs/components/kbd/index.md): Use `kbd` with one key name per parameter to display a semantic key sequence. Instructions remain readable in print and Markdown. - [Includes](https://oink.pgsty.com/v1.8/docs/components/include/index.md): Reuse one source across pages with include for shared fragments and files, param for site and page values, and comment for notes that never publish. - [Mermaid](https://oink.pgsty.com/v1.8/docs/components/mermaid/index.md): Use a `mermaid` fence for flowcharts, sequence diagrams, Gantt charts, class diagrams, and state diagrams. Bundled Mermaid follows the color scheme; source diffs show changes. - [PlantUML](https://oink.pgsty.com/v1.8/docs/components/plantuml/index.md): Render sequence, class, component, activity and use-case diagrams in the browser with bundled assets and no rendering service. - [Draw.io](https://oink.pgsty.com/v1.8/docs/components/drawio/index.md): Publish a Draw.io export as an ordinary image that readers can open in the Draw.io editor, change and download. - [ECharts](https://oink.pgsty.com/v1.8/docs/components/echarts/index.md): Draw bar, line and pie charts by writing ECharts options as YAML or JSON in an `echarts` fence, with colors that follow light and dark mode. - [Infographic](https://oink.pgsty.com/v1.8/docs/components/infographic/index.md): Turn a title and a short list of items into a flow, timeline, funnel, grid or hierarchy graphic with an `infographic` fence and an AntV template. - [Markmap](https://oink.pgsty.com/v1.8/docs/components/markmap/index.md): Use a `markmap` fence for an expandable mind map with zoom controls. Its source remains a readable Markdown outline. - [FileTree](https://oink.pgsty.com/v1.8/docs/components/filetree/index.md): Draw an annotated directory tree in a `filetree` fence, with aligned comments, per-entry icons and collapsible directories. - [Math](https://oink.pgsty.com/v1.8/docs/components/math/index.md): Use KaTeX for inline and display mathematics at build time. Readers download no script. - [Maps](https://oink.pgsty.com/v1.8/docs/components/map/index.md): List places in a `map` fence to get a numbered place list in HTML, Print and RSS, plus an interactive map once the site names a tile service. - [Images](https://oink.pgsty.com/v1.8/docs/components/image/index.md): Add images with plain Markdown, then use one attribute line for a caption, a size, zoom, a link, a figure number or Hugo image processing. - [Gallery](https://oink.pgsty.com/v1.8/docs/components/gallery/index.md): Lay out a set of related screenshots as a responsive grid with a `gallery` fence, each with an optional description or link. - [Video](https://oink.pgsty.com/v1.8/docs/components/video/index.md): Embed product demos, screen recordings and muted loops that replace GIFs, and link YouTube, Bilibili or Vimeo talks without contacting the platform until a reader clicks. - [Audio](https://oink.pgsty.com/v1.8/docs/components/audio/index.md): Put a podcast episode, voice sample or recorded talk on a page with image syntax, as a titled player with its transcript beside it. - [Asciinema](https://oink.pgsty.com/v1.8/docs/components/asciinema/index.md): Embed a .cast terminal recording that readers can play, pause and copy text from, with the player shipped in the theme. - [Social](https://oink.pgsty.com/v1.8/docs/components/social/index.md): Quote a post from X, Bluesky, Mastodon, or another platform with a `> [!SOCIAL]` callout. The page supplies the quote and attribution without a platform script, and plain Markdown viewers show an ordinary blockquote. - [Cards](https://oink.pgsty.com/v1.8/docs/components/cards/index.md): Turn a Markdown link list into a grid of navigation cards, and use the shortcode when cards need icons, badges or images. - [Timeline](https://oink.pgsty.com/v1.8/docs/components/timeline/index.md): Turn a Markdown definition list into a vertical timeline of dated or ordered events, for milestones, incident write-ups, product history or an agenda. - [Update](https://oink.pgsty.com/v1.8/docs/components/update/index.md): Write a changelog, a "What's new" page or weekly notes as ordinary headings marked `{.update}`, with an optional date and tags under each entry. - [Presentation](https://oink.pgsty.com/v1.8/docs/components/presentation/index.md): Cards, disclosures, tabs, and compact procedures across OINK's six visual presets. - [Customization](https://oink.pgsty.com/v1.8/docs/customize/index.md): Configure the site brand, navigation, layout, search, languages, versions, print output, and agent output. - [Configuration](https://oink.pgsty.com/v1.8/docs/customize/config/index.md): Find every site parameter that the theme reads, with its type, default, description, and related guide. - [Brand and appearance](https://oink.pgsty.com/v1.8/docs/customize/brand/index.md): Give the site your name, logo, favicon, accent color and fonts, choose a visual preset, and add your own CSS. - [Home and landing pages](https://oink.pgsty.com/v1.8/docs/customize/home/index.md): Build the home page, or any product or pricing page, from sections listed in a YAML data file, with no template to write. - [Navigation and menus](https://oink.pgsty.com/v1.8/docs/customize/navigation/index.md): Configure the navbar menu, dropdowns, section switcher, breadcrumbs, page actions, pager, and footer links. - [Layouts and page types](https://oink.pgsty.com/v1.8/docs/customize/layout/index.md): Choose which shell a page renders in, and tune its sidebar, table of contents, section index and page width. - [Search](https://oink.pgsty.com/v1.8/docs/customize/search/index.md): Add full-text search that runs in the reader's browser, and control what it indexes and how it ranks results. - [Command palette](https://oink.pgsty.com/v1.8/docs/customize/panel/index.md): Use one dialog for page search, page actions, and site commands. Open the palette, use its groups, and add custom commands. - [Keyboard navigation](https://oink.pgsty.com/v1.8/docs/customize/keyboard/index.md): Use single-key shortcuts and understand when typing disables them. Disable shortcuts for the site or individual pages. - [Languages](https://oink.pgsty.com/v1.8/docs/customize/i18n/index.md): Add a second language end to end, keep heading anchors aligned across translations, and let readers compare two languages side by side. - [Versions](https://oink.pgsty.com/v1.8/docs/customize/versions/index.md): Publish documentation for several product versions side by side, with a version switcher and a banner that marks unmaintained versions as archives. - [Taxonomies](https://oink.pgsty.com/v1.8/docs/customize/taxonomy/index.md): Use tags and categories to index pages across directories, with automatic term pages, term cards, rail clouds, and navbar panels. - [Repository links](https://oink.pgsty.com/v1.8/docs/customize/repository/index.md): Connect "edit this page", "open an issue", and "view history" to your repository. Show last-modified information, contributors, and feedback at the page end. - [Print](https://oink.pgsty.com/v1.8/docs/customize/print/index.md): Print one page with the browser's Cmd/Ctrl+P. Use the print output format to combine a section into one continuous document. - [AI-agent support](https://oink.pgsty.com/v1.8/docs/customize/agents/index.md): Publish a Markdown copy of every page and an `llms.txt` index, so AI agents and chat assistants can read the site without scraping its HTML. - [Operations](https://oink.pgsty.com/v1.8/docs/admin/index.md): Take a finished site from your machine to a live address and keep it running there. - [Local preview](https://oink.pgsty.com/v1.8/docs/admin/preview/index.md): Watch your changes render as you save with hugo server, then build the public/ directory you deploy. - [Deploy](https://oink.pgsty.com/v1.8/docs/admin/deploy/index.md): Publish public/ to GitHub Pages, Cloudflare Pages or any static host, with the right baseURL, CI settings, security policy, checks and rollback. - [Comments](https://oink.pgsty.com/v1.8/docs/admin/comments/index.md): Add a comment thread to each page with giscus and GitHub Discussions, choose which pages carry one, and match it to the site's colors. - [Analytics and SEO](https://oink.pgsty.com/v1.8/docs/admin/analytics/index.md): Connect Google Analytics or another service if you want visit counts, and check the canonical, hreflang, social-card, sitemap and robots output search engines read. - [Upgrade](https://oink.pgsty.com/v1.8/docs/admin/upgrade/index.md): Move a site to a newer OINK release, or migrate it from OINK 0.4 or Docsy, with a rollback path at every step. - [Troubleshooting](https://oink.pgsty.com/v1.8/docs/admin/troubleshooting/index.md): Find the cause and fix of a build, language, search or hosting problem from its symptom, and check a site before you publish it. - [CLI](https://oink.pgsty.com/v1.8/docs/cli/index.md): Learn what the optional OINK command-line tool does and how to build its unreleased local candidate. ## Full-text bundles - [Docs](https://oink.pgsty.com/v1.8/docs/llms-full.txt) ## Site locales - [English](https://oink.pgsty.com/v1.8/index.md) - [简体中文](https://oink.pgsty.com/v1.8/zh/index.md) ## Site versions - [v1.9](https://oink.pgsty.com/index.md) - [v1.8](https://oink.pgsty.com/v1.8/index.md)