You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.rst
+35-20Lines changed: 35 additions & 20 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@ Notion Builder for Sphinx
5
5
6
6
Builder for Sphinx which enables publishing documentation to Notion.
7
7
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.
9
9
10
10
.. contents::
11
11
@@ -28,18 +28,18 @@ Add the following to ``conf.py`` to enable the extension:
28
28
29
29
``sphinx-notionbuilder`` also works with a variety of Sphinx extensions:
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.
43
43
44
44
To set these up, install the extensions you want to use and add them to your ``conf.py``, before ``sphinx_notion``:
45
45
@@ -83,19 +83,19 @@ The following syntax is supported:
83
83
- Table of contents
84
84
- Block quotes
85
85
- 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`_ )
88
88
- Images (with URLs or local paths)
89
89
- Videos (with URLs or local paths)
90
90
- Audio (with URLs or local paths)
91
91
- 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`_ )
93
93
- 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`_ )
97
97
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`_.
99
99
100
100
All of these can be used in a way which means your documentation can still be rendered to HTML.
101
101
@@ -130,7 +130,7 @@ After building your documentation with the Notion builder, you can upload it to
130
130
Prerequisites
131
131
~~~~~~~~~~~~~
132
132
133
-
#. Create a Notion integration at https://www.notion.so/my-integrations
133
+
#. Create a Notion integration at `notion-integrations`_
134
134
#. Get your integration token and set it as an environment variable:
135
135
136
136
.. code-block:: console
@@ -159,3 +159,18 @@ The command will create a new page if one with the given title doesn't exist, or
0 commit comments