Merge pull request #32614 from openedx/feanil/reorg_guides

feanil/reorg guides
This commit is contained in:
Feanil Patel
2023-07-12 16:02:03 -04:00
committed by GitHub
25 changed files with 91 additions and 20 deletions

View File

@@ -1,5 +1,6 @@
_build
cms
common
lms
openedx
references/docstrings/cms
references/docstrings/common
references/docstrings/lms
references/docstrings/openedx
references/docstrings/xmodule

View File

@@ -1,5 +1,5 @@
Guides
******
Concepts and Guides
###################
.. toctree::
:maxdepth: 2

View File

Before

Width:  |  Height:  |  Size: 19 KiB

After

Width:  |  Height:  |  Size: 19 KiB

View File

@@ -62,6 +62,7 @@ extensions = [
'sphinx.ext.mathjax',
'sphinx.ext.napoleon',
'sphinxcontrib.openapi',
'sphinx_design',
'code_annotations.contrib.sphinx.extensions.featuretoggles',
'code_annotations.contrib.sphinx.extensions.settings',
]
@@ -272,10 +273,11 @@ autodoc_mock_imports = [
# run sphinx-apidoc against and the directories under "docs" in which to store
# the generated *.rst files
modules = {
'cms': 'cms',
'lms': 'lms',
'openedx': 'openedx',
'xmodule': 'xmodule',
'cms': 'references/docstrings/cms',
'lms': 'references/docstrings/lms',
'openedx': 'references/docstrings/openedx',
'common': 'references/docstrings/common',
'xmodule': 'references/docstrings/xmodule',
}

View File

@@ -0,0 +1,8 @@
"How-To" Guides
###############
.. toctree::
:glob:
*

View File

@@ -24,17 +24,65 @@ locations.
.. toctree::
:maxdepth: 1
lms_apis
guides
docstrings/docstrings
celery
settings
featuretoggles
.. toctree::
:hidden:
how-tos/index
references/index
concepts/index
.. grid:: 1 2 2 2
:gutter: 3
:padding: 0
.. grid-item-card:: How-tos
:class-card: sd-shadow-md sd-p-2
:class-footer: sd-border-0
* :doc:`how-tos/celery`
+++
.. button-ref:: how-tos/index
:color: primary
:outline:
:expand:
.. grid-item-card:: Referencs
:class-card: sd-shadow-md sd-p-2
:class-footer: sd-border-0
* :doc:`references/lms_apis`
* :doc:`references/settings`
* :doc:`references/featuretoggles`
+++
.. button-ref:: references/index
:color: primary
:outline:
:expand:
.. grid-item-card:: Concepts
:class-card: sd-shadow-md sd-p-2
:class-footer: sd-border-0
* :doc:`concepts/extension_points`
* :doc:`concepts/testing/testing`
* :doc:`concepts/frontend/javascript`
+++
.. button-ref:: concepts/index
:color: primary
:outline:
:expand:
Change History
**************
* Jun 30, 2023
* Added API, Feature Toggle and Settings docs.
* Re-organized how the docs are laid out.
* December, 2020: Added documentation about new protocols for writing celery tasks.
* April, 2019: API and repository-specific documentation builds resumed.

View File

@@ -10,5 +10,4 @@ package.
.. toctree::
:maxdepth: 2
common_djangoapps
common_lib
common/common

View File

@@ -0,0 +1,9 @@
References
##########
.. toctree::
:maxdepth: 1
:glob:
*
docstrings/index

View File

@@ -4,4 +4,4 @@ LMS APIs
The LMS currently has the following API Endpoints.
.. openapi:: ../lms-openapi.yaml
.. openapi:: ../../lms-openapi.yaml

View File

@@ -12,11 +12,10 @@
-r ../pip-tools.txt # pip-tools and its dependencies, for managing requirements files
-r testing.txt # Dependencies for running the various test suites
-r doc.txt # Dependencies for building the documentation locally.
click # Used for perf_tests utilities in modulestore
django-debug-toolbar # A set of panels that display debug information about the current request/response
sphinx-book-theme # Documentation theme
mypy # static type checking
pywatchman # More efficient checking for runserver reload trigger events
sphinxcontrib-openapi[markdown] # OpenAPI (fka Swagger) spec renderer for Sphinx
vulture # Detects possible dead/unused code, used in scripts/find-dead-code.sh

View File

@@ -5,3 +5,5 @@ code-annotations # provides annotations for certain documentation
sphinx-book-theme # Common theme for all Open edX projects
gitpython # fetch git repo information
Sphinx # Documentation builder
sphinx-design # provides various responsive web-components
sphinxcontrib-openapi[markdown] # Be able to render openapi schema in a sphinx project

View File

@@ -82,8 +82,11 @@ sphinx==6.2.1
# -r requirements/edx/doc.in
# pydata-sphinx-theme
# sphinx-book-theme
# sphinx-design
sphinx-book-theme==1.0.1
# via -r requirements/edx/doc.in
sphinx-design==0.4.1
# via -r requirements/edx/doc.in
sphinxcontrib-applehelp==1.0.4
# via sphinx
sphinxcontrib-devhelp==1.0.2