Skip to content

Commit

Permalink
MDL-77708 docs: Update references from docs.moodle.org/dev
Browse files Browse the repository at this point in the history
  • Loading branch information
sarjona committed Sep 26, 2023
1 parent 6988b5b commit 54d446c
Show file tree
Hide file tree
Showing 664 changed files with 720 additions and 751 deletions.
2 changes: 1 addition & 1 deletion .grunt/jsdoc/README.md
Expand Up @@ -16,4 +16,4 @@ Moodle - the world's open source learning platform
This generated documentation includes API documentation for JavaScript written in the AMD and ES2015 module formats within Moodle.

## Related information
See [https://docs.moodle.org/dev](https://docs.moodle.org/dev) for other related Developer Documentation.
See [https://moodledev.io](https://moodledev.io) for other related Developer Documentation.
2 changes: 1 addition & 1 deletion .grunt/jsdoc/jsdoc.conf.js
Expand Up @@ -114,7 +114,7 @@ module.exports = {
],
"menu": {
"Developer Docs": {
href: "https://docs.moodle.org/dev",
href: "https://moodledev.io",
target: "_blank",
"class": "menu-item",
id: "devdocs"
Expand Down
6 changes: 3 additions & 3 deletions CONTRIBUTING.txt
Expand Up @@ -6,7 +6,7 @@ of developers, designers, teachers, testers, translators and other users. We
work in universities, schools, companies and other places. You are very welcome
to join us and contribute to the project.

See <https://docs.moodle.org/dev/Contributing_to_Moodle> for the many ways you
See <https://moodledev.io/general/community/contribute> for the many ways you
can help, not only with coding.

Moodle is open to community contributions to core, though all code must go
Expand Down Expand Up @@ -35,7 +35,7 @@ submitted patches has evolved.
* New features are developed on the master branch. Bug fixes are also
backported to currently supported maintenance (stable) branches.

For further details, see <https://docs.moodle.org/dev/Process>.
For further details, see <https://moodledev.io/general/development/process>.

Moodle plugins
--------------
Expand All @@ -53,4 +53,4 @@ be easily installed and updated via the Moodle administration interface.
the plugins directory. We do not pull from your code repository; you must do
it explicitly.

For further details, see <https://docs.moodle.org/dev/Plugin_contribution>.
For further details, see <https://moodledev.io/general/community/plugincontribution>.
2 changes: 1 addition & 1 deletion README.txt
Expand Up @@ -20,7 +20,7 @@ Moodle is widely used around the world by universities, schools, companies and
all manner of organisations and individuals.

Moodle is provided freely as open source software, under the GNU General Public
License <https://docs.moodle.org/dev/License>.
License <https://moodledev.io/general/license>.

Moodle is written in PHP and JavaScript and uses an SQL database for storing
the data.
Expand Down
2 changes: 1 addition & 1 deletion admin/localplugins.php
Expand Up @@ -21,7 +21,7 @@
* Displays the list of found local plugins, their version (if found) and
* a link to delete the local plugin.
*
* @see http://docs.moodle.org/dev/Local_customisation
* @see https://moodledev.io/docs/apis/plugintypes/local
* @package admin
* @copyright 2010 David Mudrak <david.mudrak@gmail.com>
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
Expand Down
2 changes: 1 addition & 1 deletion admin/plagiarism.php
Expand Up @@ -20,7 +20,7 @@
* Displays the list of found plagiarism plugins, their version (if found) and
* a link to uninstall the plagiarism plugin.
*
* @see http://docs.moodle.org/dev/Plagiarism_API
* @see https://moodledev.io/docs/apis/subsystems/plagiarism
* @package admin
* @copyright 2012 Dan Marsden <dan@danmarsden.com>
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
Expand Down
8 changes: 4 additions & 4 deletions admin/renderer.php
Expand Up @@ -44,7 +44,7 @@ public function install_licence_page() {
$output .= $this->heading(get_string('copyrightnotice'));
$output .= $this->box($copyrightnotice, 'copyrightnotice');
$output .= html_writer::empty_tag('br');
$output .= $this->confirm(get_string('doyouagree'), $continue, "http://docs.moodle.org/dev/License");
$output .= $this->confirm(get_string('doyouagree'), $continue, "https://moodledev.io/general/license");
$output .= $this->footer();

return $output;
Expand Down Expand Up @@ -746,10 +746,10 @@ protected function moodle_copyright() {
//////////////////////////////////////////////////////////////////////////////////////////////////
//// IT IS ILLEGAL AND A VIOLATION OF THE GPL TO HIDE, REMOVE OR MODIFY THIS COPYRIGHT NOTICE ///
$copyrighttext = '<a href="http://moodle.org/">Moodle</a> '.
'<a href="http://docs.moodle.org/dev/Releases" title="'.$CFG->version.'">'.$CFG->release.'</a><br />'.
'<a href="https://moodledev.io/general/releases" title="'.$CFG->version.'">'.$CFG->release.'</a><br />'.
'Copyright &copy; 1999 onwards, Martin Dougiamas<br />'.
'and <a href="http://moodle.org/dev">many other contributors</a>.<br />'.
'<a href="http://docs.moodle.org/dev/License">GNU Public License</a>';
'<a href="https://moodledev.io/general/license">GNU Public License</a>';
//////////////////////////////////////////////////////////////////////////////////////////////////

return $this->box($copyrighttext, 'copyright');
Expand Down Expand Up @@ -993,7 +993,7 @@ protected function moodle_available_update_info(\core\update\info $updateinfo) {
* @return string HTML to output.
*/
protected function release_notes_link() {
$releasenoteslink = get_string('releasenoteslink', 'admin', 'http://docs.moodle.org/dev/Releases');
$releasenoteslink = get_string('releasenoteslink', 'admin', 'https://moodledev.io/general/releases');
$releasenoteslink = str_replace('target="_blank"', 'onclick="this.target=\'_blank\'"', $releasenoteslink); // extremely ugly validation hack
return $this->box($releasenoteslink, 'generalbox alert alert-info');
}
Expand Down
Expand Up @@ -9,7 +9,7 @@ menu: "main"

## Moodle templates

[Moodle templates](https://docs.moodle.org/dev/Templates) are use to write HTML and Javascript using mustache files.
[Moodle templates](https://moodledev.io/docs/guides/templates) are use to write HTML and Javascript using mustache files.

If you are creating your own pages in the UI Component library you can load core templates using this (shortcode) syntax:

Expand Down Expand Up @@ -51,4 +51,3 @@ This is the result of adding the core/notification template on this page:
"extraclasses": "foo bar"
}
{{< /mustache >}}

Expand Up @@ -11,7 +11,7 @@ tags:

## How to use moodle forms

Forms are constructed using lib/formslib.php. Using the addElement methods in php a set of different form element types can be added to a form. For more info visit the [Moodledocs](https://docs.moodle.org/dev/lib/formslib.php_Form_Definition) page for forms
Forms are constructed using lib/formslib.php. Using the addElement methods in php a set of different form element types can be added to a form. For more info visit the [Moodledocs](https://moodledev.io/docs/apis/subsystems/form) page for forms

{{< php >}}
$mform->addElement('button', 'intro', get_string("buttonlabel"));
Expand Down
Expand Up @@ -61,7 +61,7 @@ Disabled toggle with extra classes.

## Use toggle as a template block

It is also possible to include *core/toggle* in any other template using [blocks](https://docs.moodle.org/dev/Templates#Blocks), instead of rendering it with a context.
It is also possible to include *core/toggle* in any other template using [blocks](https://moodledev.io/docs/guides/templates#blocks), instead of rendering it with a context.
The parameters that you can define are:
* id: Unique id for the toggle input.
* extraclasses: Any extra classes added to the toggle input outer container.
Expand Down
Expand Up @@ -58,7 +58,7 @@ class behat_tool_dataprivacy extends behat_base {
);

/**
* Creates the specified element. More info about available elements in http://docs.moodle.org/dev/Acceptance_testing#Fixtures.
* Creates the specified element. More info about available elements in https://moodledev.io/general/development/tools/behat.
*
* @Given /^the following data privacy "(?P<element_string>(?:[^"]|\\")*)" exist:$/
*
Expand Down
Expand Up @@ -94,7 +94,7 @@ class behat_tool_lp_data_generators extends behat_base {
);

/**
* Creates the specified element. More info about available elements in http://docs.moodle.org/dev/Acceptance_testing#Fixtures.
* Creates the specified element. More info about available elements in https://moodledev.io/general/development/tools/behat.
*
* @Given /^the following lp "(?P<element_string>(?:[^"]|\\")*)" exist:$/
*
Expand Down
2 changes: 1 addition & 1 deletion auth/upgrade.txt
Expand Up @@ -21,7 +21,7 @@ information provided here is intended especially for developers.
* The auth_db and auth_ldap plugins' implementations of update_user_record() have been removed and both now
call the new implementation added in the base class.
* Self registration plugins should use core_privacy\local\sitepolicy\manager instead of directly checking
$CFG->sitepolicy , especially in custom signup forms. See https://docs.moodle.org/dev/Site_policy_handler
$CFG->sitepolicy , especially in custom signup forms.

=== 3.3 ===

Expand Down
4 changes: 2 additions & 2 deletions calendar/classes/type_base.php
Expand Up @@ -165,7 +165,7 @@ public abstract function get_next_month($year, $month);
* @param int $time the timestamp in UTC, as obtained from the database
* @param string $format strftime format
* @param int|float|string $timezone the timezone to use
* {@link http://docs.moodle.org/dev/Time_API#Timezone}
* {@link https://moodledev.io/docs/apis/subsystems/time#timezone}
* @param bool $fixday if true then the leading zero from %d is removed,
* if false then the leading zero is maintained
* @param bool $fixhour if true then the leading zero from %I is removed,
Expand All @@ -180,7 +180,7 @@ public abstract function timestamp_to_date_string($time, $format, $timezone, $fi
*
* @param int $time timestamp in GMT
* @param float|int|string $timezone the timezone to use to calculate the time
* {@link http://docs.moodle.org/dev/Time_API#Timezone}
* {@link https://moodledev.io/docs/apis/subsystems/time#timezone}
* @return array an array that represents the date in user time
*/
public abstract function timestamp_to_date_array($time, $timezone = 99);
Expand Down
4 changes: 2 additions & 2 deletions calendar/tests/calendartype_test_example.php
Expand Up @@ -222,7 +222,7 @@ public function get_next_month($year, $month) {
* @param int $time the timestamp in UTC, as obtained from the database
* @param string $format strftime format
* @param int|float|string $timezone the timezone to use
* {@link http://docs.moodle.org/dev/Time_API#Timezone}
* {@link https://moodledev.io/docs/apis/subsystems/time#timezone}
* @param bool $fixday if true then the leading zero from %d is removed,
* if false then the leading zero is maintained
* @param bool $fixhour if true then the leading zero from %I is removed,
Expand All @@ -239,7 +239,7 @@ public function timestamp_to_date_string($time, $format, $timezone, $fixday, $fi
*
* @param int $time timestamp in GMT
* @param float|int|string $timezone the timezone to use to calculate the time
* {@link http://docs.moodle.org/dev/Time_API#Timezone}
* {@link https://moodledev.io/docs/apis/subsystems/time#timezone}
* @return array an array that represents the date in user time
*/
public function timestamp_to_date_array($time, $timezone = 99) {
Expand Down
4 changes: 2 additions & 2 deletions calendar/type/gregorian/classes/structure.php
Expand Up @@ -289,7 +289,7 @@ public function get_next_month($year, $month) {
* @param int $time the timestamp in UTC, as obtained from the database
* @param string $format strftime format
* @param int|float|string $timezone the timezone to use
* {@link http://docs.moodle.org/dev/Time_API#Timezone}
* {@link https://moodledev.io/docs/apis/subsystems/time#timezone}
* @param bool $fixday if true then the leading zero from %d is removed,
* if false then the leading zero is maintained
* @param bool $fixhour if true then the leading zero from %I is removed,
Expand Down Expand Up @@ -348,7 +348,7 @@ public function timestamp_to_date_string($time, $format, $timezone, $fixday, $fi
*
* @param int $time Timestamp in GMT
* @param float|int|string $timezone offset's time with timezone, if float and not 99, then no
* dst offset is applied {@link http://docs.moodle.org/dev/Time_API#Timezone}
* dst offset is applied {@link https://moodledev.io/docs/apis/subsystems/time#timezone}
* @return array an array that represents the date in user time
*/
public function timestamp_to_date_array($time, $timezone = 99) {
Expand Down
2 changes: 1 addition & 1 deletion calendar/upgrade.txt
Expand Up @@ -30,7 +30,7 @@ information provided here is intended especially for developers.
=== 3.9 ===
* Plugins can now create their own calendar events, both standard and action ones. To do it they need to specify
$event->component when creating an event. Component events can not be edited or deleted manually.
See https://docs.moodle.org/dev/Calendar_API#Component_events
See https://moodledev.io/docs/apis/core/calendar#component-events
* The following functions have been deprecated because they were no longer used:
- calendar_add_event_metadata()
- core_calendar_renderer::event()
Expand Down
2 changes: 1 addition & 1 deletion course/format/upgrade.txt
@@ -1,6 +1,6 @@
This files describes API changes for course formats

Overview of this plugin type at http://docs.moodle.org/dev/Course_formats
Overview of this plugin type at https://moodledev.io/docs/apis/plugintypes/format

=== 4.1 ===
* New \core_courseformat\stateupdates methods add_section_remove() and add_cm_remove() have been added to replace
Expand Down
4 changes: 0 additions & 4 deletions course/renderer.php
Expand Up @@ -97,8 +97,6 @@ public function course_info_box(stdClass $course) {
*
* @deprecated since 2.5
*
* Please see http://docs.moodle.org/dev/Courses_lists_upgrade_to_2.5
*
* @param array $ignored argument ignored
* @return string
*/
Expand All @@ -112,8 +110,6 @@ public final function course_category_tree(array $ignored) {
*
* @deprecated since 2.5
*
* Please see http://docs.moodle.org/dev/Courses_lists_upgrade_to_2.5
*
* @param array $category
* @param int $depth
* @return string
Expand Down
4 changes: 3 additions & 1 deletion filter/urltolink/tests/filter_test.php
Expand Up @@ -176,7 +176,9 @@ function get_convert_urls_into_links_test_cases() {
'<p>text www.moodle.org&lt;/p> text' => '<p>text <a href="http://www.moodle.org" class="_blanktarget">www.moodle.org</a>&lt;/p> text',
// Some more urls.
'<link rel="search" type="application/opensearchdescription+xml" href="/osd.jsp" title="Peer review - Moodle Tracker"/>' => '<link rel="search" type="application/opensearchdescription+xml" href="/osd.jsp" title="Peer review - Moodle Tracker"/>',
'<a href="https://docs.moodle.org/dev/Main_Page"></a><span>www.google.com</span><span class="placeholder"></span>' => '<a href="https://docs.moodle.org/dev/Main_Page"></a><span><a href="http://www.google.com" class="_blanktarget">www.google.com</a></span><span class="placeholder"></span>',
'<a href="https://moodledev.io"></a><span>www.google.com</span><span class="placeholder"></span>' =>
'<a href="https://moodledev.io"></a><span>' .
'<a href="http://www.google.com" class="_blanktarget">www.google.com</a></span><span class="placeholder"></span>',
'http://nolandforzombies.com <a href="zombiesFTW.com">Zombies FTW</a> http://aliens.org' => '<a href="http://nolandforzombies.com" class="_blanktarget">http://nolandforzombies.com</a> <a href="zombiesFTW.com">Zombies FTW</a> <a href="http://aliens.org" class="_blanktarget">http://aliens.org</a>',
// Test 'nolink' class.
'URL: <span class="nolink">http://moodle.org</span>' => 'URL: <span class="nolink">http://moodle.org</span>',
Expand Down
2 changes: 1 addition & 1 deletion install/lang/ab/langconfig.php
Expand Up @@ -20,7 +20,7 @@
* Do not edit this file manually! It contains just a subset of strings
* needed during the very first steps of installation. This file was
* generated automatically by export-installer.php (which is part of AMOS
* {@link http://docs.moodle.org/dev/Languages/AMOS}) using the
* {@link https://moodledev.io/general/projects/api/amos}) using the
* list of strings defined in /install/stringnames.txt.
*
* @package installer
Expand Down
2 changes: 1 addition & 1 deletion install/lang/af/admin.php
Expand Up @@ -20,7 +20,7 @@
* Do not edit this file manually! It contains just a subset of strings
* needed during the very first steps of installation. This file was
* generated automatically by export-installer.php (which is part of AMOS
* {@link http://docs.moodle.org/dev/Languages/AMOS}) using the
* {@link https://moodledev.io/general/projects/api/amos}) using the
* list of strings defined in /install/stringnames.txt.
*
* @package installer
Expand Down
2 changes: 1 addition & 1 deletion install/lang/af/error.php
Expand Up @@ -20,7 +20,7 @@
* Do not edit this file manually! It contains just a subset of strings
* needed during the very first steps of installation. This file was
* generated automatically by export-installer.php (which is part of AMOS
* {@link http://docs.moodle.org/dev/Languages/AMOS}) using the
* {@link https://moodledev.io/general/projects/api/amos}) using the
* list of strings defined in /install/stringnames.txt.
*
* @package installer
Expand Down
2 changes: 1 addition & 1 deletion install/lang/af/install.php
Expand Up @@ -20,7 +20,7 @@
* Do not edit this file manually! It contains just a subset of strings
* needed during the very first steps of installation. This file was
* generated automatically by export-installer.php (which is part of AMOS
* {@link http://docs.moodle.org/dev/Languages/AMOS}) using the
* {@link https://moodledev.io/general/projects/api/amos}) using the
* list of strings defined in /install/stringnames.txt.
*
* @package installer
Expand Down
2 changes: 1 addition & 1 deletion install/lang/af/langconfig.php
Expand Up @@ -20,7 +20,7 @@
* Do not edit this file manually! It contains just a subset of strings
* needed during the very first steps of installation. This file was
* generated automatically by export-installer.php (which is part of AMOS
* {@link http://docs.moodle.org/dev/Languages/AMOS}) using the
* {@link https://moodledev.io/general/projects/api/amos}) using the
* list of strings defined in /install/stringnames.txt.
*
* @package installer
Expand Down
2 changes: 1 addition & 1 deletion install/lang/af/moodle.php
Expand Up @@ -20,7 +20,7 @@
* Do not edit this file manually! It contains just a subset of strings
* needed during the very first steps of installation. This file was
* generated automatically by export-installer.php (which is part of AMOS
* {@link http://docs.moodle.org/dev/Languages/AMOS}) using the
* {@link https://moodledev.io/general/projects/api/amos}) using the
* list of strings defined in /install/stringnames.txt.
*
* @package installer
Expand Down
2 changes: 1 addition & 1 deletion install/lang/am/install.php
Expand Up @@ -20,7 +20,7 @@
* Do not edit this file manually! It contains just a subset of strings
* needed during the very first steps of installation. This file was
* generated automatically by export-installer.php (which is part of AMOS
* {@link http://docs.moodle.org/dev/Languages/AMOS}) using the
* {@link https://moodledev.io/general/projects/api/amos}) using the
* list of strings defined in /install/stringnames.txt.
*
* @package installer
Expand Down
2 changes: 1 addition & 1 deletion install/lang/am/langconfig.php
Expand Up @@ -20,7 +20,7 @@
* Do not edit this file manually! It contains just a subset of strings
* needed during the very first steps of installation. This file was
* generated automatically by export-installer.php (which is part of AMOS
* {@link http://docs.moodle.org/dev/Languages/AMOS}) using the
* {@link https://moodledev.io/general/projects/api/amos}) using the
* list of strings defined in /install/stringnames.txt.
*
* @package installer
Expand Down
2 changes: 1 addition & 1 deletion install/lang/am/moodle.php
Expand Up @@ -20,7 +20,7 @@
* Do not edit this file manually! It contains just a subset of strings
* needed during the very first steps of installation. This file was
* generated automatically by export-installer.php (which is part of AMOS
* {@link http://docs.moodle.org/dev/Languages/AMOS}) using the
* {@link https://moodledev.io/general/projects/api/amos}) using the
* list of strings defined in /install/stringnames.txt.
*
* @package installer
Expand Down
2 changes: 1 addition & 1 deletion install/lang/an/admin.php
Expand Up @@ -20,7 +20,7 @@
* Do not edit this file manually! It contains just a subset of strings
* needed during the very first steps of installation. This file was
* generated automatically by export-installer.php (which is part of AMOS
* {@link http://docs.moodle.org/dev/Languages/AMOS}) using the
* {@link https://moodledev.io/general/projects/api/amos}) using the
* list of strings defined in /install/stringnames.txt.
*
* @package installer
Expand Down
2 changes: 1 addition & 1 deletion install/lang/an/error.php
Expand Up @@ -20,7 +20,7 @@
* Do not edit this file manually! It contains just a subset of strings
* needed during the very first steps of installation. This file was
* generated automatically by export-installer.php (which is part of AMOS
* {@link http://docs.moodle.org/dev/Languages/AMOS}) using the
* {@link https://moodledev.io/general/projects/api/amos}) using the
* list of strings defined in /install/stringnames.txt.
*
* @package installer
Expand Down

0 comments on commit 54d446c

Please sign in to comment.