Commit Graph

1360 Commits

Author SHA1 Message Date
Feanil Patel
b6fc5488c6 docs: Apply suggestions from code review 2023-08-18 14:21:56 -04:00
Feanil Patel
02354eff10 docs: Apply suggestions from code review 2023-08-18 14:21:27 -04:00
Feanil Patel
b111440b7f docs: Clarify comment for getting a refresh token. 2023-08-18 11:04:15 -04:00
Feanil Patel
73001b1a59 docs: Apply suggestions from code review
Typos and other small fixes.

Co-authored-by: Robert Raposa <rraposa@edx.org>
2023-08-18 10:14:02 -04:00
Feanil Patel
df5759ca37 docs: Make the docs easier to read and and some links. 2023-08-17 11:11:59 -04:00
Feanil Patel
5a1abcb64f fixup! docs: Add some basic docs on the Rest API. 2023-08-17 10:47:56 -04:00
Feanil Patel
1db57b574f fixup! docs: Add more examples related to Auth. 2023-08-17 10:44:39 -04:00
Feanil Patel
3e1a4ed311 fixup! docs: Add some basic docs on the Rest API. 2023-08-17 10:44:27 -04:00
Feanil Patel
88096cc54d docs: Add more examples related to Auth. 2023-08-17 10:30:06 -04:00
Feanil Patel
e663988c10 docs: Add some basic docs on the Rest API.
There is probably a lot more to say but add a quick How-To and concept
docs that we can build on.
2023-08-16 15:35:06 -04:00
Kyle McCormick
303bf5ef3c build: npm run watch (experimental) (#32866)
Implements the `npm run watch` section of the assets ADR [1], plus some
modifications since I decided to switch from pywatchman to watchdog (see
ADR changes for justification). This will replace `paver watch_assets`
(edx-platform) and `openedx-assets watch-themes` (Tutor).

Specifically, this PR adds three experimental commands:

* `npm run watch-sass` : Watch for Sass changes with watchdog.
* `npm run watch-webpack` : Invoke Webpack-watch for JS changes.
* `npm run watch` : Invoke both `watch-sass` and `watch-webpack` simultaneously.

These commands are only intended to work in development mode. They have
been tested both on bare-metal edx-platform and through `tutor dev run`
on on Linux.

Before removing the "experimental" label, we need to:

* Test through Devstack on Linux.
* Test through Devstack and `tutor dev run` on macOS.
* Test on bare-metal macOS. Might not work, which is OK, but we should
  document that.
* Document the commands in edx-platform's README.
* Confirm that this not only works through `tutor dev run`, but also as
  a suitable replacement in the `watchthemes` service that Tutor runs
  automatically as part of `tutor dev start`. Tweak if necessary.

References:

1. https://github.com/openedx/edx-platform/blob/master/docs/decisions/0017-reimplement-asset-processing.rst

Part of: https://github.com/openedx/edx-platform/issues/31612
2023-07-27 16:33:32 +00:00
Rômulo Penido
c54070989b feat!: add new content authoring event signals 2023-07-25 16:45:39 +02:00
Kyle D. McCormick
4f393a1f15 docs: update static assets ADR with the new plan 2023-07-21 07:43:57 -04:00
Kyle McCormick
a6f04d8ca3 build: copy from node_modules using NPM postinstall hook, not Paver (RE-MERGE)
Re-merge of 4b64d8342d

The commit after this one contains the fix for the issue that led to the
revert.
2023-07-20 13:46:21 -04:00
Feanil Patel
f32c938961 fix: Update conf paths to match the new docs layout. 2023-07-18 15:41:34 -04:00
Feanil Patel
a586c3bab0 fix: Update openapi yaml location. 2023-07-18 14:33:26 -04:00
Feanil Patel
3e2d78b37b feat!: Move the docs out of the guides subdirectory.
Now that the content in `guides` is all of the edx-platform docs, move
them all into the top-level docs directory to reduce confusion.

BREAKING CHANGE: Guides are now just docs.  This will require updating
the publishing settings so that RTD looks for the conf in a different
location.
2023-07-18 14:31:49 -04:00
Feanil Patel
1e27084e35 feat!: Drop the separate technical docs.
BREAKING CHANGE: The technical docs will not be published independent of
the rest of the edx-platform docs.
2023-07-18 14:29:28 -04:00
Feanil Patel
e644ade6df docs: Redirect all technical doc pages.
We publish the two pages that were being published under here to the new
edx-platform docs under docs.openedx.org so update this doc site to
redirect to that site for all pages.

Once this version has been published, we should be safe to remove this
doc project from the platform and all future changes should go through
the single edx-platform docs site.
2023-07-17 17:05:26 -04:00
Feanil Patel
90c4155509 docs: Don't build certain doc strings for now.
We ran into memory issues at RTD so skip the xmodule, cms and common
docs for now so we can get some of the stuff up.  We can come back to it
later once we make things better.
2023-07-17 14:01:16 -04:00
Feanil Patel
b1f0619152 docs: Manually add some redirects.
Since we want to replace the existing technical docs with this guides
project and we already build the technical docs into this project now.
Adding these redirects will allow it to be a drop-in replacement for the
existing published technical docs project.
2023-07-13 12:10:11 -04:00
Feanil Patel
cee0e75566 docs: Add config for redirecting pages.
We want to be able to move pages around and have sphinx automatically
redirect to the now location when that happens.  This will allow us to
re-organize safely as we figure out the best way to layout the
documentation.
2023-07-13 12:10:11 -04:00
Feanil Patel
595501f8cf Merge pull request #32614 from openedx/feanil/reorg_guides
feanil/reorg guides
2023-07-12 16:02:03 -04:00
Feanil Patel
dcebcc4d0d docs: Make the generated docs visible.
There is still a lot of improvements that could be made to make the
generated docs better organized.  However, before this change we were
generating the docs but they weren't in the doc tree so you couldn't
actually browse to them.  So we fix that first so that we can start
getting feedback about how to organize them.
2023-07-12 15:06:23 -04:00
Feanil Patel
50f164a6ff docs: Rename guides to concepts.
The guides map pretty closely to the concept docs in diataxis so rename
them as such to align to the standard naming we're moving to.
2023-07-12 15:06:23 -04:00
Feanil Patel
bdf9870cf7 docs: Move how-tos and references to sub-folders. 2023-07-12 15:05:15 -04:00
Feanil Patel
0167b09a3b docs: Add the new sphinx-design extension.
This gives us the abuliity to add some nice responsive web components to
our docs. In particular girds and cards.
2023-07-12 15:05:15 -04:00
Yusuf Musleh
4ad8ba1b41 feat: list courses details by keys
This adds the ability to get a list of detailed courses based on their
keys provided in the newly added `keys` query param in the `GET /courses/v1/courses/`
endpoint.
2023-07-12 17:22:38 +03:00
Feanil Patel
7a0f2682ac docs: Add feature toggle and settings to the guide.
With this move we don't need the existing separate `edx-platform
Technical` sphinx project.  In the future we can remove it and just
redirect to the content in this project but I won't be doing that as a
part of this change because that involves adding redirects over there to
the new content and I'm not yet done organizing the destination.

The docs in the `guide` project might move around as we make the project
follow diataxis more closely.
2023-06-29 16:10:42 -04:00
Feanil Patel
8c43868b52 docs: Rename swagger.yaml to lms-openapi.yaml
* Swagger was renamed to OpenAPI at some point so use the new name for
  clarity.

* Prefix with `lms` to make it clear that these are the APIs from the
  LMS and may not all be available in the CMS.
2023-06-29 15:37:10 -04:00
Feanil Patel
26262131ae docs: Remove the api docs sphinx project.
* This project was not being published anywhere.
* The previous commit that adds openapi generation capabilities to the
  `docs/guides` replaces what this was doing.
2023-06-29 15:37:10 -04:00
Feanil Patel
56cad59e97 docs: Generate rst from the existing swagger docs.
Use an existing 3rd party library to generate RST docs from the existing
swagger.yaml file.
2023-06-29 15:37:10 -04:00
Kyle McCormick
478c301df5 docs: improve filters & events links in Hooks guide (#32588)
* point to upstream repos, not eduNEXT forks
* link to guides, not just source repos
* fix spelling of Open edX
2023-06-27 19:10:54 +00:00
Ned Batchelder
8e7b0c1c73 fix: oscm@edx.org is not the right email for asking about APIs
We get about one email per month from people looking for access to edX
APIs.  Those emails come to the now almost-defunct oscm@edx.org email
address.  I think that's because of these swagger references.

I suppose someone could find this email address on an Open edX
installation, and people would write to it, but I find in practice this
doesn't happen.

Co-authored-by: Kyle McCormick <kyle@tcril.org>
2023-05-22 07:51:45 -07:00
Kshitij Sobti
1c3c702583 chore: Switch from edx-sphinx-theme to sphinx-book-theme
The edx-sphinx theme is being deprecated, and replaced with sphinx-book-theme.
This removes references to the deprecated theme and replaces them with the new
standard theme for the platform.

See https://github.com/openedx/edx-sphinx-theme/issues/184
2023-04-28 09:16:09 +05:30
Kyle McCormick
6b2d3fb807 docs: downgrade settings ADR status to "Provisional" (#32113)
The ideas here are good and in line with OEP-45, but we have not
yet had a chance to implement them in edx-platform

Furthermore, recent conversations have made us consider
revisiting the "Don't use YAML files, just python modules"
alternative described in the ADR. Particularly, Tutor has
not been able to use pure YAML to configure edx-platform,
and has fallen back on having separate .py settings files.
This makes us think that we either need to expose
more power through the YAML interface, or we need to
re-embrace .py settings files.
2023-04-21 10:25:10 -04:00
Felipe Montoya
f4bb83b22b fix: typo in the documentation for hooks that prevented the rst rendering (#31984) 2023-03-24 15:08:00 -04:00
Kyle McCormick
463b64d349 docs: tweak webpack config design in assets ADR (#31949)
Follow-up from:
https://github.com/openedx/edx-platform/pull/31790#discussion_r1110202654

Part of DEPR:
https://github.com/openedx/edx-platform/issues/31895
2023-03-16 16:25:23 -04:00
Tim McCormack
d48c42d4c5 chore: Update rST header styles in one file to match our doc guidelines (#260)
(This is also serving as a test of the security patch process.)
2023-03-13 13:51:21 +00:00
Rebecca Graber
918e822eda docs: add need for browser container for JS tests (#31911) 2023-03-13 08:03:27 -04:00
Kyle McCormick
2ca95e5213 docs: add ADR to reimplement static asset processing (#31790) 2023-03-10 08:08:05 -05:00
Rebecca Graber
fbbc2cea50 docs: clarify intent of ADR-14 (#31863) 2023-03-03 15:53:28 -05:00
ALi Raza
0ff7c5b13f feat: Enable Certificate Display Behavior add certificate_available_date in course detail API
feat: Enable Certificate Display Behavior add certificate_available_date in course detail API

fix: reviwed changes, certificate_available_date in Course Detail API but not in Course List API

fix: reviewed changes, certificate available date display condition updated

fix: final reviewed changes

fix: serializer and linting tests

fix: serializer and tests

fix: docstring

fix: docstring and tests

fix: typo and mock call
2023-02-23 22:34:11 +05:00
Arunmozhi
2b59265240 feat: adds VerticalBlockRenderCompleted filter hook (#31388)
* feat: adds VerticalBlockChildrenLoaded filter call

This introduces the VerticalBlockChildrenLoaded filter that is run after
all the child blocks are fetched before rendering a student or the
public view. This will allow modifying the contents of the VerticalBlock
before presenting it to the students.
2023-02-22 15:05:19 -04:00
Tim McCormack
197fef9c2b docs: Various cleanup of outdated comments and docstrings (#31754)
- Remove pylint warning suppression from SHAKE-128 hexdigest calls; these
  are no longer needed as of astroid 2.12.12. For background, see issue
  <https://github.com/PyCQA/pylint/issues/4039>. Also, correct a comment
  that referred to SHAKE-256 instead of SHAKE-128.
- Replace "released" with "beta" in several places where there was a copy
  & paste error in dark_lang. Add mention of `beta_lang` to a docstring
  where it was omitted.
- Remove comment regarding Mongo startup; the code it referred to has since
  been removed.
- Fix typos.
2023-02-14 18:11:57 +00:00
Navin Karkera
4697adc681 feat: hook xblock publish, delete and duplicate openedx-events (#31350) 2023-02-14 19:25:30 +05:00
Diana Huang
4afe0c92f2 docs: Add course catalog info changed event to docs. (#31732)
https://github.com/edx/edx-arch-experiments/issues/178
2023-02-09 12:28:30 -05:00
AsadAzam
255cb73070 docs: adr to add new notifications application (#31655)
* docs: adr to add new notifications application

* docs: accepted adr
2023-02-02 12:27:58 +05:00
0x29a
9d8375ff99 refactor: rename module -> block within lms/djangoapps/courseware
Also, removed unused `_has_access_xmodule` methid from `lms/djangoapps/courseware/access.py`.
2023-01-30 18:15:22 +01:00
Zubair Shakoor
141d6d4ce6 refactor: remove all paver code related to python unit tests (#31180) 2023-01-18 17:41:56 +05:00