Provide a first class Open edX theme
LEARNER-2513
This commit is contained in:
@@ -22,11 +22,12 @@ class TestHelpers(TestCase):
|
|||||||
Tests template paths are returned from enabled theme.
|
Tests template paths are returned from enabled theme.
|
||||||
"""
|
"""
|
||||||
expected_themes = [
|
expected_themes = [
|
||||||
Theme('test-theme', 'test-theme', get_theme_base_dir('test-theme')),
|
|
||||||
Theme('red-theme', 'red-theme', get_theme_base_dir('red-theme')),
|
|
||||||
Theme('edge.edx.org', 'edge.edx.org', get_theme_base_dir('edge.edx.org')),
|
Theme('edge.edx.org', 'edge.edx.org', get_theme_base_dir('edge.edx.org')),
|
||||||
Theme('edx.org', 'edx.org', get_theme_base_dir('edx.org')),
|
Theme('edx.org', 'edx.org', get_theme_base_dir('edx.org')),
|
||||||
|
Theme('open-edx', 'open-edx', get_theme_base_dir('open-edx')),
|
||||||
|
Theme('red-theme', 'red-theme', get_theme_base_dir('red-theme')),
|
||||||
Theme('stanford-style', 'stanford-style', get_theme_base_dir('stanford-style')),
|
Theme('stanford-style', 'stanford-style', get_theme_base_dir('stanford-style')),
|
||||||
|
Theme('test-theme', 'test-theme', get_theme_base_dir('test-theme')),
|
||||||
]
|
]
|
||||||
actual_themes = get_themes()
|
actual_themes = get_themes()
|
||||||
self.assertItemsEqual(expected_themes, actual_themes)
|
self.assertItemsEqual(expected_themes, actual_themes)
|
||||||
|
|||||||
14
themes/open-edx/README.rst
Normal file
14
themes/open-edx/README.rst
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
##############
|
||||||
|
Open edX Theme
|
||||||
|
##############
|
||||||
|
|
||||||
|
This is the default theme used by Open edX installations. It doesn't
|
||||||
|
provide any overrides, which means that it adopts the built-in themes,
|
||||||
|
templates etc.
|
||||||
|
|
||||||
|
The `Red Theme`_ is provided as an example of building a simple new theme.
|
||||||
|
|
||||||
|
For more information on building your own theme, see `Changing Themes for an Open edX Site`_.
|
||||||
|
|
||||||
|
.. _Changing Themes for an Open edX Site: https://edx.readthedocs.io/projects/edx-installing-configuring-and-running/en/latest/configuration/changing_appearance/theming/index.html
|
||||||
|
.. _Red Theme: https://github.com/edx/edx-platform/tree/master/themes/red-theme
|
||||||
14
themes/open-edx/cms/README.rst
Normal file
14
themes/open-edx/cms/README.rst
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
#####################
|
||||||
|
Studio Open edX Theme
|
||||||
|
#####################
|
||||||
|
|
||||||
|
This is the default Studio theme used by Open edX installations. It doesn't
|
||||||
|
provide any overrides, which means that it adopts the built-in themes,
|
||||||
|
templates etc.
|
||||||
|
|
||||||
|
The `Red Theme`_ is provided as an example of building a simple new theme.
|
||||||
|
|
||||||
|
For more information on building your own theme, see `Changing Themes for an Open edX Site`_.
|
||||||
|
|
||||||
|
.. _Changing Themes for an Open edX Site: https://edx.readthedocs.io/projects/edx-installing-configuring-and-running/en/latest/configuration/changing_appearance/theming/index.html
|
||||||
|
.. _Red Theme: https://github.com/edx/edx-platform/tree/master/themes/red-theme
|
||||||
14
themes/open-edx/lms/README.rst
Normal file
14
themes/open-edx/lms/README.rst
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
##################
|
||||||
|
LMS Open edX Theme
|
||||||
|
##################
|
||||||
|
|
||||||
|
This is the default LMS theme used by Open edX installations. It doesn't
|
||||||
|
provide any overrides, which means that it adopts the built-in themes,
|
||||||
|
templates etc.
|
||||||
|
|
||||||
|
The `Red Theme`_ is provided as an example of building a simple new theme.
|
||||||
|
|
||||||
|
For more information on building your own theme, see `Changing Themes for an Open edX Site`_.
|
||||||
|
|
||||||
|
.. _Changing Themes for an Open edX Site: https://edx.readthedocs.io/projects/edx-installing-configuring-and-running/en/latest/configuration/changing_appearance/theming/index.html
|
||||||
|
.. _Red Theme: https://github.com/edx/edx-platform/tree/master/themes/red-theme
|
||||||
Reference in New Issue
Block a user