RunestoneComponents icon indicating copy to clipboard operation
RunestoneComponents copied to clipboard

build error on new textbook

Open cpainterwakefield opened this issue 4 years ago • 1 comments

Received the following error in a brand new textbook build:

<path to my book>/_sources/index.rst:89: WARNING: Error in "code" directive:
maximum 1 argument(s) allowed, 5 supplied.

.. code::
    html_static_path =  runestone_static_dirs() + ['_static']

Building on linux mint 20 with python 3.8.2.

It looks like this is relatively unimportant - it is in section 4 - Theme - and seems to be related to an attempt to put in a URL to a static web page in the sources, but I thought I should report it.

cpainterwakefield avatar Jul 05 '20 09:07 cpainterwakefield

You are just missing a blank line after your .. code:: directive. The line(s) immediately following the directive are for options to that directive. Followed by a blank line and then the body of the directive.

restructuredText is pythonic in the sense that white space is important, both for indentation purposes and cases like this where a blank line is significant.

bnmnetp avatar Jul 05 '20 16:07 bnmnetp