Skip to content

Commit

Permalink
Merge pull request openedx#32611 from openedx/feanil/platform-docs
Browse files Browse the repository at this point in the history
feanil/platform docs
  • Loading branch information
Feanil Patel authored Jul 3, 2023
2 parents e543a68 + 8c43868 commit 82ee4cd
Show file tree
Hide file tree
Showing 11 changed files with 13 additions and 387 deletions.
15 changes: 4 additions & 11 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Do things in edx-platform
.PHONY: api-docs-sphinx api-docs base-requirements check-types clean \
.PHONY: base-requirements check-types clean \
compile-requirements detect_changed_source_translations dev-requirements \
docker_auth docker_build docker_push docker_tag docs extract_translations \
guides help lint-imports local-requirements pre-requirements pull \
Expand All @@ -23,24 +23,17 @@ clean: ## archive and delete most git-ignored files
tar xf $(PRIVATE_FILES)
rm $(PRIVATE_FILES)

SWAGGER = docs/swagger.yaml
SWAGGER = docs/lms-openapi.yaml

docs: api-docs guides technical-docs ## build all the developer documentation for this repository
docs: guides technical-docs ## build all the developer documentation for this repository

swagger: ## generate the swagger.yaml file
DJANGO_SETTINGS_MODULE=docs.docs_settings python manage.py lms generate_swagger --generator-class=edx_api_doc_tools.ApiSchemaGenerator -o $(SWAGGER)

api-docs-sphinx: swagger ## generate the sphinx source files for api-docs
rm -f docs/api/gen/*
python docs/sw2sphinxopenapi.py $(SWAGGER) docs/api/gen

api-docs: api-docs-sphinx ## build the REST api docs
cd docs/api; make html

technical-docs: ## build the technical docs
$(MAKE) -C docs/technical html

guides: ## build the developer guide docs
guides: swagger ## build the developer guide docs
cd docs/guides; make clean html

extract_translations: ## extract localizable strings from sources
Expand Down
2 changes: 0 additions & 2 deletions docs/api/.gitignore

This file was deleted.

19 changes: 0 additions & 19 deletions docs/api/Makefile

This file was deleted.

Empty file removed docs/api/__init__.py
Empty file.
218 changes: 0 additions & 218 deletions docs/api/conf.py

This file was deleted.

11 changes: 0 additions & 11 deletions docs/api/index.rst

This file was deleted.

1 change: 1 addition & 0 deletions docs/guides/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@
'sphinx.ext.intersphinx',
'sphinx.ext.mathjax',
'sphinx.ext.napoleon',
'sphinxcontrib.openapi',
]

# Add any paths that contain templates here, relative to this directory.
Expand Down
1 change: 1 addition & 0 deletions docs/guides/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ locations.
.. toctree::
:maxdepth: 2

lms_apis
guides
docstrings/docstrings
celery
Expand Down
7 changes: 7 additions & 0 deletions docs/guides/lms_apis.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
LMS APIs
########

The LMS currently has the following API Endpoints.


.. openapi:: ../lms-openapi.yaml
File renamed without changes.
Loading

0 comments on commit 82ee4cd

Please sign in to comment.