Skip to content

Commit 5da726e

Browse files
committed
Fix index depth for upgrading, and update node demos repo links
1 parent f591682 commit 5da726e

File tree

2 files changed

+16
-24
lines changed

2 files changed

+16
-24
lines changed

index.rst

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,10 +110,14 @@ documentation if you need it.
110110
.. _toc-mathjax-updates:
111111
.. toctree::
112112
:caption: MathJax Updates
113-
:maxdepth: 2
113+
:maxdepth: 1
114114

115115
Upgrading from Version 3.x <upgrading/v3>
116116
Upgrading from Version 2.x <upgrading/v2>
117+
118+
.. toctree::
119+
:maxdepth: 2
120+
117121
What's New in MathJax <upgrading/index>
118122

119123
------

server/examples.rst

Lines changed: 11 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -39,33 +39,21 @@ documents available within this documentation.
3939
In addition, the `MathJax Node Demos
4040
<https://github.com/mathjax/MathJax-demos-node#MathJax-demos-node>`__
4141
repository includes numerous examples of how to use MathJax from a
42-
`node` application. These are categorized into several groups
42+
`node` application. There are examples using modern ESM modules, and
43+
others using the oilder CommonJS format. These are each grouped into
44+
several categories that illustrate four different ways to access the
45+
MathJax code. The main examples use MathJax's LiteDOM implementation,
46+
but there are also some examples using other DOM replacements.
4347

4448
|btight|
4549

46-
* `Examples using MathJax components the simplest way
47-
<https://github.com/mathjax/MathJax-demos-node/tree/master/simple#simple-component-examples>`__
48-
* `Examples using MathJax components via the startup module
49-
<https://github.com/mathjax/MathJax-demos-node/tree/master/component#component-based-examples>`__
50-
* `Examples using MathJax components loaded by hand
51-
<https://github.com/mathjax/MathJax-demos-node/tree/master/preload#preloaded-component-examples>`__
52-
* `Examples using MathJax modules directly
53-
<https://github.com/mathjax/MathJax-demos-node/tree/master/direct#non-component-based-examples>`__.
50+
* `Using MathJax components in ESM modules
51+
<https://github.com/mathjax/MathJax-demos-node/tree/master/mjs>`__
52+
* `Using MathJax components in CJS modules
53+
<https://github.com/mathjax/MathJax-demos-node/tree/master/cjs>`__
54+
* `Using MathJax with alternative DOM implementations
55+
<https://github.com/mathjax/MathJax-demos-node/tree/master/dom>`__
5456

5557
|etight|
5658

57-
There are also several other kinds of example:
58-
59-
|btight|
60-
61-
* `Examples using MathJax with the jsDOM library
62-
<https://github.com/mathjax/MathJax-demos-node/tree/master/jsdom#mathjax-in-jsdom>`__
63-
* `Examples using MathJax with headless Chrome using puppeteer
64-
<https://github.com/mathjax/MathJax-demos-node/tree/master/puppeteer#mathjax-in-puppeteer>`__
65-
* `Examples using MathJax to generate speech text
66-
<https://github.com/mathjax/MathJax-demos-node/tree/master/speech#speech-generation>`__
67-
68-
|etight|
69-
70-
7159
|-----|

0 commit comments

Comments
 (0)