Skip to content

Commit

Permalink
Merge pull request #697 from openedx/feanil/fix_docs_build
Browse files Browse the repository at this point in the history
feanil/fix docs build
  • Loading branch information
feanil committed Dec 6, 2023
2 parents d94d46c + 2e33df8 commit e1db61e
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#

# You can set these variables from the command line.
SPHINXOPTS = -a -E
SPHINXOPTS = -W -a -E
SPHINXBUILD = sphinx-build
PAPER =
BUILDDIR = _build
Expand Down
13 changes: 12 additions & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
import datetime
import os
import sys

from unittest import mock

import django

MOCK_MODULES = [
'webob',
Expand All @@ -32,8 +32,19 @@
sys.path.insert(0, os.path.abspath('..'))
sys.path.insert(0, os.path.abspath('..xblock',))
from xblock import __version__

# -- General configuration -----------------------------------------------------

# Use a settings module that allows all LMS and Studio code to be imported
# without errors. If running sphinx-apidoc, we already set a different
# settings module to use in the on_init() hook of the parent process
if 'DJANGO_SETTINGS_MODULE' not in os.environ:
os.environ['DJANGO_SETTINGS_MODULE'] = 'docs.docs_settings'

django.setup()



# If your documentation needs a minimal Sphinx version, state it here.
#needs_sphinx = '1.0'

Expand Down
1 change: 1 addition & 0 deletions docs/docs_settings.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
SECRET_KEY = "NOT_SECRET_KEy"
2 changes: 1 addition & 1 deletion docs/xblock-tutorial/glossary.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
Open edX Glossary
#################

:doc:`docs-openedx-org:developers/references/developer_guide/glossary`
:doc:`docs-openedx-org:developers/references/glossary`

0 comments on commit e1db61e

Please sign in to comment.