Contents Menu Expand Light mode Dark mode Auto light/dark mode
If you like this theme, you can express your gratitude!
Furo
Furo
  • 快速入门
  • Customisation
    • Adding a logo
    • Changing colors
    • Changing fonts
    • Changing landing page
    • Changing sidebar elements
    • Changing sidebar title
    • Hiding Contents sidebar
    • Injecting code
  • Reference
    • Text Formatting
    • Admonitions
    • API documentation
    • Code Blocks
    • Hyperlinks
    • Images
    • Lists
    • Tables
    • Tabs
  • Recommendations

开发

  • Contributing
    • Workflow
    • Internals
    • Design Notes
  • Kitchen Sink
    • Paragraph Level Markup
    • Lists & Tables
    • Really Long Page
    • Structural Elements
    • Structural Elements 2
    • Autodoc
    • sphinx-design stuff
  • Stability Policy
  • Changelog
  • License
  • GitHub 仓库

Hyperlinks¶

Hyperlinks are extremely useful for connecting related topics without having to depart from a clear linear exposition. Sphinx supports various formats for creating hyperlinks, with sphinx.ext.intersphinx being a great tool for cross-documentation hyperlinks.

Hyperlinks can take various forms, so here's a list of them:

- standalone hyperlink: https://python.org/
- hyperlink using references: `link <link>`_
- hyperlink with inline URL: `link <https://python.org/>`_
- hyperlink to a different page: :doc:`link <../quickstart>`
- hyperlink to a specific API element: :class:`pathlib.Path`

.. _link: https://python.org/

Hyperlinks can take various forms, so here’s a list of them:

  • standalone hyperlink: https://python.org/

  • hyperlink using references: link

  • hyperlink with inline URL: link

  • hyperlink to a different page: link

  • hyperlink to a specific API element: pathlib.Path

Hyperlinks can take various forms, so here's a list of them:

- standalone hyperlink: <https://python.org/>
- hyperlink using references: [link][markdown-external-hyperlink]
- hyperlink with inline URL: [link](https://python.org/)
- hyperlink to a different page: [link](../quickstart)
- hyperlink to a specific API element: {class}`pathlib.Path`

[markdown-external-hyperlink]: https://python.org/

Hyperlinks can take various forms, so here’s a list of them:

  • standalone hyperlink: https://python.org/

  • hyperlink using references: link

  • hyperlink with inline URL: link

  • hyperlink to a different page: link

  • hyperlink to a specific API element: pathlib.Path

Next
Images
Previous
Code Blocks
Copyright © 2020, Pradyun Gedam | Created using Sphinx and @pradyunsg's Furo theme. | 显示源代码