Skip to main content

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.

Metadata

Release files for xblock-accordion 1.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for xblock-accordion 1.1.1
File Size Uploaded
xblock_accordion-1.1.1.tar.gz 804.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for xblock-accordion 1.1.1
File Interpreter ABI Platform
xblock_accordion-1.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 1.6 MB

Release files / xblock_accordion-1.1.1.tar.gz

Download URL xblock_accordion-1.1.1.tar.gz
Size 804.9 kB
Tags Source
SHA-256 checksum
How to use checksums
9e326583a5afdc936a3870e23e39b4e623a0dd4a742f5c7dc900f3453ae257f5
BLAKE2b-256 checksum
How to use checksums
7730107c0919e84e477c734f885b6cf605088c4b6e19d7f1041c1ba3a311947f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.25

Release files / xblock_accordion-1.1.1-py3-none-any.whl

Download URL xblock_accordion-1.1.1-py3-none-any.whl
Size 808.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8d05fdc4ba10ae730094f19035eb9b31d800f9273a82a32cc22acf0d1781c97c
BLAKE2b-256 checksum
How to use checksums
23f1b4090df2f5791fc5308de71f620de7108beb884c920ba36842391136222e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.25

Release history Release notifications | RSS feed

This release

1.1.1 This release

2 release files

1.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page