-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update frame and randomizer blueprints to add .rst documentation pages
- Loading branch information
Kim Scott
committed
Nov 7, 2020
1 parent
d93418f
commit 641426d
Showing
5 changed files
with
119 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
67 changes: 67 additions & 0 deletions
67
blueprints/exp-frame/files/app/components/__name__/doc.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
.. _<%= dasherizedModuleName %>: | ||
|
||
<%= dasherizedModuleName %> | ||
============================================== | ||
|
||
Overview | ||
------------------ | ||
|
||
Short (a few sentences) overview of your frame. | ||
|
||
TODO: Also add this file to the list of frames in app/index.rst! | ||
|
||
What it looks like | ||
~~~~~~~~~~~~~~~~~~ | ||
|
||
.. image:: /../images/<%= dasherizedModuleName %>.png | ||
:alt: Example screenshot from <%= dasherizedModuleName %> frame | ||
|
||
More general functionality | ||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
|
||
Below is information specific to this particular frame. There may also be available parameters, events recorded, | ||
and data collected that come from the following more general sources: | ||
|
||
- the :ref:`base frame<base frame>` (things all frames do) | ||
- TODO: link to any other mixins you use | ||
|
||
|
||
Examples | ||
---------------- | ||
|
||
This frame will <DESCRIBE WHAT IT WILL DO AND FILL IN A WORKING EXAMPLE BELOW> | ||
|
||
.. code:: javascript | ||
"test-trial": { | ||
"kind": "<%= dasherizedModuleName %>", | ||
... | ||
} | ||
Parameters | ||
---------------- | ||
|
||
firstParameter [Boolean | ``true``] | ||
TODO: list each parameter like this (above are name [type | default value]) and | ||
describe how to use it! | ||
|
||
|
||
Data collected | ||
---------------- | ||
|
||
The data specifically recorded by this frame are: | ||
|
||
firstDatum [Boolean] | ||
TODO: list each piece of data collected like this (above is name [type]) and | ||
describe how to interpret it! | ||
|
||
Events recorded | ||
---------------- | ||
|
||
TODO: The events recorded specifically by this frame are: | ||
|
||
:firstEvent: What this event means | ||
|
||
:firstEventData: [String] | ||
What this event data means (omit if only the event timestamp is recorded) |
11 changes: 8 additions & 3 deletions
11
blueprints/exp-frame/files/app/styles/components/__name__.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,9 @@ | ||
/* Important: You will need to add a line to addon/styles/addon.scss importing this file, like this: | ||
@import "components/exp-your-frame-name.scss" */ | ||
/* | ||
/* Add CSS styles for your frame here. See https://lookit.readthedocs.io/en/develop/frames.html#adding-css-styling */ | ||
Important: You will need to add a line to addon/styles/addon.scss importing this file, like this: | ||
@import "components/<%= dasherizedModuleName %>.scss" | ||
Add CSS styles for your frame here. See https://lookit.readthedocs.io/en/develop/frame-dev-creation.html#adding-css-styling | ||
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
.. _<%= dasherizedModuleName %>: | ||
|
||
<%= dasherizedModuleName %> | ||
============================================== | ||
|
||
Overview | ||
------------------ | ||
|
||
TODO: Short description of what your randomizer does. | ||
|
||
To use, define a frame with ``"kind": "choice"`` and ``"sampler": "<%= dasherizedModuleName %>"``, | ||
as shown below, in addition to the parameters described under 'properties'. | ||
|
||
Example | ||
---------------- | ||
|
||
This frame ... <INSERT DESCRIPTION OF HOW THIS EXAMPLE WORKS AND INSERT WORKING EXAMPLE> | ||
|
||
.. code:: javascript | ||
"select-randomizer-test": { | ||
"sampler": "<%= dasherizedModuleName %>", | ||
"kind": "choice", | ||
... | ||
} | ||
Parameters | ||
---------------- | ||
|
||
parameter1 [Array] | ||
TODO: Describe each parameter this randomizer accepts like this. | ||
|
||
|
||
Data collected | ||
---------------- | ||
|
||
The information returned by this randomizer will be available in ``expData["conditions"]["THIS-RANDOMIZER-ID"]``. The | ||
randomizer ID will depend on its order in the study - for instance, ``6-test-trials``. | ||
|
||
datum1 [Array] | ||
TODO: Describe each piece of data the randomizer will store. |