Skip to content

Commit 127498e

Browse files
committed
Progress
1 parent 40ccb9e commit 127498e

File tree

1 file changed

+35
-20
lines changed

1 file changed

+35
-20
lines changed

README.rst

Lines changed: 35 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Notion Builder for Sphinx
55

66
Builder for Sphinx which enables publishing documentation to Notion.
77

8-
See a `sample document source <https://raw.githubusercontent.com/adamtheturtle/sphinx-notionbuilder/refs/heads/main/sample/index.rst>`_ and the `published Notion page <https://www.notion.so/Sphinx-Notionbuilder-Sample-2579ce7b60a48142a556d816c657eb55>`_ for an example of what it can do.
8+
See a `sample document source`_ and the `published Notion page`_ for an example of what it can do.
99

1010
.. contents::
1111

@@ -28,18 +28,18 @@ Add the following to ``conf.py`` to enable the extension:
2828
2929
``sphinx-notionbuilder`` also works with a variety of Sphinx extensions:
3030

31-
* `sphinx-toolbox collapse <https://sphinx-toolbox.readthedocs.io/en/stable/extensions/collapse.html>`_
32-
* `sphinx-toolbox rest_example <https://sphinx-toolbox.readthedocs.io/en/stable/extensions/rest_example.html>`_
33-
* `sphinxcontrib-video <https://sphinxcontrib-video.readthedocs.io>`_
34-
* `sphinxnotes-strike <https://github.com/sphinx-toolbox/sphinxnotes-strike>`_
35-
* `atsphinx-audioplayer <https://github.com/atsphinx/atsphinx-audioplayer>`_
36-
* `sphinx-immaterial task_lists <https://github.com/jbms/sphinx-immaterial>`_
37-
* `sphinx.ext.mathjax <https://www.sphinx-doc.org/en/master/usage/extensions/math.html#module-sphinx.ext.mathjax>`_
38-
* `sphinx-simplepdf <https://sphinx-simplepdf.readthedocs.io/>`_
39-
* `sphinx-iframes <https://pypi.org/project/sphinx-iframes/>`_
40-
* `sphinxcontrib-text-styles <https://sphinxcontrib-text-styles.readthedocs.io/>`_
31+
* `sphinx-toolbox collapse`_
32+
* `sphinx-toolbox rest_example`_
33+
* `sphinxcontrib-video`_
34+
* `sphinxnotes-strike`_
35+
* `atsphinx-audioplayer`_
36+
* `sphinx-immaterial task_lists`_
37+
* `sphinx.ext.mathjax`_
38+
* `sphinx-simplepdf`_
39+
* `sphinx-iframes`_
40+
* `sphinxcontrib-text-styles`_
4141

42-
See a `sample document source <https://raw.githubusercontent.com/adamtheturtle/sphinx-notionbuilder/refs/heads/main/sample/index.rst>`_ and the `published Notion page <https://www.notion.so/Sphinx-Notionbuilder-Sample-2579ce7b60a48142a556d816c657eb55>`_ for an example of each of these.
42+
See a `sample document source`_ and the `published Notion page`_ for an example of each of these.
4343

4444
To set these up, install the extensions you want to use and add them to your ``conf.py``, before ``sphinx_notion``:
4545

