Skip to content

Site Settings

Overview

Global site settings are configured in src/docs/config/siteSettings.ts. This file controls site-wide behavior including pagination, view transitions, heading link buttons, and the documentation base route.

Configuration File

The settings configuration is located at:

src/docs/config/siteSettings.ts

Basic Structure

// src/docs/config/siteSettings.ts
export const siteSettings = {
  copyLinkButtons: true,
  useViewTransitions: true,
  pagination: true,
  docsRoute: "/docs",
};

Settings Reference

copyLinkButtons

PropertyValue
Typeboolean
Defaulttrue

When enabled, every heading (H2, H3, H4) in the documentation content displays a small link icon on hover. Clicking the icon copies the heading’s anchor URL to the clipboard.

copyLinkButtons: true,

This feature is useful for sharing direct links to specific sections of a page. Set to false if you prefer a cleaner heading appearance.

useViewTransitions

PropertyValue
Typeboolean
Defaulttrue

Enables the View Transitions API for smooth page transitions within the documentation. When a user navigates between pages, the content fades and slides instead of performing a full page reload.

useViewTransitions: true,

View transitions require browser support. In browsers that do not support the API, navigation falls back to standard page loads automatically.

pagination

PropertyValue
Typeboolean
Defaulttrue

Controls whether “Previous” and “Next” navigation links are displayed at the bottom of each documentation page. These links follow the sidebar ordering, making it easy for readers to progress through the documentation sequentially.

pagination: true,

Set to false if your documentation is primarily a reference that readers access non-sequentially.

docsRoute

PropertyValue
Typestring
Default"/docs"

The base URL path for the documentation section. All documentation pages are served under this route.

docsRoute: "/docs",

For example, with the default value, a page at data/docs/en/getting-started/index.mdx would be accessible at /docs/getting-started.

If you change this value, you also need to update the route file location in src/pages/.

Complete Example

Here is a complete site settings configuration with all options:

// src/docs/config/siteSettings.ts
export const siteSettings = {
  // Display anchor link buttons on headings
  copyLinkButtons: true,

  // Enable smooth page transitions
  useViewTransitions: true,

  // Show prev/next navigation at page bottom
  pagination: true,

  // Base route for documentation pages
  docsRoute: "/docs",
};

Common Configurations

Minimal Documentation Site

For a simple documentation site without extra features:

export const siteSettings = {
  copyLinkButtons: false,
  useViewTransitions: false,
  pagination: true,
  docsRoute: "/docs",
};

For a documentation site with all features enabled:

export const siteSettings = {
  copyLinkButtons: true,
  useViewTransitions: true,
  pagination: true,
  docsRoute: "/docs",
};

Documentation as Subdirectory

For documentation that lives under a subdirectory of a larger site:

export const siteSettings = {
  copyLinkButtons: true,
  useViewTransitions: true,
  pagination: true,
  docsRoute: "/products/my-product/docs",
};

How Settings Affect the Layout

SettingAffected AreaVisual Change
copyLinkButtonsContent headingsLink icon appears on hover
useViewTransitionsPage navigationSmooth crossfade between pages
paginationPage bottomPrevious/Next links shown or hidden
docsRouteURL structureChanges the base path for all docs pages

Environment-Specific Settings

The site settings file is loaded at build time. If you need different settings for different environments, you can use environment variables:

export const siteSettings = {
  copyLinkButtons: true,
  useViewTransitions: import.meta.env.PROD,
  pagination: true,
  docsRoute: import.meta.env.PUBLIC_DOCS_ROUTE || "/docs",
};

This example disables view transitions during development (where they can interfere with hot module replacement) and allows the docs route to be configured via environment variable.

Best Practices

  • Enable pagination for guides — Sequential documentation like tutorials and getting-started guides benefit from previous/next navigation.
  • Disable pagination for references — Reference pages are accessed randomly, so pagination links may be confusing.
  • Test view transitions — View transitions can occasionally conflict with client-side JavaScript. Test thoroughly before enabling in production.
  • Keep the docs route simple — Short, memorable routes like /docs are easier for users to remember and share.
퍼널해커

중소기업을 위한 AI 마케팅&세일즈 자동화 시스템을 설계하고 구축합니다. 웹사이트, SEO, 콘텐츠, 리드 수집까지 한번에.

상호명: 퍼널해커 대표자: ___ 사업자등록번호: ___-__-_____ 통신판매업 신고번호: 제____-서울___-____호 주소: ___ 이메일: ___@funnelhacker.co.kr 호스팅 서비스 제공자: Netlify, Inc.

Copyright 2026 퍼널해커. All Rights Reserved