Contents Menu Expand Light mode Dark mode Auto light/dark, in light mode Auto light/dark, in dark mode Skip to content
Qiskit Docs Guide
Qiskit Docs Guide

Introduction

  • Start Here
  • How to Use This Guide
  • The Diátaxis Framework
  • Create a New Documentation Project
  • Sphinx Guide
    • Sphinx
    • reStructuredText
    • How to build documentation locally
    • How to add sections to documentation
    • Title name
    • How to create lists
    • How to cross-reference to other pages from documentation
    • How to add external links
    • How to add code to documentation
    • How to write mathematical expressions

Instructions for Standard Pages

  • Documentation Home
  • Getting Started
  • Tutorials
    • Tutorials Guidelines
    • Tutorials Examples
    • Tutorials Templates
    • How to add a tutorial
  • How-to Guides
    • How-to Guides Guidelines
    • How-to Guides Examples
    • How-to Guides Templates
    • How to add a how-to guide
  • API Reference
    • API Reference Guidelines
    • API Reference Examples
    • API Reference Templates
    • How to add an API reference
  • Explanations
    • Explanation Guidelines
    • Explanation Examples
    • Explanations Templates
    • How to add an explanation
  • Release Notes
  • GitHub
Back to top
View this page

How to add external links¶

Note

This page was written in the style of a How-to Guide according to The Diátaxis Framework.

This guide shows how to include links to pages outside your documentation.

There are two types of files

.rst¶

In order to link to an external page you have to write `text of your link <your_url>`_. For example, you can link to IBM Quantum documentation by writing:

`IBM Quantum documentation <https://docs.quantum.ibm.com>`_

Note

You can also use sphinx.ext.intersphinx to link to pages from other project’s documentation using the cross-reference syntax. For more information about cross-referencing and using sphinx.ext.intersphinx, check How to cross-reference to other pages from documentation.

.ipynb¶

If your file is a Jupyter notebook, what you have to write to link to a page is [text of your link](your_url). If you want to link to IBM Quantum Documentation you can write:

[Qiskit's page](https://docs.quantum.ibm.com)

Warning

Avoid including backquotes ` as part of the text of your link. Qiskit’s documentation uses nbsphinx to convert the .ipynb files to .rst and then to HTML. So, even though the links will work and look fine in a Jupyter notebook, they will not format properly in the actual documentation because .rst doesn’t admit the backquotes.

Next
How to add code to documentation
Previous
How to cross-reference to other pages from documentation
Copyright © 2022-2024, Qiskit Development Team
Made with Sphinx and @pradyunsg's Furo
On this page
  • How to add external links
    • .rst
    • .ipynb