@@ -83,19 +83,19 @@ The following syntax is supported:
8383
- Table of contents
8484
- Block quotes
8585
- Callouts
86-
- Collapsible sections (using the ``collapse`` directive from `sphinx-toolbox <https://sphinx-toolbox.readthedocs.io/en/stable/extensions/collapse.html>`_ )
87-
- Rest-example blocks (using the ``rest-example`` directive from `sphinx-toolbox <https://sphinx-toolbox.readthedocs.io/en/stable/extensions/rest_example.html>`_ )
86+
- Collapsible sections (using the ``collapse`` directive from `sphinx-toolbox`_ )
87+
- Rest-example blocks (using the ``rest-example`` directive from `sphinx-toolbox`_ )
8888
- Images (with URLs or local paths)
8989
- Videos (with URLs or local paths)
9090
- Audio (with URLs or local paths)
9191
- PDFs (with URLs or local paths)
92-
- Embed blocks (using the ``iframe`` directive from `sphinx-iframes <https://pypi.org/project/sphinx-iframes/>`_ )
92+
- Embed blocks (using the ``iframe`` directive from `sphinx-iframes`_ )
9393
- Tables
94-
- Strikethrough text (using the ``strike`` role from `sphinxnotes-strike <https://github.com/sphinx-toolbox/sphinxnotes-strike>`_ )
95-
- Colored text and text styles (bold, italic, monospace) (using various roles from `sphinxcontrib-text-styles <https://sphinxcontrib-text-styles.readthedocs.io/>`_ )
96-
- Mathematical equations (inline and block-level, using the ``math`` role and directive from `sphinx.ext.mathjax <https://www.sphinx-doc.org/en/master/usage/extensions/math.html#module-sphinx.ext.mathjax>`_ )
94+
- Strikethrough text (using the ``strike`` role from `sphinxnotes-strike`_ )
95+
- Colored text and text styles (bold, italic, monospace) (using various roles from `sphinxcontrib-text-styles`_ )
96+
- Mathematical equations (inline and block-level, using the ``math`` role and directive from `sphinx.ext.mathjax`_ )
9797

98-
See a `sample document source <https://raw.githubusercontent.com/adamtheturtle/sphinx-notionbuilder/refs/heads/main/sample/index.rst>`_ and the `published Notion page <https://www.notion.so/Sphinx-Notionbuilder-Sample-2579ce7b60a48142a556d816c657eb55>`_.
98+
See a `sample document source`_ and the `published Notion page`_.
9999

100100
All of these can be used in a way which means your documentation can still be rendered to HTML.
101101

@@ -130,7 +130,7 @@ After building your documentation with the Notion builder, you can upload it to
130130
Prerequisites
131131
~~~~~~~~~~~~~
132132

133-
#. Create a Notion integration at https://www.notion.so/my-integrations
133+
#. Create a Notion integration at `notion-integrations`_
134134
#. Get your integration token and set it as an environment variable:
135135

136136
.. code-block:: console
@@ -159,3 +159,18 @@ The command will create a new page if one with the given title doesn't exist, or
159159
.. |PyPI| image:: https://badge.fury.io/py/Sphinx-Notion-Builder.svg
160160
:target: https://badge.fury.io/py/Sphinx-Notion-Builder
161161
.. |minimum-python-version| replace:: 3.11
162+
163+
.. _atsphinx-audioplayer: https://github.com/atsphinx/atsphinx-audioplayer
164+
.. _notion-integrations: https://www.notion.so/my-integrations
165+
.. _published Notion page: https://www.notion.so/Sphinx-Notionbuilder-Sample-2579ce7b60a48142a556d816c657eb55
166+
.. _sample document source: https://raw.githubusercontent.com/adamtheturtle/sphinx-notionbuilder/refs/heads/main/sample/index.rst
167+
.. _sphinx-iframes: https://pypi.org/project/sphinx-iframes/
168+
.. _sphinx-immaterial task_lists: https://github.com/jbms/sphinx-immaterial
169+
.. _sphinx-simplepdf: https://sphinx-simplepdf.readthedocs.io/
170+
.. _sphinx-toolbox collapse: https://sphinx-toolbox.readthedocs.io/en/stable/extensions/collapse.html
171+
.. _sphinx-toolbox rest_example: https://sphinx-toolbox.readthedocs.io/en/stable/extensions/rest_example.html
172+
.. _sphinx-toolbox: https://sphinx-toolbox.readthedocs.io/en/stable/extensions/
173+
.. _sphinx.ext.mathjax: https://www.sphinx-doc.org/en/master/usage/extensions/math.html#module-sphinx.ext.mathjax
174+
.. _sphinxcontrib-text-styles: https://sphinxcontrib-text-styles.readthedocs.io/
175+
.. _sphinxcontrib-video: https://sphinxcontrib-video.readthedocs.io
176+
.. _sphinxnotes-strike: https://github.com/sphinx-toolbox/sphinxnotes-strike

0 commit comments

Comments
 (0)