Contents Menu Expand Light mode Dark mode Auto light/dark, in light mode Auto light/dark, in dark mode Skip to content
Read the Docs user documentation
Light Logo Dark Logo

Getting started

  • Tutorial
  • Adding a documentation project
  • Popular documentation tools
    • Deploying Sphinx on Read the Docs
    • Deploying MkDocs on Read the Docs
    • Deploying Docusaurus on Read the Docs
    • Deploying Markdoc on Read the Docs
    • Deploying mdBook on Read the Docs
    • Deploying VitePress on Read the Docs
    • Deploying Antora on Read the Docs
    • Deploying Zensical on Read the Docs
    • Deploying MyST Markdown on Read the Docs
  • Example projects

Project setup and configuration

  • Configuration file overview
  • Configuration file reference
  • Read the Docs Addons
  • Account authentication methods
  • Automation rules
  • How to create reproducible builds

Build process

  • Build process overview
  • Build process customization
  • Git integration (GitHub, GitLab, Bitbucket)
  • Pull request previews
  • Build failure notifications
  • Environment variable overview
  • Environment variable reference

Hosting documentation

  • Versions
  • Subprojects
  • Localization and Internationalization
  • URL versioning schemes
  • Custom domains
  • URL path prefixes
  • Documentation notifications
  • Canonical URLs
  • Content Delivery Network (CDN) and caching
  • Sitemap support
  • 404 Not Found pages
  • robots.txt support
  • llms.txt support
  • Markdown for AI agents

Reading documentation

  • Offline formats (PDF, ePub, HTML)
  • Visual diff
  • Link previews
  • How to embed content from your documentation
  • Server side search
  • Search query syntax
  • Flyout menu

Maintaining projects

  • Redirects
  • Traffic analytics
  • Search analytics
  • Security logs
  • Status badges
  • How to structure your documentation
  • Best practices for linking to your documentation
  • Security considerations for documentation pages
  • Main content detection
  • AI agent skills
  • Custom script

Business features

  • Business hosting
  • Organizations
  • Single sign-on (SSO)
  • Sharing private documentation
  • How to manage your subscription
  • Privacy levels

How-to guides

  • Project setup and configuration
    • Connecting your Read the Docs account to your Git provider
    • Configuring a Git repository manually
    • Managing custom domains
    • Managing subprojects
    • Hiding a version
    • Using a .readthedocs.yaml file in a sub-folder
    • Using custom URL redirects in documentation projects
  • Build process
    • Setup email notifications
    • Setting up outgoing webhooks
    • Configuring pull request builds
    • Using custom environment variables
    • Managing versions automatically
    • Skip builds based on conditions
  • Upgrading and maintaining projects
    • Creating reproducible builds
    • Using Conda as your Python environment
  • Content, themes and SEO
    • Search engine optimization (SEO) for documentation projects
    • Using traffic analytics
    • Using search analytics
    • Enabling offline formats
    • Embedding content from your documentation
    • Managing translations for Sphinx projects
    • Supporting Unicode in Sphinx PDFs
    • Cross-referencing with Sphinx
    • Linking to other projects with Intersphinx
    • Using Jupyter notebooks in Sphinx
    • Migrating from rST to MyST
    • Adding custom CSS or JavaScript to Sphinx documentation
    • Adding "Edit Source" links on your Sphinx theme
  • Security and access
    • Single sign-on (SSO) with GitHub, GitLab, or Bitbucket
    • Single sign-on (SSO) with Google Workspace
    • Single sign-on (SSO) with SAML
    • Managing Read the Docs teams
    • Creating a project from a private repository
    • Using private Git submodules
    • Installing private python packages
    • Manage maintainers
  • Account management
    • Managing your Read the Docs for Business subscription
    • Configuring two-factor authentication
  • Best practice
    • Deprecating content
    • Best practices for linking to your documentation
    • Creating reproducible builds
    • Search engine optimization (SEO) for documentation projects
    • Hiding a version
  • Troubleshooting problems
    • Troubleshooting build errors
    • Troubleshooting slow builds

Reference

  • Public REST API
    • API v3
    • API v2
    • Server side search API
    • Cross-site requests
  • Frequently asked questions
  • Changelog
  • About Read the Docs
    • Policies and legal documents
      • Abandoned projects policy
      • Unofficial and unmaintained projects policy
      • Privacy Policy
      • Security policy
      • Security reports
      • `Terms of Service <https://about.readthedocs.com/terms-of-service/>`_
      • DMCA takedown policy
        • 2022-06-07
      • Data Processing Addendum (DPA)
        • Sub-processor list
    • Advertising
      • EthicalAds
      • Advertising details
      • Ad blocking
      • Customizing advertising
    • The story of Read the Docs
    • Sponsors of Read the Docs
    • Documentation in scientific and academic publishing
    • Read the Docs open source philosophy
    • Read the Docs team
    • Site support
    • Glossary
  • Developer Documentation
  • Read the Docs website
Back to top
View this page

Link previews¶

Link previews allows you to see the content of the link you are about to click when you hover over it. This gives you the ability to quickly preview where a link points, so you can keep your context while reading but learn more from other resources.

_images/addons-link-previews.png

Example of link previews addon¶

Link previews will only be generated for internal links–links that point to pages within your documentation site. No link previews will be generated for links to external sites or links that appear outside of the primary content of the documentation page (eg. nav bars).

You can see an example of a link preview by hovering over the following link: Addons.

Enabling link previews¶

  1. Go to the new dashboard.

  2. Click on a project name.

  3. Go to Settings, then in the left bar, go to Addons.

  4. Go to Link previews and check Enabled.

  5. Save your settings – a rebuild of your project isn’t required!

Troubleshooting link previews¶

We perform some heuristic to detect the documentation tool used to generate the page based on its HTML structure. This auto-detection may fail, resulting in the content rendered inside the popup being incorrect. If you are experiencing this, you can specify the CSS selector for the main content in Settings > Addons > Advanced. See Detection logic for how this content is detected and guidance on choosing a good selector. You can also open an issue in the addons repository so we improve our heuristic.

Link previews won’t be generated if JavaScript is not enabled in your web browser or if all cookies are blocked.

Next
How to embed content from your documentation
Previous
Visual diff
Copyright © Read the Docs, Inc & contributors
Made with Sphinx and @pradyunsg's Furo
On this page
  • Link previews
    • Enabling link previews
    • Troubleshooting link previews