Site details
Set your site name, description, logo, favicon, and theme.
Use these docs.json settings to identify your documentation and add your
brand. All of them are optional.
Name and description#
name appears in the header beside your logo and in browser page titles.
description supplies the default meta description for any page that does not
define one in its frontmatter.
Individual pages can override the description:
Logo#
Set logo to an image path to use the same logo unchanged in light and dark
mode. PNG, WebP, and SVG images are supported. Put the image in your project's
public folder; /logo.svg refers to public/logo.svg.
To use a different image for each color mode, provide light and dark
paths. Add href to choose where the logo sends visitors when they click it,
and target to override whether it opens in the current or a new tab. Without
href, it links to the documentation home.
If your logo is monochrome, you can skip the second image: set invert to
true to reuse one logo and force it to white in dark mode with a CSS filter.
The filter turns the entire image white, so invert only suits single-color
logos. Colored logos should provide separate light and dark images.
Favicon#
favicon sets the small icon shown in browser tabs and bookmarks. Use a path
to an image in the public folder.
Square PNG or SVG images work best. If you omit this setting, the browser uses its default icon.
Theme#
New Shiso sites include the following setting:
"shiso" is the available layout theme and is also the default, so you can
omit theme without changing the site.
Complete example#
To change colors, fonts, or color mode, continue to Appearance.
Edit links#
Add editLink to show an "Edit this page" link below each documentation page:
$file expands to the actual source path relative to the project root, such as
content/docs/installation.mdx. Each path segment is URL-encoded. Version and
language folders and the original .md or .mdx extension are preserved. Include
any repository subdirectory before $file when your site is in a monorepo.
The URL must use HTTP or HTTPS and opens in a new tab. label is optional.
Set editLink: false in docs.json to disable the default link. A page can
hide its link or supply its own HTTP(S) URL through frontmatter:
Use editLink: false in frontmatter to hide it on an individual page.
An explicit page URL works even without a site-wide edit link.
Page feedback#
Add feedback to show helpful/unhelpful buttons below documentation pages:
Only endpoint is required; the example shows the default text for every optional
label. Shiso sends a JSON POST when a reader clicks a rating:
path includes the site's deployment base. language and version are omitted
when the page has no corresponding scope. The payload contains no query string,
credentials, or free-text comments.
Supply your own endpoint; Shiso's static output does not include a feedback
backend. The endpoint must accept Content-Type: application/json and return a
2xx status on success; no response body is required. An external endpoint must
allow your docs origin through CORS. An endpoint beginning with / resolves
under the site's deployment base; an absolute HTTP(S) URL is used as supplied.
Endpoint configuration is public, so do not put API secrets in the URL.
Buttons are disabled while sending and after a successful vote for the current page visit. Failed requests (including a 15-second timeout) show the error message and allow another attempt. Votes are not stored in the browser; revisiting or reloading a page allows another vote. Apply any deduplication or rate limits in your endpoint.
Feedback is disabled by default. Set feedback: false in docs.json to disable
it site-wide, or in frontmatter to hide it on an individual page. Both page
feedback and edit links are excluded from Pagefind indexing and appear only on
documentation pages.