From e7dd84643f35f8720a62818b7e63a11a0c1c1bb7 Mon Sep 17 00:00:00 2001 From: Kyle McCormick Date: Tue, 20 Aug 2024 11:17:37 -0400 Subject: [PATCH] docs: fix entrypoint syntax in overrides tutorial (#782) 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" # ... ], }