From 9daa066e64254d43a5e68ad589e679415be8aa34 Mon Sep 17 00:00:00 2001 From: Kyle McCormick Date: Mon, 19 Aug 2024 13:13:46 -0400 Subject: [PATCH] docs: fix entrypoint syntax in overrides tutorial In an entrypoint, the module path and the object name need to be separated by a single colon, not a double colon. --- docs/xblock-tutorial/edx_platform/overrides.rst | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/xblock-tutorial/edx_platform/overrides.rst b/docs/xblock-tutorial/edx_platform/overrides.rst index aa3eaf2de..88d16cbbb 100644 --- a/docs/xblock-tutorial/edx_platform/overrides.rst +++ b/docs/xblock-tutorial/edx_platform/overrides.rst @@ -30,7 +30,7 @@ Imagine there is an XBlock installed ``edx-platform``: # edx-platform/xblocks/video_block.py class VideoBlock(XBlock): - ... + ... # edx-platform/setup.py setup( @@ -38,7 +38,7 @@ Imagine there is an XBlock installed ``edx-platform``: entry_points={ "xblock.v1": [ - "video = xblocks.video_block::VideoBlock" + "video = xblocks.video_block:VideoBlock" # ... ] } @@ -50,14 +50,14 @@ If you then create your own Python package with a custom version of that XBlock. # your_plugin/xblocks/video_block.py class YourVideoBlock(XBlock): - ... + ... # your_plugin/setup.py setup( # ... entry_points={ "xblock.v1.overrides": [ - "video = your_plugin.xblocks.video_block::YourVideoBlock" + "video = your_plugin.xblocks.video_block:YourVideoBlock" # ... ], }