Skip to content

Commit

Permalink
fix: docs error
Browse files Browse the repository at this point in the history
  • Loading branch information
syedsajjadkazmii committed Nov 28, 2024
1 parent 5baa361 commit 1c2915c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion commerce_coordinator/apps/lms/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ def fulfill_order_placed_send_enroll_in_course_task(
f'LMS fulfill_order_placed_send_enroll_in_course_task fired with {locals()},'
)

user = User.objects.get(lms_user_id=1)
user = User.objects.get(lms_user_id=edx_lms_user_id)

enrollment_data = {
'user': user.username,
Expand Down
8 changes: 7 additions & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@ def get_version(*file_paths):
# A list of warning types to suppress arbitrary warning messages.
suppress_warnings = [
'image.nonlocal_uri',
'role:setting',
]

# Add any paths that contain templates here, relative to this directory.
Expand Down Expand Up @@ -152,6 +151,7 @@ def get_version(*file_paths):
# This file is intended as a guide for developers browsing the source tree,
# not to be rendered into the output docs.
'decisions/README.rst',
'celery',
]

# The reST default role (used for this markup: `text`) to use for all
Expand Down Expand Up @@ -557,3 +557,9 @@ def setup(app):
"""Sphinx extension: run sphinx-apidoc."""
event = 'builder-inited'
app.connect(event, on_init)
app.add_role('setting', setting_role)

def setting_role(name, rawtext, text, lineno, inliner, options={}, content=[]):
"""Custom role for :setting:."""
# Here, you can decide how the role should be rendered
return text

0 comments on commit 1c2915c

Please sign in to comment.