Skip to content
This repository was archived by the owner on Jun 7, 2023. It is now read-only.

Commit 694646f

Browse files
committed
Add: Improve docs.
1 parent 11ffe8c commit 694646f

7 files changed

Lines changed: 35 additions & 45 deletions

File tree

conf.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -354,5 +354,12 @@
354354
# An optional local file location -- useful when updating both Sphinx builds before the updates are pushed to the server.
355355
##"C:/Users/bjones/Documents/git/web2py/applications/runestone/_build/objects.inv",
356356
)
357+
),
358+
"Overview": (
359+
"https://runestone.academy/runestone/books/published/overview/index.html", (
360+
None,
361+
# An optional local file location -- useful when updating both Sphinx builds before the updates are pushed to the server.
362+
##"C:/Users/bjones/Documents/git/web2py/applications/runestone/books/overview/build/overview/objects.inv",
363+
)
357364
)
358365
}

index.rst

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ Runestone Components
33
********************
44
This site documents the working of the Runestone Components. See the `Runestone Interactive Overview <https://runestone.academy/runestone/books/published/overview/overview.html>`_ or the `Runestone instructor's guide <https://runestone.academy/runestone/static/instructorguide/index.html>`_.
55

6-
Demo linking to the Runestone Server docs: `assignments/grades_report endpoint`.
7-
86

97
Getting started
108
===============

runestone/fitb/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
1+
# *********
2+
# |docname|
3+
# *********
14
from .fitb import *

runestone/fitb/fitb.py

Lines changed: 16 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,21 @@
1-
# Copyright (C) 2013 Bradley N. Miller
1+
# *********
2+
# |docname|
3+
# *********
24
#
3-
# This program is free software: you can redistribute it and/or modify
4-
# it under the terms of the GNU General Public License as published by
5-
# the Free Software Foundation, either version 3 of the License, or
6-
# (at your option) any later version.
5+
# .. Copyright (C) 2013 Bradley N. Miller
76
#
8-
# This program is distributed in the hope that it will be useful,
9-
# but WITHOUT ANY WARRANTY; without even the implied warranty of
10-
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11-
# GNU General Public License for more details.
7+
# This program is free software: you can redistribute it and/or modify
8+
# it under the terms of the GNU General Public License as published by
9+
# the Free Software Foundation, either version 3 of the License, or
10+
# (at your option) any later version.
1211
#
13-
# You should have received a copy of the GNU General Public License
14-
# along with this program. If not, see <http://www.gnu.org/licenses/>.
12+
# This program is distributed in the hope that it will be useful,
13+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
14+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15+
# GNU General Public License for more details.
16+
#
17+
# You should have received a copy of the GNU General Public License
18+
# along with this program. If not, see <http://www.gnu.org/licenses/>.
1519
#
1620
__author__ = "isaiahmayerchak"
1721

@@ -117,21 +121,9 @@ def depart_fitb_node(self, node):
117121
self.body.remove(node.delimiter)
118122

119123

124+
# See the :ref:`docs <fill in the blank docs>` for the syntax of this component.
120125
class FillInTheBlank(RunestoneIdDirective):
121126
"""
122-
.. fillintheblank:: some_unique_id_here
123-
124-
Complete the sentence: |blank| had a |blank| lamb. One plus one is: (note that if there aren't enough blanks for the feedback given, they're added to the end of the problem. So, we don't **need** to specify a blank here.)
125-
126-
- :Mary: Is the correct answer.
127-
:Sue: Is wrong.
128-
:x: Try again. (Note: the last item of feedback matches anything, regardless of the string it's given.)
129-
- :little: That's right.
130-
:.*: Nope.
131-
- :2: Right on! Numbers can be given in decimal, hex (0x10 == 16), octal (0o10 == 8), binary (0b10 == 2), or using scientific notation (1e1 == 10), both here and by the user when answering the question.
132-
:2 1: Close.... (The second number is a tolerance, so this matches 1 or 3.)
133-
:x: Nope. (As earlier, this matches anything.)
134-
135127
config values (conf.py):
136128
137129
- fitb_div_class - custom CSS class of the component's outermost div

runestone/fitb/js/fitb.js

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,7 @@
1-
/*==========================================
2-
======== Master fitb.js =========
3-
============================================
4-
=== This file contains the JS for the ===
5-
=== Runestone fillintheblank component. ===
6-
============================================
7-
=== Created By ===
8-
=== Isaiah Mayerchak ===
9-
=== and ===
10-
=== Kirby Olson ===
11-
=== 6/4/15 ===
12-
=== Brad Miller ===
13-
=== 2/7/20 ===
14-
==========================================*/
1+
// *********
2+
// |docname|
3+
// *********
4+
// This file contains the JS for the Runestone fillintheblank component. It was created By Isaiah Mayerchak and Kirby Olson, 6/4/15 then revised by Brad Miller, 2/7/20.
155
"use strict";
166

177
import RunestoneBase from "../../common/js/runestonebase.js";

runestone/fitb/toctree.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
*************************************************
2-
Accessibility
3-
*************************************************
1+
********************************************************
2+
fitb: A Sphinx extension for fill-in-the-blank questions
3+
********************************************************
44
.. toctree::
55
:maxdepth: 1
66
:glob:

runestone/overview.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ Base Class Provides
1717
-------------------
1818
* shouldUseServer
1919
* checkServer
20-
* `logRunEvent` - send the results of executing an ActiveCode exercise to the `runlog endpoint`.
21-
* `logBookEvent` - send the results of answering a question to the `hsblog endpoint`.
20+
* `logRunEvent` - send the results of executing an ActiveCode exercise to the :ref:`runlog endpoint`.
21+
* `logBookEvent` - send the results of answering a question to the :ref:`hsblog endpoint`.
2222
* loadData
2323
* repopulateFromStorage
2424
* localStorageKey

0 commit comments

Comments
 (0)