Skip to content

Commit

Permalink
Merge pull request #32614 from openedx/feanil/reorg_guides
Browse files Browse the repository at this point in the history
feanil/reorg guides
  • Loading branch information
feanil committed Jul 12, 2023
2 parents f60735a + eba2856 commit 595501f
Show file tree
Hide file tree
Showing 25 changed files with 91 additions and 20 deletions.
9 changes: 5 additions & 4 deletions docs/guides/.gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
_build
cms
common
lms
openedx
references/docstrings/cms
references/docstrings/common
references/docstrings/lms
references/docstrings/openedx
references/docstrings/xmodule
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions docs/guides/guides.rst → docs/guides/concepts/index.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Guides
******
Concepts and Guides
###################

.. toctree::
:maxdepth: 2
Expand Down
File renamed without changes
File renamed without changes.
10 changes: 6 additions & 4 deletions docs/guides/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@
'sphinx.ext.mathjax',
'sphinx.ext.napoleon',
'sphinxcontrib.openapi',
'sphinx_design',
'code_annotations.contrib.sphinx.extensions.featuretoggles',
'code_annotations.contrib.sphinx.extensions.settings',
]
Expand Down Expand Up @@ -272,10 +273,11 @@
# 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',
}


Expand Down
File renamed without changes.
8 changes: 8 additions & 0 deletions docs/guides/how-tos/index.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
"How-To" Guides
###############


.. toctree::
:glob:

*
58 changes: 53 additions & 5 deletions docs/guides/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,4 @@ package.
.. toctree::
:maxdepth: 2

common_djangoapps
common_lib
common/common
File renamed without changes.
File renamed without changes.
File renamed without changes.
9 changes: 9 additions & 0 deletions docs/guides/references/index.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
References
##########

.. toctree::
:maxdepth: 1
:glob:

*
docstrings/index
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.
3 changes: 1 addition & 2 deletions requirements/edx/development.in
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 2 additions & 0 deletions requirements/edx/doc.in
Original file line number Diff line number Diff line change
Expand Up @@ -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
3 changes: 3 additions & 0 deletions requirements/edx/doc.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 595501f

Please sign in to comment.