Skip to content

Commit 981f3d0

Browse files
authored
Merge pull request #1276 from sarangjo/fix-js-development-doc
Change stringparam to stringparams in docs
2 parents 9605bf7 + b807822 commit 981f3d0

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

docs/source/javascript_feature.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@ The following is what you need to do to work on the javascript for a component t
1313

1414
To have webpack monitor for changes, and rebuild the Runestone assets on file change, use ``npm run watch -- --env builddir=PATH_TO_BOOK_OUTPUT/_static``
1515

16-
4. Set a ``stringparam`` in the PreteXt book for ``debug.rs.dev`` to ``true``. This will cause the book to load the development version of the Runestone assets. Without this flag, PreTeXt will look to download production assets from the Runestone CDN. Note that it is not enough to just copy the new files to ``_static``; the PreTeXt must be built with the flag set for the pages to know what to load.
16+
4. Set a ``stringparams`` in the PreteXt book for ``debug.rs.dev`` to ``true``. This will cause the book to load the development version of the Runestone assets. Without this flag, PreTeXt will look to download production assets from the Runestone CDN. Note that it is not enough to just copy the new files to ``_static``; the PreTeXt must be built with the flag set for the pages to know what to load.
1717

18-
If using the PreTeXt CLI, version 2.0 or greater, you can add a string param to a build target in your project file (i.e. as a child of the appropriate ``project/targets/target``) by adding the following: ``<stringparam debug.rs.dev="yes"/>``.
18+
If using the PreTeXt CLI, version 2.0 or greater, you can add a string param to a build target in your project file (i.e. as a child of the appropriate ``project/targets/target``) by adding the following: ``<stringparams debug.rs.dev="yes"/>``.
1919

20-
If you don't already have a stringparam element, you might have to change the target from a self-closing tag to an element that can have a child. Change ``<target name="web" format="html"/>`` to ``<target name="web" format="html"><stringparam debug.rs.dev="yes"/></target>``.
20+
If you don't already have a stringparams element, you might have to change the target from a self-closing tag to an element that can have a child. Change ``<target name="web" format="html"/>`` to ``<target name="web" format="html"><stringparams debug.rs.dev="yes"/></target>``.
2121

2222
5. Run ``pretext build`` in the root folder of the book
2323

0 commit comments

Comments
 (0)