Accordion XBlock
Project description
Testing with Docker
This XBlock comes with a Docker test environment ready to build, based on the xblock-sdk workbench. To build and run it:
$ make dev.run
The XBlock SDK Workbench, including this XBlock, will be available on the list of XBlocks at http://localhost:8000
Testing frontend
The frontend code in the XBlock can be tested without the backend running for quicker iteration on the UI. To do this, just run npm run dev in the frontend folder. This will start a dev server with just the frontend component. You can open the URL in the terminal and browse to the student or studio components.
Installation
You can install the XBlock with the following command:
pip install xblock-accordion@git+https://github.com/open-craft/xblock-accordion.git
If using tutor, you can add xblock-accordion@git+https://github.com/open-craft/xblock-accordion.git to OPENEDX_EXTRA_PIP_REQUIREMENTS to have the xblock installed on deployment.
Usage
To use the XBlock in a course, you need to ensure that you have “accordion” in the Advanced Modules List in the Advanced settings page of the course.
Once added there you will be able to add an Accordion block from the Advanced Modules section of blocks.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file xblock_accordion-1.1.0.tar.gz.
File metadata
- Download URL: xblock_accordion-1.1.0.tar.gz
- Upload date:
- Size: 804.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.25
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
28a278cb7e0b1f4c152e7ebdfcd7861eb86218ecb5adc8fb30d2c2c8a833f3ca
|
|
| MD5 |
82056b11e746ae09a5f7de9dcc1b9dab
|
|
| BLAKE2b-256 |
664792a0483de98a791a40dadab57916c0a990db59ea1f4c52016767af5f6f31
|
File details
Details for the file xblock_accordion-1.1.0-py3-none-any.whl.
File metadata
- Download URL: xblock_accordion-1.1.0-py3-none-any.whl
- Upload date:
- Size: 808.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.25
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
51e910cf85d279f12f6e40851ace2b1397a6849dbb63e8165799cef76905ade8
|
|
| MD5 |
d90f6fa04f8188c274509b5fe8a156cd
|
|
| BLAKE2b-256 |
467be723e69bd416f2d429dda1dfa4fae8b833c9374ed558138261b034d033ef
|