Skip to content

Commit

Permalink
Merge pull request #32780 from openedx/feanil/unify_docs
Browse files Browse the repository at this point in the history
feanil/unify docs
  • Loading branch information
Feanil Patel authored Jul 19, 2023
2 parents 3af1ce0 + de6639a commit 686cab0
Show file tree
Hide file tree
Showing 39 changed files with 10 additions and 150 deletions.
3 changes: 3 additions & 0 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ build:
tools:
python: "3.8"

sphinx:
configuration: source/conf.py

python:
install:
- requirements: "requirements/edx/doc.txt"
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
13 changes: 6 additions & 7 deletions docs/guides/conf.py → docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@

from path import Path

root = Path('../..').abspath()
root = Path('..').abspath()

# Hack the PYTHONPATH to match what LMS and Studio use so all the code
# can be successfully imported
sys.path.insert(0, root)
sys.path.append(root / "docs/guides")
sys.path.append(root / "docs")


# Use a settings module that allows all LMS and Studio code to be imported
Expand Down Expand Up @@ -74,9 +74,8 @@

# code_annotations.(featuretoggles|settings) related settings.
edxplatform_repo_url = "https://github.com/openedx/edx-platform"
edxplatform_source_path = os.path.abspath(
os.path.join(os.path.dirname(__file__), "..", "..")
)
edxplatform_source_path = root

try:
edx_platform_version = git.Repo(search_parent_directories=True).head.object.hexsha
except git.InvalidGitRepositoryError:
Expand Down Expand Up @@ -136,7 +135,7 @@
html_theme_options = {
"repository_url": "https://github.com/openedx/edx-platform",
"repository_branch": "master",
"path_to_docs": "docs/guides",
"path_to_docs": "docs",
"home_page_in_toc": True,
"use_repository_button": True,
"use_issues_button": True,
Expand Down Expand Up @@ -308,7 +307,7 @@ def on_init(app): # lint-amnesty, pylint: disable=redefined-outer-name, unused-
Read the Docs won't run tox or custom shell commands, so we need this to
avoid checking in the generated reStructuredText files.
"""
docs_path = root / 'docs' / 'guides'
docs_path = root / 'docs'
apidoc_path = 'sphinx-apidoc'
if hasattr(sys, 'real_prefix'): # Check to see if we are in a virtualenv
# If we are, assemble the path manually
Expand Down
File renamed without changes.
Empty file removed docs/guides/__init__.py
Empty file.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ LMS APIs
The LMS currently has the following API Endpoints.


.. openapi:: ../../lms-openapi.yaml
.. openapi:: ../lms-openapi.yaml
File renamed without changes.
File renamed without changes.
1 change: 0 additions & 1 deletion docs/technical/.gitignore

This file was deleted.

20 changes: 0 additions & 20 deletions docs/technical/Makefile

This file was deleted.

85 changes: 0 additions & 85 deletions docs/technical/conf.py

This file was deleted.

8 changes: 0 additions & 8 deletions docs/technical/featuretoggles.rst

This file was deleted.

9 changes: 0 additions & 9 deletions docs/technical/index.rst

This file was deleted.

19 changes: 0 additions & 19 deletions docs/technical/settings.rst

This file was deleted.

File renamed without changes.

0 comments on commit 686cab0

Please sign in to comment.