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

Commit 4665dca

Browse files
authored
Merge pull request #1188 from bjones1/docs-update
Add: Improve docs.
2 parents 74da9d4 + 96dfa39 commit 4665dca

6 files changed

Lines changed: 40 additions & 46 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/fitb.py

Lines changed: 24 additions & 25 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

@@ -119,22 +123,17 @@ class FillInTheBlank(RunestoneIdDirective):
119123
"""
120124
.. fillintheblank:: some_unique_id_here
121125
122-
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.)
123-
124-
- :Mary: Is the correct answer.
125-
:Sue: Is wrong.
126-
:x: Try again. (Note: the last item of feedback matches anything, regardless of the string it's given.)
127-
- :little: That's right.
128-
:.*: Nope.
129-
- :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.
130-
:2 1: Close.... (The second number is a tolerance, so this matches 1 or 3.)
131-
:x: Nope. (As earlier, this matches anything.)
132-
133-
config values (conf.py):
134-
135-
- fitb_div_class - custom CSS class of the component's outermost div
126+
Put the text of the question here.
127+
See https://runestone.academy/runestone/books/published/overview/Assessments/fitb.html
128+
for additional options and documentation.
129+
- :Put the correct answer here: Put feedback displayed for this answer here.
130+
:x: Put feedback displayed for an incorrect answer here.
136131
"""
137132

133+
# config values (conf.py):
134+
#
135+
# - fitb_div_class - custom CSS class of the component's outermost div
136+
138137
required_arguments = 1
139138
optional_arguments = 0
140139
final_argument_whitespace = True

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)