Skip to content

Document template documentation#1566

Open
andrewnicols wants to merge 2 commits intomoodle:mainfrom
andrewnicols:deprecationGeneral
Open

Document template documentation#1566
andrewnicols wants to merge 2 commits intomoodle:mainfrom
andrewnicols:deprecationGeneral

Conversation

@andrewnicols
Copy link
Copy Markdown
Member

This is based on #1562 and also includes a couple of more general deprecation notes.

Copilot AI review requested due to automatic review settings April 14, 2026 04:34
@netlify
Copy link
Copy Markdown

netlify bot commented Apr 14, 2026

Deploy Preview for moodledevdocs ready!

Name Link
🔨 Latest commit df682f8
🔍 Latest deploy log https://app.netlify.com/projects/moodledevdocs/deploys/69ddc3dc4c7898000880872a
😎 Deploy Preview https://deploy-preview-1566--moodledevdocs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds new documentation pages describing deprecation approaches for JavaScript and Mustache templates, and expands the main deprecation policy page to clarify that deprecation considerations apply beyond just “public APIs”.

Changes:

  • Added deprecation policy pages for JavaScript and templates under general/development/policies/deprecation/.
  • Added a JavaScript deprecation “how-to” guide under docs/guides/javascript/.
  • Updated the deprecation policy index to explicitly include non-PHP areas (JS, templates, React, web services, etc.) and breaking changes via “changes”.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 4 comments.

File Description
general/development/policies/deprecation/templates.md New policy page describing how template deprecations should be handled.
general/development/policies/deprecation/javascript.md New policy page describing JavaScript deprecation principles and pointing to the guide.
general/development/policies/deprecation/index.md Clarifies that deprecation policy applies broadly across Moodle code and breaking changes.
docs/guides/javascript/deprecation.md New guide describing usage of the core/deprecated utility and related behaviors.

---
title: Deprecation of JavaScript
tags:
- deprecation
Copy link

Copilot AI Apr 14, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Frontmatter tags here use only a single lowercase deprecation tag. In this same section, other deprecation policy pages consistently use a fuller, Title Case tag set (e.g. Processes, Core development, Deprecation, plus a topic tag like SCSS/Icon). Aligning the tags avoids splitting tag indexes (e.g. Deprecation vs deprecation) and keeps these pages grouped consistently.

Suggested change
- deprecation
- Processes
- Core development
- Deprecation
- JavaScript

Copilot uses AI. Check for mistakes.
---
title: Deprecation of JavaScript
tags:
- deprecation
Copy link

Copilot AI Apr 14, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This page sits under docs/guides/javascript/, but its frontmatter tags don’t include the commonly used Javascript tag used by other pages in the same section (e.g. ajax/index.md, modules.md, modal/index.md). Adding Javascript (and using the same capitalization conventions for tags) will keep tag-based navigation/search consistent for JavaScript guides.

Suggested change
- deprecation
- deprecation
- Javascript

Copilot uses AI. Check for mistakes.
- deprecation
---

The Mustache Templating system does not formally support any deprecation process, therefore the deprecation _process_ is slightly different, while the principle and intent is the same.
Copy link

Copilot AI Apr 14, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The sentence has subject/verb agreement and comma-splice issues ("principle and intent is" should be "are"; consider splitting into two sentences for readability).

Suggested change
The Mustache Templating system does not formally support any deprecation process, therefore the deprecation _process_ is slightly different, while the principle and intent is the same.
The Mustache Templating system does not formally support any deprecation process. Therefore, the deprecation _process_ is slightly different, while the principle and intent are the same.

Copilot uses AI. Check for mistakes.
---
title: Deprecation of templates
tags:
- deprecation
Copy link

Copilot AI Apr 14, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Frontmatter tags here use only a single lowercase deprecation tag. In this same section, other deprecation policy pages consistently use a fuller, Title Case tag set (e.g. Processes, Core development, Deprecation, plus a topic tag like Icon/SCSS). Aligning the tags avoids splitting tag indexes (e.g. Deprecation vs deprecation) and keeps these pages grouped consistently in navigation/search.

Suggested change
- deprecation
- Processes
- Core development
- Deprecation
- Templates

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants