Skip to content
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
2 changes: 1 addition & 1 deletion .readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ sphinx:
build:
os: "ubuntu-lts-latest"
tools:
python: "3.8"
python: "3.12"

# Optionally set the requirements required to build your docs
python:
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# from the environment for the first two.
SPHINXOPTS ?= -W
SPHINXBUILD ?= sphinx-build
SOURCEDIR = source
SOURCEDIR = docs/source
BUILDDIR = build

# Put it first so that "make" without argument is like "make help".
Expand Down
4 changes: 4 additions & 0 deletions admin/partials/openedx-commerce-admin-display.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@
* @subpackage Openedx_Commerce/admin/partials
*/

if ( ! defined( 'ABSPATH' ) ) {
exit;
}

?>

<!-- This file should primarily consist of HTML with a little bit of PHP. -->
1 change: 0 additions & 1 deletion docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
# ones.
extensions = [
'sphinxcontrib.contentui',
'sphinx_copybutton',
'sphinx.ext.graphviz',
'sphinxcontrib.mermaid',
Expand Down
4 changes: 4 additions & 0 deletions includes/class-openedx-commerce-loader.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@

namespace OpenedX_Commerce;

if ( ! defined( 'ABSPATH' ) ) {
exit;
}

/**
* Register all actions and filters for the plugin.
*
Expand Down
4 changes: 4 additions & 0 deletions includes/class-openedx-commerce.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@

namespace OpenedX_Commerce;

if ( ! defined( 'ABSPATH' ) ) {
exit;
}

use OpenedX_Commerce\admin\Openedx_Commerce_Admin;
use OpenedX_Commerce\public\Openedx_Commerce_Public;
use OpenedX_Commerce\admin\views\Openedx_Commerce_Settings;
Expand Down
4 changes: 4 additions & 0 deletions public/partials/openedx-commerce-public-display.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@
* @subpackage Openedx_Commerce/public/partials
*/

if ( ! defined( 'ABSPATH' ) ) {
exit;
}

?>

<!-- This file should primarily consist of HTML with a little bit of PHP. -->
1 change: 0 additions & 1 deletion requirements/docs.in
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,3 @@ sphinx-book-theme
sphinx-autobuild
sphinx-copybutton
sphinxcontrib-mermaid
sphinxcontrib-contentui
110 changes: 61 additions & 49 deletions requirements/docs.txt
Original file line number Diff line number Diff line change
@@ -1,97 +1,109 @@
#
# This file is autogenerated by pip-compile with Python 3.8
# This file is autogenerated by pip-compile with Python 3.12
# by the following command:
#
# make upgrade
#
accessible-pygments==0.0.4
accessible-pygments==0.0.5
# via pydata-sphinx-theme
alabaster==0.7.13
alabaster==1.0.0
# via sphinx
babel==2.12.1
anyio==4.13.0
# via
# starlette
# watchfiles
babel==2.18.0
# via
# pydata-sphinx-theme
# sphinx
beautifulsoup4==4.12.2
beautifulsoup4==4.14.3
# via pydata-sphinx-theme
certifi==2023.7.22
certifi==2026.2.25
# via requests
charset-normalizer==3.2.0
charset-normalizer==3.4.7
# via requests
click==8.3.2
# via uvicorn
colorama==0.4.6
# via sphinx-autobuild
docutils==0.19
docutils==0.22.4
# via
# pydata-sphinx-theme
# sphinx
idna==3.4
# via requests
imagesize==1.4.1
# via sphinx
importlib-metadata==6.8.0
# via sphinx
jinja2==3.1.2
h11==0.16.0
# via uvicorn
idna==3.11
# via
# anyio
# requests
imagesize==2.0.0
# via sphinx
livereload==2.6.3
# via sphinx-autobuild
markupsafe==2.1.3
# via jinja2
packaging==23.1
jinja2==3.1.6
# via
# pydata-sphinx-theme
# sphinx
pydata-sphinx-theme==0.13.3
# sphinxcontrib-mermaid
markupsafe==3.0.3
# via jinja2
packaging==26.0
# via sphinx
pydata-sphinx-theme==0.16.1
# via sphinx-book-theme
pygments==2.16.1
pygments==2.20.0
# via
# accessible-pygments
# pydata-sphinx-theme
# sphinx
pytz==2023.3
# via babel
requests==2.31.0
pyyaml==6.0.3
# via sphinxcontrib-mermaid
requests==2.33.1
# via sphinx
six==1.16.0
# via livereload
snowballstemmer==2.2.0
roman-numerals==4.1.0
# via sphinx
soupsieve==2.4.1
snowballstemmer==3.0.1
# via sphinx
soupsieve==2.8.3
# via beautifulsoup4
sphinx==6.2.1
sphinx==9.1.0
# via
# -r requirements/docs.in
# pydata-sphinx-theme
# sphinx-autobuild
# sphinx-book-theme
# sphinx-copybutton
# sphinxcontrib-contentui
sphinx-autobuild==2021.3.14
# sphinxcontrib-mermaid
sphinx-autobuild==2025.8.25
# via -r requirements/docs.in
sphinx-book-theme==1.0.1
sphinx-book-theme==1.2.0
# via -r requirements/docs.in
sphinx-copybutton==0.5.2
# via -r requirements/docs.in
sphinxcontrib-applehelp==1.0.4
sphinxcontrib-applehelp==2.0.0
# via sphinx
sphinxcontrib-contentui==0.2.5
# via -r requirements/docs.in
sphinxcontrib-devhelp==1.0.2
sphinxcontrib-devhelp==2.0.0
# via sphinx
sphinxcontrib-htmlhelp==2.0.1
sphinxcontrib-htmlhelp==2.1.0
# via sphinx
sphinxcontrib-jsmath==1.0.1
# via sphinx
sphinxcontrib-mermaid==0.9.2
sphinxcontrib-mermaid==2.0.1
# via -r requirements/docs.in
sphinxcontrib-qthelp==1.0.3
sphinxcontrib-qthelp==2.0.0
# via sphinx
sphinxcontrib-serializinghtml==1.1.5
sphinxcontrib-serializinghtml==2.0.0
# via sphinx
tornado==6.3.3
# via livereload
typing-extensions==4.7.1
# via pydata-sphinx-theme
urllib3==2.0.4
starlette==1.0.0
# via sphinx-autobuild
typing-extensions==4.15.0
# via
# anyio
# beautifulsoup4
# pydata-sphinx-theme
# starlette
urllib3==2.6.3
# via requests
zipp==3.16.2
# via importlib-metadata
uvicorn==0.44.0
# via sphinx-autobuild
watchfiles==1.1.1
# via sphinx-autobuild
websockets==16.0
# via sphinx-autobuild
21 changes: 10 additions & 11 deletions requirements/pip-tools.txt
Original file line number Diff line number Diff line change
@@ -1,25 +1,24 @@
#
# This file is autogenerated by pip-compile with Python 3.8
# This file is autogenerated by pip-compile with Python 3.12
# by the following command:
#
# make upgrade
#
build==0.10.0
build==1.4.2
# via pip-tools
click==8.1.7
click==8.3.2
# via pip-tools
packaging==23.1
# via build
pip-tools==7.3.0
packaging==26.0
# via
# build
# wheel
pip-tools==7.5.3
# via -r requirements/pip-tools.in
pyproject-hooks==1.0.0
# via build
tomli==2.0.1
pyproject-hooks==1.2.0
# via
# build
# pip-tools
# pyproject-hooks
wheel==0.41.2
wheel==0.46.3
# via pip-tools

# The following packages are considered to be unsafe in a requirements file:
Expand Down
10 changes: 6 additions & 4 deletions requirements/pip.txt
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
#
# This file is autogenerated by pip-compile with Python 3.8
# This file is autogenerated by pip-compile with Python 3.12
# by the following command:
#
# make upgrade
#
wheel==0.41.2
packaging==26.0
# via wheel
wheel==0.46.3
# via -r requirements/pip.in

# The following packages are considered to be unsafe in a requirements file:
pip==23.2.1
pip==26.0.1
# via -r requirements/pip.in
setuptools==68.1.2
setuptools==82.0.1
# via -r requirements/pip.in
4 changes: 4 additions & 0 deletions utils/openedx-utils.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@

namespace OpenedX_Commerce\utils;

if ( ! defined( 'ABSPATH' ) ) {
exit;
}

/**
* Enrollment Request mode options.
*/
Expand Down
Loading