Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feanil/update rtd config #644

Merged
merged 1 commit into from
Nov 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ Motivation
**********

Following the open-closed principle, it would be desirable for the open edX
project to allow the extension points (great `summary of the current options`_)
project to allow the extension points (great :doc:`summary of the current options<edx-platform:hooks/index>`)
to modify as much of the code paths that define the business rules of an
open edX instance in a way that is consistent and repeatable.

Expand All @@ -56,9 +56,6 @@ This proposal draws inspiration from the cumulative experience of eduNEXT as the
lead author, other members of the community, and from one of the largest
extendable platforms for the web today for many years already, WordPress.

.. _summary of the current options: https://github.com/openedx/edx-platform/blob/master/docs/guides/extension_points.rst


Specification
*************

Expand Down
13 changes: 13 additions & 0 deletions oeps/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

import sys
import os
import re

from datetime import datetime

Expand Down Expand Up @@ -337,12 +338,24 @@
#texinfo_no_detailmenu = False


# Intersphinx Extension Configuration
DIGITS_ONLY = r"^\d+$"
rtd_language = os.environ.get("READTHEDOCS_LANGUAGE", "en")
rtd_version = os.environ.get("READTHEDOCS_VERSION", "latest")
if re.search(DIGITS_ONLY, rtd_version):
# This is a PR build, use the latest versions of the other repos.
rtd_version = "latest"

# Example configuration for intersphinx: refer to the Python standard library.
intersphinx_mapping = {
"python": (
'https://docs.python.org/',
None
),
"edx-platform": (
f"https://docs.openedx.org/projects/edx-platform/{rtd_language}/{rtd_version}",
None,
),
}

# -- Read the Docs Specific Configuration
Expand Down