From 72aa9ec97be718081016130911cb891e6cd1a37f Mon Sep 17 00:00:00 2001 From: Astrid Date: Thu, 4 Dec 2025 03:20:19 +0100 Subject: [PATCH] Implement RFC sorting to index.md --- docs/index.md | 29 ++++++++++++++++++++++++----- 1 file changed, 24 insertions(+), 5 deletions(-) diff --git a/docs/index.md b/docs/index.md index 31f3d8cd8..3993e29d7 100644 --- a/docs/index.md +++ b/docs/index.md @@ -1,6 +1,22 @@ # RFCs -{% assign sortedPages = site.pages | sort: 'title' %} +{% assign allPages = site.pages %} +{% assign implementedPages = '' | split: '' %} +{% assign notImplementedPages = '' | split: '' %} + +{% for page in allPages %} +{% assign ext = page.name | split:'.' | last %} +{% if ext == 'md' and page.name != 'index.md' %} +{% if page.content contains '**Status**: Implemented' %} +{% assign implementedPages = implementedPages | push: page %} +{% else %} +{% assign notImplementedPages = notImplementedPages | push: page %} +{% endif %} +{% endif %} +{% endfor %} + +{% assign implementedPages = implementedPages | sort: 'title' %} +{% assign notImplementedPages = notImplementedPages | sort: 'title' %} Luau uses RFCs to discuss and document the language evolution process. They are hosted [in a GitHub repository](https://github.com/luau-lang/rfcs) which accepts pull requests for corrections to existing RFCs as well as new RFCs. @@ -11,11 +27,14 @@ If you'd like to submit a new RFC, please [read our guidelines first](https://gi Note that if you'd like to submit a substantial change to an existing RFC that is already implemented according to its Status field, you would need to submit a new amendment RFC instead of editing an existing one.