Skip to content

Commit 40ccb9e

Browse files
committed
Progress
1 parent 9dc2f07 commit 40ccb9e

File tree

1 file changed

+21
-21
lines changed

1 file changed

+21
-21
lines changed

README.rst

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -37,28 +37,32 @@ Add the following to ``conf.py`` to enable the extension:
3737
* `sphinx.ext.mathjax <https://www.sphinx-doc.org/en/master/usage/extensions/math.html#module-sphinx.ext.mathjax>`_
3838
* `sphinx-simplepdf <https://sphinx-simplepdf.readthedocs.io/>`_
3939
* `sphinx-iframes <https://pypi.org/project/sphinx-iframes/>`_
40+
* `sphinxcontrib-text-styles <https://sphinxcontrib-text-styles.readthedocs.io/>`_
4041

4142
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.
4243

43-
To set these up, install the extensions you want to use and add them to your ``conf.py``:
44+
To set these up, install the extensions you want to use and add them to your ``conf.py``, before ``sphinx_notion``:
4445

4546
.. code-block:: python
4647
4748
"""Configuration for Sphinx."""
4849
4950
extensions = [
5051
"atsphinx.audioplayer",
52+
"sphinx.ext.mathjax",
53+
"sphinx_iframes",
54+
"sphinx_immaterial.task_lists",
55+
"sphinx_simplepdf",
5156
"sphinx_toolbox.collapse",
57+
"sphinx_toolbox.rest_example",
5258
"sphinxcontrib.video",
59+
"sphinxcontrib_text_styles",
5360
"sphinxnotes.strike",
54-
"sphinx_immaterial.task_lists",
55-
"sphinx_toolbox.rest_example",
56-
"sphinx.ext.mathjax",
57-
"sphinx_notion", # Put ``sphinx_notion`` after the other extensions.
61+
"sphinx_notion",
5862
]
5963
60-
If you are using ``sphinxcontrib.video`` with ``sphinx-iframes``, the warning ``app.add_directive`` will be raised.
61-
This is because ``sphinxcontrib.video`` and ``sphinx-iframes`` both implement a ``video`` directive.
64+
If you are using ``sphinxcontrib.video`` with ``sphinx_iframes``, the warning ``app.add_directive`` will be raised.
65+
This is because ``sphinxcontrib.video`` and ``sphinx_iframes`` both implement a ``video`` directive.
6266
To suppress this warning, add the following to your ``conf.py``:
6367

6468
.. code-block:: python
@@ -67,8 +71,8 @@ To suppress this warning, add the following to your ``conf.py``:
6771
6872
suppress_warnings = ["app.add_directive"]
6973
70-
Supported markup
71-
----------------
74+
Supported Notion Block Types
75+
----------------------------
7276

7377
The following syntax is supported:
7478

@@ -78,26 +82,22 @@ The following syntax is supported:
7882
- Code blocks
7983
- Table of contents
8084
- Block quotes
81-
- All standard admonitions (note, warning, tip, attention, caution, danger, error, hint, important)
82-
- Collapsible sections (using the ``collapse`` directive from ``sphinx-toolbox``)
83-
- Rest-example blocks (using the ``rest-example`` directive from ``sphinx-toolbox``)
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>`_ )
8488
- Images (with URLs or local paths)
8589
- Videos (with URLs or local paths)
8690
- Audio (with URLs or local paths)
8791
- PDFs (with URLs or local paths)
88-
- Embed blocks (using the ``iframe`` directive from ``sphinx-iframes``)
92+
- Embed blocks (using the ``iframe`` directive from `sphinx-iframes <https://pypi.org/project/sphinx-iframes/>`_ )
8993
- Tables
90-
- Strikethrough text
91-
- Colored text and text styles (bold, italic, monospace)
92-
- Mathematical equations (inline and block-level)
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>`_ )
9397

9498
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>`_.
9599

96-
.. code-block:: python
97-
98-
"""Configuration for Sphinx."""
99-
100-
suppress_warnings = ["app.add_directive"]
100+
All of these can be used in a way which means your documentation can still be rendered to HTML.
101101

102102
Unsupported Notion Block Types
103103
------------------------------

0 commit comments

Comments
 (0)