When running
retype start, any changes to retype.yml are automatically detected and the website is regenerated in the browser. If you started the server with retype serve, you need to run retype build manually and refresh the browser.retype start without one, Retype will auto-generate a basic retype.yml you can then customize. You can also run retype init to generate it explicitly.
Sample retype.yml
retype.yml
input
Custom path to the input directory. The path is relative to the retype.yml location.
output
Custom path to the output directory. The path is relative to the retype.yml location.
The
output directory is only used by retype build. When using retype start, files are stored in memory and not written to disk.url
The base URL of your website. Retype uses this to construct absolute links and generate a CNAME file.Subdomains, paths, and explicit protocols are all supported:If no protocol is supplied, Retype assumes
https.branding
Branding configuration for your Retype generated website.The main text title shown in the upper-left corner of the generated website. Can be used alongside
logo and logoDark.Optional logo label text rendered to the right of the title or logo in the upper-left corner.
Path to a logo image file relative to
input, or an inline <svg> string. Default is null.Path to a dark mode logo image relative to
input, or an inline <svg> string. Default is null.Custom width (in pixels) for the branding logo. If not set, Retype auto-detects the intrinsic width.
Custom height (in pixels) for the branding logo. If not set, Retype auto-detects the intrinsic height.
Logo alignment relative to the
title. Accepted values: left, right.Retype Pro only. Sets the main brand color as a shorthand for
theme.base.base-color.Override text and background colors for the branding label badge.
| Option | Type | Description |
|---|---|---|
text | string | Label text color |
background | string | Label background color |
links
Custom links added to the top-bar navigation of all pages.The link text label.
The URL for the link. Accepts a
.md filename, internal path, or external URL.An icon for the link. Accepts an Octicon name, emoji shortcode,
<svg> element, or path to an image file.Position of the icon relative to the link text. Accepted values:
left, right.Sets the
target attribute of the hyperlink. Use blank to open in a new tab (Retype automatically transforms blank → _blank).Sets the
title attribute on the hyperlink, shown as a browser tooltip on hover.Nested menu items that render the parent link as a dropdown in the header navigation. Dropdown menus are supported one level deep. Each nested item supports the same properties as top-level links.
footer
Site-wide copyright statement added to the footer of every page. Supports Markdown and the
{{ year }} template variable.Footer links use the same configuration options as top-level
links.meta
A site-wide suffix appended to the HTML With an
<title> element of all pages.About us page, the resulting title would be:Sets the value for the
<meta property="og:site_name"> tag.edit
Enables and customizes Edit this page links on content pages.The repository URL where source files are hosted. Setting this value enables Edit this page links.To link directly to the edit view:
Optional base path to a subdirectory within the repository where the
.md source files are stored.The branch to point to within the repo.
Custom label text for the edit link.
nav
Navigation configuration for the left sidebar.Retype Pro only. Controls how the sidebar navigation is structured.
| Option | Description |
|---|---|
default | Expandable/collapsible tree structure |
stack | Top-level folders are always expanded, creating a stacked layout |
Retype Pro only. Controls how icons are displayed in the left sidebar.
| Mode | Description |
|---|---|
all | Show icons for all navigation items |
folders | Show icons only for folder items |
pages | Show icons only for page items |
top | Show icons only for top-level items |
none | Hide all navigation icons |
toc
Retype Pro only. Controls the right-sidebar Table of Contents.The heading depth range to include in the Table of Contents.
| Value | Description |
|---|---|
2 | H2 headings only |
2-3 | H2 to H3 (default) |
1-4 | H1 to H4 |
2,4 | H2 and H4 only |
Custom label for the top of the Table of Contents column.
search
Customization options for the website search component.The search index creation mode.
| Mode | Description |
|---|---|
full | Full-text index of all headings and content |
partial | All headings plus first paragraph under each heading |
basic | All headings plus only the first paragraph per page |
Keyboard key(s) to focus the search field.
Maximum number of search results to display.
Minimum number of characters required before a search query is run.
Placeholder text displayed in the search input.
Message shown when no results are returned.
Exclude code blocks from the search index.
Retype Pro only. Exclude pages or folders from the search index while still generating them in the website. Uses the same wildcard patterns as
exclude.Preload the search index on page load. Useful when combined with
generator.directoryIndex.append: true for offline filesystem browsing.theme
Retype Pro only. Customize your site’s visual appearance by overriding CSS design variables. See the full theme variables reference for all available variables.Light mode theme variables. All theme variables can be customized here.
Dark mode theme variables. These override
theme.base variables when dark mode is active.integrations
Google Analytics
Google Analytics measurement ID.
Google Tag Manager
Google Tag Manager container ID.
Plausible Analytics
The domain registered in your Plausible account. Multiple domains can be separated by commas.
Custom Plausible host for self-hosted deployments.
include and exclude
Exclude files or folders from the build output. Uses
.gitignore-style patterns with support for ?, *, **, and !.Files and folders prefixed with
. or _, and any node_modules folder, are excluded by default.Explicitly include files or folders that would otherwise be excluded. Retype automatically includes common image formats, PDFs, ZIPs, and the
static/, public/, assets/, and resources/ folders.favicon
Path to a custom
.ico or .png favicon, relative to input. By default, Retype looks for favicon.ico or favicon.png in the root of input.locale
The primary language for the generated website. Retype supports 24 languages. Provide an ISO language code.Supported codes include:
ar, da, de, el, en, es, fi, fr, he, hi, hu, hy, it, ja, ko, nb, nl, pt, pt-PT, ro, ru, sv, tr, zh, and more.Configure how dates are rendered across the site, including blog dates and the Last Updated component.Supported specifiers:
yyyy, yy, MMMM, MMM, MM, M, dddd, ddd, dd, d.scheme
Retype Pro only. Control the default color mode for the website.Sets the default color scheme.
| Mode | Description |
|---|---|
system | Follow the visitor’s system preference (default) |
dark | Always render in dark mode |
light | Always render in light mode |
If a visitor manually selects a color mode using the toggle, their choice overrides this setting.
serve
Configuration for the built-in Retype development web server.Host address for the local development server. A custom port can be appended with a colon.
Port for the local development server. If the port is in use, Retype auto-increments unless a value is explicitly set.
start
Options that apply during theretype start command.
Set to
false to prevent Retype from opening a browser window when retype start is run.Enable Pro mode locally to trial Retype Pro features without a license key.
Delay in milliseconds before
retype start reacts to file changes.backlinks
Retype Pro only. Controls the automatic display of inbound links (“See also”) at the bottom of pages.Enable or disable backlinks for the entire project.
Heading text displayed above the backlinks section.
Maximum number of backlinks to display per page.
Exclude pages or folders from appearing as backlinks. Supports the same wildcard patterns as
exclude.Explicitly include pages or folders as backlink sources, overriding
backlinks.exclude.breadcrumb
Retype Pro only. Hierarchical breadcrumb navigation.Enable or disable breadcrumb navigation project-wide.
Customize or remove the first (home) node of the breadcrumb. Set to
false to remove it entirely, or provide a label string or icon shortcode.Customize the separator between breadcrumb nodes.
blog
Configuration for blog summary pages and pagination.URL base path for the blog summary pages.
Default layout for all blog posts.
Number of blog posts per paginated summary page.
Maximum total blog posts included across all summary pages. Default is unlimited.
Custom heading title for the blog summary page.
generator
Controls how output file and folder names are cased.
| Option | Description |
|---|---|
all | Convert all names to lowercase (default) |
none | Preserve original casing |
URL kind preference for resolved links:
relative, root, or source.Set to
false to remove trailing slashes from generated links.The default HTML document filename generated by Retype.
Append the default document filename to resolved URLs (e.g.,
/guides/index.html instead of /guides/). Useful for offline filesystem browsing.cache
Cache-busting strategy for JS and CSS assets.
| Strategy | Example URL |
|---|---|
none | /resources/js/retype.js |
path | /resources/js/retype.v1.10.js |
query | /resources/js/retype.js?v=1.10 |
Optional custom cache-busting token. If not set, Retype uses
{version}.{milliseconds since 2000-01-01}.data
Custom key-value data available as template variables on all pages.Use
{{ productName }} in any page to render the value. Nested objects and arrays are supported, and accessible via dot notation.markdown
Controls how single line breaks are handled.
soft follows the CommonMark spec; hard emits a <br /> for every line break.snippets
Enable line numbering on code blocks project-wide by listing language identifiers. Use
"*" for all languages.outbound
Retype Pro only. Customize the behavior of outbound (external) links.Enable or disable outbound link decoration (external icon + new tab).
Icon used for outbound links. Set to
"" to disable the icon without disabling the feature.target attribute for outbound links.Domains or URL patterns to exclude from outbound link treatment.
cname
By default, Retype auto-generates a CNAME file when
url is set. Set to false to disable this behavior.In most cases you should set
url and let Retype handle the CNAME file automatically.showSidebarFilter
Controls visibility of the filter component above the left sidebar navigation tree.
lastUpdated
Controls automatic last-updated footer metadata derived from Git commit history.Enable or disable the auto-generated last updated date in page footers.
Git timestamp to use:
author or committer.Enable display of who last updated the page.
Git identity to use for the
by value: author or committer.hub
Retype Pro only. A shortcut link shown to the left of the project logo, useful for linking from a docs subdomain back to the main site.URL for the hub link. Setting a value enables the hub.
Tooltip text for the hub link.
target attribute for the hub link. Use blank to open in a new tab.templating
Enable or disable the Retype content templating engine project-wide.
Enable Liquid
{% ... %} syntax. Note: incompatible with GitBook-style component syntax.Maximum loop iterations allowed in templates. Set to
0 to disable the limit (not recommended).Optional namespace prefix for template variables. When set, variables are accessed as
{{ namespace.project.branding.title }}.poweredByRetype
Retype Pro only. Set to
false to remove the “Powered by Retype” branding from the footer.